shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
lolasweb.brannanatkinson.com
/
public
/
vendor
/
statamic
/
cp
/
build
/
assets
/ [
drwxr-xr-x
]
upload
mass deface
mass delete
console
info server
name :
app-8fd8ff17.js
var Yu=Object.defineProperty;var Ku=(M,$,I)=>$ in M?Yu(M,$,{enumerable:!0,configurable:!0,writable:!0,value:I}):M[$]=I;var Il=(M,$,I)=>(Ku(M,typeof $!="symbol"?$+"":$,I),I),bc=(M,$,I)=>{if(!$.has(M))throw TypeError("Cannot "+I)};var Fr=(M,$,I)=>(bc(M,$,"read from private field"),I?I.call(M):$.get(M)),Oi=(M,$,I)=>{if($.has(M))throw TypeError("Cannot add the same private member more than once");$ instanceof WeakSet?$.add(M):$.set(M,I)},Ji=(M,$,I,N)=>(bc(M,$,"write to private field"),N?N.call(M,I):$.set(M,I),I);var Ao=(M,$,I)=>(bc(M,$,"access private method"),I);const scriptRel="modulepreload",assetsURL=function(M,$){return new URL(M,$).href},seen={},__vitePreload=function($,I,N){if(!I||I.length===0)return $();const B=document.getElementsByTagName("link");return Promise.all(I.map(j=>{if(j=assetsURL(j,N),j in seen)return;seen[j]=!0;const U=j.endsWith(".css"),q=U?'[rel="stylesheet"]':"";if(!!N)for(let G=B.length-1;G>=0;G--){const J=B[G];if(J.href===j&&(!U||J.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${j}"]${q}`))return;const K=document.createElement("link");if(K.rel=U?"stylesheet":scriptRel,U||(K.as="script",K.crossOrigin=""),K.href=j,document.head.appendChild(K),U)return new Promise((G,J)=>{K.addEventListener("load",G),K.addEventListener("error",()=>J(new Error(`Unable to preload CSS for ${j}`)))})})).then(()=>$()).catch(j=>{const U=new Event("vite:preloadError",{cancelable:!0});if(U.payload=j,window.dispatchEvent(U),!U.defaultPrevented)throw j})};/*! * Vue.js v2.7.14 * (c) 2014-2022 Evan You * Released under the MIT License. */var emptyObject=Object.freeze({}),isArray$a=Array.isArray;function isUndef(M){return M==null}function isDef(M){return M!=null}function isTrue(M){return M===!0}function isFalse(M){return M===!1}function isPrimitive(M){return typeof M=="string"||typeof M=="number"||typeof M=="symbol"||typeof M=="boolean"}function isFunction$6(M){return typeof M=="function"}function isObject$7(M){return M!==null&&typeof M=="object"}var _toString=Object.prototype.toString;function toRawType$1(M){return _toString.call(M).slice(8,-1)}function isPlainObject$2(M){return _toString.call(M)==="[object Object]"}function isRegExp$5(M){return _toString.call(M)==="[object RegExp]"}function isValidArrayIndex(M){var $=parseFloat(String(M));return $>=0&&Math.floor($)===$&&isFinite(M)}function isPromise$1(M){return isDef(M)&&typeof M.then=="function"&&typeof M.catch=="function"}function toString$5(M){return M==null?"":Array.isArray(M)||isPlainObject$2(M)&&M.toString===_toString?JSON.stringify(M,null,2):String(M)}function toNumber(M){var $=parseFloat(M);return isNaN($)?M:$}function makeMap$1(M,$){for(var I=Object.create(null),N=M.split(","),B=0;B<N.length;B++)I[N[B]]=!0;return $?function(j){return I[j.toLowerCase()]}:function(j){return I[j]}}var isBuiltInTag=makeMap$1("slot,component",!0),isReservedAttribute=makeMap$1("key,ref,slot,slot-scope,is");function remove$2(M,$){var I=M.length;if(I){if($===M[I-1]){M.length=I-1;return}var N=M.indexOf($);if(N>-1)return M.splice(N,1)}}var hasOwnProperty$3=Object.prototype.hasOwnProperty;function hasOwn$5(M,$){return hasOwnProperty$3.call(M,$)}function cached(M){var $=Object.create(null);return function(N){var B=$[N];return B||($[N]=M(N))}}var camelizeRE=/-(\w)/g,camelize=cached(function(M){return M.replace(camelizeRE,function($,I){return I?I.toUpperCase():""})}),capitalize$1=cached(function(M){return M.charAt(0).toUpperCase()+M.slice(1)}),hyphenateRE=/\B([A-Z])/g,hyphenate=cached(function(M){return M.replace(hyphenateRE,"-$1").toLowerCase()});function polyfillBind(M,$){function I(N){var B=arguments.length;return B?B>1?M.apply($,arguments):M.call($,N):M.call($)}return I._length=M.length,I}function nativeBind(M,$){return M.bind($)}var bind$1$1=Function.prototype.bind?nativeBind:polyfillBind;function toArray$3(M,$){$=$||0;for(var I=M.length-$,N=new Array(I);I--;)N[I]=M[I+$];return N}function extend$6(M,$){for(var I in $)M[I]=$[I];return M}function toObject$1(M){for(var $={},I=0;I<M.length;I++)M[I]&&extend$6($,M[I]);return $}function noop$2(M,$,I){}var no=function(M,$,I){return!1},identity$1=function(M){return M};function genStaticKeys$1(M){return M.reduce(function($,I){return $.concat(I.staticKeys||[])},[]).join(",")}function looseEqual(M,$){if(M===$)return!0;var I=isObject$7(M),N=isObject$7($);if(I&&N)try{var B=Array.isArray(M),j=Array.isArray($);if(B&&j)return M.length===$.length&&M.every(function(Y,K){return looseEqual(Y,$[K])});if(M instanceof Date&&$ instanceof Date)return M.getTime()===$.getTime();if(!B&&!j){var U=Object.keys(M),q=Object.keys($);return U.length===q.length&&U.every(function(Y){return looseEqual(M[Y],$[Y])})}else return!1}catch{return!1}else return!I&&!N?String(M)===String($):!1}function looseIndexOf(M,$){for(var I=0;I<M.length;I++)if(looseEqual(M[I],$))return I;return-1}function once$2(M){var $=!1;return function(){$||($=!0,M.apply(this,arguments))}}function hasChanged$1(M,$){return M===$?M===0&&1/M!==1/$:M===M||$===$}var SSR_ATTR="data-server-rendered",ASSET_TYPES=["component","directive","filter"],LIFECYCLE_HOOKS=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],config$1={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:no,isReservedAttr:no,isUnknownElement:no,getTagNamespace:noop$2,parsePlatformTagName:identity$1,mustUseProp:no,async:!0,_lifecycleHooks:LIFECYCLE_HOOKS},unicodeRegExp=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function isReserved(M){var $=(M+"").charCodeAt(0);return $===36||$===95}function def(M,$,I,N){Object.defineProperty(M,$,{value:I,enumerable:!!N,writable:!0,configurable:!0})}var bailRE=new RegExp("[^".concat(unicodeRegExp.source,".$_\\d]"));function parsePath(M){if(!bailRE.test(M)){var $=M.split(".");return function(I){for(var N=0;N<$.length;N++){if(!I)return;I=I[$[N]]}return I}}}var hasProto="__proto__"in{},inBrowser=typeof window<"u",UA=inBrowser&&window.navigator.userAgent.toLowerCase(),isIE$1=UA&&/msie|trident/.test(UA),isIE9=UA&&UA.indexOf("msie 9.0")>0,isEdge=UA&&UA.indexOf("edge/")>0;UA&&UA.indexOf("android")>0;var isIOS$1=UA&&/iphone|ipad|ipod|ios/.test(UA),isFF=UA&&UA.match(/firefox\/(\d+)/),nativeWatch={}.watch,supportsPassive$1=!1;if(inBrowser)try{var opts={};Object.defineProperty(opts,"passive",{get:function(){supportsPassive$1=!0}}),window.addEventListener("test-passive",null,opts)}catch{}var _isServer,isServerRendering=function(){return _isServer===void 0&&(!inBrowser&&typeof global<"u"?_isServer=global.process&&global.process.env.VUE_ENV==="server":_isServer=!1),_isServer},devtools=inBrowser&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function isNative(M){return typeof M=="function"&&/native code/.test(M.toString())}var hasSymbol=typeof Symbol<"u"&&isNative(Symbol)&&typeof Reflect<"u"&&isNative(Reflect.ownKeys),_Set;typeof Set<"u"&&isNative(Set)?_Set=Set:_Set=function(){function M(){this.set=Object.create(null)}return M.prototype.has=function($){return this.set[$]===!0},M.prototype.add=function($){this.set[$]=!0},M.prototype.clear=function(){this.set=Object.create(null)},M}();var currentInstance=null;function getCurrentInstance(){return currentInstance&&{proxy:currentInstance}}function setCurrentInstance(M){M===void 0&&(M=null),M||currentInstance&¤tInstance._scope.off(),currentInstance=M,M&&M._scope.on()}var VNode=function(){function M($,I,N,B,j,U,q,Y){this.tag=$,this.data=I,this.children=N,this.text=B,this.elm=j,this.ns=void 0,this.context=U,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=I&&I.key,this.componentOptions=q,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=Y,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(M.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),M}(),createEmptyVNode=function(M){M===void 0&&(M="");var $=new VNode;return $.text=M,$.isComment=!0,$};function createTextVNode(M){return new VNode(void 0,void 0,void 0,String(M))}function cloneVNode(M){var $=new VNode(M.tag,M.data,M.children&&M.children.slice(),M.text,M.elm,M.context,M.componentOptions,M.asyncFactory);return $.ns=M.ns,$.isStatic=M.isStatic,$.key=M.key,$.isComment=M.isComment,$.fnContext=M.fnContext,$.fnOptions=M.fnOptions,$.fnScopeId=M.fnScopeId,$.asyncMeta=M.asyncMeta,$.isCloned=!0,$}var uid$2=0,pendingCleanupDeps=[],cleanupDeps=function(){for(var M=0;M<pendingCleanupDeps.length;M++){var $=pendingCleanupDeps[M];$.subs=$.subs.filter(function(I){return I}),$._pending=!1}pendingCleanupDeps.length=0},Dep=function(){function M(){this._pending=!1,this.id=uid$2++,this.subs=[]}return M.prototype.addSub=function($){this.subs.push($)},M.prototype.removeSub=function($){this.subs[this.subs.indexOf($)]=null,this._pending||(this._pending=!0,pendingCleanupDeps.push(this))},M.prototype.depend=function($){M.target&&M.target.addDep(this)},M.prototype.notify=function($){for(var I=this.subs.filter(function(U){return U}),N=0,B=I.length;N<B;N++){var j=I[N];j.update()}},M}();Dep.target=null;var targetStack=[];function pushTarget(M){targetStack.push(M),Dep.target=M}function popTarget(){targetStack.pop(),Dep.target=targetStack[targetStack.length-1]}var arrayProto=Array.prototype,arrayMethods=Object.create(arrayProto),methodsToPatch=["push","pop","shift","unshift","splice","sort","reverse"];methodsToPatch.forEach(function(M){var $=arrayProto[M];def(arrayMethods,M,function(){for(var N=[],B=0;B<arguments.length;B++)N[B]=arguments[B];var j=$.apply(this,N),U=this.__ob__,q;switch(M){case"push":case"unshift":q=N;break;case"splice":q=N.slice(2);break}return q&&U.observeArray(q),U.dep.notify(),j})});var arrayKeys=Object.getOwnPropertyNames(arrayMethods),NO_INIITIAL_VALUE={},shouldObserve=!0;function toggleObserving(M){shouldObserve=M}var mockDep={notify:noop$2,depend:noop$2,addSub:noop$2,removeSub:noop$2},Observer=function(){function M($,I,N){if(I===void 0&&(I=!1),N===void 0&&(N=!1),this.value=$,this.shallow=I,this.mock=N,this.dep=N?mockDep:new Dep,this.vmCount=0,def($,"__ob__",this),isArray$a($)){if(!N)if(hasProto)$.__proto__=arrayMethods;else for(var B=0,j=arrayKeys.length;B<j;B++){var U=arrayKeys[B];def($,U,arrayMethods[U])}I||this.observeArray($)}else for(var q=Object.keys($),B=0;B<q.length;B++){var U=q[B];defineReactive($,U,NO_INIITIAL_VALUE,void 0,I,N)}}return M.prototype.observeArray=function($){for(var I=0,N=$.length;I<N;I++)observe($[I],!1,this.mock)},M}();function observe(M,$,I){if(M&&hasOwn$5(M,"__ob__")&&M.__ob__ instanceof Observer)return M.__ob__;if(shouldObserve&&(I||!isServerRendering())&&(isArray$a(M)||isPlainObject$2(M))&&Object.isExtensible(M)&&!M.__v_skip&&!isRef$1(M)&&!(M instanceof VNode))return new Observer(M,$,I)}function defineReactive(M,$,I,N,B,j){var U=new Dep,q=Object.getOwnPropertyDescriptor(M,$);if(!(q&&q.configurable===!1)){var Y=q&&q.get,K=q&&q.set;(!Y||K)&&(I===NO_INIITIAL_VALUE||arguments.length===2)&&(I=M[$]);var G=!B&&observe(I,!1,j);return Object.defineProperty(M,$,{enumerable:!0,configurable:!0,get:function(){var Z=Y?Y.call(M):I;return Dep.target&&(U.depend(),G&&(G.dep.depend(),isArray$a(Z)&&dependArray(Z))),isRef$1(Z)&&!B?Z.value:Z},set:function(Z){var ee=Y?Y.call(M):I;if(hasChanged$1(ee,Z)){if(K)K.call(M,Z);else{if(Y)return;if(!B&&isRef$1(ee)&&!isRef$1(Z)){ee.value=Z;return}else I=Z}G=!B&&observe(Z,!1,j),U.notify()}}}),U}}function set$3(M,$,I){if(!isReadonly(M)){var N=M.__ob__;return isArray$a(M)&&isValidArrayIndex($)?(M.length=Math.max(M.length,$),M.splice($,1,I),N&&!N.shallow&&N.mock&&observe(I,!1,!0),I):$ in M&&!($ in Object.prototype)?(M[$]=I,I):M._isVue||N&&N.vmCount?I:N?(defineReactive(N.value,$,I,void 0,N.shallow,N.mock),N.dep.notify(),I):(M[$]=I,I)}}function del(M,$){if(isArray$a(M)&&isValidArrayIndex($)){M.splice($,1);return}var I=M.__ob__;M._isVue||I&&I.vmCount||isReadonly(M)||hasOwn$5(M,$)&&(delete M[$],I&&I.dep.notify())}function dependArray(M){for(var $=void 0,I=0,N=M.length;I<N;I++)$=M[I],$&&$.__ob__&&$.__ob__.dep.depend(),isArray$a($)&&dependArray($)}function reactive$1(M){return makeReactive(M,!1),M}function shallowReactive(M){return makeReactive(M,!0),def(M,"__v_isShallow",!0),M}function makeReactive(M,$){isReadonly(M)||observe(M,$,isServerRendering())}function isReactive$1(M){return isReadonly(M)?isReactive$1(M.__v_raw):!!(M&&M.__ob__)}function isShallow(M){return!!(M&&M.__v_isShallow)}function isReadonly(M){return!!(M&&M.__v_isReadonly)}function isProxy(M){return isReactive$1(M)||isReadonly(M)}function toRaw$1(M){var $=M&&M.__v_raw;return $?toRaw$1($):M}function markRaw(M){return Object.isExtensible(M)&&def(M,"__v_skip",!0),M}var RefFlag="__v_isRef";function isRef$1(M){return!!(M&&M.__v_isRef===!0)}function ref$1(M){return createRef(M,!1)}function shallowRef(M){return createRef(M,!0)}function createRef(M,$){if(isRef$1(M))return M;var I={};return def(I,RefFlag,!0),def(I,"__v_isShallow",$),def(I,"dep",defineReactive(I,"value",M,null,$,isServerRendering())),I}function triggerRef(M){M.dep&&M.dep.notify()}function unref(M){return isRef$1(M)?M.value:M}function proxyRefs(M){if(isReactive$1(M))return M;for(var $={},I=Object.keys(M),N=0;N<I.length;N++)proxyWithRefUnwrap($,M,I[N]);return $}function proxyWithRefUnwrap(M,$,I){Object.defineProperty(M,I,{enumerable:!0,configurable:!0,get:function(){var N=$[I];if(isRef$1(N))return N.value;var B=N&&N.__ob__;return B&&B.dep.depend(),N},set:function(N){var B=$[I];isRef$1(B)&&!isRef$1(N)?B.value=N:$[I]=N}})}function customRef(M){var $=new Dep,I=M(function(){$.depend()},function(){$.notify()}),N=I.get,B=I.set,j={get value(){return N()},set value(U){B(U)}};return def(j,RefFlag,!0),j}function toRefs(M){var $=isArray$a(M)?new Array(M.length):{};for(var I in M)$[I]=toRef(M,I);return $}function toRef(M,$,I){var N=M[$];if(isRef$1(N))return N;var B={get value(){var j=M[$];return j===void 0?I:j},set value(j){M[$]=j}};return def(B,RefFlag,!0),B}var rawToReadonlyFlag="__v_rawToReadonly",rawToShallowReadonlyFlag="__v_rawToShallowReadonly";function readonly$1(M){return createReadonly(M,!1)}function createReadonly(M,$){if(!isPlainObject$2(M)||isReadonly(M))return M;var I=$?rawToShallowReadonlyFlag:rawToReadonlyFlag,N=M[I];if(N)return N;var B=Object.create(Object.getPrototypeOf(M));def(M,I,B),def(B,"__v_isReadonly",!0),def(B,"__v_raw",M),isRef$1(M)&&def(B,RefFlag,!0),($||isShallow(M))&&def(B,"__v_isShallow",!0);for(var j=Object.keys(M),U=0;U<j.length;U++)defineReadonlyProperty(B,M,j[U],$);return B}function defineReadonlyProperty(M,$,I,N){Object.defineProperty(M,I,{enumerable:!0,configurable:!0,get:function(){var B=$[I];return N||!isPlainObject$2(B)?B:readonly$1(B)},set:function(){}})}function shallowReadonly(M){return createReadonly(M,!0)}function computed(M,$){var I,N,B=isFunction$6(M);B?(I=M,N=noop$2):(I=M.get,N=M.set);var j=isServerRendering()?null:new Watcher(currentInstance,I,noop$2,{lazy:!0}),U={effect:j,get value(){return j?(j.dirty&&j.evaluate(),Dep.target&&j.depend(),j.value):I()},set value(q){N(q)}};return def(U,RefFlag,!0),def(U,"__v_isReadonly",B),U}var normalizeEvent=cached(function(M){var $=M.charAt(0)==="&";M=$?M.slice(1):M;var I=M.charAt(0)==="~";M=I?M.slice(1):M;var N=M.charAt(0)==="!";return M=N?M.slice(1):M,{name:M,once:I,capture:N,passive:$}});function createFnInvoker(M,$){function I(){var N=I.fns;if(isArray$a(N))for(var B=N.slice(),j=0;j<B.length;j++)invokeWithErrorHandling(B[j],null,arguments,$,"v-on handler");else return invokeWithErrorHandling(N,null,arguments,$,"v-on handler")}return I.fns=M,I}function updateListeners(M,$,I,N,B,j){var U,q,Y,K;for(U in M)q=M[U],Y=$[U],K=normalizeEvent(U),isUndef(q)||(isUndef(Y)?(isUndef(q.fns)&&(q=M[U]=createFnInvoker(q,j)),isTrue(K.once)&&(q=M[U]=B(K.name,q,K.capture)),I(K.name,q,K.capture,K.passive,K.params)):q!==Y&&(Y.fns=q,M[U]=Y));for(U in $)isUndef(M[U])&&(K=normalizeEvent(U),N(K.name,$[U],K.capture))}function mergeVNodeHook(M,$,I){M instanceof VNode&&(M=M.data.hook||(M.data.hook={}));var N,B=M[$];function j(){I.apply(this,arguments),remove$2(N.fns,j)}isUndef(B)?N=createFnInvoker([j]):isDef(B.fns)&&isTrue(B.merged)?(N=B,N.fns.push(j)):N=createFnInvoker([B,j]),N.merged=!0,M[$]=N}function extractPropsFromVNodeData(M,$,I){var N=$.options.props;if(!isUndef(N)){var B={},j=M.attrs,U=M.props;if(isDef(j)||isDef(U))for(var q in N){var Y=hyphenate(q);checkProp(B,U,q,Y,!0)||checkProp(B,j,q,Y,!1)}return B}}function checkProp(M,$,I,N,B){if(isDef($)){if(hasOwn$5($,I))return M[I]=$[I],B||delete $[I],!0;if(hasOwn$5($,N))return M[I]=$[N],B||delete $[N],!0}return!1}function simpleNormalizeChildren(M){for(var $=0;$<M.length;$++)if(isArray$a(M[$]))return Array.prototype.concat.apply([],M);return M}function normalizeChildren(M){return isPrimitive(M)?[createTextVNode(M)]:isArray$a(M)?normalizeArrayChildren(M):void 0}function isTextNode(M){return isDef(M)&&isDef(M.text)&&isFalse(M.isComment)}function normalizeArrayChildren(M,$){var I=[],N,B,j,U;for(N=0;N<M.length;N++)B=M[N],!(isUndef(B)||typeof B=="boolean")&&(j=I.length-1,U=I[j],isArray$a(B)?B.length>0&&(B=normalizeArrayChildren(B,"".concat($||"","_").concat(N)),isTextNode(B[0])&&isTextNode(U)&&(I[j]=createTextVNode(U.text+B[0].text),B.shift()),I.push.apply(I,B)):isPrimitive(B)?isTextNode(U)?I[j]=createTextVNode(U.text+B):B!==""&&I.push(createTextVNode(B)):isTextNode(B)&&isTextNode(U)?I[j]=createTextVNode(U.text+B.text):(isTrue(M._isVList)&&isDef(B.tag)&&isUndef(B.key)&&isDef($)&&(B.key="__vlist".concat($,"_").concat(N,"__")),I.push(B)));return I}var SIMPLE_NORMALIZE=1,ALWAYS_NORMALIZE=2;function createElement$1(M,$,I,N,B,j){return(isArray$a(I)||isPrimitive(I))&&(B=N,N=I,I=void 0),isTrue(j)&&(B=ALWAYS_NORMALIZE),_createElement(M,$,I,N,B)}function _createElement(M,$,I,N,B){if(isDef(I)&&isDef(I.__ob__)||(isDef(I)&&isDef(I.is)&&($=I.is),!$))return createEmptyVNode();isArray$a(N)&&isFunction$6(N[0])&&(I=I||{},I.scopedSlots={default:N[0]},N.length=0),B===ALWAYS_NORMALIZE?N=normalizeChildren(N):B===SIMPLE_NORMALIZE&&(N=simpleNormalizeChildren(N));var j,U;if(typeof $=="string"){var q=void 0;U=M.$vnode&&M.$vnode.ns||config$1.getTagNamespace($),config$1.isReservedTag($)?j=new VNode(config$1.parsePlatformTagName($),I,N,void 0,void 0,M):(!I||!I.pre)&&isDef(q=resolveAsset(M.$options,"components",$))?j=createComponent(q,I,M,N,$):j=new VNode($,I,N,void 0,void 0,M)}else j=createComponent($,I,M,N);return isArray$a(j)?j:isDef(j)?(isDef(U)&&applyNS(j,U),isDef(I)&®isterDeepBindings(I),j):createEmptyVNode()}function applyNS(M,$,I){if(M.ns=$,M.tag==="foreignObject"&&($=void 0,I=!0),isDef(M.children))for(var N=0,B=M.children.length;N<B;N++){var j=M.children[N];isDef(j.tag)&&(isUndef(j.ns)||isTrue(I)&&j.tag!=="svg")&&applyNS(j,$,I)}}function registerDeepBindings(M){isObject$7(M.style)&&traverse(M.style),isObject$7(M.class)&&traverse(M.class)}function renderList(M,$){var I=null,N,B,j,U;if(isArray$a(M)||typeof M=="string")for(I=new Array(M.length),N=0,B=M.length;N<B;N++)I[N]=$(M[N],N);else if(typeof M=="number")for(I=new Array(M),N=0;N<M;N++)I[N]=$(N+1,N);else if(isObject$7(M))if(hasSymbol&&M[Symbol.iterator]){I=[];for(var q=M[Symbol.iterator](),Y=q.next();!Y.done;)I.push($(Y.value,I.length)),Y=q.next()}else for(j=Object.keys(M),I=new Array(j.length),N=0,B=j.length;N<B;N++)U=j[N],I[N]=$(M[U],U,N);return isDef(I)||(I=[]),I._isVList=!0,I}function renderSlot(M,$,I,N){var B=this.$scopedSlots[M],j;B?(I=I||{},N&&(I=extend$6(extend$6({},N),I)),j=B(I)||(isFunction$6($)?$():$)):j=this.$slots[M]||(isFunction$6($)?$():$);var U=I&&I.slot;return U?this.$createElement("template",{slot:U},j):j}function resolveFilter(M){return resolveAsset(this.$options,"filters",M)||identity$1}function isKeyNotMatch(M,$){return isArray$a(M)?M.indexOf($)===-1:M!==$}function checkKeyCodes(M,$,I,N,B){var j=config$1.keyCodes[$]||I;return B&&N&&!config$1.keyCodes[$]?isKeyNotMatch(B,N):j?isKeyNotMatch(j,M):N?hyphenate(N)!==$:M===void 0}function bindObjectProps(M,$,I,N,B){if(I&&isObject$7(I)){isArray$a(I)&&(I=toObject$1(I));var j=void 0,U=function(Y){if(Y==="class"||Y==="style"||isReservedAttribute(Y))j=M;else{var K=M.attrs&&M.attrs.type;j=N||config$1.mustUseProp($,K,Y)?M.domProps||(M.domProps={}):M.attrs||(M.attrs={})}var G=camelize(Y),J=hyphenate(Y);if(!(G in j)&&!(J in j)&&(j[Y]=I[Y],B)){var Z=M.on||(M.on={});Z["update:".concat(Y)]=function(ee){I[Y]=ee}}};for(var q in I)U(q)}return M}function renderStatic(M,$){var I=this._staticTrees||(this._staticTrees=[]),N=I[M];return N&&!$||(N=I[M]=this.$options.staticRenderFns[M].call(this._renderProxy,this._c,this),markStatic$1(N,"__static__".concat(M),!1)),N}function markOnce(M,$,I){return markStatic$1(M,"__once__".concat($).concat(I?"_".concat(I):""),!0),M}function markStatic$1(M,$,I){if(isArray$a(M))for(var N=0;N<M.length;N++)M[N]&&typeof M[N]!="string"&&markStaticNode(M[N],"".concat($,"_").concat(N),I);else markStaticNode(M,$,I)}function markStaticNode(M,$,I){M.isStatic=!0,M.key=$,M.isOnce=I}function bindObjectListeners(M,$){if($&&isPlainObject$2($)){var I=M.on=M.on?extend$6({},M.on):{};for(var N in $){var B=I[N],j=$[N];I[N]=B?[].concat(B,j):j}}return M}function resolveScopedSlots(M,$,I,N){$=$||{$stable:!I};for(var B=0;B<M.length;B++){var j=M[B];isArray$a(j)?resolveScopedSlots(j,$,I):j&&(j.proxy&&(j.fn.proxy=!0),$[j.key]=j.fn)}return N&&($.$key=N),$}function bindDynamicKeys(M,$){for(var I=0;I<$.length;I+=2){var N=$[I];typeof N=="string"&&N&&(M[$[I]]=$[I+1])}return M}function prependModifier(M,$){return typeof M=="string"?$+M:M}function installRenderHelpers(M){M._o=markOnce,M._n=toNumber,M._s=toString$5,M._l=renderList,M._t=renderSlot,M._q=looseEqual,M._i=looseIndexOf,M._m=renderStatic,M._f=resolveFilter,M._k=checkKeyCodes,M._b=bindObjectProps,M._v=createTextVNode,M._e=createEmptyVNode,M._u=resolveScopedSlots,M._g=bindObjectListeners,M._d=bindDynamicKeys,M._p=prependModifier}function resolveSlots(M,$){if(!M||!M.length)return{};for(var I={},N=0,B=M.length;N<B;N++){var j=M[N],U=j.data;if(U&&U.attrs&&U.attrs.slot&&delete U.attrs.slot,(j.context===$||j.fnContext===$)&&U&&U.slot!=null){var q=U.slot,Y=I[q]||(I[q]=[]);j.tag==="template"?Y.push.apply(Y,j.children||[]):Y.push(j)}else(I.default||(I.default=[])).push(j)}for(var K in I)I[K].every(isWhitespace$2)&&delete I[K];return I}function isWhitespace$2(M){return M.isComment&&!M.asyncFactory||M.text===" "}function isAsyncPlaceholder(M){return M.isComment&&M.asyncFactory}function normalizeScopedSlots(M,$,I,N){var B,j=Object.keys(I).length>0,U=$?!!$.$stable:!j,q=$&&$.$key;if(!$)B={};else{if($._normalized)return $._normalized;if(U&&N&&N!==emptyObject&&q===N.$key&&!j&&!N.$hasNormal)return N;B={};for(var Y in $)$[Y]&&Y[0]!=="$"&&(B[Y]=normalizeScopedSlot(M,I,Y,$[Y]))}for(var K in I)K in B||(B[K]=proxyNormalSlot(I,K));return $&&Object.isExtensible($)&&($._normalized=B),def(B,"$stable",U),def(B,"$key",q),def(B,"$hasNormal",j),B}function normalizeScopedSlot(M,$,I,N){var B=function(){var j=currentInstance;setCurrentInstance(M);var U=arguments.length?N.apply(null,arguments):N({});U=U&&typeof U=="object"&&!isArray$a(U)?[U]:normalizeChildren(U);var q=U&&U[0];return setCurrentInstance(j),U&&(!q||U.length===1&&q.isComment&&!isAsyncPlaceholder(q))?void 0:U};return N.proxy&&Object.defineProperty($,I,{get:B,enumerable:!0,configurable:!0}),B}function proxyNormalSlot(M,$){return function(){return M[$]}}function initSetup(M){var $=M.$options,I=$.setup;if(I){var N=M._setupContext=createSetupContext(M);setCurrentInstance(M),pushTarget();var B=invokeWithErrorHandling(I,null,[M._props||shallowReactive({}),N],M,"setup");if(popTarget(),setCurrentInstance(),isFunction$6(B))$.render=B;else if(isObject$7(B))if(M._setupState=B,B.__sfc){var U=M._setupProxy={};for(var j in B)j!=="__sfc"&&proxyWithRefUnwrap(U,B,j)}else for(var j in B)isReserved(j)||proxyWithRefUnwrap(M,B,j)}}function createSetupContext(M){return{get attrs(){if(!M._attrsProxy){var $=M._attrsProxy={};def($,"_v_attr_proxy",!0),syncSetupProxy($,M.$attrs,emptyObject,M,"$attrs")}return M._attrsProxy},get listeners(){if(!M._listenersProxy){var $=M._listenersProxy={};syncSetupProxy($,M.$listeners,emptyObject,M,"$listeners")}return M._listenersProxy},get slots(){return initSlotsProxy(M)},emit:bind$1$1(M.$emit,M),expose:function($){$&&Object.keys($).forEach(function(I){return proxyWithRefUnwrap(M,$,I)})}}}function syncSetupProxy(M,$,I,N,B){var j=!1;for(var U in $)U in M?$[U]!==I[U]&&(j=!0):(j=!0,defineProxyAttr(M,U,N,B));for(var U in M)U in $||(j=!0,delete M[U]);return j}function defineProxyAttr(M,$,I,N){Object.defineProperty(M,$,{enumerable:!0,configurable:!0,get:function(){return I[N][$]}})}function initSlotsProxy(M){return M._slotsProxy||syncSetupSlots(M._slotsProxy={},M.$scopedSlots),M._slotsProxy}function syncSetupSlots(M,$){for(var I in $)M[I]=$[I];for(var I in M)I in $||delete M[I]}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function useListeners(){return getContext().listeners}function getContext(){var M=currentInstance;return M._setupContext||(M._setupContext=createSetupContext(M))}function mergeDefaults(M,$){var I=isArray$a(M)?M.reduce(function(j,U){return j[U]={},j},{}):M;for(var N in $){var B=I[N];B?isArray$a(B)||isFunction$6(B)?I[N]={type:B,default:$[N]}:B.default=$[N]:B===null&&(I[N]={default:$[N]})}return I}function initRender(M){M._vnode=null,M._staticTrees=null;var $=M.$options,I=M.$vnode=$._parentVnode,N=I&&I.context;M.$slots=resolveSlots($._renderChildren,N),M.$scopedSlots=I?normalizeScopedSlots(M.$parent,I.data.scopedSlots,M.$slots):emptyObject,M._c=function(j,U,q,Y){return createElement$1(M,j,U,q,Y,!1)},M.$createElement=function(j,U,q,Y){return createElement$1(M,j,U,q,Y,!0)};var B=I&&I.data;defineReactive(M,"$attrs",B&&B.attrs||emptyObject,null,!0),defineReactive(M,"$listeners",$._parentListeners||emptyObject,null,!0)}var currentRenderingInstance=null;function renderMixin(M){installRenderHelpers(M.prototype),M.prototype.$nextTick=function($){return nextTick$1($,this)},M.prototype._render=function(){var $=this,I=$.$options,N=I.render,B=I._parentVnode;B&&$._isMounted&&($.$scopedSlots=normalizeScopedSlots($.$parent,B.data.scopedSlots,$.$slots,$.$scopedSlots),$._slotsProxy&&syncSetupSlots($._slotsProxy,$.$scopedSlots)),$.$vnode=B;var j;try{setCurrentInstance($),currentRenderingInstance=$,j=N.call($._renderProxy,$.$createElement)}catch(U){handleError$1(U,$,"render"),j=$._vnode}finally{currentRenderingInstance=null,setCurrentInstance()}return isArray$a(j)&&j.length===1&&(j=j[0]),j instanceof VNode||(j=createEmptyVNode()),j.parent=B,j}}function ensureCtor(M,$){return(M.__esModule||hasSymbol&&M[Symbol.toStringTag]==="Module")&&(M=M.default),isObject$7(M)?$.extend(M):M}function createAsyncPlaceholder(M,$,I,N,B){var j=createEmptyVNode();return j.asyncFactory=M,j.asyncMeta={data:$,context:I,children:N,tag:B},j}function resolveAsyncComponent(M,$){if(isTrue(M.error)&&isDef(M.errorComp))return M.errorComp;if(isDef(M.resolved))return M.resolved;var I=currentRenderingInstance;if(I&&isDef(M.owners)&&M.owners.indexOf(I)===-1&&M.owners.push(I),isTrue(M.loading)&&isDef(M.loadingComp))return M.loadingComp;if(I&&!isDef(M.owners)){var N=M.owners=[I],B=!0,j=null,U=null;I.$on("hook:destroyed",function(){return remove$2(N,I)});var q=function(J){for(var Z=0,ee=N.length;Z<ee;Z++)N[Z].$forceUpdate();J&&(N.length=0,j!==null&&(clearTimeout(j),j=null),U!==null&&(clearTimeout(U),U=null))},Y=once$2(function(J){M.resolved=ensureCtor(J,$),B?N.length=0:q(!0)}),K=once$2(function(J){isDef(M.errorComp)&&(M.error=!0,q(!0))}),G=M(Y,K);return isObject$7(G)&&(isPromise$1(G)?isUndef(M.resolved)&&G.then(Y,K):isPromise$1(G.component)&&(G.component.then(Y,K),isDef(G.error)&&(M.errorComp=ensureCtor(G.error,$)),isDef(G.loading)&&(M.loadingComp=ensureCtor(G.loading,$),G.delay===0?M.loading=!0:j=setTimeout(function(){j=null,isUndef(M.resolved)&&isUndef(M.error)&&(M.loading=!0,q(!1))},G.delay||200)),isDef(G.timeout)&&(U=setTimeout(function(){U=null,isUndef(M.resolved)&&K(null)},G.timeout)))),B=!1,M.loading?M.loadingComp:M.resolved}}function getFirstComponentChild(M){if(isArray$a(M))for(var $=0;$<M.length;$++){var I=M[$];if(isDef(I)&&(isDef(I.componentOptions)||isAsyncPlaceholder(I)))return I}}function initEvents(M){M._events=Object.create(null),M._hasHookEvent=!1;var $=M.$options._parentListeners;$&&updateComponentListeners(M,$)}var target$1;function add$1$1(M,$){target$1.$on(M,$)}function remove$1(M,$){target$1.$off(M,$)}function createOnceHandler$1(M,$){var I=target$1;return function N(){var B=$.apply(null,arguments);B!==null&&I.$off(M,N)}}function updateComponentListeners(M,$,I){target$1=M,updateListeners($,I||{},add$1$1,remove$1,createOnceHandler$1,M),target$1=void 0}function eventsMixin(M){var $=/^hook:/;M.prototype.$on=function(I,N){var B=this;if(isArray$a(I))for(var j=0,U=I.length;j<U;j++)B.$on(I[j],N);else(B._events[I]||(B._events[I]=[])).push(N),$.test(I)&&(B._hasHookEvent=!0);return B},M.prototype.$once=function(I,N){var B=this;function j(){B.$off(I,j),N.apply(B,arguments)}return j.fn=N,B.$on(I,j),B},M.prototype.$off=function(I,N){var B=this;if(!arguments.length)return B._events=Object.create(null),B;if(isArray$a(I)){for(var j=0,U=I.length;j<U;j++)B.$off(I[j],N);return B}var q=B._events[I];if(!q)return B;if(!N)return B._events[I]=null,B;for(var Y,K=q.length;K--;)if(Y=q[K],Y===N||Y.fn===N){q.splice(K,1);break}return B},M.prototype.$emit=function(I){var N=this,B=N._events[I];if(B){B=B.length>1?toArray$3(B):B;for(var j=toArray$3(arguments,1),U='event handler for "'.concat(I,'"'),q=0,Y=B.length;q<Y;q++)invokeWithErrorHandling(B[q],N,j,N,U)}return N}}var activeInstance=null;function setActiveInstance(M){var $=activeInstance;return activeInstance=M,function(){activeInstance=$}}function initLifecycle(M){var $=M.$options,I=$.parent;if(I&&!$.abstract){for(;I.$options.abstract&&I.$parent;)I=I.$parent;I.$children.push(M)}M.$parent=I,M.$root=I?I.$root:M,M.$children=[],M.$refs={},M._provided=I?I._provided:Object.create(null),M._watcher=null,M._inactive=null,M._directInactive=!1,M._isMounted=!1,M._isDestroyed=!1,M._isBeingDestroyed=!1}function lifecycleMixin(M){M.prototype._update=function($,I){var N=this,B=N.$el,j=N._vnode,U=setActiveInstance(N);N._vnode=$,j?N.$el=N.__patch__(j,$):N.$el=N.__patch__(N.$el,$,I,!1),U(),B&&(B.__vue__=null),N.$el&&(N.$el.__vue__=N);for(var q=N;q&&q.$vnode&&q.$parent&&q.$vnode===q.$parent._vnode;)q.$parent.$el=q.$el,q=q.$parent},M.prototype.$forceUpdate=function(){var $=this;$._watcher&&$._watcher.update()},M.prototype.$destroy=function(){var $=this;if(!$._isBeingDestroyed){callHook$1($,"beforeDestroy"),$._isBeingDestroyed=!0;var I=$.$parent;I&&!I._isBeingDestroyed&&!$.$options.abstract&&remove$2(I.$children,$),$._scope.stop(),$._data.__ob__&&$._data.__ob__.vmCount--,$._isDestroyed=!0,$.__patch__($._vnode,null),callHook$1($,"destroyed"),$.$off(),$.$el&&($.$el.__vue__=null),$.$vnode&&($.$vnode.parent=null)}}}function mountComponent(M,$,I){M.$el=$,M.$options.render||(M.$options.render=createEmptyVNode),callHook$1(M,"beforeMount");var N;N=function(){M._update(M._render(),I)};var B={before:function(){M._isMounted&&!M._isDestroyed&&callHook$1(M,"beforeUpdate")}};new Watcher(M,N,noop$2,B,!0),I=!1;var j=M._preWatchers;if(j)for(var U=0;U<j.length;U++)j[U].run();return M.$vnode==null&&(M._isMounted=!0,callHook$1(M,"mounted")),M}function updateChildComponent(M,$,I,N,B){var j=N.data.scopedSlots,U=M.$scopedSlots,q=!!(j&&!j.$stable||U!==emptyObject&&!U.$stable||j&&M.$scopedSlots.$key!==j.$key||!j&&M.$scopedSlots.$key),Y=!!(B||M.$options._renderChildren||q),K=M.$vnode;M.$options._parentVnode=N,M.$vnode=N,M._vnode&&(M._vnode.parent=N),M.$options._renderChildren=B;var G=N.data.attrs||emptyObject;M._attrsProxy&&syncSetupProxy(M._attrsProxy,G,K.data&&K.data.attrs||emptyObject,M,"$attrs")&&(Y=!0),M.$attrs=G,I=I||emptyObject;var J=M.$options._parentListeners;if(M._listenersProxy&&syncSetupProxy(M._listenersProxy,I,J||emptyObject,M,"$listeners"),M.$listeners=M.$options._parentListeners=I,updateComponentListeners(M,I,J),$&&M.$options.props){toggleObserving(!1);for(var Z=M._props,ee=M.$options._propKeys||[],te=0;te<ee.length;te++){var se=ee[te],re=M.$options.props;Z[se]=validateProp(se,re,$,M)}toggleObserving(!0),M.$options.propsData=$}Y&&(M.$slots=resolveSlots(B,N.context),M.$forceUpdate())}function isInInactiveTree(M){for(;M&&(M=M.$parent);)if(M._inactive)return!0;return!1}function activateChildComponent(M,$){if($){if(M._directInactive=!1,isInInactiveTree(M))return}else if(M._directInactive)return;if(M._inactive||M._inactive===null){M._inactive=!1;for(var I=0;I<M.$children.length;I++)activateChildComponent(M.$children[I]);callHook$1(M,"activated")}}function deactivateChildComponent(M,$){if(!($&&(M._directInactive=!0,isInInactiveTree(M)))&&!M._inactive){M._inactive=!0;for(var I=0;I<M.$children.length;I++)deactivateChildComponent(M.$children[I]);callHook$1(M,"deactivated")}}function callHook$1(M,$,I,N){N===void 0&&(N=!0),pushTarget();var B=currentInstance;N&&setCurrentInstance(M);var j=M.$options[$],U="".concat($," hook");if(j)for(var q=0,Y=j.length;q<Y;q++)invokeWithErrorHandling(j[q],M,I||null,M,U);M._hasHookEvent&&M.$emit("hook:"+$),N&&setCurrentInstance(B),popTarget()}var queue$1=[],activatedChildren=[],has$7={},waiting=!1,flushing$1=!1,index$1$1=0;function resetSchedulerState(){index$1$1=queue$1.length=activatedChildren.length=0,has$7={},waiting=flushing$1=!1}var currentFlushTimestamp=0,getNow=Date.now;if(inBrowser&&!isIE$1){var performance_1=window.performance;performance_1&&typeof performance_1.now=="function"&&getNow()>document.createEvent("Event").timeStamp&&(getNow=function(){return performance_1.now()})}var sortCompareFn=function(M,$){if(M.post){if(!$.post)return 1}else if($.post)return-1;return M.id-$.id};function flushSchedulerQueue(){currentFlushTimestamp=getNow(),flushing$1=!0;var M,$;for(queue$1.sort(sortCompareFn),index$1$1=0;index$1$1<queue$1.length;index$1$1++)M=queue$1[index$1$1],M.before&&M.before(),$=M.id,has$7[$]=null,M.run();var I=activatedChildren.slice(),N=queue$1.slice();resetSchedulerState(),callActivatedHooks(I),callUpdatedHooks(N),cleanupDeps(),devtools&&config$1.devtools&&devtools.emit("flush")}function callUpdatedHooks(M){for(var $=M.length;$--;){var I=M[$],N=I.vm;N&&N._watcher===I&&N._isMounted&&!N._isDestroyed&&callHook$1(N,"updated")}}function queueActivatedComponent(M){M._inactive=!1,activatedChildren.push(M)}function callActivatedHooks(M){for(var $=0;$<M.length;$++)M[$]._inactive=!0,activateChildComponent(M[$],!0)}function queueWatcher(M){var $=M.id;if(has$7[$]==null&&!(M===Dep.target&&M.noRecurse)){if(has$7[$]=!0,!flushing$1)queue$1.push(M);else{for(var I=queue$1.length-1;I>index$1$1&&queue$1[I].id>M.id;)I--;queue$1.splice(I+1,0,M)}waiting||(waiting=!0,nextTick$1(flushSchedulerQueue))}}var WATCHER="watcher",WATCHER_CB="".concat(WATCHER," callback"),WATCHER_GETTER="".concat(WATCHER," getter"),WATCHER_CLEANUP="".concat(WATCHER," cleanup");function watchEffect(M,$){return doWatch(M,null,$)}function watchPostEffect(M,$){return doWatch(M,null,{flush:"post"})}function watchSyncEffect(M,$){return doWatch(M,null,{flush:"sync"})}var INITIAL_WATCHER_VALUE={};function watch(M,$,I){return doWatch(M,$,I)}function doWatch(M,$,I){var N=I===void 0?emptyObject:I,B=N.immediate,j=N.deep,U=N.flush,q=U===void 0?"pre":U;N.onTrack,N.onTrigger;var Y=currentInstance,K=function(ce,me,ue){return ue===void 0&&(ue=null),invokeWithErrorHandling(ce,null,ue,Y,me)},G,J=!1,Z=!1;if(isRef$1(M)?(G=function(){return M.value},J=isShallow(M)):isReactive$1(M)?(G=function(){return M.__ob__.dep.depend(),M},j=!0):isArray$a(M)?(Z=!0,J=M.some(function(ce){return isReactive$1(ce)||isShallow(ce)}),G=function(){return M.map(function(ce){if(isRef$1(ce))return ce.value;if(isReactive$1(ce))return traverse(ce);if(isFunction$6(ce))return K(ce,WATCHER_GETTER)})}):isFunction$6(M)?$?G=function(){return K(M,WATCHER_GETTER)}:G=function(){if(!(Y&&Y._isDestroyed))return te&&te(),K(M,WATCHER,[se])}:G=noop$2,$&&j){var ee=G;G=function(){return traverse(ee())}}var te,se=function(ce){te=re.onStop=function(){K(ce,WATCHER_CLEANUP)}};if(isServerRendering())return se=noop$2,$?B&&K($,WATCHER_CB,[G(),Z?[]:void 0,se]):G(),noop$2;var re=new Watcher(currentInstance,G,noop$2,{lazy:!0});re.noRecurse=!$;var ne=Z?[]:INITIAL_WATCHER_VALUE;return re.run=function(){if(re.active)if($){var ce=re.get();(j||J||(Z?ce.some(function(me,ue){return hasChanged$1(me,ne[ue])}):hasChanged$1(ce,ne)))&&(te&&te(),K($,WATCHER_CB,[ce,ne===INITIAL_WATCHER_VALUE?void 0:ne,se]),ne=ce)}else re.get()},q==="sync"?re.update=re.run:q==="post"?(re.post=!0,re.update=function(){return queueWatcher(re)}):re.update=function(){if(Y&&Y===currentInstance&&!Y._isMounted){var ce=Y._preWatchers||(Y._preWatchers=[]);ce.indexOf(re)<0&&ce.push(re)}else queueWatcher(re)},$?B?re.run():ne=re.get():q==="post"&&Y?Y.$once("hook:mounted",function(){return re.get()}):re.get(),function(){re.teardown()}}var activeEffectScope,EffectScope=function(){function M($){$===void 0&&($=!1),this.detached=$,this.active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!$&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}return M.prototype.run=function($){if(this.active){var I=activeEffectScope;try{return activeEffectScope=this,$()}finally{activeEffectScope=I}}},M.prototype.on=function(){activeEffectScope=this},M.prototype.off=function(){activeEffectScope=this.parent},M.prototype.stop=function($){if(this.active){var I=void 0,N=void 0;for(I=0,N=this.effects.length;I<N;I++)this.effects[I].teardown();for(I=0,N=this.cleanups.length;I<N;I++)this.cleanups[I]();if(this.scopes)for(I=0,N=this.scopes.length;I<N;I++)this.scopes[I].stop(!0);if(!this.detached&&this.parent&&!$){var B=this.parent.scopes.pop();B&&B!==this&&(this.parent.scopes[this.index]=B,B.index=this.index)}this.parent=void 0,this.active=!1}},M}();function effectScope(M){return new EffectScope(M)}function recordEffectScope(M,$){$===void 0&&($=activeEffectScope),$&&$.active&&$.effects.push(M)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(M){activeEffectScope&&activeEffectScope.cleanups.push(M)}function provide(M,$){currentInstance&&(resolveProvided(currentInstance)[M]=$)}function resolveProvided(M){var $=M._provided,I=M.$parent&&M.$parent._provided;return I===$?M._provided=Object.create(I):$}function inject(M,$,I){I===void 0&&(I=!1);var N=currentInstance;if(N){var B=N.$parent&&N.$parent._provided;if(B&&M in B)return B[M];if(arguments.length>1)return I&&isFunction$6($)?$.call(N):$}}function h$2(M,$,I){return createElement$1(currentInstance,M,$,I,2,!0)}function handleError$1(M,$,I){pushTarget();try{if($)for(var N=$;N=N.$parent;){var B=N.$options.errorCaptured;if(B)for(var j=0;j<B.length;j++)try{var U=B[j].call(N,M,$,I)===!1;if(U)return}catch(q){globalHandleError(q,N,"errorCaptured hook")}}globalHandleError(M,$,I)}finally{popTarget()}}function invokeWithErrorHandling(M,$,I,N,B){var j;try{j=I?M.apply($,I):M.call($),j&&!j._isVue&&isPromise$1(j)&&!j._handled&&(j.catch(function(U){return handleError$1(U,N,B+" (Promise/async)")}),j._handled=!0)}catch(U){handleError$1(U,N,B)}return j}function globalHandleError(M,$,I){if(config$1.errorHandler)try{return config$1.errorHandler.call(null,M,$,I)}catch(N){N!==M&&logError(N)}logError(M)}function logError(M,$,I){if(inBrowser&&typeof console<"u")console.error(M);else throw M}var isUsingMicroTask=!1,callbacks$1=[],pending=!1;function flushCallbacks(){pending=!1;var M=callbacks$1.slice(0);callbacks$1.length=0;for(var $=0;$<M.length;$++)M[$]()}var timerFunc;if(typeof Promise<"u"&&isNative(Promise)){var p_1=Promise.resolve();timerFunc=function(){p_1.then(flushCallbacks),isIOS$1&&setTimeout(noop$2)},isUsingMicroTask=!0}else if(!isIE$1&&typeof MutationObserver<"u"&&(isNative(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var counter_1=1,observer$1=new MutationObserver(flushCallbacks),textNode_1=document.createTextNode(String(counter_1));observer$1.observe(textNode_1,{characterData:!0}),timerFunc=function(){counter_1=(counter_1+1)%2,textNode_1.data=String(counter_1)},isUsingMicroTask=!0}else typeof setImmediate<"u"&&isNative(setImmediate)?timerFunc=function(){setImmediate(flushCallbacks)}:timerFunc=function(){setTimeout(flushCallbacks,0)};function nextTick$1(M,$){var I;if(callbacks$1.push(function(){if(M)try{M.call($)}catch(N){handleError$1(N,$,"nextTick")}else I&&I($)}),pending||(pending=!0,timerFunc()),!M&&typeof Promise<"u")return new Promise(function(N){I=N})}function useCssModule(M){M===void 0&&(M="$style");{if(!currentInstance)return emptyObject;var $=currentInstance[M];return $||emptyObject}}function useCssVars(M){if(inBrowser){var $=currentInstance;$&&watchPostEffect(function(){var I=$.$el,N=M($,$._setupProxy);if(I&&I.nodeType===1){var B=I.style;for(var j in N)B.setProperty("--".concat(j),N[j])}})}}function defineAsyncComponent(M){isFunction$6(M)&&(M={loader:M});var $=M.loader,I=M.loadingComponent,N=M.errorComponent,B=M.delay,j=B===void 0?200:B,U=M.timeout;M.suspensible;var q=M.onError,Y=null,K=0,G=function(){return K++,Y=null,J()},J=function(){var Z;return Y||(Z=Y=$().catch(function(ee){if(ee=ee instanceof Error?ee:new Error(String(ee)),q)return new Promise(function(te,se){var re=function(){return te(G())},ne=function(){return se(ee)};q(ee,re,ne,K+1)});throw ee}).then(function(ee){return Z!==Y&&Y?Y:(ee&&(ee.__esModule||ee[Symbol.toStringTag]==="Module")&&(ee=ee.default),ee)}))};return function(){var Z=J();return{component:Z,delay:j,timeout:U,error:N,loading:I}}}function createLifeCycle(M){return function($,I){if(I===void 0&&(I=currentInstance),!!I)return injectHook(I,M,$)}}function injectHook(M,$,I){var N=M.$options;N[$]=mergeLifecycleHook(N[$],I)}var onBeforeMount=createLifeCycle("beforeMount"),onMounted=createLifeCycle("mounted"),onBeforeUpdate=createLifeCycle("beforeUpdate"),onUpdated=createLifeCycle("updated"),onBeforeUnmount=createLifeCycle("beforeDestroy"),onUnmounted=createLifeCycle("destroyed"),onActivated=createLifeCycle("activated"),onDeactivated=createLifeCycle("deactivated"),onServerPrefetch=createLifeCycle("serverPrefetch"),onRenderTracked=createLifeCycle("renderTracked"),onRenderTriggered=createLifeCycle("renderTriggered"),injectErrorCapturedHook=createLifeCycle("errorCaptured");function onErrorCaptured(M,$){$===void 0&&($=currentInstance),injectErrorCapturedHook(M,$)}var version$3="2.7.14";function defineComponent(M){return M}var seenObjects=new _Set;function traverse(M){return _traverse(M,seenObjects),seenObjects.clear(),M}function _traverse(M,$){var I,N,B=isArray$a(M);if(!(!B&&!isObject$7(M)||M.__v_skip||Object.isFrozen(M)||M instanceof VNode)){if(M.__ob__){var j=M.__ob__.dep.id;if($.has(j))return;$.add(j)}if(B)for(I=M.length;I--;)_traverse(M[I],$);else if(isRef$1(M))_traverse(M.value,$);else for(N=Object.keys(M),I=N.length;I--;)_traverse(M[N[I]],$)}}var uid$1=0,Watcher=function(){function M($,I,N,B,j){recordEffectScope(this,activeEffectScope&&!activeEffectScope._vm?activeEffectScope:$?$._scope:void 0),(this.vm=$)&&j&&($._watcher=this),B?(this.deep=!!B.deep,this.user=!!B.user,this.lazy=!!B.lazy,this.sync=!!B.sync,this.before=B.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=N,this.id=++uid$1,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new _Set,this.newDepIds=new _Set,this.expression="",isFunction$6(I)?this.getter=I:(this.getter=parsePath(I),this.getter||(this.getter=noop$2)),this.value=this.lazy?void 0:this.get()}return M.prototype.get=function(){pushTarget(this);var $,I=this.vm;try{$=this.getter.call(I,I)}catch(N){if(this.user)handleError$1(N,I,'getter for watcher "'.concat(this.expression,'"'));else throw N}finally{this.deep&&traverse($),popTarget(),this.cleanupDeps()}return $},M.prototype.addDep=function($){var I=$.id;this.newDepIds.has(I)||(this.newDepIds.add(I),this.newDeps.push($),this.depIds.has(I)||$.addSub(this))},M.prototype.cleanupDeps=function(){for(var $=this.deps.length;$--;){var I=this.deps[$];this.newDepIds.has(I.id)||I.removeSub(this)}var N=this.depIds;this.depIds=this.newDepIds,this.newDepIds=N,this.newDepIds.clear(),N=this.deps,this.deps=this.newDeps,this.newDeps=N,this.newDeps.length=0},M.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():queueWatcher(this)},M.prototype.run=function(){if(this.active){var $=this.get();if($!==this.value||isObject$7($)||this.deep){var I=this.value;if(this.value=$,this.user){var N='callback for watcher "'.concat(this.expression,'"');invokeWithErrorHandling(this.cb,this.vm,[$,I],this.vm,N)}else this.cb.call(this.vm,$,I)}}},M.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},M.prototype.depend=function(){for(var $=this.deps.length;$--;)this.deps[$].depend()},M.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&remove$2(this.vm._scope.effects,this),this.active){for(var $=this.deps.length;$--;)this.deps[$].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},M}(),sharedPropertyDefinition={enumerable:!0,configurable:!0,get:noop$2,set:noop$2};function proxy(M,$,I){sharedPropertyDefinition.get=function(){return this[$][I]},sharedPropertyDefinition.set=function(B){this[$][I]=B},Object.defineProperty(M,I,sharedPropertyDefinition)}function initState(M){var $=M.$options;if($.props&&initProps$1(M,$.props),initSetup(M),$.methods&&initMethods(M,$.methods),$.data)initData(M);else{var I=observe(M._data={});I&&I.vmCount++}$.computed&&initComputed$1(M,$.computed),$.watch&&$.watch!==nativeWatch&&initWatch(M,$.watch)}function initProps$1(M,$){var I=M.$options.propsData||{},N=M._props=shallowReactive({}),B=M.$options._propKeys=[],j=!M.$parent;j||toggleObserving(!1);var U=function(Y){B.push(Y);var K=validateProp(Y,$,I,M);defineReactive(N,Y,K),Y in M||proxy(M,"_props",Y)};for(var q in $)U(q);toggleObserving(!0)}function initData(M){var $=M.$options.data;$=M._data=isFunction$6($)?getData($,M):$||{},isPlainObject$2($)||($={});var I=Object.keys($),N=M.$options.props;M.$options.methods;for(var B=I.length;B--;){var j=I[B];N&&hasOwn$5(N,j)||isReserved(j)||proxy(M,"_data",j)}var U=observe($);U&&U.vmCount++}function getData(M,$){pushTarget();try{return M.call($,$)}catch(I){return handleError$1(I,$,"data()"),{}}finally{popTarget()}}var computedWatcherOptions={lazy:!0};function initComputed$1(M,$){var I=M._computedWatchers=Object.create(null),N=isServerRendering();for(var B in $){var j=$[B],U=isFunction$6(j)?j:j.get;N||(I[B]=new Watcher(M,U||noop$2,noop$2,computedWatcherOptions)),B in M||defineComputed(M,B,j)}}function defineComputed(M,$,I){var N=!isServerRendering();isFunction$6(I)?(sharedPropertyDefinition.get=N?createComputedGetter($):createGetterInvoker(I),sharedPropertyDefinition.set=noop$2):(sharedPropertyDefinition.get=I.get?N&&I.cache!==!1?createComputedGetter($):createGetterInvoker(I.get):noop$2,sharedPropertyDefinition.set=I.set||noop$2),Object.defineProperty(M,$,sharedPropertyDefinition)}function createComputedGetter(M){return function(){var I=this._computedWatchers&&this._computedWatchers[M];if(I)return I.dirty&&I.evaluate(),Dep.target&&I.depend(),I.value}}function createGetterInvoker(M){return function(){return M.call(this,this)}}function initMethods(M,$){M.$options.props;for(var I in $)M[I]=typeof $[I]!="function"?noop$2:bind$1$1($[I],M)}function initWatch(M,$){for(var I in $){var N=$[I];if(isArray$a(N))for(var B=0;B<N.length;B++)createWatcher(M,I,N[B]);else createWatcher(M,I,N)}}function createWatcher(M,$,I,N){return isPlainObject$2(I)&&(N=I,I=I.handler),typeof I=="string"&&(I=M[I]),M.$watch($,I,N)}function stateMixin(M){var $={};$.get=function(){return this._data};var I={};I.get=function(){return this._props},Object.defineProperty(M.prototype,"$data",$),Object.defineProperty(M.prototype,"$props",I),M.prototype.$set=set$3,M.prototype.$delete=del,M.prototype.$watch=function(N,B,j){var U=this;if(isPlainObject$2(B))return createWatcher(U,N,B,j);j=j||{},j.user=!0;var q=new Watcher(U,N,B,j);if(j.immediate){var Y='callback for immediate watcher "'.concat(q.expression,'"');pushTarget(),invokeWithErrorHandling(B,U,[q.value],U,Y),popTarget()}return function(){q.teardown()}}}function initProvide(M){var $=M.$options.provide;if($){var I=isFunction$6($)?$.call(M):$;if(!isObject$7(I))return;for(var N=resolveProvided(M),B=hasSymbol?Reflect.ownKeys(I):Object.keys(I),j=0;j<B.length;j++){var U=B[j];Object.defineProperty(N,U,Object.getOwnPropertyDescriptor(I,U))}}}function initInjections(M){var $=resolveInject(M.$options.inject,M);$&&(toggleObserving(!1),Object.keys($).forEach(function(I){defineReactive(M,I,$[I])}),toggleObserving(!0))}function resolveInject(M,$){if(M){for(var I=Object.create(null),N=hasSymbol?Reflect.ownKeys(M):Object.keys(M),B=0;B<N.length;B++){var j=N[B];if(j!=="__ob__"){var U=M[j].from;if(U in $._provided)I[j]=$._provided[U];else if("default"in M[j]){var q=M[j].default;I[j]=isFunction$6(q)?q.call($):q}}}return I}}var uid$3=0;function initMixin$1(M){M.prototype._init=function($){var I=this;I._uid=uid$3++,I._isVue=!0,I.__v_skip=!0,I._scope=new EffectScope(!0),I._scope._vm=!0,$&&$._isComponent?initInternalComponent(I,$):I.$options=mergeOptions(resolveConstructorOptions(I.constructor),$||{},I),I._renderProxy=I,I._self=I,initLifecycle(I),initEvents(I),initRender(I),callHook$1(I,"beforeCreate",void 0,!1),initInjections(I),initState(I),initProvide(I),callHook$1(I,"created"),I.$options.el&&I.$mount(I.$options.el)}}function initInternalComponent(M,$){var I=M.$options=Object.create(M.constructor.options),N=$._parentVnode;I.parent=$.parent,I._parentVnode=N;var B=N.componentOptions;I.propsData=B.propsData,I._parentListeners=B.listeners,I._renderChildren=B.children,I._componentTag=B.tag,$.render&&(I.render=$.render,I.staticRenderFns=$.staticRenderFns)}function resolveConstructorOptions(M){var $=M.options;if(M.super){var I=resolveConstructorOptions(M.super),N=M.superOptions;if(I!==N){M.superOptions=I;var B=resolveModifiedOptions(M);B&&extend$6(M.extendOptions,B),$=M.options=mergeOptions(I,M.extendOptions),$.name&&($.components[$.name]=M)}}return $}function resolveModifiedOptions(M){var $,I=M.options,N=M.sealedOptions;for(var B in I)I[B]!==N[B]&&($||($={}),$[B]=I[B]);return $}function FunctionalRenderContext(M,$,I,N,B){var j=this,U=B.options,q;hasOwn$5(N,"_uid")?(q=Object.create(N),q._original=N):(q=N,N=N._original);var Y=isTrue(U._compiled),K=!Y;this.data=M,this.props=$,this.children=I,this.parent=N,this.listeners=M.on||emptyObject,this.injections=resolveInject(U.inject,N),this.slots=function(){return j.$slots||normalizeScopedSlots(N,M.scopedSlots,j.$slots=resolveSlots(I,N)),j.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return normalizeScopedSlots(N,M.scopedSlots,this.slots())}}),Y&&(this.$options=U,this.$slots=this.slots(),this.$scopedSlots=normalizeScopedSlots(N,M.scopedSlots,this.$slots)),U._scopeId?this._c=function(G,J,Z,ee){var te=createElement$1(q,G,J,Z,ee,K);return te&&!isArray$a(te)&&(te.fnScopeId=U._scopeId,te.fnContext=N),te}:this._c=function(G,J,Z,ee){return createElement$1(q,G,J,Z,ee,K)}}installRenderHelpers(FunctionalRenderContext.prototype);function createFunctionalComponent(M,$,I,N,B){var j=M.options,U={},q=j.props;if(isDef(q))for(var Y in q)U[Y]=validateProp(Y,q,$||emptyObject);else isDef(I.attrs)&&mergeProps(U,I.attrs),isDef(I.props)&&mergeProps(U,I.props);var K=new FunctionalRenderContext(I,U,B,N,M),G=j.render.call(null,K._c,K);if(G instanceof VNode)return cloneAndMarkFunctionalResult(G,I,K.parent,j);if(isArray$a(G)){for(var J=normalizeChildren(G)||[],Z=new Array(J.length),ee=0;ee<J.length;ee++)Z[ee]=cloneAndMarkFunctionalResult(J[ee],I,K.parent,j);return Z}}function cloneAndMarkFunctionalResult(M,$,I,N,B){var j=cloneVNode(M);return j.fnContext=I,j.fnOptions=N,$.slot&&((j.data||(j.data={})).slot=$.slot),j}function mergeProps(M,$){for(var I in $)M[camelize(I)]=$[I]}function getComponentName(M){return M.name||M.__name||M._componentTag}var componentVNodeHooks={init:function(M,$){if(M.componentInstance&&!M.componentInstance._isDestroyed&&M.data.keepAlive){var I=M;componentVNodeHooks.prepatch(I,I)}else{var N=M.componentInstance=createComponentInstanceForVnode(M,activeInstance);N.$mount($?M.elm:void 0,$)}},prepatch:function(M,$){var I=$.componentOptions,N=$.componentInstance=M.componentInstance;updateChildComponent(N,I.propsData,I.listeners,$,I.children)},insert:function(M){var $=M.context,I=M.componentInstance;I._isMounted||(I._isMounted=!0,callHook$1(I,"mounted")),M.data.keepAlive&&($._isMounted?queueActivatedComponent(I):activateChildComponent(I,!0))},destroy:function(M){var $=M.componentInstance;$._isDestroyed||(M.data.keepAlive?deactivateChildComponent($,!0):$.$destroy())}},hooksToMerge=Object.keys(componentVNodeHooks);function createComponent(M,$,I,N,B){if(!isUndef(M)){var j=I.$options._base;if(isObject$7(M)&&(M=j.extend(M)),typeof M=="function"){var U;if(isUndef(M.cid)&&(U=M,M=resolveAsyncComponent(U,j),M===void 0))return createAsyncPlaceholder(U,$,I,N,B);$=$||{},resolveConstructorOptions(M),isDef($.model)&&transformModel(M.options,$);var q=extractPropsFromVNodeData($,M);if(isTrue(M.options.functional))return createFunctionalComponent(M,q,$,I,N);var Y=$.on;if($.on=$.nativeOn,isTrue(M.options.abstract)){var K=$.slot;$={},K&&($.slot=K)}installComponentHooks($);var G=getComponentName(M.options)||B,J=new VNode("vue-component-".concat(M.cid).concat(G?"-".concat(G):""),$,void 0,void 0,void 0,I,{Ctor:M,propsData:q,listeners:Y,tag:B,children:N},U);return J}}}function createComponentInstanceForVnode(M,$){var I={_isComponent:!0,_parentVnode:M,parent:$},N=M.data.inlineTemplate;return isDef(N)&&(I.render=N.render,I.staticRenderFns=N.staticRenderFns),new M.componentOptions.Ctor(I)}function installComponentHooks(M){for(var $=M.hook||(M.hook={}),I=0;I<hooksToMerge.length;I++){var N=hooksToMerge[I],B=$[N],j=componentVNodeHooks[N];B!==j&&!(B&&B._merged)&&($[N]=B?mergeHook(j,B):j)}}function mergeHook(M,$){var I=function(N,B){M(N,B),$(N,B)};return I._merged=!0,I}function transformModel(M,$){var I=M.model&&M.model.prop||"value",N=M.model&&M.model.event||"input";($.attrs||($.attrs={}))[I]=$.model.value;var B=$.on||($.on={}),j=B[N],U=$.model.callback;isDef(j)?(isArray$a(j)?j.indexOf(U)===-1:j!==U)&&(B[N]=[U].concat(j)):B[N]=U}var warn$2$1=noop$2,strats=config$1.optionMergeStrategies;function mergeData(M,$,I){if(I===void 0&&(I=!0),!$)return M;for(var N,B,j,U=hasSymbol?Reflect.ownKeys($):Object.keys($),q=0;q<U.length;q++)N=U[q],N!=="__ob__"&&(B=M[N],j=$[N],!I||!hasOwn$5(M,N)?set$3(M,N,j):B!==j&&isPlainObject$2(B)&&isPlainObject$2(j)&&mergeData(B,j));return M}function mergeDataOrFn(M,$,I){return I?function(){var B=isFunction$6($)?$.call(I,I):$,j=isFunction$6(M)?M.call(I,I):M;return B?mergeData(B,j):j}:$?M?function(){return mergeData(isFunction$6($)?$.call(this,this):$,isFunction$6(M)?M.call(this,this):M)}:$:M}strats.data=function(M,$,I){return I?mergeDataOrFn(M,$,I):$&&typeof $!="function"?M:mergeDataOrFn(M,$)};function mergeLifecycleHook(M,$){var I=$?M?M.concat($):isArray$a($)?$:[$]:M;return I&&dedupeHooks(I)}function dedupeHooks(M){for(var $=[],I=0;I<M.length;I++)$.indexOf(M[I])===-1&&$.push(M[I]);return $}LIFECYCLE_HOOKS.forEach(function(M){strats[M]=mergeLifecycleHook});function mergeAssets(M,$,I,N){var B=Object.create(M||null);return $?extend$6(B,$):B}ASSET_TYPES.forEach(function(M){strats[M+"s"]=mergeAssets});strats.watch=function(M,$,I,N){if(M===nativeWatch&&(M=void 0),$===nativeWatch&&($=void 0),!$)return Object.create(M||null);if(!M)return $;var B={};extend$6(B,M);for(var j in $){var U=B[j],q=$[j];U&&!isArray$a(U)&&(U=[U]),B[j]=U?U.concat(q):isArray$a(q)?q:[q]}return B};strats.props=strats.methods=strats.inject=strats.computed=function(M,$,I,N){if(!M)return $;var B=Object.create(null);return extend$6(B,M),$&&extend$6(B,$),B};strats.provide=function(M,$){return M?function(){var I=Object.create(null);return mergeData(I,isFunction$6(M)?M.call(this):M),$&&mergeData(I,isFunction$6($)?$.call(this):$,!1),I}:$};var defaultStrat=function(M,$){return $===void 0?M:$};function normalizeProps(M,$){var I=M.props;if(I){var N={},B,j,U;if(isArray$a(I))for(B=I.length;B--;)j=I[B],typeof j=="string"&&(U=camelize(j),N[U]={type:null});else if(isPlainObject$2(I))for(var q in I)j=I[q],U=camelize(q),N[U]=isPlainObject$2(j)?j:{type:j};M.props=N}}function normalizeInject(M,$){var I=M.inject;if(I){var N=M.inject={};if(isArray$a(I))for(var B=0;B<I.length;B++)N[I[B]]={from:I[B]};else if(isPlainObject$2(I))for(var j in I){var U=I[j];N[j]=isPlainObject$2(U)?extend$6({from:j},U):{from:U}}}}function normalizeDirectives$1(M){var $=M.directives;if($)for(var I in $){var N=$[I];isFunction$6(N)&&($[I]={bind:N,update:N})}}function assertObjectType(M,$,I){isPlainObject$2($)||warn$2$1('Invalid value for option "'.concat(M,'": expected an Object, ')+"but got ".concat(toRawType$1($),"."))}function mergeOptions(M,$,I){if(isFunction$6($)&&($=$.options),normalizeProps($),normalizeInject($),normalizeDirectives$1($),!$._base&&($.extends&&(M=mergeOptions(M,$.extends,I)),$.mixins))for(var N=0,B=$.mixins.length;N<B;N++)M=mergeOptions(M,$.mixins[N],I);var j={},U;for(U in M)q(U);for(U in $)hasOwn$5(M,U)||q(U);function q(Y){var K=strats[Y]||defaultStrat;j[Y]=K(M[Y],$[Y],I,Y)}return j}function resolveAsset(M,$,I,N){if(typeof I=="string"){var B=M[$];if(hasOwn$5(B,I))return B[I];var j=camelize(I);if(hasOwn$5(B,j))return B[j];var U=capitalize$1(j);if(hasOwn$5(B,U))return B[U];var q=B[I]||B[j]||B[U];return q}}function validateProp(M,$,I,N){var B=$[M],j=!hasOwn$5(I,M),U=I[M],q=getTypeIndex(Boolean,B.type);if(q>-1){if(j&&!hasOwn$5(B,"default"))U=!1;else if(U===""||U===hyphenate(M)){var Y=getTypeIndex(String,B.type);(Y<0||q<Y)&&(U=!0)}}if(U===void 0){U=getPropDefaultValue(N,B,M);var K=shouldObserve;toggleObserving(!0),observe(U),toggleObserving(K)}return U}function getPropDefaultValue(M,$,I){if(hasOwn$5($,"default")){var N=$.default;return M&&M.$options.propsData&&M.$options.propsData[I]===void 0&&M._props[I]!==void 0?M._props[I]:isFunction$6(N)&&getType$1($.type)!=="Function"?N.call(M):N}}var functionTypeCheckRE=/^\s*function (\w+)/;function getType$1(M){var $=M&&M.toString().match(functionTypeCheckRE);return $?$[1]:""}function isSameType(M,$){return getType$1(M)===getType$1($)}function getTypeIndex(M,$){if(!isArray$a($))return isSameType($,M)?0:-1;for(var I=0,N=$.length;I<N;I++)if(isSameType($[I],M))return I;return-1}function Vue$3(M){this._init(M)}initMixin$1(Vue$3);stateMixin(Vue$3);eventsMixin(Vue$3);lifecycleMixin(Vue$3);renderMixin(Vue$3);function initUse(M){M.use=function($){var I=this._installedPlugins||(this._installedPlugins=[]);if(I.indexOf($)>-1)return this;var N=toArray$3(arguments,1);return N.unshift(this),isFunction$6($.install)?$.install.apply($,N):isFunction$6($)&&$.apply(null,N),I.push($),this}}function initMixin(M){M.mixin=function($){return this.options=mergeOptions(this.options,$),this}}function initExtend(M){M.cid=0;var $=1;M.extend=function(I){I=I||{};var N=this,B=N.cid,j=I._Ctor||(I._Ctor={});if(j[B])return j[B];var U=getComponentName(I)||getComponentName(N.options),q=function(K){this._init(K)};return q.prototype=Object.create(N.prototype),q.prototype.constructor=q,q.cid=$++,q.options=mergeOptions(N.options,I),q.super=N,q.options.props&&initProps(q),q.options.computed&&initComputed(q),q.extend=N.extend,q.mixin=N.mixin,q.use=N.use,ASSET_TYPES.forEach(function(Y){q[Y]=N[Y]}),U&&(q.options.components[U]=q),q.superOptions=N.options,q.extendOptions=I,q.sealedOptions=extend$6({},q.options),j[B]=q,q}}function initProps(M){var $=M.options.props;for(var I in $)proxy(M.prototype,"_props",I)}function initComputed(M){var $=M.options.computed;for(var I in $)defineComputed(M.prototype,I,$[I])}function initAssetRegisters(M){ASSET_TYPES.forEach(function($){M[$]=function(I,N){return N?($==="component"&&isPlainObject$2(N)&&(N.name=N.name||I,N=this.options._base.extend(N)),$==="directive"&&isFunction$6(N)&&(N={bind:N,update:N}),this.options[$+"s"][I]=N,N):this.options[$+"s"][I]}})}function _getComponentName(M){return M&&(getComponentName(M.Ctor.options)||M.tag)}function matches$1(M,$){return isArray$a(M)?M.indexOf($)>-1:typeof M=="string"?M.split(",").indexOf($)>-1:isRegExp$5(M)?M.test($):!1}function pruneCache(M,$){var I=M.cache,N=M.keys,B=M._vnode;for(var j in I){var U=I[j];if(U){var q=U.name;q&&!$(q)&&pruneCacheEntry(I,j,N,B)}}}function pruneCacheEntry(M,$,I,N){var B=M[$];B&&(!N||B.tag!==N.tag)&&B.componentInstance.$destroy(),M[$]=null,remove$2(I,$)}var patternTypes=[String,RegExp,Array],KeepAlive={name:"keep-alive",abstract:!0,props:{include:patternTypes,exclude:patternTypes,max:[String,Number]},methods:{cacheVNode:function(){var M=this,$=M.cache,I=M.keys,N=M.vnodeToCache,B=M.keyToCache;if(N){var j=N.tag,U=N.componentInstance,q=N.componentOptions;$[B]={name:_getComponentName(q),tag:j,componentInstance:U},I.push(B),this.max&&I.length>parseInt(this.max)&&pruneCacheEntry($,I[0],I,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var M in this.cache)pruneCacheEntry(this.cache,M,this.keys)},mounted:function(){var M=this;this.cacheVNode(),this.$watch("include",function($){pruneCache(M,function(I){return matches$1($,I)})}),this.$watch("exclude",function($){pruneCache(M,function(I){return!matches$1($,I)})})},updated:function(){this.cacheVNode()},render:function(){var M=this.$slots.default,$=getFirstComponentChild(M),I=$&&$.componentOptions;if(I){var N=_getComponentName(I),B=this,j=B.include,U=B.exclude;if(j&&(!N||!matches$1(j,N))||U&&N&&matches$1(U,N))return $;var q=this,Y=q.cache,K=q.keys,G=$.key==null?I.Ctor.cid+(I.tag?"::".concat(I.tag):""):$.key;Y[G]?($.componentInstance=Y[G].componentInstance,remove$2(K,G),K.push(G)):(this.vnodeToCache=$,this.keyToCache=G),$.data.keepAlive=!0}return $||M&&M[0]}},builtInComponents={KeepAlive};function initGlobalAPI(M){var $={};$.get=function(){return config$1},Object.defineProperty(M,"config",$),M.util={warn:warn$2$1,extend:extend$6,mergeOptions,defineReactive},M.set=set$3,M.delete=del,M.nextTick=nextTick$1,M.observable=function(I){return observe(I),I},M.options=Object.create(null),ASSET_TYPES.forEach(function(I){M.options[I+"s"]=Object.create(null)}),M.options._base=M,extend$6(M.options.components,builtInComponents),initUse(M),initMixin(M),initExtend(M),initAssetRegisters(M)}initGlobalAPI(Vue$3);Object.defineProperty(Vue$3.prototype,"$isServer",{get:isServerRendering});Object.defineProperty(Vue$3.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(Vue$3,"FunctionalRenderContext",{value:FunctionalRenderContext});Vue$3.version=version$3;var isReservedAttr=makeMap$1("style,class"),acceptValue=makeMap$1("input,textarea,option,select,progress"),mustUseProp=function(M,$,I){return I==="value"&&acceptValue(M)&&$!=="button"||I==="selected"&&M==="option"||I==="checked"&&M==="input"||I==="muted"&&M==="video"},isEnumeratedAttr=makeMap$1("contenteditable,draggable,spellcheck"),isValidContentEditableValue=makeMap$1("events,caret,typing,plaintext-only"),convertEnumeratedValue=function(M,$){return isFalsyAttrValue($)||$==="false"?"false":M==="contenteditable"&&isValidContentEditableValue($)?$:"true"},isBooleanAttr$1=makeMap$1("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),xlinkNS="http://www.w3.org/1999/xlink",isXlink=function(M){return M.charAt(5)===":"&&M.slice(0,5)==="xlink"},getXlinkProp=function(M){return isXlink(M)?M.slice(6,M.length):""},isFalsyAttrValue=function(M){return M==null||M===!1};function genClassForVnode(M){for(var $=M.data,I=M,N=M;isDef(N.componentInstance);)N=N.componentInstance._vnode,N&&N.data&&($=mergeClassData(N.data,$));for(;isDef(I=I.parent);)I&&I.data&&($=mergeClassData($,I.data));return renderClass($.staticClass,$.class)}function mergeClassData(M,$){return{staticClass:concat$3(M.staticClass,$.staticClass),class:isDef(M.class)?[M.class,$.class]:$.class}}function renderClass(M,$){return isDef(M)||isDef($)?concat$3(M,stringifyClass($)):""}function concat$3(M,$){return M?$?M+" "+$:M:$||""}function stringifyClass(M){return Array.isArray(M)?stringifyArray(M):isObject$7(M)?stringifyObject(M):typeof M=="string"?M:""}function stringifyArray(M){for(var $="",I,N=0,B=M.length;N<B;N++)isDef(I=stringifyClass(M[N]))&&I!==""&&($&&($+=" "),$+=I);return $}function stringifyObject(M){var $="";for(var I in M)M[I]&&($&&($+=" "),$+=I);return $}var namespaceMap={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},isHTMLTag=makeMap$1("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),isSVG=makeMap$1("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),isPreTag=function(M){return M==="pre"},isReservedTag=function(M){return isHTMLTag(M)||isSVG(M)};function getTagNamespace(M){if(isSVG(M))return"svg";if(M==="math")return"math"}var unknownElementCache=Object.create(null);function isUnknownElement(M){if(!inBrowser)return!0;if(isReservedTag(M))return!1;if(M=M.toLowerCase(),unknownElementCache[M]!=null)return unknownElementCache[M];var $=document.createElement(M);return M.indexOf("-")>-1?unknownElementCache[M]=$.constructor===window.HTMLUnknownElement||$.constructor===window.HTMLElement:unknownElementCache[M]=/HTMLUnknownElement/.test($.toString())}var isTextInputType=makeMap$1("text,number,password,search,email,tel,url");function query(M){if(typeof M=="string"){var $=document.querySelector(M);return $||document.createElement("div")}else return M}function createElement(M,$){var I=document.createElement(M);return M!=="select"||$.data&&$.data.attrs&&$.data.attrs.multiple!==void 0&&I.setAttribute("multiple","multiple"),I}function createElementNS(M,$){return document.createElementNS(namespaceMap[M],$)}function createTextNode(M){return document.createTextNode(M)}function createComment(M){return document.createComment(M)}function insertBefore$1(M,$,I){M.insertBefore($,I)}function removeChild(M,$){M.removeChild($)}function appendChild(M,$){M.appendChild($)}function parentNode$1(M){return M.parentNode}function nextSibling(M){return M.nextSibling}function tagName(M){return M.tagName}function setTextContent(M,$){M.textContent=$}function setStyleScope(M,$){M.setAttribute($,"")}var nodeOps=Object.freeze({__proto__:null,createElement,createElementNS,createTextNode,createComment,insertBefore:insertBefore$1,removeChild,appendChild,parentNode:parentNode$1,nextSibling,tagName,setTextContent,setStyleScope}),ref={create:function(M,$){registerRef($)},update:function(M,$){M.data.ref!==$.data.ref&&(registerRef(M,!0),registerRef($))},destroy:function(M){registerRef(M,!0)}};function registerRef(M,$){var I=M.data.ref;if(isDef(I)){var N=M.context,B=M.componentInstance||M.elm,j=$?null:B,U=$?void 0:B;if(isFunction$6(I)){invokeWithErrorHandling(I,N,[j],N,"template ref function");return}var q=M.data.refInFor,Y=typeof I=="string"||typeof I=="number",K=isRef$1(I),G=N.$refs;if(Y||K){if(q){var J=Y?G[I]:I.value;$?isArray$a(J)&&remove$2(J,B):isArray$a(J)?J.includes(B)||J.push(B):Y?(G[I]=[B],setSetupRef(N,I,G[I])):I.value=[B]}else if(Y){if($&&G[I]!==B)return;G[I]=U,setSetupRef(N,I,j)}else if(K){if($&&I.value!==B)return;I.value=j}}}}function setSetupRef(M,$,I){var N=M._setupState;N&&hasOwn$5(N,$)&&(isRef$1(N[$])?N[$].value=I:N[$]=I)}var emptyNode=new VNode("",{},[]),hooks$2=["create","activate","update","remove","destroy"];function sameVnode(M,$){return M.key===$.key&&M.asyncFactory===$.asyncFactory&&(M.tag===$.tag&&M.isComment===$.isComment&&isDef(M.data)===isDef($.data)&&sameInputType(M,$)||isTrue(M.isAsyncPlaceholder)&&isUndef($.asyncFactory.error))}function sameInputType(M,$){if(M.tag!=="input")return!0;var I,N=isDef(I=M.data)&&isDef(I=I.attrs)&&I.type,B=isDef(I=$.data)&&isDef(I=I.attrs)&&I.type;return N===B||isTextInputType(N)&&isTextInputType(B)}function createKeyToOldIdx(M,$,I){var N,B,j={};for(N=$;N<=I;++N)B=M[N].key,isDef(B)&&(j[B]=N);return j}function createPatchFunction(M){var $,I,N={},B=M.modules,j=M.nodeOps;for($=0;$<hooks$2.length;++$)for(N[hooks$2[$]]=[],I=0;I<B.length;++I)isDef(B[I][hooks$2[$]])&&N[hooks$2[$]].push(B[I][hooks$2[$]]);function U(ve){return new VNode(j.tagName(ve).toLowerCase(),{},[],void 0,ve)}function q(ve,we){function Ae(){--Ae.listeners===0&&Y(ve)}return Ae.listeners=we,Ae}function Y(ve){var we=j.parentNode(ve);isDef(we)&&j.removeChild(we,ve)}function K(ve,we,Ae,Se,Pe,Me,Be){if(isDef(ve.elm)&&isDef(Me)&&(ve=Me[Be]=cloneVNode(ve)),ve.isRootInsert=!Pe,!G(ve,we,Ae,Se)){var ze=ve.data,Ze=ve.children,ft=ve.tag;isDef(ft)?(ve.elm=ve.ns?j.createElementNS(ve.ns,ft):j.createElement(ft,ve),ne(ve),te(ve,Ze,we),isDef(ze)&&re(ve,we),ee(Ae,ve.elm,Se)):isTrue(ve.isComment)?(ve.elm=j.createComment(ve.text),ee(Ae,ve.elm,Se)):(ve.elm=j.createTextNode(ve.text),ee(Ae,ve.elm,Se))}}function G(ve,we,Ae,Se){var Pe=ve.data;if(isDef(Pe)){var Me=isDef(ve.componentInstance)&&Pe.keepAlive;if(isDef(Pe=Pe.hook)&&isDef(Pe=Pe.init)&&Pe(ve,!1),isDef(ve.componentInstance))return J(ve,we),ee(Ae,ve.elm,Se),isTrue(Me)&&Z(ve,we,Ae,Se),!0}}function J(ve,we){isDef(ve.data.pendingInsert)&&(we.push.apply(we,ve.data.pendingInsert),ve.data.pendingInsert=null),ve.elm=ve.componentInstance.$el,se(ve)?(re(ve,we),ne(ve)):(registerRef(ve),we.push(ve))}function Z(ve,we,Ae,Se){for(var Pe,Me=ve;Me.componentInstance;)if(Me=Me.componentInstance._vnode,isDef(Pe=Me.data)&&isDef(Pe=Pe.transition)){for(Pe=0;Pe<N.activate.length;++Pe)N.activate[Pe](emptyNode,Me);we.push(Me);break}ee(Ae,ve.elm,Se)}function ee(ve,we,Ae){isDef(ve)&&(isDef(Ae)?j.parentNode(Ae)===ve&&j.insertBefore(ve,we,Ae):j.appendChild(ve,we))}function te(ve,we,Ae){if(isArray$a(we))for(var Se=0;Se<we.length;++Se)K(we[Se],Ae,ve.elm,null,!0,we,Se);else isPrimitive(ve.text)&&j.appendChild(ve.elm,j.createTextNode(String(ve.text)))}function se(ve){for(;ve.componentInstance;)ve=ve.componentInstance._vnode;return isDef(ve.tag)}function re(ve,we){for(var Ae=0;Ae<N.create.length;++Ae)N.create[Ae](emptyNode,ve);$=ve.data.hook,isDef($)&&(isDef($.create)&&$.create(emptyNode,ve),isDef($.insert)&&we.push(ve))}function ne(ve){var we;if(isDef(we=ve.fnScopeId))j.setStyleScope(ve.elm,we);else for(var Ae=ve;Ae;)isDef(we=Ae.context)&&isDef(we=we.$options._scopeId)&&j.setStyleScope(ve.elm,we),Ae=Ae.parent;isDef(we=activeInstance)&&we!==ve.context&&we!==ve.fnContext&&isDef(we=we.$options._scopeId)&&j.setStyleScope(ve.elm,we)}function ce(ve,we,Ae,Se,Pe,Me){for(;Se<=Pe;++Se)K(Ae[Se],Me,ve,we,!1,Ae,Se)}function me(ve){var we,Ae,Se=ve.data;if(isDef(Se))for(isDef(we=Se.hook)&&isDef(we=we.destroy)&&we(ve),we=0;we<N.destroy.length;++we)N.destroy[we](ve);if(isDef(we=ve.children))for(Ae=0;Ae<ve.children.length;++Ae)me(ve.children[Ae])}function ue(ve,we,Ae){for(;we<=Ae;++we){var Se=ve[we];isDef(Se)&&(isDef(Se.tag)?(_e(Se),me(Se)):Y(Se.elm))}}function _e(ve,we){if(isDef(we)||isDef(ve.data)){var Ae,Se=N.remove.length+1;for(isDef(we)?we.listeners+=Se:we=q(ve.elm,Se),isDef(Ae=ve.componentInstance)&&isDef(Ae=Ae._vnode)&&isDef(Ae.data)&&_e(Ae,we),Ae=0;Ae<N.remove.length;++Ae)N.remove[Ae](ve,we);isDef(Ae=ve.data.hook)&&isDef(Ae=Ae.remove)?Ae(ve,we):we()}else Y(ve.elm)}function fe(ve,we,Ae,Se,Pe){for(var Me=0,Be=0,ze=we.length-1,Ze=we[0],ft=we[ze],Ye=Ae.length-1,Ve=Ae[0],Dt=Ae[Ye],Nt,Vt,Wt,Gt,tn=!Pe;Me<=ze&&Be<=Ye;)isUndef(Ze)?Ze=we[++Me]:isUndef(ft)?ft=we[--ze]:sameVnode(Ze,Ve)?(ye(Ze,Ve,Se,Ae,Be),Ze=we[++Me],Ve=Ae[++Be]):sameVnode(ft,Dt)?(ye(ft,Dt,Se,Ae,Ye),ft=we[--ze],Dt=Ae[--Ye]):sameVnode(Ze,Dt)?(ye(Ze,Dt,Se,Ae,Ye),tn&&j.insertBefore(ve,Ze.elm,j.nextSibling(ft.elm)),Ze=we[++Me],Dt=Ae[--Ye]):sameVnode(ft,Ve)?(ye(ft,Ve,Se,Ae,Be),tn&&j.insertBefore(ve,ft.elm,Ze.elm),ft=we[--ze],Ve=Ae[++Be]):(isUndef(Nt)&&(Nt=createKeyToOldIdx(we,Me,ze)),Vt=isDef(Ve.key)?Nt[Ve.key]:ge(Ve,we,Me,ze),isUndef(Vt)?K(Ve,Se,ve,Ze.elm,!1,Ae,Be):(Wt=we[Vt],sameVnode(Wt,Ve)?(ye(Wt,Ve,Se,Ae,Be),we[Vt]=void 0,tn&&j.insertBefore(ve,Wt.elm,Ze.elm)):K(Ve,Se,ve,Ze.elm,!1,Ae,Be)),Ve=Ae[++Be]);Me>ze?(Gt=isUndef(Ae[Ye+1])?null:Ae[Ye+1].elm,ce(ve,Gt,Ae,Be,Ye,Se)):Be>Ye&&ue(we,Me,ze)}function ge(ve,we,Ae,Se){for(var Pe=Ae;Pe<Se;Pe++){var Me=we[Pe];if(isDef(Me)&&sameVnode(ve,Me))return Pe}}function ye(ve,we,Ae,Se,Pe,Me){if(ve!==we){isDef(we.elm)&&isDef(Se)&&(we=Se[Pe]=cloneVNode(we));var Be=we.elm=ve.elm;if(isTrue(ve.isAsyncPlaceholder)){isDef(we.asyncFactory.resolved)?be(ve.elm,we,Ae):we.isAsyncPlaceholder=!0;return}if(isTrue(we.isStatic)&&isTrue(ve.isStatic)&&we.key===ve.key&&(isTrue(we.isCloned)||isTrue(we.isOnce))){we.componentInstance=ve.componentInstance;return}var ze,Ze=we.data;isDef(Ze)&&isDef(ze=Ze.hook)&&isDef(ze=ze.prepatch)&&ze(ve,we);var ft=ve.children,Ye=we.children;if(isDef(Ze)&&se(we)){for(ze=0;ze<N.update.length;++ze)N.update[ze](ve,we);isDef(ze=Ze.hook)&&isDef(ze=ze.update)&&ze(ve,we)}isUndef(we.text)?isDef(ft)&&isDef(Ye)?ft!==Ye&&fe(Be,ft,Ye,Ae,Me):isDef(Ye)?(isDef(ve.text)&&j.setTextContent(Be,""),ce(Be,null,Ye,0,Ye.length-1,Ae)):isDef(ft)?ue(ft,0,ft.length-1):isDef(ve.text)&&j.setTextContent(Be,""):ve.text!==we.text&&j.setTextContent(Be,we.text),isDef(Ze)&&isDef(ze=Ze.hook)&&isDef(ze=ze.postpatch)&&ze(ve,we)}}function xe(ve,we,Ae){if(isTrue(Ae)&&isDef(ve.parent))ve.parent.data.pendingInsert=we;else for(var Se=0;Se<we.length;++Se)we[Se].data.hook.insert(we[Se])}var le=makeMap$1("attrs,class,staticClass,staticStyle,key");function be(ve,we,Ae,Se){var Pe,Me=we.tag,Be=we.data,ze=we.children;if(Se=Se||Be&&Be.pre,we.elm=ve,isTrue(we.isComment)&&isDef(we.asyncFactory))return we.isAsyncPlaceholder=!0,!0;if(isDef(Be)&&(isDef(Pe=Be.hook)&&isDef(Pe=Pe.init)&&Pe(we,!0),isDef(Pe=we.componentInstance)))return J(we,Ae),!0;if(isDef(Me)){if(isDef(ze))if(!ve.hasChildNodes())te(we,ze,Ae);else if(isDef(Pe=Be)&&isDef(Pe=Pe.domProps)&&isDef(Pe=Pe.innerHTML)){if(Pe!==ve.innerHTML)return!1}else{for(var Ze=!0,ft=ve.firstChild,Ye=0;Ye<ze.length;Ye++){if(!ft||!be(ft,ze[Ye],Ae,Se)){Ze=!1;break}ft=ft.nextSibling}if(!Ze||ft)return!1}if(isDef(Be)){var Ve=!1;for(var Dt in Be)if(!le(Dt)){Ve=!0,re(we,Ae);break}!Ve&&Be.class&&traverse(Be.class)}}else ve.data!==we.text&&(ve.data=we.text);return!0}return function(we,Ae,Se,Pe){if(isUndef(Ae)){isDef(we)&&me(we);return}var Me=!1,Be=[];if(isUndef(we))Me=!0,K(Ae,Be);else{var ze=isDef(we.nodeType);if(!ze&&sameVnode(we,Ae))ye(we,Ae,Be,null,null,Pe);else{if(ze){if(we.nodeType===1&&we.hasAttribute(SSR_ATTR)&&(we.removeAttribute(SSR_ATTR),Se=!0),isTrue(Se)&&be(we,Ae,Be))return xe(Ae,Be,!0),we;we=U(we)}var Ze=we.elm,ft=j.parentNode(Ze);if(K(Ae,Be,Ze._leaveCb?null:ft,j.nextSibling(Ze)),isDef(Ae.parent))for(var Ye=Ae.parent,Ve=se(Ae);Ye;){for(var Dt=0;Dt<N.destroy.length;++Dt)N.destroy[Dt](Ye);if(Ye.elm=Ae.elm,Ve){for(var Nt=0;Nt<N.create.length;++Nt)N.create[Nt](emptyNode,Ye);var Vt=Ye.data.hook.insert;if(Vt.merged)for(var Wt=1;Wt<Vt.fns.length;Wt++)Vt.fns[Wt]()}else registerRef(Ye);Ye=Ye.parent}isDef(ft)?ue([we],0,0):isDef(we.tag)&&me(we)}}return xe(Ae,Be,Me),Ae.elm}}var directives$1$1={create:updateDirectives,update:updateDirectives,destroy:function($){updateDirectives($,emptyNode)}};function updateDirectives(M,$){(M.data.directives||$.data.directives)&&_update(M,$)}function _update(M,$){var I=M===emptyNode,N=$===emptyNode,B=normalizeDirectives(M.data.directives,M.context),j=normalizeDirectives($.data.directives,$.context),U=[],q=[],Y,K,G;for(Y in j)K=B[Y],G=j[Y],K?(G.oldValue=K.value,G.oldArg=K.arg,callHook(G,"update",$,M),G.def&&G.def.componentUpdated&&q.push(G)):(callHook(G,"bind",$,M),G.def&&G.def.inserted&&U.push(G));if(U.length){var J=function(){for(var Z=0;Z<U.length;Z++)callHook(U[Z],"inserted",$,M)};I?mergeVNodeHook($,"insert",J):J()}if(q.length&&mergeVNodeHook($,"postpatch",function(){for(var Z=0;Z<q.length;Z++)callHook(q[Z],"componentUpdated",$,M)}),!I)for(Y in B)j[Y]||callHook(B[Y],"unbind",M,M,N)}var emptyModifiers=Object.create(null);function normalizeDirectives(M,$){var I=Object.create(null);if(!M)return I;var N,B;for(N=0;N<M.length;N++){if(B=M[N],B.modifiers||(B.modifiers=emptyModifiers),I[getRawDirName(B)]=B,$._setupState&&$._setupState.__sfc){var j=B.def||resolveAsset($,"_setupState","v-"+B.name);typeof j=="function"?B.def={bind:j,update:j}:B.def=j}B.def=B.def||resolveAsset($.$options,"directives",B.name)}return I}function getRawDirName(M){return M.rawName||"".concat(M.name,".").concat(Object.keys(M.modifiers||{}).join("."))}function callHook(M,$,I,N,B){var j=M.def&&M.def[$];if(j)try{j(I.elm,M,I,N,B)}catch(U){handleError$1(U,I.context,"directive ".concat(M.name," ").concat($," hook"))}}var baseModules=[ref,directives$1$1];function updateAttrs(M,$){var I=$.componentOptions;if(!(isDef(I)&&I.Ctor.options.inheritAttrs===!1)&&!(isUndef(M.data.attrs)&&isUndef($.data.attrs))){var N,B,j,U=$.elm,q=M.data.attrs||{},Y=$.data.attrs||{};(isDef(Y.__ob__)||isTrue(Y._v_attr_proxy))&&(Y=$.data.attrs=extend$6({},Y));for(N in Y)B=Y[N],j=q[N],j!==B&&setAttr(U,N,B,$.data.pre);(isIE$1||isEdge)&&Y.value!==q.value&&setAttr(U,"value",Y.value);for(N in q)isUndef(Y[N])&&(isXlink(N)?U.removeAttributeNS(xlinkNS,getXlinkProp(N)):isEnumeratedAttr(N)||U.removeAttribute(N))}}function setAttr(M,$,I,N){N||M.tagName.indexOf("-")>-1?baseSetAttr(M,$,I):isBooleanAttr$1($)?isFalsyAttrValue(I)?M.removeAttribute($):(I=$==="allowfullscreen"&&M.tagName==="EMBED"?"true":$,M.setAttribute($,I)):isEnumeratedAttr($)?M.setAttribute($,convertEnumeratedValue($,I)):isXlink($)?isFalsyAttrValue(I)?M.removeAttributeNS(xlinkNS,getXlinkProp($)):M.setAttributeNS(xlinkNS,$,I):baseSetAttr(M,$,I)}function baseSetAttr(M,$,I){if(isFalsyAttrValue(I))M.removeAttribute($);else{if(isIE$1&&!isIE9&&M.tagName==="TEXTAREA"&&$==="placeholder"&&I!==""&&!M.__ieph){var N=function(B){B.stopImmediatePropagation(),M.removeEventListener("input",N)};M.addEventListener("input",N),M.__ieph=!0}M.setAttribute($,I)}}var attrs={create:updateAttrs,update:updateAttrs};function updateClass(M,$){var I=$.elm,N=$.data,B=M.data;if(!(isUndef(N.staticClass)&&isUndef(N.class)&&(isUndef(B)||isUndef(B.staticClass)&&isUndef(B.class)))){var j=genClassForVnode($),U=I._transitionClasses;isDef(U)&&(j=concat$3(j,stringifyClass(U))),j!==I._prevClass&&(I.setAttribute("class",j),I._prevClass=j)}}var klass$1={create:updateClass,update:updateClass},validDivisionCharRE=/[\w).+\-_$\]]/;function parseFilters(M){var $=!1,I=!1,N=!1,B=!1,j=0,U=0,q=0,Y=0,K,G,J,Z,ee;for(J=0;J<M.length;J++)if(G=K,K=M.charCodeAt(J),$)K===39&&G!==92&&($=!1);else if(I)K===34&&G!==92&&(I=!1);else if(N)K===96&&G!==92&&(N=!1);else if(B)K===47&&G!==92&&(B=!1);else if(K===124&&M.charCodeAt(J+1)!==124&&M.charCodeAt(J-1)!==124&&!j&&!U&&!q)Z===void 0?(Y=J+1,Z=M.slice(0,J).trim()):re();else{switch(K){case 34:I=!0;break;case 39:$=!0;break;case 96:N=!0;break;case 40:q++;break;case 41:q--;break;case 91:U++;break;case 93:U--;break;case 123:j++;break;case 125:j--;break}if(K===47){for(var te=J-1,se=void 0;te>=0&&(se=M.charAt(te),se===" ");te--);(!se||!validDivisionCharRE.test(se))&&(B=!0)}}Z===void 0?Z=M.slice(0,J).trim():Y!==0&&re();function re(){(ee||(ee=[])).push(M.slice(Y,J).trim()),Y=J+1}if(ee)for(J=0;J<ee.length;J++)Z=wrapFilter(Z,ee[J]);return Z}function wrapFilter(M,$){var I=$.indexOf("(");if(I<0)return'_f("'.concat($,'")(').concat(M,")");var N=$.slice(0,I),B=$.slice(I+1);return'_f("'.concat(N,'")(').concat(M).concat(B!==")"?","+B:B)}function baseWarn(M,$){console.error("[Vue compiler]: ".concat(M))}function pluckModuleFunction(M,$){return M?M.map(function(I){return I[$]}).filter(function(I){return I}):[]}function addProp(M,$,I,N,B){(M.props||(M.props=[])).push(rangeSetItem({name:$,value:I,dynamic:B},N)),M.plain=!1}function addAttr(M,$,I,N,B){var j=B?M.dynamicAttrs||(M.dynamicAttrs=[]):M.attrs||(M.attrs=[]);j.push(rangeSetItem({name:$,value:I,dynamic:B},N)),M.plain=!1}function addRawAttr(M,$,I,N){M.attrsMap[$]=I,M.attrsList.push(rangeSetItem({name:$,value:I},N))}function addDirective(M,$,I,N,B,j,U,q){(M.directives||(M.directives=[])).push(rangeSetItem({name:$,rawName:I,value:N,arg:B,isDynamicArg:j,modifiers:U},q)),M.plain=!1}function prependModifierMarker(M,$,I){return I?"_p(".concat($,',"').concat(M,'")'):M+$}function addHandler(M,$,I,N,B,j,U,q){N=N||emptyObject,N.right?q?$="(".concat($,")==='click'?'contextmenu':(").concat($,")"):$==="click"&&($="contextmenu",delete N.right):N.middle&&(q?$="(".concat($,")==='click'?'mouseup':(").concat($,")"):$==="click"&&($="mouseup")),N.capture&&(delete N.capture,$=prependModifierMarker("!",$,q)),N.once&&(delete N.once,$=prependModifierMarker("~",$,q)),N.passive&&(delete N.passive,$=prependModifierMarker("&",$,q));var Y;N.native?(delete N.native,Y=M.nativeEvents||(M.nativeEvents={})):Y=M.events||(M.events={});var K=rangeSetItem({value:I.trim(),dynamic:q},U);N!==emptyObject&&(K.modifiers=N);var G=Y[$];Array.isArray(G)?B?G.unshift(K):G.push(K):G?Y[$]=B?[K,G]:[G,K]:Y[$]=K,M.plain=!1}function getRawBindingAttr(M,$){return M.rawAttrsMap[":"+$]||M.rawAttrsMap["v-bind:"+$]||M.rawAttrsMap[$]}function getBindingAttr(M,$,I){var N=getAndRemoveAttr(M,":"+$)||getAndRemoveAttr(M,"v-bind:"+$);if(N!=null)return parseFilters(N);if(I!==!1){var B=getAndRemoveAttr(M,$);if(B!=null)return JSON.stringify(B)}}function getAndRemoveAttr(M,$,I){var N;if((N=M.attrsMap[$])!=null){for(var B=M.attrsList,j=0,U=B.length;j<U;j++)if(B[j].name===$){B.splice(j,1);break}}return I&&delete M.attrsMap[$],N}function getAndRemoveAttrByRegex(M,$){for(var I=M.attrsList,N=0,B=I.length;N<B;N++){var j=I[N];if($.test(j.name))return I.splice(N,1),j}}function rangeSetItem(M,$){return $&&($.start!=null&&(M.start=$.start),$.end!=null&&(M.end=$.end)),M}function genComponentModel(M,$,I){var N=I||{},B=N.number,j=N.trim,U="$$v",q=U;j&&(q="(typeof ".concat(U," === 'string'")+"? ".concat(U,".trim()")+": ".concat(U,")")),B&&(q="_n(".concat(q,")"));var Y=genAssignmentCode($,q);M.model={value:"(".concat($,")"),expression:JSON.stringify($),callback:"function (".concat(U,") {").concat(Y,"}")}}function genAssignmentCode(M,$){var I=parseModel(M);return I.key===null?"".concat(M,"=").concat($):"$set(".concat(I.exp,", ").concat(I.key,", ").concat($,")")}var len,str,chr,index$3,expressionPos,expressionEndPos;function parseModel(M){if(M=M.trim(),len=M.length,M.indexOf("[")<0||M.lastIndexOf("]")<len-1)return index$3=M.lastIndexOf("."),index$3>-1?{exp:M.slice(0,index$3),key:'"'+M.slice(index$3+1)+'"'}:{exp:M,key:null};for(str=M,index$3=expressionPos=expressionEndPos=0;!eof();)chr=next(),isStringStart(chr)?parseString(chr):chr===91&&parseBracket(chr);return{exp:M.slice(0,expressionPos),key:M.slice(expressionPos+1,expressionEndPos)}}function next(){return str.charCodeAt(++index$3)}function eof(){return index$3>=len}function isStringStart(M){return M===34||M===39}function parseBracket(M){var $=1;for(expressionPos=index$3;!eof();){if(M=next(),isStringStart(M)){parseString(M);continue}if(M===91&&$++,M===93&&$--,$===0){expressionEndPos=index$3;break}}}function parseString(M){for(var $=M;!eof()&&(M=next(),M!==$););}var RANGE_TOKEN="__r",CHECKBOX_RADIO_TOKEN="__c";function model$1(M,$,I){var N=$.value,B=$.modifiers,j=M.tag,U=M.attrsMap.type;if(M.component)return genComponentModel(M,N,B),!1;if(j==="select")genSelect(M,N,B);else if(j==="input"&&U==="checkbox")genCheckboxModel(M,N,B);else if(j==="input"&&U==="radio")genRadioModel(M,N,B);else if(j==="input"||j==="textarea")genDefaultModel(M,N,B);else if(!config$1.isReservedTag(j))return genComponentModel(M,N,B),!1;return!0}function genCheckboxModel(M,$,I){var N=I&&I.number,B=getBindingAttr(M,"value")||"null",j=getBindingAttr(M,"true-value")||"true",U=getBindingAttr(M,"false-value")||"false";addProp(M,"checked","Array.isArray(".concat($,")")+"?_i(".concat($,",").concat(B,")>-1")+(j==="true"?":(".concat($,")"):":_q(".concat($,",").concat(j,")"))),addHandler(M,"change","var $$a=".concat($,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(j,"):(").concat(U,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(N?"_n("+B+")":B,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(genAssignmentCode($,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(genAssignmentCode($,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(genAssignmentCode($,"$$c"),"}"),null,!0)}function genRadioModel(M,$,I){var N=I&&I.number,B=getBindingAttr(M,"value")||"null";B=N?"_n(".concat(B,")"):B,addProp(M,"checked","_q(".concat($,",").concat(B,")")),addHandler(M,"change",genAssignmentCode($,B),null,!0)}function genSelect(M,$,I){var N=I&&I.number,B='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(N?"_n(val)":"val","})"),j="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",U="var $$selectedVal = ".concat(B,";");U="".concat(U," ").concat(genAssignmentCode($,j)),addHandler(M,"change",U,null,!0)}function genDefaultModel(M,$,I){var N=M.attrsMap.type,B=I||{},j=B.lazy,U=B.number,q=B.trim,Y=!j&&N!=="range",K=j?"change":N==="range"?RANGE_TOKEN:"input",G="$event.target.value";q&&(G="$event.target.value.trim()"),U&&(G="_n(".concat(G,")"));var J=genAssignmentCode($,G);Y&&(J="if($event.target.composing)return;".concat(J)),addProp(M,"value","(".concat($,")")),addHandler(M,K,J,null,!0),(q||U)&&addHandler(M,"blur","$forceUpdate()")}function normalizeEvents(M){if(isDef(M[RANGE_TOKEN])){var $=isIE$1?"change":"input";M[$]=[].concat(M[RANGE_TOKEN],M[$]||[]),delete M[RANGE_TOKEN]}isDef(M[CHECKBOX_RADIO_TOKEN])&&(M.change=[].concat(M[CHECKBOX_RADIO_TOKEN],M.change||[]),delete M[CHECKBOX_RADIO_TOKEN])}var target$2;function createOnceHandler(M,$,I){var N=target$2;return function B(){var j=$.apply(null,arguments);j!==null&&remove(M,B,I,N)}}var useMicrotaskFix=isUsingMicroTask&&!(isFF&&Number(isFF[1])<=53);function add$3(M,$,I,N){if(useMicrotaskFix){var B=currentFlushTimestamp,j=$;$=j._wrapper=function(U){if(U.target===U.currentTarget||U.timeStamp>=B||U.timeStamp<=0||U.target.ownerDocument!==document)return j.apply(this,arguments)}}target$2.addEventListener(M,$,supportsPassive$1?{capture:I,passive:N}:I)}function remove(M,$,I,N){(N||target$2).removeEventListener(M,$._wrapper||$,I)}function updateDOMListeners(M,$){if(!(isUndef(M.data.on)&&isUndef($.data.on))){var I=$.data.on||{},N=M.data.on||{};target$2=$.elm||M.elm,normalizeEvents(I),updateListeners(I,N,add$3,remove,createOnceHandler,$.context),target$2=void 0}}var events={create:updateDOMListeners,update:updateDOMListeners,destroy:function(M){return updateDOMListeners(M,emptyNode)}},svgContainer;function updateDOMProps(M,$){if(!(isUndef(M.data.domProps)&&isUndef($.data.domProps))){var I,N,B=$.elm,j=M.data.domProps||{},U=$.data.domProps||{};(isDef(U.__ob__)||isTrue(U._v_attr_proxy))&&(U=$.data.domProps=extend$6({},U));for(I in j)I in U||(B[I]="");for(I in U){if(N=U[I],I==="textContent"||I==="innerHTML"){if($.children&&($.children.length=0),N===j[I])continue;B.childNodes.length===1&&B.removeChild(B.childNodes[0])}if(I==="value"&&B.tagName!=="PROGRESS"){B._value=N;var q=isUndef(N)?"":String(N);shouldUpdateValue(B,q)&&(B.value=q)}else if(I==="innerHTML"&&isSVG(B.tagName)&&isUndef(B.innerHTML)){svgContainer=svgContainer||document.createElement("div"),svgContainer.innerHTML="<svg>".concat(N,"</svg>");for(var Y=svgContainer.firstChild;B.firstChild;)B.removeChild(B.firstChild);for(;Y.firstChild;)B.appendChild(Y.firstChild)}else if(N!==j[I])try{B[I]=N}catch{}}}}function shouldUpdateValue(M,$){return!M.composing&&(M.tagName==="OPTION"||isNotInFocusAndDirty(M,$)||isDirtyWithModifiers(M,$))}function isNotInFocusAndDirty(M,$){var I=!0;try{I=document.activeElement!==M}catch{}return I&&M.value!==$}function isDirtyWithModifiers(M,$){var I=M.value,N=M._vModifiers;if(isDef(N)){if(N.number)return toNumber(I)!==toNumber($);if(N.trim)return I.trim()!==$.trim()}return I!==$}var domProps={create:updateDOMProps,update:updateDOMProps},parseStyleText=cached(function(M){var $={},I=/;(?![^(]*\))/g,N=/:(.+)/;return M.split(I).forEach(function(B){if(B){var j=B.split(N);j.length>1&&($[j[0].trim()]=j[1].trim())}}),$});function normalizeStyleData(M){var $=normalizeStyleBinding(M.style);return M.staticStyle?extend$6(M.staticStyle,$):$}function normalizeStyleBinding(M){return Array.isArray(M)?toObject$1(M):typeof M=="string"?parseStyleText(M):M}function getStyle(M,$){var I={},N;if($)for(var B=M;B.componentInstance;)B=B.componentInstance._vnode,B&&B.data&&(N=normalizeStyleData(B.data))&&extend$6(I,N);(N=normalizeStyleData(M.data))&&extend$6(I,N);for(var j=M;j=j.parent;)j.data&&(N=normalizeStyleData(j.data))&&extend$6(I,N);return I}var cssVarRE=/^--/,importantRE=/\s*!important$/,setProp=function(M,$,I){if(cssVarRE.test($))M.style.setProperty($,I);else if(importantRE.test(I))M.style.setProperty(hyphenate($),I.replace(importantRE,""),"important");else{var N=normalize$1($);if(Array.isArray(I))for(var B=0,j=I.length;B<j;B++)M.style[N]=I[B];else M.style[N]=I}},vendorNames=["Webkit","Moz","ms"],emptyStyle,normalize$1=cached(function(M){if(emptyStyle=emptyStyle||document.createElement("div").style,M=camelize(M),M!=="filter"&&M in emptyStyle)return M;for(var $=M.charAt(0).toUpperCase()+M.slice(1),I=0;I<vendorNames.length;I++){var N=vendorNames[I]+$;if(N in emptyStyle)return N}});function updateStyle(M,$){var I=$.data,N=M.data;if(!(isUndef(I.staticStyle)&&isUndef(I.style)&&isUndef(N.staticStyle)&&isUndef(N.style))){var B,j,U=$.elm,q=N.staticStyle,Y=N.normalizedStyle||N.style||{},K=q||Y,G=normalizeStyleBinding($.data.style)||{};$.data.normalizedStyle=isDef(G.__ob__)?extend$6({},G):G;var J=getStyle($,!0);for(j in K)isUndef(J[j])&&setProp(U,j,"");for(j in J)B=J[j],B!==K[j]&&setProp(U,j,B??"")}}var style$1$1={create:updateStyle,update:updateStyle},whitespaceRE$1=/\s+/;function addClass(M,$){if(!(!$||!($=$.trim())))if(M.classList)$.indexOf(" ")>-1?$.split(whitespaceRE$1).forEach(function(N){return M.classList.add(N)}):M.classList.add($);else{var I=" ".concat(M.getAttribute("class")||""," ");I.indexOf(" "+$+" ")<0&&M.setAttribute("class",(I+$).trim())}}function removeClass(M,$){if(!(!$||!($=$.trim())))if(M.classList)$.indexOf(" ")>-1?$.split(whitespaceRE$1).forEach(function(B){return M.classList.remove(B)}):M.classList.remove($),M.classList.length||M.removeAttribute("class");else{for(var I=" ".concat(M.getAttribute("class")||""," "),N=" "+$+" ";I.indexOf(N)>=0;)I=I.replace(N," ");I=I.trim(),I?M.setAttribute("class",I):M.removeAttribute("class")}}function resolveTransition(M){if(M){if(typeof M=="object"){var $={};return M.css!==!1&&extend$6($,autoCssTransition(M.name||"v")),extend$6($,M),$}else if(typeof M=="string")return autoCssTransition(M)}}var autoCssTransition=cached(function(M){return{enterClass:"".concat(M,"-enter"),enterToClass:"".concat(M,"-enter-to"),enterActiveClass:"".concat(M,"-enter-active"),leaveClass:"".concat(M,"-leave"),leaveToClass:"".concat(M,"-leave-to"),leaveActiveClass:"".concat(M,"-leave-active")}}),hasTransition=inBrowser&&!isIE9,TRANSITION="transition",ANIMATION="animation",transitionProp="transition",transitionEndEvent="transitionend",animationProp="animation",animationEndEvent="animationend";hasTransition&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(transitionProp="WebkitTransition",transitionEndEvent="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(animationProp="WebkitAnimation",animationEndEvent="webkitAnimationEnd"));var raf=inBrowser?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(M){return M()};function nextFrame$1(M){raf(function(){raf(M)})}function addTransitionClass(M,$){var I=M._transitionClasses||(M._transitionClasses=[]);I.indexOf($)<0&&(I.push($),addClass(M,$))}function removeTransitionClass(M,$){M._transitionClasses&&remove$2(M._transitionClasses,$),removeClass(M,$)}function whenTransitionEnds(M,$,I){var N=getTransitionInfo(M,$),B=N.type,j=N.timeout,U=N.propCount;if(!B)return I();var q=B===TRANSITION?transitionEndEvent:animationEndEvent,Y=0,K=function(){M.removeEventListener(q,G),I()},G=function(J){J.target===M&&++Y>=U&&K()};setTimeout(function(){Y<U&&K()},j+1),M.addEventListener(q,G)}var transformRE=/\b(transform|all)(,|$)/;function getTransitionInfo(M,$){var I=window.getComputedStyle(M),N=(I[transitionProp+"Delay"]||"").split(", "),B=(I[transitionProp+"Duration"]||"").split(", "),j=getTimeout(N,B),U=(I[animationProp+"Delay"]||"").split(", "),q=(I[animationProp+"Duration"]||"").split(", "),Y=getTimeout(U,q),K,G=0,J=0;$===TRANSITION?j>0&&(K=TRANSITION,G=j,J=B.length):$===ANIMATION?Y>0&&(K=ANIMATION,G=Y,J=q.length):(G=Math.max(j,Y),K=G>0?j>Y?TRANSITION:ANIMATION:null,J=K?K===TRANSITION?B.length:q.length:0);var Z=K===TRANSITION&&transformRE.test(I[transitionProp+"Property"]);return{type:K,timeout:G,propCount:J,hasTransform:Z}}function getTimeout(M,$){for(;M.length<$.length;)M=M.concat(M);return Math.max.apply(null,$.map(function(I,N){return toMs(I)+toMs(M[N])}))}function toMs(M){return Number(M.slice(0,-1).replace(",","."))*1e3}function enter$1(M,$){var I=M.elm;isDef(I._leaveCb)&&(I._leaveCb.cancelled=!0,I._leaveCb());var N=resolveTransition(M.data.transition);if(!isUndef(N)&&!(isDef(I._enterCb)||I.nodeType!==1)){for(var B=N.css,j=N.type,U=N.enterClass,q=N.enterToClass,Y=N.enterActiveClass,K=N.appearClass,G=N.appearToClass,J=N.appearActiveClass,Z=N.beforeEnter,ee=N.enter,te=N.afterEnter,se=N.enterCancelled,re=N.beforeAppear,ne=N.appear,ce=N.afterAppear,me=N.appearCancelled,ue=N.duration,_e=activeInstance,fe=activeInstance.$vnode;fe&&fe.parent;)_e=fe.context,fe=fe.parent;var ge=!_e._isMounted||!M.isRootInsert;if(!(ge&&!ne&&ne!=="")){var ye=ge&&K?K:U,xe=ge&&J?J:Y,le=ge&&G?G:q,be=ge&&re||Z,ve=ge&&isFunction$6(ne)?ne:ee,we=ge&&ce||te,Ae=ge&&me||se,Se=toNumber(isObject$7(ue)?ue.enter:ue),Pe=B!==!1&&!isIE9,Me=getHookArgumentsLength(ve),Be=I._enterCb=once$2(function(){Pe&&(removeTransitionClass(I,le),removeTransitionClass(I,xe)),Be.cancelled?(Pe&&removeTransitionClass(I,ye),Ae&&Ae(I)):we&&we(I),I._enterCb=null});M.data.show||mergeVNodeHook(M,"insert",function(){var ze=I.parentNode,Ze=ze&&ze._pending&&ze._pending[M.key];Ze&&Ze.tag===M.tag&&Ze.elm._leaveCb&&Ze.elm._leaveCb(),ve&&ve(I,Be)}),be&&be(I),Pe&&(addTransitionClass(I,ye),addTransitionClass(I,xe),nextFrame$1(function(){removeTransitionClass(I,ye),Be.cancelled||(addTransitionClass(I,le),Me||(isValidDuration(Se)?setTimeout(Be,Se):whenTransitionEnds(I,j,Be)))})),M.data.show&&($&&$(),ve&&ve(I,Be)),!Pe&&!Me&&Be()}}}function leave(M,$){var I=M.elm;isDef(I._enterCb)&&(I._enterCb.cancelled=!0,I._enterCb());var N=resolveTransition(M.data.transition);if(isUndef(N)||I.nodeType!==1)return $();if(isDef(I._leaveCb))return;var B=N.css,j=N.type,U=N.leaveClass,q=N.leaveToClass,Y=N.leaveActiveClass,K=N.beforeLeave,G=N.leave,J=N.afterLeave,Z=N.leaveCancelled,ee=N.delayLeave,te=N.duration,se=B!==!1&&!isIE9,re=getHookArgumentsLength(G),ne=toNumber(isObject$7(te)?te.leave:te),ce=I._leaveCb=once$2(function(){I.parentNode&&I.parentNode._pending&&(I.parentNode._pending[M.key]=null),se&&(removeTransitionClass(I,q),removeTransitionClass(I,Y)),ce.cancelled?(se&&removeTransitionClass(I,U),Z&&Z(I)):($(),J&&J(I)),I._leaveCb=null});ee?ee(me):me();function me(){ce.cancelled||(!M.data.show&&I.parentNode&&((I.parentNode._pending||(I.parentNode._pending={}))[M.key]=M),K&&K(I),se&&(addTransitionClass(I,U),addTransitionClass(I,Y),nextFrame$1(function(){removeTransitionClass(I,U),ce.cancelled||(addTransitionClass(I,q),re||(isValidDuration(ne)?setTimeout(ce,ne):whenTransitionEnds(I,j,ce)))})),G&&G(I,ce),!se&&!re&&ce())}}function isValidDuration(M){return typeof M=="number"&&!isNaN(M)}function getHookArgumentsLength(M){if(isUndef(M))return!1;var $=M.fns;return isDef($)?getHookArgumentsLength(Array.isArray($)?$[0]:$):(M._length||M.length)>1}function _enter(M,$){$.data.show!==!0&&enter$1($)}var transition$1=inBrowser?{create:_enter,activate:_enter,remove:function(M,$){M.data.show!==!0?leave(M,$):$()}}:{},platformModules=[attrs,klass$1,events,domProps,style$1$1,transition$1],modules$1=platformModules.concat(baseModules),patch=createPatchFunction({nodeOps,modules:modules$1});isIE9&&document.addEventListener("selectionchange",function(){var M=document.activeElement;M&&M.vmodel&&trigger$1(M,"input")});var directive$2={inserted:function(M,$,I,N){I.tag==="select"?(N.elm&&!N.elm._vOptions?mergeVNodeHook(I,"postpatch",function(){directive$2.componentUpdated(M,$,I)}):setSelected(M,$,I.context),M._vOptions=[].map.call(M.options,getValue)):(I.tag==="textarea"||isTextInputType(M.type))&&(M._vModifiers=$.modifiers,$.modifiers.lazy||(M.addEventListener("compositionstart",onCompositionStart),M.addEventListener("compositionend",onCompositionEnd),M.addEventListener("change",onCompositionEnd),isIE9&&(M.vmodel=!0)))},componentUpdated:function(M,$,I){if(I.tag==="select"){setSelected(M,$,I.context);var N=M._vOptions,B=M._vOptions=[].map.call(M.options,getValue);if(B.some(function(U,q){return!looseEqual(U,N[q])})){var j=M.multiple?$.value.some(function(U){return hasNoMatchingOption(U,B)}):$.value!==$.oldValue&&hasNoMatchingOption($.value,B);j&&trigger$1(M,"change")}}}};function setSelected(M,$,I){actuallySetSelected(M,$),(isIE$1||isEdge)&&setTimeout(function(){actuallySetSelected(M,$)},0)}function actuallySetSelected(M,$,I){var N=$.value,B=M.multiple;if(!(B&&!Array.isArray(N))){for(var j,U,q=0,Y=M.options.length;q<Y;q++)if(U=M.options[q],B)j=looseIndexOf(N,getValue(U))>-1,U.selected!==j&&(U.selected=j);else if(looseEqual(getValue(U),N)){M.selectedIndex!==q&&(M.selectedIndex=q);return}B||(M.selectedIndex=-1)}}function hasNoMatchingOption(M,$){return $.every(function(I){return!looseEqual(I,M)})}function getValue(M){return"_value"in M?M._value:M.value}function onCompositionStart(M){M.target.composing=!0}function onCompositionEnd(M){M.target.composing&&(M.target.composing=!1,trigger$1(M.target,"input"))}function trigger$1(M,$){var I=document.createEvent("HTMLEvents");I.initEvent($,!0,!0),M.dispatchEvent(I)}function locateNode(M){return M.componentInstance&&(!M.data||!M.data.transition)?locateNode(M.componentInstance._vnode):M}var show={bind:function(M,$,I){var N=$.value;I=locateNode(I);var B=I.data&&I.data.transition,j=M.__vOriginalDisplay=M.style.display==="none"?"":M.style.display;N&&B?(I.data.show=!0,enter$1(I,function(){M.style.display=j})):M.style.display=N?j:"none"},update:function(M,$,I){var N=$.value,B=$.oldValue;if(!N!=!B){I=locateNode(I);var j=I.data&&I.data.transition;j?(I.data.show=!0,N?enter$1(I,function(){M.style.display=M.__vOriginalDisplay}):leave(I,function(){M.style.display="none"})):M.style.display=N?M.__vOriginalDisplay:"none"}},unbind:function(M,$,I,N,B){B||(M.style.display=M.__vOriginalDisplay)}},platformDirectives={model:directive$2,show},transitionProps={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function getRealChild(M){var $=M&&M.componentOptions;return $&&$.Ctor.options.abstract?getRealChild(getFirstComponentChild($.children)):M}function extractTransitionData(M){var $={},I=M.$options;for(var N in I.propsData)$[N]=M[N];var B=I._parentListeners;for(var N in B)$[camelize(N)]=B[N];return $}function placeholder(M,$){if(/\d-keep-alive$/.test($.tag))return M("keep-alive",{props:$.componentOptions.propsData})}function hasParentTransition(M){for(;M=M.parent;)if(M.data.transition)return!0}function isSameChild(M,$){return $.key===M.key&&$.tag===M.tag}var isNotTextNode=function(M){return M.tag||isAsyncPlaceholder(M)},isVShowDirective=function(M){return M.name==="show"},Transition={name:"transition",props:transitionProps,abstract:!0,render:function(M){var $=this,I=this.$slots.default;if(I&&(I=I.filter(isNotTextNode),!!I.length)){var N=this.mode,B=I[0];if(hasParentTransition(this.$vnode))return B;var j=getRealChild(B);if(!j)return B;if(this._leaving)return placeholder(M,B);var U="__transition-".concat(this._uid,"-");j.key=j.key==null?j.isComment?U+"comment":U+j.tag:isPrimitive(j.key)?String(j.key).indexOf(U)===0?j.key:U+j.key:j.key;var q=(j.data||(j.data={})).transition=extractTransitionData(this),Y=this._vnode,K=getRealChild(Y);if(j.data.directives&&j.data.directives.some(isVShowDirective)&&(j.data.show=!0),K&&K.data&&!isSameChild(j,K)&&!isAsyncPlaceholder(K)&&!(K.componentInstance&&K.componentInstance._vnode.isComment)){var G=K.data.transition=extend$6({},q);if(N==="out-in")return this._leaving=!0,mergeVNodeHook(G,"afterLeave",function(){$._leaving=!1,$.$forceUpdate()}),placeholder(M,B);if(N==="in-out"){if(isAsyncPlaceholder(j))return Y;var J,Z=function(){J()};mergeVNodeHook(q,"afterEnter",Z),mergeVNodeHook(q,"enterCancelled",Z),mergeVNodeHook(G,"delayLeave",function(ee){J=ee})}}return B}}},props=extend$6({tag:String,moveClass:String},transitionProps);delete props.mode;var TransitionGroup={props,beforeMount:function(){var M=this,$=this._update;this._update=function(I,N){var B=setActiveInstance(M);M.__patch__(M._vnode,M.kept,!1,!0),M._vnode=M.kept,B(),$.call(M,I,N)}},render:function(M){for(var $=this.tag||this.$vnode.data.tag||"span",I=Object.create(null),N=this.prevChildren=this.children,B=this.$slots.default||[],j=this.children=[],U=extractTransitionData(this),q=0;q<B.length;q++){var Y=B[q];Y.tag&&Y.key!=null&&String(Y.key).indexOf("__vlist")!==0&&(j.push(Y),I[Y.key]=Y,(Y.data||(Y.data={})).transition=U)}if(N){for(var K=[],G=[],q=0;q<N.length;q++){var Y=N[q];Y.data.transition=U,Y.data.pos=Y.elm.getBoundingClientRect(),I[Y.key]?K.push(Y):G.push(Y)}this.kept=M($,null,K),this.removed=G}return M($,null,j)},updated:function(){var M=this.prevChildren,$=this.moveClass||(this.name||"v")+"-move";!M.length||!this.hasMove(M[0].elm,$)||(M.forEach(callPendingCbs),M.forEach(recordPosition),M.forEach(applyTranslation),this._reflow=document.body.offsetHeight,M.forEach(function(I){if(I.data.moved){var N=I.elm,B=N.style;addTransitionClass(N,$),B.transform=B.WebkitTransform=B.transitionDuration="",N.addEventListener(transitionEndEvent,N._moveCb=function j(U){U&&U.target!==N||(!U||/transform$/.test(U.propertyName))&&(N.removeEventListener(transitionEndEvent,j),N._moveCb=null,removeTransitionClass(N,$))})}}))},methods:{hasMove:function(M,$){if(!hasTransition)return!1;if(this._hasMove)return this._hasMove;var I=M.cloneNode();M._transitionClasses&&M._transitionClasses.forEach(function(B){removeClass(I,B)}),addClass(I,$),I.style.display="none",this.$el.appendChild(I);var N=getTransitionInfo(I);return this.$el.removeChild(I),this._hasMove=N.hasTransform}}};function callPendingCbs(M){M.elm._moveCb&&M.elm._moveCb(),M.elm._enterCb&&M.elm._enterCb()}function recordPosition(M){M.data.newPos=M.elm.getBoundingClientRect()}function applyTranslation(M){var $=M.data.pos,I=M.data.newPos,N=$.left-I.left,B=$.top-I.top;if(N||B){M.data.moved=!0;var j=M.elm.style;j.transform=j.WebkitTransform="translate(".concat(N,"px,").concat(B,"px)"),j.transitionDuration="0s"}}var platformComponents={Transition,TransitionGroup};Vue$3.config.mustUseProp=mustUseProp;Vue$3.config.isReservedTag=isReservedTag;Vue$3.config.isReservedAttr=isReservedAttr;Vue$3.config.getTagNamespace=getTagNamespace;Vue$3.config.isUnknownElement=isUnknownElement;extend$6(Vue$3.options.directives,platformDirectives);extend$6(Vue$3.options.components,platformComponents);Vue$3.prototype.__patch__=inBrowser?patch:noop$2;Vue$3.prototype.$mount=function(M,$){return M=M&&inBrowser?query(M):void 0,mountComponent(this,M,$)};inBrowser&&setTimeout(function(){config$1.devtools&&devtools&&devtools.emit("init",Vue$3)},0);var defaultTagRE=/\{\{((?:.|\r?\n)+?)\}\}/g,regexEscapeRE=/[-.*+?^${}()|[\]\/\\]/g,buildRegex=cached(function(M){var $=M[0].replace(regexEscapeRE,"\\$&"),I=M[1].replace(regexEscapeRE,"\\$&");return new RegExp($+"((?:.|\\n)+?)"+I,"g")});function parseText(M,$){var I=$?buildRegex($):defaultTagRE;if(I.test(M)){for(var N=[],B=[],j=I.lastIndex=0,U,q,Y;U=I.exec(M);){q=U.index,q>j&&(B.push(Y=M.slice(j,q)),N.push(JSON.stringify(Y)));var K=parseFilters(U[1].trim());N.push("_s(".concat(K,")")),B.push({"@binding":K}),j=q+U[0].length}return j<M.length&&(B.push(Y=M.slice(j)),N.push(JSON.stringify(Y))),{expression:N.join("+"),tokens:B}}}function transformNode$1(M,$){$.warn;var I=getAndRemoveAttr(M,"class");I&&(M.staticClass=JSON.stringify(I.replace(/\s+/g," ").trim()));var N=getBindingAttr(M,"class",!1);N&&(M.classBinding=N)}function genData$2(M){var $="";return M.staticClass&&($+="staticClass:".concat(M.staticClass,",")),M.classBinding&&($+="class:".concat(M.classBinding,",")),$}var klass={staticKeys:["staticClass"],transformNode:transformNode$1,genData:genData$2};function transformNode(M,$){$.warn;var I=getAndRemoveAttr(M,"style");I&&(M.staticStyle=JSON.stringify(parseStyleText(I)));var N=getBindingAttr(M,"style",!1);N&&(M.styleBinding=N)}function genData$1(M){var $="";return M.staticStyle&&($+="staticStyle:".concat(M.staticStyle,",")),M.styleBinding&&($+="style:(".concat(M.styleBinding,"),")),$}var style$2={staticKeys:["staticStyle"],transformNode,genData:genData$1},decoder,he={decode:function(M){return decoder=decoder||document.createElement("div"),decoder.innerHTML=M,decoder.textContent}},isUnaryTag=makeMap$1("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),canBeLeftOpenTag=makeMap$1("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),isNonPhrasingTag=makeMap$1("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),attribute=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ncname="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(unicodeRegExp.source,"]*"),qnameCapture="((?:".concat(ncname,"\\:)?").concat(ncname,")"),startTagOpen=new RegExp("^<".concat(qnameCapture)),startTagClose=/^\s*(\/?)>/,endTag=new RegExp("^<\\/".concat(qnameCapture,"[^>]*>")),doctype=/^<!DOCTYPE [^>]+>/i,comment=/^<!\--/,conditionalComment=/^<!\[/,isPlainTextElement=makeMap$1("script,style,textarea",!0),reCache={},decodingMap={"<":"<",">":">",""":'"',"&":"&"," ":` `,"	":" ","'":"'"},encodedAttr=/&(?:lt|gt|quot|amp|#39);/g,encodedAttrWithNewLines=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,isIgnoreNewlineTag=makeMap$1("pre,textarea",!0),shouldIgnoreFirstNewline=function(M,$){return M&&isIgnoreNewlineTag(M)&&$[0]===` `};function decodeAttr(M,$){var I=$?encodedAttrWithNewLines:encodedAttr;return M.replace(I,function(N){return decodingMap[N]})}function parseHTML(M,$){for(var I=[],N=$.expectHTML,B=$.isUnaryTag||no,j=$.canBeLeftOpenTag||no,U=0,q,Y,K=function(){if(q=M,!Y||!isPlainTextElement(Y)){var se=M.indexOf("<");if(se===0){if(comment.test(M)){var re=M.indexOf("-->");if(re>=0)return $.shouldKeepComment&&$.comment&&$.comment(M.substring(4,re),U,U+re+3),J(re+3),"continue"}if(conditionalComment.test(M)){var ne=M.indexOf("]>");if(ne>=0)return J(ne+2),"continue"}var ce=M.match(doctype);if(ce)return J(ce[0].length),"continue";var me=M.match(endTag);if(me){var ue=U;return J(me[0].length),te(me[1],ue,U),"continue"}var _e=Z();if(_e)return ee(_e),shouldIgnoreFirstNewline(_e.tagName,M)&&J(1),"continue"}var fe=void 0,ge=void 0,ye=void 0;if(se>=0){for(ge=M.slice(se);!endTag.test(ge)&&!startTagOpen.test(ge)&&!comment.test(ge)&&!conditionalComment.test(ge)&&(ye=ge.indexOf("<",1),!(ye<0));)se+=ye,ge=M.slice(se);fe=M.substring(0,se)}se<0&&(fe=M),fe&&J(fe.length),$.chars&&fe&&$.chars(fe,U-fe.length,U)}else{var xe=0,le=Y.toLowerCase(),be=reCache[le]||(reCache[le]=new RegExp("([\\s\\S]*?)(</"+le+"[^>]*>)","i")),ge=M.replace(be,function(we,Ae,Se){return xe=Se.length,!isPlainTextElement(le)&&le!=="noscript"&&(Ae=Ae.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),shouldIgnoreFirstNewline(le,Ae)&&(Ae=Ae.slice(1)),$.chars&&$.chars(Ae),""});U+=M.length-ge.length,M=ge,te(le,U-xe,U)}if(M===q)return $.chars&&$.chars(M),"break"};M;){var G=K();if(G==="break")break}te();function J(se){U+=se,M=M.substring(se)}function Z(){var se=M.match(startTagOpen);if(se){var re={tagName:se[1],attrs:[],start:U};J(se[0].length);for(var ne=void 0,ce=void 0;!(ne=M.match(startTagClose))&&(ce=M.match(dynamicArgAttribute)||M.match(attribute));)ce.start=U,J(ce[0].length),ce.end=U,re.attrs.push(ce);if(ne)return re.unarySlash=ne[1],J(ne[0].length),re.end=U,re}}function ee(se){var re=se.tagName,ne=se.unarySlash;N&&(Y==="p"&&isNonPhrasingTag(re)&&te(Y),j(re)&&Y===re&&te(re));for(var ce=B(re)||!!ne,me=se.attrs.length,ue=new Array(me),_e=0;_e<me;_e++){var fe=se.attrs[_e],ge=fe[3]||fe[4]||fe[5]||"",ye=re==="a"&&fe[1]==="href"?$.shouldDecodeNewlinesForHref:$.shouldDecodeNewlines;ue[_e]={name:fe[1],value:decodeAttr(ge,ye)}}ce||(I.push({tag:re,lowerCasedTag:re.toLowerCase(),attrs:ue,start:se.start,end:se.end}),Y=re),$.start&&$.start(re,ue,ce,se.start,se.end)}function te(se,re,ne){var ce,me;if(re==null&&(re=U),ne==null&&(ne=U),se)for(me=se.toLowerCase(),ce=I.length-1;ce>=0&&I[ce].lowerCasedTag!==me;ce--);else ce=0;if(ce>=0){for(var ue=I.length-1;ue>=ce;ue--)$.end&&$.end(I[ue].tag,re,ne);I.length=ce,Y=ce&&I[ce-1].tag}else me==="br"?$.start&&$.start(se,[],!0,re,ne):me==="p"&&($.start&&$.start(se,[],!1,re,ne),$.end&&$.end(se,re,ne))}}var onRE=/^@|^v-on:/,dirRE=/^v-|^@|^:|^#/,forAliasRE=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,forIteratorRE=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,stripParensRE=/^\(|\)$/g,dynamicArgRE=/^\[.*\]$/,argRE=/:(.*)$/,bindRE=/^:|^\.|^v-bind:/,modifierRE=/\.[^.\]]+(?=[^\]]*$)/g,slotRE=/^v-slot(:|$)|^#/,lineBreakRE=/[\r\n]/,whitespaceRE=/[ \f\t\r\n]+/g,decodeHTMLCached=cached(he.decode),emptySlotScopeToken="_empty_",warn$4,delimiters,transforms,preTransforms,postTransforms,platformIsPreTag,platformMustUseProp,platformGetTagNamespace;function createASTElement(M,$,I){return{type:1,tag:M,attrsList:$,attrsMap:makeAttrsMap($),rawAttrsMap:{},parent:I,children:[]}}function parse$4(M,$){warn$4=$.warn||baseWarn,platformIsPreTag=$.isPreTag||no,platformMustUseProp=$.mustUseProp||no,platformGetTagNamespace=$.getTagNamespace||no,$.isReservedTag,transforms=pluckModuleFunction($.modules,"transformNode"),preTransforms=pluckModuleFunction($.modules,"preTransformNode"),postTransforms=pluckModuleFunction($.modules,"postTransformNode"),delimiters=$.delimiters;var I=[],N=$.preserveWhitespace!==!1,B=$.whitespace,j,U,q=!1,Y=!1;function K(J){if(G(J),!q&&!J.processed&&(J=processElement(J,$)),!I.length&&J!==j&&j.if&&(J.elseif||J.else)&&addIfCondition(j,{exp:J.elseif,block:J}),U&&!J.forbidden)if(J.elseif||J.else)processIfConditions(J,U);else{if(J.slotScope){var Z=J.slotTarget||'"default"';(U.scopedSlots||(U.scopedSlots={}))[Z]=J}U.children.push(J),J.parent=U}J.children=J.children.filter(function(te){return!te.slotScope}),G(J),J.pre&&(q=!1),platformIsPreTag(J.tag)&&(Y=!1);for(var ee=0;ee<postTransforms.length;ee++)postTransforms[ee](J,$)}function G(J){if(!Y)for(var Z=void 0;(Z=J.children[J.children.length-1])&&Z.type===3&&Z.text===" ";)J.children.pop()}return parseHTML(M,{warn:warn$4,expectHTML:$.expectHTML,isUnaryTag:$.isUnaryTag,canBeLeftOpenTag:$.canBeLeftOpenTag,shouldDecodeNewlines:$.shouldDecodeNewlines,shouldDecodeNewlinesForHref:$.shouldDecodeNewlinesForHref,shouldKeepComment:$.comments,outputSourceRange:$.outputSourceRange,start:function(J,Z,ee,te,se){var re=U&&U.ns||platformGetTagNamespace(J);isIE$1&&re==="svg"&&(Z=guardIESVGBug(Z));var ne=createASTElement(J,Z,U);re&&(ne.ns=re),isForbiddenTag(ne)&&!isServerRendering()&&(ne.forbidden=!0);for(var ce=0;ce<preTransforms.length;ce++)ne=preTransforms[ce](ne,$)||ne;q||(processPre(ne),ne.pre&&(q=!0)),platformIsPreTag(ne.tag)&&(Y=!0),q?processRawAttrs(ne):ne.processed||(processFor(ne),processIf(ne),processOnce(ne)),j||(j=ne),ee?K(ne):(U=ne,I.push(ne))},end:function(J,Z,ee){var te=I[I.length-1];I.length-=1,U=I[I.length-1],K(te)},chars:function(J,Z,ee){if(U&&!(isIE$1&&U.tag==="textarea"&&U.attrsMap.placeholder===J)){var te=U.children;if(Y||J.trim()?J=isTextTag(U)?J:decodeHTMLCached(J):te.length?B?B==="condense"?J=lineBreakRE.test(J)?"":" ":J=" ":J=N?" ":"":J="",J){!Y&&B==="condense"&&(J=J.replace(whitespaceRE," "));var se=void 0,re=void 0;!q&&J!==" "&&(se=parseText(J,delimiters))?re={type:2,expression:se.expression,tokens:se.tokens,text:J}:(J!==" "||!te.length||te[te.length-1].text!==" ")&&(re={type:3,text:J}),re&&te.push(re)}}},comment:function(J,Z,ee){if(U){var te={type:3,text:J,isComment:!0};U.children.push(te)}}}),j}function processPre(M){getAndRemoveAttr(M,"v-pre")!=null&&(M.pre=!0)}function processRawAttrs(M){var $=M.attrsList,I=$.length;if(I)for(var N=M.attrs=new Array(I),B=0;B<I;B++)N[B]={name:$[B].name,value:JSON.stringify($[B].value)},$[B].start!=null&&(N[B].start=$[B].start,N[B].end=$[B].end);else M.pre||(M.plain=!0)}function processElement(M,$){processKey(M),M.plain=!M.key&&!M.scopedSlots&&!M.attrsList.length,processRef(M),processSlotContent(M),processSlotOutlet(M),processComponent(M);for(var I=0;I<transforms.length;I++)M=transforms[I](M,$)||M;return processAttrs(M),M}function processKey(M){var $=getBindingAttr(M,"key");$&&(M.key=$)}function processRef(M){var $=getBindingAttr(M,"ref");$&&(M.ref=$,M.refInFor=checkInFor(M))}function processFor(M){var $;if($=getAndRemoveAttr(M,"v-for")){var I=parseFor($);I&&extend$6(M,I)}}function parseFor(M){var $=M.match(forAliasRE);if($){var I={};I.for=$[2].trim();var N=$[1].trim().replace(stripParensRE,""),B=N.match(forIteratorRE);return B?(I.alias=N.replace(forIteratorRE,"").trim(),I.iterator1=B[1].trim(),B[2]&&(I.iterator2=B[2].trim())):I.alias=N,I}}function processIf(M){var $=getAndRemoveAttr(M,"v-if");if($)M.if=$,addIfCondition(M,{exp:$,block:M});else{getAndRemoveAttr(M,"v-else")!=null&&(M.else=!0);var I=getAndRemoveAttr(M,"v-else-if");I&&(M.elseif=I)}}function processIfConditions(M,$){var I=findPrevElement($.children);I&&I.if&&addIfCondition(I,{exp:M.elseif,block:M})}function findPrevElement(M){for(var $=M.length;$--;){if(M[$].type===1)return M[$];M.pop()}}function addIfCondition(M,$){M.ifConditions||(M.ifConditions=[]),M.ifConditions.push($)}function processOnce(M){var $=getAndRemoveAttr(M,"v-once");$!=null&&(M.once=!0)}function processSlotContent(M){var $;M.tag==="template"?($=getAndRemoveAttr(M,"scope"),M.slotScope=$||getAndRemoveAttr(M,"slot-scope")):($=getAndRemoveAttr(M,"slot-scope"))&&(M.slotScope=$);var I=getBindingAttr(M,"slot");if(I&&(M.slotTarget=I==='""'?'"default"':I,M.slotTargetDynamic=!!(M.attrsMap[":slot"]||M.attrsMap["v-bind:slot"]),M.tag!=="template"&&!M.slotScope&&addAttr(M,"slot",I,getRawBindingAttr(M,"slot"))),M.tag==="template"){var N=getAndRemoveAttrByRegex(M,slotRE);if(N){var B=getSlotName(N),j=B.name,U=B.dynamic;M.slotTarget=j,M.slotTargetDynamic=U,M.slotScope=N.value||emptySlotScopeToken}}else{var N=getAndRemoveAttrByRegex(M,slotRE);if(N){var q=M.scopedSlots||(M.scopedSlots={}),Y=getSlotName(N),K=Y.name,U=Y.dynamic,G=q[K]=createASTElement("template",[],M);G.slotTarget=K,G.slotTargetDynamic=U,G.children=M.children.filter(function(ee){if(!ee.slotScope)return ee.parent=G,!0}),G.slotScope=N.value||emptySlotScopeToken,M.children=[],M.plain=!1}}}function getSlotName(M){var $=M.name.replace(slotRE,"");return $||M.name[0]!=="#"&&($="default"),dynamicArgRE.test($)?{name:$.slice(1,-1),dynamic:!0}:{name:'"'.concat($,'"'),dynamic:!1}}function processSlotOutlet(M){M.tag==="slot"&&(M.slotName=getBindingAttr(M,"name"))}function processComponent(M){var $;($=getBindingAttr(M,"is"))&&(M.component=$),getAndRemoveAttr(M,"inline-template")!=null&&(M.inlineTemplate=!0)}function processAttrs(M){var $=M.attrsList,I,N,B,j,U,q,Y,K;for(I=0,N=$.length;I<N;I++)if(B=j=$[I].name,U=$[I].value,dirRE.test(B))if(M.hasBindings=!0,q=parseModifiers(B.replace(dirRE,"")),q&&(B=B.replace(modifierRE,"")),bindRE.test(B))B=B.replace(bindRE,""),U=parseFilters(U),K=dynamicArgRE.test(B),K&&(B=B.slice(1,-1)),q&&(q.prop&&!K&&(B=camelize(B),B==="innerHtml"&&(B="innerHTML")),q.camel&&!K&&(B=camelize(B)),q.sync&&(Y=genAssignmentCode(U,"$event"),K?addHandler(M,'"update:"+('.concat(B,")"),Y,null,!1,warn$4,$[I],!0):(addHandler(M,"update:".concat(camelize(B)),Y,null,!1,warn$4,$[I]),hyphenate(B)!==camelize(B)&&addHandler(M,"update:".concat(hyphenate(B)),Y,null,!1,warn$4,$[I])))),q&&q.prop||!M.component&&platformMustUseProp(M.tag,M.attrsMap.type,B)?addProp(M,B,U,$[I],K):addAttr(M,B,U,$[I],K);else if(onRE.test(B))B=B.replace(onRE,""),K=dynamicArgRE.test(B),K&&(B=B.slice(1,-1)),addHandler(M,B,U,q,!1,warn$4,$[I],K);else{B=B.replace(dirRE,"");var G=B.match(argRE),J=G&&G[1];K=!1,J&&(B=B.slice(0,-(J.length+1)),dynamicArgRE.test(J)&&(J=J.slice(1,-1),K=!0)),addDirective(M,B,j,U,J,K,q,$[I])}else addAttr(M,B,JSON.stringify(U),$[I]),!M.component&&B==="muted"&&platformMustUseProp(M.tag,M.attrsMap.type,B)&&addProp(M,B,"true",$[I])}function checkInFor(M){for(var $=M;$;){if($.for!==void 0)return!0;$=$.parent}return!1}function parseModifiers(M){var $=M.match(modifierRE);if($){var I={};return $.forEach(function(N){I[N.slice(1)]=!0}),I}}function makeAttrsMap(M){for(var $={},I=0,N=M.length;I<N;I++)$[M[I].name]=M[I].value;return $}function isTextTag(M){return M.tag==="script"||M.tag==="style"}function isForbiddenTag(M){return M.tag==="style"||M.tag==="script"&&(!M.attrsMap.type||M.attrsMap.type==="text/javascript")}var ieNSBug=/^xmlns:NS\d+/,ieNSPrefix=/^NS\d+:/;function guardIESVGBug(M){for(var $=[],I=0;I<M.length;I++){var N=M[I];ieNSBug.test(N.name)||(N.name=N.name.replace(ieNSPrefix,""),$.push(N))}return $}function preTransformNode(M,$){if(M.tag==="input"){var I=M.attrsMap;if(!I["v-model"])return;var N=void 0;if((I[":type"]||I["v-bind:type"])&&(N=getBindingAttr(M,"type")),!I.type&&!N&&I["v-bind"]&&(N="(".concat(I["v-bind"],").type")),N){var B=getAndRemoveAttr(M,"v-if",!0),j=B?"&&(".concat(B,")"):"",U=getAndRemoveAttr(M,"v-else",!0)!=null,q=getAndRemoveAttr(M,"v-else-if",!0),Y=cloneASTElement(M);processFor(Y),addRawAttr(Y,"type","checkbox"),processElement(Y,$),Y.processed=!0,Y.if="(".concat(N,")==='checkbox'")+j,addIfCondition(Y,{exp:Y.if,block:Y});var K=cloneASTElement(M);getAndRemoveAttr(K,"v-for",!0),addRawAttr(K,"type","radio"),processElement(K,$),addIfCondition(Y,{exp:"(".concat(N,")==='radio'")+j,block:K});var G=cloneASTElement(M);return getAndRemoveAttr(G,"v-for",!0),addRawAttr(G,":type",N),processElement(G,$),addIfCondition(Y,{exp:B,block:G}),U?Y.else=!0:q&&(Y.elseif=q),Y}}}function cloneASTElement(M){return createASTElement(M.tag,M.attrsList.slice(),M.parent)}var model$2={preTransformNode},modules=[klass,style$2,model$2];function text(M,$){$.value&&addProp(M,"textContent","_s(".concat($.value,")"),$)}function html$1(M,$){$.value&&addProp(M,"innerHTML","_s(".concat($.value,")"),$)}var directives$2={model:model$1,text,html:html$1},baseOptions={expectHTML:!0,modules,directives:directives$2,isPreTag,isUnaryTag,mustUseProp,canBeLeftOpenTag,isReservedTag,getTagNamespace,staticKeys:genStaticKeys$1(modules)},isStaticKey,isPlatformReservedTag,genStaticKeysCached=cached(genStaticKeys);function optimize(M,$){M&&(isStaticKey=genStaticKeysCached($.staticKeys||""),isPlatformReservedTag=$.isReservedTag||no,markStatic(M),markStaticRoots(M,!1))}function genStaticKeys(M){return makeMap$1("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(M?","+M:""))}function markStatic(M){if(M.static=isStatic(M),M.type===1){if(!isPlatformReservedTag(M.tag)&&M.tag!=="slot"&&M.attrsMap["inline-template"]==null)return;for(var $=0,I=M.children.length;$<I;$++){var N=M.children[$];markStatic(N),N.static||(M.static=!1)}if(M.ifConditions)for(var $=1,I=M.ifConditions.length;$<I;$++){var B=M.ifConditions[$].block;markStatic(B),B.static||(M.static=!1)}}}function markStaticRoots(M,$){if(M.type===1){if((M.static||M.once)&&(M.staticInFor=$),M.static&&M.children.length&&!(M.children.length===1&&M.children[0].type===3)){M.staticRoot=!0;return}else M.staticRoot=!1;if(M.children)for(var I=0,N=M.children.length;I<N;I++)markStaticRoots(M.children[I],$||!!M.for);if(M.ifConditions)for(var I=1,N=M.ifConditions.length;I<N;I++)markStaticRoots(M.ifConditions[I].block,$)}}function isStatic(M){return M.type===2?!1:M.type===3?!0:!!(M.pre||!M.hasBindings&&!M.if&&!M.for&&!isBuiltInTag(M.tag)&&isPlatformReservedTag(M.tag)&&!isDirectChildOfTemplateFor(M)&&Object.keys(M).every(isStaticKey))}function isDirectChildOfTemplateFor(M){for(;M.parent;){if(M=M.parent,M.tag!=="template")return!1;if(M.for)return!0}return!1}var fnExpRE=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,fnInvokeRE=/\([^)]*?\);*$/,simplePathRE=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,keyCodes={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},keyNames={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},genGuard=function(M){return"if(".concat(M,")return null;")},modifierCode={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:genGuard("$event.target !== $event.currentTarget"),ctrl:genGuard("!$event.ctrlKey"),shift:genGuard("!$event.shiftKey"),alt:genGuard("!$event.altKey"),meta:genGuard("!$event.metaKey"),left:genGuard("'button' in $event && $event.button !== 0"),middle:genGuard("'button' in $event && $event.button !== 1"),right:genGuard("'button' in $event && $event.button !== 2")};function genHandlers(M,$){var I=$?"nativeOn:":"on:",N="",B="";for(var j in M){var U=genHandler(M[j]);M[j]&&M[j].dynamic?B+="".concat(j,",").concat(U,","):N+='"'.concat(j,'":').concat(U,",")}return N="{".concat(N.slice(0,-1),"}"),B?I+"_d(".concat(N,",[").concat(B.slice(0,-1),"])"):I+N}function genHandler(M){if(!M)return"function(){}";if(Array.isArray(M))return"[".concat(M.map(function(G){return genHandler(G)}).join(","),"]");var $=simplePathRE.test(M.value),I=fnExpRE.test(M.value),N=simplePathRE.test(M.value.replace(fnInvokeRE,""));if(M.modifiers){var B="",j="",U=[],q=function(G){if(modifierCode[G])j+=modifierCode[G],keyCodes[G]&&U.push(G);else if(G==="exact"){var J=M.modifiers;j+=genGuard(["ctrl","shift","alt","meta"].filter(function(Z){return!J[Z]}).map(function(Z){return"$event.".concat(Z,"Key")}).join("||"))}else U.push(G)};for(var Y in M.modifiers)q(Y);U.length&&(B+=genKeyFilter(U)),j&&(B+=j);var K=$?"return ".concat(M.value,".apply(null, arguments)"):I?"return (".concat(M.value,").apply(null, arguments)"):N?"return ".concat(M.value):M.value;return"function($event){".concat(B).concat(K,"}")}else return $||I?M.value:"function($event){".concat(N?"return ".concat(M.value):M.value,"}")}function genKeyFilter(M){return"if(!$event.type.indexOf('key')&&"+"".concat(M.map(genFilterCode).join("&&"),")return null;")}function genFilterCode(M){var $=parseInt(M,10);if($)return"$event.keyCode!==".concat($);var I=keyCodes[M],N=keyNames[M];return"_k($event.keyCode,"+"".concat(JSON.stringify(M),",")+"".concat(JSON.stringify(I),",")+"$event.key,"+"".concat(JSON.stringify(N))+")"}function on$1(M,$){M.wrapListeners=function(I){return"_g(".concat(I,",").concat($.value,")")}}function bind$8(M,$){M.wrapData=function(I){return"_b(".concat(I,",'").concat(M.tag,"',").concat($.value,",").concat($.modifiers&&$.modifiers.prop?"true":"false").concat($.modifiers&&$.modifiers.sync?",true":"",")")}}var baseDirectives={on:on$1,bind:bind$8,cloak:noop$2},CodegenState=function(){function M($){this.options=$,this.warn=$.warn||baseWarn,this.transforms=pluckModuleFunction($.modules,"transformCode"),this.dataGenFns=pluckModuleFunction($.modules,"genData"),this.directives=extend$6(extend$6({},baseDirectives),$.directives);var I=$.isReservedTag||no;this.maybeComponent=function(N){return!!N.component||!I(N.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}return M}();function generate(M,$){var I=new CodegenState($),N=M?M.tag==="script"?"null":genElement(M,I):'_c("div")';return{render:"with(this){return ".concat(N,"}"),staticRenderFns:I.staticRenderFns}}function genElement(M,$){if(M.parent&&(M.pre=M.pre||M.parent.pre),M.staticRoot&&!M.staticProcessed)return genStatic(M,$);if(M.once&&!M.onceProcessed)return genOnce(M,$);if(M.for&&!M.forProcessed)return genFor(M,$);if(M.if&&!M.ifProcessed)return genIf(M,$);if(M.tag==="template"&&!M.slotTarget&&!$.pre)return genChildren(M,$)||"void 0";if(M.tag==="slot")return genSlot(M,$);var I=void 0;if(M.component)I=genComponent(M.component,M,$);else{var N=void 0,B=$.maybeComponent(M);(!M.plain||M.pre&&B)&&(N=genData(M,$));var j=void 0,U=$.options.bindings;B&&U&&U.__isScriptSetup!==!1&&(j=checkBindingType(U,M.tag)),j||(j="'".concat(M.tag,"'"));var q=M.inlineTemplate?null:genChildren(M,$,!0);I="_c(".concat(j).concat(N?",".concat(N):"").concat(q?",".concat(q):"",")")}for(var Y=0;Y<$.transforms.length;Y++)I=$.transforms[Y](M,I);return I}function checkBindingType(M,$){var I=camelize($),N=capitalize$1(I),B=function(q){if(M[$]===q)return $;if(M[I]===q)return I;if(M[N]===q)return N},j=B("setup-const")||B("setup-reactive-const");if(j)return j;var U=B("setup-let")||B("setup-ref")||B("setup-maybe-ref");if(U)return U}function genStatic(M,$){M.staticProcessed=!0;var I=$.pre;return M.pre&&($.pre=M.pre),$.staticRenderFns.push("with(this){return ".concat(genElement(M,$),"}")),$.pre=I,"_m(".concat($.staticRenderFns.length-1).concat(M.staticInFor?",true":"",")")}function genOnce(M,$){if(M.onceProcessed=!0,M.if&&!M.ifProcessed)return genIf(M,$);if(M.staticInFor){for(var I="",N=M.parent;N;){if(N.for){I=N.key;break}N=N.parent}return I?"_o(".concat(genElement(M,$),",").concat($.onceId++,",").concat(I,")"):genElement(M,$)}else return genStatic(M,$)}function genIf(M,$,I,N){return M.ifProcessed=!0,genIfConditions(M.ifConditions.slice(),$,I,N)}function genIfConditions(M,$,I,N){if(!M.length)return N||"_e()";var B=M.shift();if(B.exp)return"(".concat(B.exp,")?").concat(j(B.block),":").concat(genIfConditions(M,$,I,N));return"".concat(j(B.block));function j(U){return I?I(U,$):U.once?genOnce(U,$):genElement(U,$)}}function genFor(M,$,I,N){var B=M.for,j=M.alias,U=M.iterator1?",".concat(M.iterator1):"",q=M.iterator2?",".concat(M.iterator2):"";return M.forProcessed=!0,"".concat(N||"_l","((").concat(B,"),")+"function(".concat(j).concat(U).concat(q,"){")+"return ".concat((I||genElement)(M,$))+"})"}function genData(M,$){var I="{",N=genDirectives(M,$);N&&(I+=N+","),M.key&&(I+="key:".concat(M.key,",")),M.ref&&(I+="ref:".concat(M.ref,",")),M.refInFor&&(I+="refInFor:true,"),M.pre&&(I+="pre:true,"),M.component&&(I+='tag:"'.concat(M.tag,'",'));for(var B=0;B<$.dataGenFns.length;B++)I+=$.dataGenFns[B](M);if(M.attrs&&(I+="attrs:".concat(genProps(M.attrs),",")),M.props&&(I+="domProps:".concat(genProps(M.props),",")),M.events&&(I+="".concat(genHandlers(M.events,!1),",")),M.nativeEvents&&(I+="".concat(genHandlers(M.nativeEvents,!0),",")),M.slotTarget&&!M.slotScope&&(I+="slot:".concat(M.slotTarget,",")),M.scopedSlots&&(I+="".concat(genScopedSlots(M,M.scopedSlots,$),",")),M.model&&(I+="model:{value:".concat(M.model.value,",callback:").concat(M.model.callback,",expression:").concat(M.model.expression,"},")),M.inlineTemplate){var j=genInlineTemplate(M,$);j&&(I+="".concat(j,","))}return I=I.replace(/,$/,"")+"}",M.dynamicAttrs&&(I="_b(".concat(I,',"').concat(M.tag,'",').concat(genProps(M.dynamicAttrs),")")),M.wrapData&&(I=M.wrapData(I)),M.wrapListeners&&(I=M.wrapListeners(I)),I}function genDirectives(M,$){var I=M.directives;if(I){var N="directives:[",B=!1,j,U,q,Y;for(j=0,U=I.length;j<U;j++){q=I[j],Y=!0;var K=$.directives[q.name];K&&(Y=!!K(M,q,$.warn)),Y&&(B=!0,N+='{name:"'.concat(q.name,'",rawName:"').concat(q.rawName,'"').concat(q.value?",value:(".concat(q.value,"),expression:").concat(JSON.stringify(q.value)):"").concat(q.arg?",arg:".concat(q.isDynamicArg?q.arg:'"'.concat(q.arg,'"')):"").concat(q.modifiers?",modifiers:".concat(JSON.stringify(q.modifiers)):"","},"))}if(B)return N.slice(0,-1)+"]"}}function genInlineTemplate(M,$){var I=M.children[0];if(I&&I.type===1){var N=generate(I,$.options);return"inlineTemplate:{render:function(){".concat(N.render,"},staticRenderFns:[").concat(N.staticRenderFns.map(function(B){return"function(){".concat(B,"}")}).join(","),"]}")}}function genScopedSlots(M,$,I){var N=M.for||Object.keys($).some(function(q){var Y=$[q];return Y.slotTargetDynamic||Y.if||Y.for||containsSlotChild(Y)}),B=!!M.if;if(!N)for(var j=M.parent;j;){if(j.slotScope&&j.slotScope!==emptySlotScopeToken||j.for){N=!0;break}j.if&&(B=!0),j=j.parent}var U=Object.keys($).map(function(q){return genScopedSlot($[q],I)}).join(",");return"scopedSlots:_u([".concat(U,"]").concat(N?",null,true":"").concat(!N&&B?",null,false,".concat(hash$4(U)):"",")")}function hash$4(M){for(var $=5381,I=M.length;I;)$=$*33^M.charCodeAt(--I);return $>>>0}function containsSlotChild(M){return M.type===1?M.tag==="slot"?!0:M.children.some(containsSlotChild):!1}function genScopedSlot(M,$){var I=M.attrsMap["slot-scope"];if(M.if&&!M.ifProcessed&&!I)return genIf(M,$,genScopedSlot,"null");if(M.for&&!M.forProcessed)return genFor(M,$,genScopedSlot);var N=M.slotScope===emptySlotScopeToken?"":String(M.slotScope),B="function(".concat(N,"){")+"return ".concat(M.tag==="template"?M.if&&I?"(".concat(M.if,")?").concat(genChildren(M,$)||"undefined",":undefined"):genChildren(M,$)||"undefined":genElement(M,$),"}"),j=N?"":",proxy:true";return"{key:".concat(M.slotTarget||'"default"',",fn:").concat(B).concat(j,"}")}function genChildren(M,$,I,N,B){var j=M.children;if(j.length){var U=j[0];if(j.length===1&&U.for&&U.tag!=="template"&&U.tag!=="slot"){var q=I?$.maybeComponent(U)?",1":",0":"";return"".concat((N||genElement)(U,$)).concat(q)}var Y=I?getNormalizationType(j,$.maybeComponent):0,K=B||genNode;return"[".concat(j.map(function(G){return K(G,$)}).join(","),"]").concat(Y?",".concat(Y):"")}}function getNormalizationType(M,$){for(var I=0,N=0;N<M.length;N++){var B=M[N];if(B.type===1){if(needsNormalization(B)||B.ifConditions&&B.ifConditions.some(function(j){return needsNormalization(j.block)})){I=2;break}($(B)||B.ifConditions&&B.ifConditions.some(function(j){return $(j.block)}))&&(I=1)}}return I}function needsNormalization(M){return M.for!==void 0||M.tag==="template"||M.tag==="slot"}function genNode(M,$){return M.type===1?genElement(M,$):M.type===3&&M.isComment?genComment(M):genText(M)}function genText(M){return"_v(".concat(M.type===2?M.expression:transformSpecialNewlines(JSON.stringify(M.text)),")")}function genComment(M){return"_e(".concat(JSON.stringify(M.text),")")}function genSlot(M,$){var I=M.slotName||'"default"',N=genChildren(M,$),B="_t(".concat(I).concat(N?",function(){return ".concat(N,"}"):""),j=M.attrs||M.dynamicAttrs?genProps((M.attrs||[]).concat(M.dynamicAttrs||[]).map(function(q){return{name:camelize(q.name),value:q.value,dynamic:q.dynamic}})):null,U=M.attrsMap["v-bind"];return(j||U)&&!N&&(B+=",null"),j&&(B+=",".concat(j)),U&&(B+="".concat(j?"":",null",",").concat(U)),B+")"}function genComponent(M,$,I){var N=$.inlineTemplate?null:genChildren($,I,!0);return"_c(".concat(M,",").concat(genData($,I)).concat(N?",".concat(N):"",")")}function genProps(M){for(var $="",I="",N=0;N<M.length;N++){var B=M[N],j=transformSpecialNewlines(B.value);B.dynamic?I+="".concat(B.name,",").concat(j,","):$+='"'.concat(B.name,'":').concat(j,",")}return $="{".concat($.slice(0,-1),"}"),I?"_d(".concat($,",[").concat(I.slice(0,-1),"])"):$}function transformSpecialNewlines(M){return M.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function createFunction(M,$){try{return new Function(M)}catch(I){return $.push({err:I,code:M}),noop$2}}function createCompileToFunctionFn(M){var $=Object.create(null);return function(N,B,j){B=extend$6({},B),B.warn,delete B.warn;var U=B.delimiters?String(B.delimiters)+N:N;if($[U])return $[U];var q=M(N,B),Y={},K=[];return Y.render=createFunction(q.render,K),Y.staticRenderFns=q.staticRenderFns.map(function(G){return createFunction(G,K)}),$[U]=Y}}function createCompilerCreator(M){return function(I){function N(B,j){var U=Object.create(I),q=[],Y=[],K=function(Z,ee,te){(te?Y:q).push(Z)};if(j){j.modules&&(U.modules=(I.modules||[]).concat(j.modules)),j.directives&&(U.directives=extend$6(Object.create(I.directives||null),j.directives));for(var G in j)G!=="modules"&&G!=="directives"&&(U[G]=j[G])}U.warn=K;var J=M(B.trim(),U);return J.errors=q,J.tips=Y,J}return{compile:N,compileToFunctions:createCompileToFunctionFn(N)}}}var createCompiler=createCompilerCreator(function($,I){var N=parse$4($.trim(),I);I.optimize!==!1&&optimize(N,I);var B=generate(N,I);return{ast:N,render:B.render,staticRenderFns:B.staticRenderFns}}),_a=createCompiler(baseOptions),compileToFunctions=_a.compileToFunctions,div$1;function getShouldDecode(M){return div$1=div$1||document.createElement("div"),div$1.innerHTML=M?`<a href=" "/>`:`<div a=" "/>`,div$1.innerHTML.indexOf(" ")>0}var shouldDecodeNewlines=inBrowser?getShouldDecode(!1):!1,shouldDecodeNewlinesForHref=inBrowser?getShouldDecode(!0):!1,idToTemplate=cached(function(M){var $=query(M);return $&&$.innerHTML}),mount=Vue$3.prototype.$mount;Vue$3.prototype.$mount=function(M,$){if(M=M&&query(M),M===document.body||M===document.documentElement)return this;var I=this.$options;if(!I.render){var N=I.template;if(N)if(typeof N=="string")N.charAt(0)==="#"&&(N=idToTemplate(N));else if(N.nodeType)N=N.innerHTML;else return this;else M&&(N=getOuterHTML(M));if(N){var B=compileToFunctions(N,{outputSourceRange:!1,shouldDecodeNewlines,shouldDecodeNewlinesForHref,delimiters:I.delimiters,comments:I.comments},this),j=B.render,U=B.staticRenderFns;I.render=j,I.staticRenderFns=U}}return mount.call(this,M,$)};function getOuterHTML(M){if(M.outerHTML)return M.outerHTML;var $=document.createElement("div");return $.appendChild(M.cloneNode(!0)),$.innerHTML}Vue$3.compile=compileToFunctions;const vue_esm=Object.freeze(Object.defineProperty({__proto__:null,EffectScope,computed,customRef,default:Vue$3,defineAsyncComponent,defineComponent,del,effectScope,getCurrentInstance,getCurrentScope,h:h$2,inject,isProxy,isReactive:isReactive$1,isReadonly,isRef:isRef$1,isShallow,markRaw,mergeDefaults,nextTick:nextTick$1,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,provide,proxyRefs,reactive:reactive$1,readonly:readonly$1,ref:ref$1,set:set$3,shallowReactive,shallowReadonly,shallowRef,toRaw:toRaw$1,toRef,toRefs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useListeners,useSlots,version:version$3,watch,watchEffect,watchPostEffect,watchSyncEffect},Symbol.toStringTag,{value:"Module"}));var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(M){return M&&M.__esModule&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M}function getAugmentedNamespace(M){if(M.__esModule)return M;var $=M.default;if(typeof $=="function"){var I=function N(){return this instanceof N?Reflect.construct($,arguments,this.constructor):$.apply(this,arguments)};I.prototype=$.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(M).forEach(function(N){var B=Object.getOwnPropertyDescriptor(M,N);Object.defineProperty(I,N,B.get?B:{enumerable:!0,get:function(){return M[N]}})}),I}var vueToasted_min={exports:{}};(function(M,$){(function(I,N){M.exports=N()})(commonjsGlobal,function(){return function(I){function N(j){if(B[j])return B[j].exports;var U=B[j]={i:j,l:!1,exports:{}};return I[j].call(U.exports,U,U.exports,N),U.l=!0,U.exports}var B={};return N.m=I,N.c=B,N.i=function(j){return j},N.d=function(j,U,q){N.o(j,U)||Object.defineProperty(j,U,{configurable:!1,enumerable:!0,get:q})},N.n=function(j){var U=j&&j.__esModule?function(){return j.default}:function(){return j};return N.d(U,"a",U),U},N.o=function(j,U){return Object.prototype.hasOwnProperty.call(j,U)},N.p="/dist/",N(N.s=6)}([function(I,N,B){function j(){se=!1}function U(ce){if(!ce)return void(ee!==ne&&(ee=ne,j()));if(ce!==ee){if(ce.length!==ne.length)throw new Error("Custom alphabet for shortid must be "+ne.length+" unique characters. You submitted "+ce.length+" characters: "+ce);var me=ce.split("").filter(function(ue,_e,fe){return _e!==fe.lastIndexOf(ue)});if(me.length)throw new Error("Custom alphabet for shortid must be "+ne.length+" unique characters. These characters were not unique: "+me.join(", "));ee=ce,j()}}function q(ce){return U(ce),ee}function Y(ce){re.seed(ce),te!==ce&&(j(),te=ce)}function K(){ee||U(ne);for(var ce,me=ee.split(""),ue=[],_e=re.nextValue();me.length>0;)_e=re.nextValue(),ce=Math.floor(_e*me.length),ue.push(me.splice(ce,1)[0]);return ue.join("")}function G(){return se||(se=K())}function J(ce){return G()[ce]}function Z(){return ee||ne}var ee,te,se,re=B(19),ne="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";I.exports={get:Z,characters:q,seed:Y,lookup:J,shuffled:G}},function(I,N,B){var j=B(5),U=B.n(j);N.a={animateIn:function(q){U()({targets:q,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(q,Y){U()({targets:q,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:Y})},animateOutBottom:function(q,Y){U()({targets:q,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:Y})},animateReset:function(q){U()({targets:q,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(q,Y,K){U()({targets:q,duration:10,easing:"easeOutQuad",left:Y,opacity:K})},animatePanEnd:function(q,Y){U()({targets:q,opacity:0,duration:300,easing:"easeOutExpo",complete:Y})},clearAnimation:function(q){var Y=U.a.timeline();q.forEach(function(K){Y.add({targets:K.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){K.remove()}})})}}},function(I,N,B){I.exports=B(16)},function(I,N,B){B.d(N,"a",function(){return K});var j=B(8),U=B(1),q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},Y=B(2);B(11).polyfill();var K=function te(se){var re=this;return this.id=Y.generate(),this.options=se,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,Z(this),J(this),this.group=function(ne){ne||(ne={}),ne.globalToasts||(ne.globalToasts={}),Object.assign(ne.globalToasts,re.global);var ce=new te(ne);return re.groups.push(ce),ce},this.register=function(ne,ce,me){return me=me||{},ee(re,ne,ce,me)},this.show=function(ne,ce){return G(re,ne,ce)},this.success=function(ne,ce){return ce=ce||{},ce.type="success",G(re,ne,ce)},this.info=function(ne,ce){return ce=ce||{},ce.type="info",G(re,ne,ce)},this.error=function(ne,ce){return ce=ce||{},ce.type="error",G(re,ne,ce)},this.remove=function(ne){re.toasts=re.toasts.filter(function(ce){return ce.el.hash!==ne.hash}),ne.parentNode&&ne.parentNode.removeChild(ne)},this.clear=function(ne){return U.a.clearAnimation(re.toasts,function(){ne&&ne()}),re.toasts=[],!0},this},G=function(te,se,re){re=re||{};var ne=null;if((re===void 0?"undefined":q(re))!=="object")return console.error("Options should be a type of object. given : "+re),null;te.options.singleton&&te.toasts.length>0&&(te.cached_options=re,te.toasts[te.toasts.length-1].goAway(0));var ce=Object.assign({},te.options);return Object.assign(ce,re),ne=B.i(j.a)(te,se,ce),te.toasts.push(ne),ne},J=function(te){var se=te.options.globalToasts,re=function(ne,ce){return typeof ce=="string"&&te[ce]?te[ce].apply(te,[ne,{}]):G(te,ne,ce)};se&&(te.global={},Object.keys(se).forEach(function(ne){te.global[ne]=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return se[ne].apply(null,[ce,re])}}))},Z=function(te){var se=document.createElement("div");se.id=te.id,se.setAttribute("role","status"),se.setAttribute("aria-live","polite"),se.setAttribute("aria-atomic","false"),document.body.appendChild(se),te.container=se},ee=function(te,se,re,ne){te.options.globalToasts||(te.options.globalToasts={}),te.options.globalToasts[se]=function(ce,me){var ue=null;return typeof re=="string"&&(ue=re),typeof re=="function"&&(ue=re(ce)),me(ue,ne)},J(te)}},function(I,N,B){B(22);var j=B(21)(null,null,null,null);I.exports=j.exports},function(I,N,B){(function(j){var U,q,Y,K={scope:{}};K.defineProperty=typeof Object.defineProperties=="function"?Object.defineProperty:function(J,Z,ee){if(ee.get||ee.set)throw new TypeError("ES3 does not support getters and setters.");J!=Array.prototype&&J!=Object.prototype&&(J[Z]=ee.value)},K.getGlobal=function(J){return typeof window<"u"&&window===J?J:j!==void 0&&j!=null?j:J},K.global=K.getGlobal(this),K.SYMBOL_PREFIX="jscomp_symbol_",K.initSymbol=function(){K.initSymbol=function(){},K.global.Symbol||(K.global.Symbol=K.Symbol)},K.symbolCounter_=0,K.Symbol=function(J){return K.SYMBOL_PREFIX+(J||"")+K.symbolCounter_++},K.initSymbolIterator=function(){K.initSymbol();var J=K.global.Symbol.iterator;J||(J=K.global.Symbol.iterator=K.global.Symbol("iterator")),typeof Array.prototype[J]!="function"&&K.defineProperty(Array.prototype,J,{configurable:!0,writable:!0,value:function(){return K.arrayIterator(this)}}),K.initSymbolIterator=function(){}},K.arrayIterator=function(J){var Z=0;return K.iteratorPrototype(function(){return Z<J.length?{done:!1,value:J[Z++]}:{done:!0}})},K.iteratorPrototype=function(J){return K.initSymbolIterator(),J={next:J},J[K.global.Symbol.iterator]=function(){return this},J},K.array=K.array||{},K.iteratorFromArray=function(J,Z){K.initSymbolIterator(),J instanceof String&&(J+="");var ee=0,te={next:function(){if(ee<J.length){var se=ee++;return{value:Z(se,J[se]),done:!1}}return te.next=function(){return{done:!0,value:void 0}},te.next()}};return te[Symbol.iterator]=function(){return te},te},K.polyfill=function(J,Z,ee,te){if(Z){for(ee=K.global,J=J.split("."),te=0;te<J.length-1;te++){var se=J[te];se in ee||(ee[se]={}),ee=ee[se]}J=J[J.length-1],te=ee[J],Z=Z(te),Z!=te&&Z!=null&&K.defineProperty(ee,J,{configurable:!0,writable:!0,value:Z})}},K.polyfill("Array.prototype.keys",function(J){return J||function(){return K.iteratorFromArray(this,function(Z){return Z})}},"es6-impl","es3");var G=this;(function(J,Z){q=[],U=Z,(Y=typeof U=="function"?U.apply(N,q):U)!==void 0&&(I.exports=Y)})(0,function(){function J(We){if(!kn.col(We))try{return document.querySelectorAll(We)}catch{}}function Z(We,xt){for(var Ue=We.length,Oe=2<=arguments.length?arguments[1]:void 0,ke=[],$e=0;$e<Ue;$e++)if($e in We){var Ge=We[$e];xt.call(Oe,Ge,$e,We)&&ke.push(Ge)}return ke}function ee(We){return We.reduce(function(xt,Ue){return xt.concat(kn.arr(Ue)?ee(Ue):Ue)},[])}function te(We){return kn.arr(We)?We:(kn.str(We)&&(We=J(We)||We),We instanceof NodeList||We instanceof HTMLCollection?[].slice.call(We):[We])}function se(We,xt){return We.some(function(Ue){return Ue===xt})}function re(We){var xt,Ue={};for(xt in We)Ue[xt]=We[xt];return Ue}function ne(We,xt){var Ue,Oe=re(We);for(Ue in We)Oe[Ue]=xt.hasOwnProperty(Ue)?xt[Ue]:We[Ue];return Oe}function ce(We,xt){var Ue,Oe=re(We);for(Ue in xt)Oe[Ue]=kn.und(We[Ue])?xt[Ue]:We[Ue];return Oe}function me(We){We=We.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(Oe,ke,$e,Ge){return ke+ke+$e+$e+Ge+Ge});var Ue=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(We);We=parseInt(Ue[1],16);var xt=parseInt(Ue[2],16),Ue=parseInt(Ue[3],16);return"rgba("+We+","+xt+","+Ue+",1)"}function ue(We){function xt(rt,ut,ct){return 0>ct&&(ct+=1),1<ct&&--ct,ct<1/6?rt+6*(ut-rt)*ct:.5>ct?ut:ct<2/3?rt+(ut-rt)*(2/3-ct)*6:rt}var ke=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(We)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(We);We=parseInt(ke[1])/360;var Ue=parseInt(ke[2])/100,Oe=parseInt(ke[3])/100,ke=ke[4]||1;if(Ue==0)Oe=Ue=We=Oe;else{var $e=.5>Oe?Oe*(1+Ue):Oe+Ue-Oe*Ue,Ge=2*Oe-$e,Oe=xt(Ge,$e,We+1/3),Ue=xt(Ge,$e,We);We=xt(Ge,$e,We-1/3)}return"rgba("+255*Oe+","+255*Ue+","+255*We+","+ke+")"}function _e(We){if(We=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(We))return We[2]}function fe(We){return-1<We.indexOf("translate")||We==="perspective"?"px":-1<We.indexOf("rotate")||-1<We.indexOf("skew")?"deg":void 0}function ge(We,xt){return kn.fnc(We)?We(xt.target,xt.id,xt.total):We}function ye(We,xt){if(xt in We.style)return getComputedStyle(We).getPropertyValue(xt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function xe(We,xt){return kn.dom(We)&&se(En,xt)?"transform":kn.dom(We)&&(We.getAttribute(xt)||kn.svg(We)&&We[xt])?"attribute":kn.dom(We)&&xt!=="transform"&&ye(We,xt)?"css":We[xt]!=null?"object":void 0}function le(We,xt){var Ue=fe(xt),Ue=-1<xt.indexOf("scale")?1:0+Ue;if(!(We=We.style.transform))return Ue;for(var Oe=[],ke=[],$e=[],Ge=/(\w+)\((.+?)\)/g;Oe=Ge.exec(We);)ke.push(Oe[1]),$e.push(Oe[2]);return We=Z($e,function(rt,ut){return ke[ut]===xt}),We.length?We[0]:Ue}function be(We,xt){switch(xe(We,xt)){case"transform":return le(We,xt);case"css":return ye(We,xt);case"attribute":return We.getAttribute(xt)}return We[xt]||0}function ve(We,xt){var Ue=/^(\*=|\+=|-=)/.exec(We);if(!Ue)return We;var Oe=_e(We)||0;switch(xt=parseFloat(xt),We=parseFloat(We.replace(Ue[0],"")),Ue[0][0]){case"+":return xt+We+Oe;case"-":return xt-We+Oe;case"*":return xt*We+Oe}}function we(We,xt){return Math.sqrt(Math.pow(xt.x-We.x,2)+Math.pow(xt.y-We.y,2))}function Ae(We){We=We.points;for(var xt,Ue=0,Oe=0;Oe<We.numberOfItems;Oe++){var ke=We.getItem(Oe);0<Oe&&(Ue+=we(xt,ke)),xt=ke}return Ue}function Se(We){if(We.getTotalLength)return We.getTotalLength();switch(We.tagName.toLowerCase()){case"circle":return 2*Math.PI*We.getAttribute("r");case"rect":return 2*We.getAttribute("width")+2*We.getAttribute("height");case"line":return we({x:We.getAttribute("x1"),y:We.getAttribute("y1")},{x:We.getAttribute("x2"),y:We.getAttribute("y2")});case"polyline":return Ae(We);case"polygon":var xt=We.points;return Ae(We)+we(xt.getItem(xt.numberOfItems-1),xt.getItem(0))}}function Pe(We,xt){function Ue(Ge){return Ge=Ge===void 0?0:Ge,We.el.getPointAtLength(1<=xt+Ge?xt+Ge:0)}var Oe=Ue(),ke=Ue(-1),$e=Ue(1);switch(We.property){case"x":return Oe.x;case"y":return Oe.y;case"angle":return 180*Math.atan2($e.y-ke.y,$e.x-ke.x)/Math.PI}}function Me(We,xt){var Ue,Oe=/-?\d*\.?\d+/g;if(Ue=kn.pth(We)?We.totalLength:We,kn.col(Ue))if(kn.rgb(Ue)){var ke=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(Ue);Ue=ke?"rgba("+ke[1]+",1)":Ue}else Ue=kn.hex(Ue)?me(Ue):kn.hsl(Ue)?ue(Ue):void 0;else ke=(ke=_e(Ue))?Ue.substr(0,Ue.length-ke.length):Ue,Ue=xt&&!/\s/g.test(Ue)?ke+xt:ke;return Ue+="",{original:Ue,numbers:Ue.match(Oe)?Ue.match(Oe).map(Number):[0],strings:kn.str(We)||xt?Ue.split(Oe):[]}}function Be(We){return We=We?ee(kn.arr(We)?We.map(te):te(We)):[],Z(We,function(xt,Ue,Oe){return Oe.indexOf(xt)===Ue})}function ze(We){var xt=Be(We);return xt.map(function(Ue,Oe){return{target:Ue,id:Oe,total:xt.length}})}function Ze(We,xt){var Ue=re(xt);if(kn.arr(We)){var Oe=We.length;Oe!==2||kn.obj(We[0])?kn.fnc(xt.duration)||(Ue.duration=xt.duration/Oe):We={value:We}}return te(We).map(function(ke,$e){return $e=$e?0:xt.delay,ke=kn.obj(ke)&&!kn.pth(ke)?ke:{value:ke},kn.und(ke.delay)&&(ke.delay=$e),ke}).map(function(ke){return ce(ke,Ue)})}function ft(We,xt){var Ue,Oe={};for(Ue in We){var ke=ge(We[Ue],xt);kn.arr(ke)&&(ke=ke.map(function($e){return ge($e,xt)}),ke.length===1&&(ke=ke[0])),Oe[Ue]=ke}return Oe.duration=parseFloat(Oe.duration),Oe.delay=parseFloat(Oe.delay),Oe}function Ye(We){return kn.arr(We)?Gn.apply(this,We):An[We]}function Ve(We,xt){var Ue;return We.tweens.map(function(Oe){Oe=ft(Oe,xt);var ke=Oe.value,rt=be(xt.target,We.name),$e=Ue?Ue.to.original:rt,$e=kn.arr(ke)?ke[0]:$e,Ge=ve(kn.arr(ke)?ke[1]:ke,$e),rt=_e(Ge)||_e($e)||_e(rt);return Oe.from=Me($e,rt),Oe.to=Me(Ge,rt),Oe.start=Ue?Ue.end:We.offset,Oe.end=Oe.start+Oe.delay+Oe.duration,Oe.easing=Ye(Oe.easing),Oe.elasticity=(1e3-Math.min(Math.max(Oe.elasticity,1),999))/1e3,Oe.isPath=kn.pth(ke),Oe.isColor=kn.col(Oe.from.original),Oe.isColor&&(Oe.round=1),Ue=Oe})}function Dt(We,xt){return Z(ee(We.map(function(Ue){return xt.map(function(Oe){var ke=xe(Ue.target,Oe.name);if(ke){var $e=Ve(Oe,Ue);Oe={type:ke,property:Oe.name,animatable:Ue,tweens:$e,duration:$e[$e.length-1].end,delay:$e[0].delay}}else Oe=void 0;return Oe})})),function(Ue){return!kn.und(Ue)})}function Nt(We,xt,Ue,Oe){var ke=We==="delay";return xt.length?(ke?Math.min:Math.max).apply(Math,xt.map(function($e){return $e[We]})):ke?Oe.delay:Ue.offset+Oe.delay+Oe.duration}function Vt(We){var xt,Ue=ne(tn,We),Oe=ne(Qt,We),ke=ze(We.targets),$e=[],Ge=ce(Ue,Oe);for(xt in We)Ge.hasOwnProperty(xt)||xt==="targets"||$e.push({name:xt,offset:Ge.offset,tweens:Ze(We[xt],Oe)});return We=Dt(ke,$e),ce(Ue,{children:[],animatables:ke,animations:We,duration:Nt("duration",We,Ue,Oe),delay:Nt("delay",We,Ue,Oe)})}function Wt(We){function xt(){return window.Promise&&new Promise(function(dn){return it=dn})}function Ue(dn){return Ot.reversed?Ot.duration-dn:dn}function Oe(dn){for(var Fn=0,Zt={},vn=Ot.animations,lt=vn.length;Fn<lt;){var pt=vn[Fn],Pt=pt.animatable,qt=pt.tweens,Ht=qt.length-1,mn=qt[Ht];Ht&&(mn=Z(qt,function(hn){return dn<hn.end})[0]||mn);for(var qt=Math.min(Math.max(dn-mn.start-mn.delay,0),mn.duration)/mn.duration,Yn=isNaN(qt)?1:mn.easing(qt,mn.elasticity),qt=mn.to.strings,Ct=mn.round,Ht=[],ht=void 0,ht=mn.to.numbers.length,Tt=0;Tt<ht;Tt++){var fn=void 0,fn=mn.to.numbers[Tt],Lt=mn.from.numbers[Tt],fn=mn.isPath?Pe(mn.value,Yn*fn):Lt+Yn*(fn-Lt);Ct&&(mn.isColor&&2<Tt||(fn=Math.round(fn*Ct)/Ct)),Ht.push(fn)}if(mn=qt.length)for(ht=qt[0],Yn=0;Yn<mn;Yn++)Ct=qt[Yn+1],Tt=Ht[Yn],isNaN(Tt)||(ht=Ct?ht+(Tt+Ct):ht+(Tt+" "));else ht=Ht[0];jn[pt.type](Pt.target,pt.property,ht,Zt,Pt.id),pt.currentValue=ht,Fn++}if(Fn=Object.keys(Zt).length)for(vn=0;vn<Fn;vn++)Gt||(Gt=ye(document.body,"transform")?"transform":"-webkit-transform"),Ot.animatables[vn].target.style[Gt]=Zt[vn].join(" ");Ot.currentTime=dn,Ot.progress=dn/Ot.duration*100}function ke(dn){Ot[dn]&&Ot[dn](Ot)}function $e(){Ot.remaining&&Ot.remaining!==!0&&Ot.remaining--}function Ge(dn){var Fn=Ot.duration,Zt=Ot.offset,vn=Zt+Ot.delay,lt=Ot.currentTime,pt=Ot.reversed,Pt=Ue(dn);if(Ot.children.length){var qt=Ot.children,Ht=qt.length;if(Pt>=Ot.currentTime)for(var mn=0;mn<Ht;mn++)qt[mn].seek(Pt);else for(;Ht--;)qt[Ht].seek(Pt)}(Pt>=vn||!Fn)&&(Ot.began||(Ot.began=!0,ke("begin")),ke("run")),Pt>Zt&&Pt<Fn?Oe(Pt):(Pt<=Zt&<!==0&&(Oe(0),pt&&$e()),(Pt>=Fn&<!==Fn||!Fn)&&(Oe(Fn),pt||$e())),ke("update"),dn>=Fn&&(Ot.remaining?(ut=rt,Ot.direction==="alternate"&&(Ot.reversed=!Ot.reversed)):(Ot.pause(),Ot.completed||(Ot.completed=!0,ke("complete"),"Promise"in window&&(it(),ot=xt()))),ct=0)}We=We===void 0?{}:We;var rt,ut,ct=0,it=null,ot=xt(),Ot=Vt(We);return Ot.reset=function(){var dn=Ot.direction,Fn=Ot.loop;for(Ot.currentTime=0,Ot.progress=0,Ot.paused=!0,Ot.began=!1,Ot.completed=!1,Ot.reversed=dn==="reverse",Ot.remaining=dn==="alternate"&&Fn===1?2:Fn,Oe(0),dn=Ot.children.length;dn--;)Ot.children[dn].reset()},Ot.tick=function(dn){rt=dn,ut||(ut=rt),Ge((ct+rt-ut)*Wt.speed)},Ot.seek=function(dn){Ge(Ue(dn))},Ot.pause=function(){var dn=Mn.indexOf(Ot);-1<dn&&Mn.splice(dn,1),Ot.paused=!0},Ot.play=function(){Ot.paused&&(Ot.paused=!1,ut=0,ct=Ue(Ot.currentTime),Mn.push(Ot),Ln||Et())},Ot.reverse=function(){Ot.reversed=!Ot.reversed,ut=0,ct=Ue(Ot.currentTime)},Ot.restart=function(){Ot.pause(),Ot.reset(),Ot.play()},Ot.finished=ot,Ot.reset(),Ot.autoplay&&Ot.play(),Ot}var Gt,tn={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},Qt={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},En="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),kn={arr:function(We){return Array.isArray(We)},obj:function(We){return-1<Object.prototype.toString.call(We).indexOf("Object")},pth:function(We){return kn.obj(We)&&We.hasOwnProperty("totalLength")},svg:function(We){return We instanceof SVGElement},dom:function(We){return We.nodeType||kn.svg(We)},str:function(We){return typeof We=="string"},fnc:function(We){return typeof We=="function"},und:function(We){return We===void 0},hex:function(We){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(We)},rgb:function(We){return/^rgb/.test(We)},hsl:function(We){return/^hsl/.test(We)},col:function(We){return kn.hex(We)||kn.rgb(We)||kn.hsl(We)}},Gn=function(){function We(xt,Ue,Oe){return(((1-3*Oe+3*Ue)*xt+(3*Oe-6*Ue))*xt+3*Ue)*xt}return function(xt,Ue,Oe,ke){if(0<=xt&&1>=xt&&0<=Oe&&1>=Oe){var $e=new Float32Array(11);if(xt!==Ue||Oe!==ke)for(var Ge=0;11>Ge;++Ge)$e[Ge]=We(.1*Ge,xt,Oe);return function(rt){if(xt===Ue&&Oe===ke)return rt;if(rt===0)return 0;if(rt===1)return 1;for(var ut=0,ct=1;ct!==10&&$e[ct]<=rt;++ct)ut+=.1;--ct;var ct=ut+(rt-$e[ct])/($e[ct+1]-$e[ct])*.1,it=3*(1-3*Oe+3*xt)*ct*ct+2*(3*Oe-6*xt)*ct+3*xt;if(.001<=it){for(ut=0;4>ut&&(it=3*(1-3*Oe+3*xt)*ct*ct+2*(3*Oe-6*xt)*ct+3*xt)!==0;++ut)var ot=We(ct,xt,Oe)-rt,ct=ct-ot/it;rt=ct}else if(it===0)rt=ct;else{var ct=ut,ut=ut+.1,Ot=0;do ot=ct+(ut-ct)/2,it=We(ot,xt,Oe)-rt,0<it?ut=ot:ct=ot;while(1e-7<Math.abs(it)&&10>++Ot);rt=ot}return We(rt,Ue,ke)}}}}(),An=function(){function We(Ge,rt){return Ge===0||Ge===1?Ge:-Math.pow(2,10*(Ge-1))*Math.sin(2*(Ge-1-rt/(2*Math.PI)*Math.asin(1))*Math.PI/rt)}var xt,Ue="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),Oe={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],We],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(Ge,rt){return 1-We(1-Ge,rt)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(Ge,rt){return .5>Ge?We(2*Ge,rt)/2:1-We(-2*Ge+2,rt)/2}]},ke={linear:Gn(.25,.25,.75,.75)},$e={};for(xt in Oe)$e.type=xt,Oe[$e.type].forEach(function(Ge){return function(rt,ut){ke["ease"+Ge.type+Ue[ut]]=kn.fnc(rt)?rt:Gn.apply(G,rt)}}($e)),$e={type:$e.type};return ke}(),jn={css:function(We,xt,Ue){return We.style[xt]=Ue},attribute:function(We,xt,Ue){return We.setAttribute(xt,Ue)},object:function(We,xt,Ue){return We[xt]=Ue},transform:function(We,xt,Ue,Oe,ke){Oe[ke]||(Oe[ke]=[]),Oe[ke].push(xt+"("+Ue+")")}},Mn=[],Ln=0,Et=function(){function We(){Ln=requestAnimationFrame(xt)}function xt(Ue){var Oe=Mn.length;if(Oe){for(var ke=0;ke<Oe;)Mn[ke]&&Mn[ke].tick(Ue),ke++;We()}else cancelAnimationFrame(Ln),Ln=0}return We}();return Wt.version="2.2.0",Wt.speed=1,Wt.running=Mn,Wt.remove=function(We){We=Be(We);for(var xt=Mn.length;xt--;)for(var Ue=Mn[xt],Oe=Ue.animations,ke=Oe.length;ke--;)se(We,Oe[ke].animatable.target)&&(Oe.splice(ke,1),Oe.length||Ue.pause())},Wt.getValue=be,Wt.path=function(We,xt){var Ue=kn.str(We)?J(We)[0]:We,Oe=xt||100;return function(ke){return{el:Ue,property:ke,totalLength:Se(Ue)*(Oe/100)}}},Wt.setDashoffset=function(We){var xt=Se(We);return We.setAttribute("stroke-dasharray",xt),xt},Wt.bezier=Gn,Wt.easings=An,Wt.timeline=function(We){var xt=Wt(We);return xt.pause(),xt.duration=0,xt.add=function(Ue){return xt.children.forEach(function(Oe){Oe.began=!0,Oe.completed=!0}),te(Ue).forEach(function(Oe){var ke=ce(Oe,ne(Qt,We||{}));ke.targets=ke.targets||We.targets,Oe=xt.duration;var $e=ke.offset;ke.autoplay=!1,ke.direction=xt.direction,ke.offset=kn.und($e)?Oe:ve($e,Oe),xt.began=!0,xt.completed=!0,xt.seek(ke.offset),ke=Wt(ke),ke.began=!0,ke.completed=!0,ke.duration>Oe&&(xt.duration=ke.duration),xt.children.push(ke)}),xt.seek(0),xt.reset(),xt.autoplay&&xt.restart(),xt},xt},Wt.random=function(We,xt){return Math.floor(Math.random()*(xt-We+1))+We},Wt})}).call(N,B(25))},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(3),U=B(4),q=B.n(U),Y={install:function(K,G){G||(G={});var J=new j.a(G);K.component("toasted",q.a),K.toasted=K.prototype.$toasted=J}};typeof window<"u"&&window.Vue&&(window.Toasted=Y),N.default=Y},function(I,N,B){B.d(N,"a",function(){return G});var j=B(1),U=this,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},Y=function(J,Z,ee){return setTimeout(function(){if(ee.cached_options.position&&ee.cached_options.position.includes("bottom"))return void j.a.animateOutBottom(J,function(){ee.remove(J)});j.a.animateOut(J,function(){ee.remove(J)})},Z),!0},K=function(J,Z){return((typeof HTMLElement>"u"?"undefined":q(HTMLElement))==="object"?Z instanceof HTMLElement:Z&&(Z===void 0?"undefined":q(Z))==="object"&&Z!==null&&Z.nodeType===1&&typeof Z.nodeName=="string")?J.appendChild(Z):J.innerHTML=Z,U},G=function(J,Z){var ee=!1;return{el:J,text:function(te){return K(J,te),this},goAway:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:800;return ee=!0,Y(J,te,Z)},remove:function(){Z.remove(J)},disposed:function(){return ee}}}},function(I,N,B){var j=B(12),U=B.n(j),q=B(1),Y=B(7),K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},G=B(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(ce,me){return typeof me!="number"&&(me=0),!(me+ce.length>this.length)&&this.indexOf(ce,me)!==-1}});var J={},Z=null,ee=function(ce){return ce.className=ce.className||null,ce.onComplete=ce.onComplete||null,ce.position=ce.position||"top-right",ce.duration=ce.duration||null,ce.keepOnHover=ce.keepOnHover||!1,ce.theme=ce.theme||"toasted-primary",ce.type=ce.type||"default",ce.containerClass=ce.containerClass||null,ce.fullWidth=ce.fullWidth||!1,ce.icon=ce.icon||null,ce.action=ce.action||null,ce.fitToScreen=ce.fitToScreen||null,ce.closeOnSwipe=ce.closeOnSwipe===void 0||ce.closeOnSwipe,ce.iconPack=ce.iconPack||"material",ce.className&&typeof ce.className=="string"&&(ce.className=ce.className.split(" ")),ce.className||(ce.className=[]),ce.theme&&ce.className.push(ce.theme.trim()),ce.type&&ce.className.push(ce.type),ce.containerClass&&typeof ce.containerClass=="string"&&(ce.containerClass=ce.containerClass.split(" ")),ce.containerClass||(ce.containerClass=[]),ce.position&&ce.containerClass.push(ce.position.trim()),ce.fullWidth&&ce.containerClass.push("full-width"),ce.fitToScreen&&ce.containerClass.push("fit-to-screen"),J=ce,ce},te=function(ce,me){var ue=document.createElement("div");if(ue.classList.add("toasted"),ue.hash=G.generate(),me.className&&me.className.forEach(function(ge){ue.classList.add(ge)}),((typeof HTMLElement>"u"?"undefined":K(HTMLElement))==="object"?ce instanceof HTMLElement:ce&&(ce===void 0?"undefined":K(ce))==="object"&&ce!==null&&ce.nodeType===1&&typeof ce.nodeName=="string")?ue.appendChild(ce):ue.innerHTML=ce,se(me,ue),me.closeOnSwipe){var _e=new U.a(ue,{prevent_default:!1});_e.on("pan",function(ge){var ye=ge.deltaX;ue.classList.contains("panning")||ue.classList.add("panning");var xe=1-Math.abs(ye/80);xe<0&&(xe=0),q.a.animatePanning(ue,ye,xe)}),_e.on("panend",function(ge){var ye=ge.deltaX;Math.abs(ye)>80?q.a.animatePanEnd(ue,function(){typeof me.onComplete=="function"&&me.onComplete(),ue.parentNode&&Z.remove(ue)}):(ue.classList.remove("panning"),q.a.animateReset(ue))})}if(Array.isArray(me.action))me.action.forEach(function(ge){var ye=ne(ge,B.i(Y.a)(ue,Z));ye&&ue.appendChild(ye)});else if(K(me.action)==="object"){var fe=ne(me.action,B.i(Y.a)(ue,Z));fe&&ue.appendChild(fe)}return ue},se=function(ce,me){if(ce.icon){var ue=document.createElement("i");switch(ue.setAttribute("aria-hidden","true"),ce.iconPack){case"fontawesome":ue.classList.add("fa");var _e=ce.icon.name?ce.icon.name:ce.icon;_e.includes("fa-")?ue.classList.add(_e.trim()):ue.classList.add("fa-"+_e.trim());break;case"mdi":ue.classList.add("mdi");var fe=ce.icon.name?ce.icon.name:ce.icon;fe.includes("mdi-")?ue.classList.add(fe.trim()):ue.classList.add("mdi-"+fe.trim());break;case"custom-class":var ge=ce.icon.name?ce.icon.name:ce.icon;typeof ge=="string"?ge.split(" ").forEach(function(xe){ue.classList.add(xe)}):Array.isArray(ge)&&ge.forEach(function(xe){ue.classList.add(xe.trim())});break;case"callback":var ye=ce.icon&&ce.icon instanceof Function?ce.icon:null;ye&&(ue=ye(ue));break;default:ue.classList.add("material-icons"),ue.textContent=ce.icon.name?ce.icon.name:ce.icon}ce.icon.after&&ue.classList.add("after"),re(ce,ue,me)}},re=function(ce,me,ue){ce.icon&&(ce.icon.after&&ce.icon.name?ue.appendChild(me):(ce.icon.name,ue.insertBefore(me,ue.firstChild)))},ne=function(ce,me){if(!ce)return null;var ue=document.createElement("a");if(ue.classList.add("action"),ue.classList.add("ripple"),ce.text&&(ue.text=ce.text),ce.href&&(ue.href=ce.href),ce.target&&(ue.target=ce.target),ce.icon){ue.classList.add("icon");var _e=document.createElement("i");switch(J.iconPack){case"fontawesome":_e.classList.add("fa"),ce.icon.includes("fa-")?_e.classList.add(ce.icon.trim()):_e.classList.add("fa-"+ce.icon.trim());break;case"mdi":_e.classList.add("mdi"),ce.icon.includes("mdi-")?_e.classList.add(ce.icon.trim()):_e.classList.add("mdi-"+ce.icon.trim());break;case"custom-class":typeof ce.icon=="string"?ce.icon.split(" ").forEach(function(fe){ue.classList.add(fe)}):Array.isArray(ce.icon)&&ce.icon.forEach(function(fe){ue.classList.add(fe.trim())});break;default:_e.classList.add("material-icons"),_e.textContent=ce.icon}ue.appendChild(_e)}return ce.class&&(typeof ce.class=="string"?ce.class.split(" ").forEach(function(fe){ue.classList.add(fe)}):Array.isArray(ce.class)&&ce.class.forEach(function(fe){ue.classList.add(fe.trim())})),ce.push&&ue.addEventListener("click",function(fe){if(fe.preventDefault(),!J.router)return void console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs");J.router.push(ce.push),ce.push.dontClose||me.goAway(0)}),ce.onClick&&typeof ce.onClick=="function"&&ue.addEventListener("click",function(fe){ce.onClick&&(fe.preventDefault(),ce.onClick(fe,me))}),ue};N.a=function(ce,me,ue){Z=ce,ue=ee(ue);var _e=Z.container;ue.containerClass.unshift("toasted-container"),_e.className!==ue.containerClass.join(" ")&&(_e.className="",ue.containerClass.forEach(function(le){_e.classList.add(le)}));var fe=te(me,ue);me&&_e.appendChild(fe),fe.style.opacity=0,q.a.animateIn(fe);var ge=ue.duration,ye=void 0;if(ge!==null){var xe=function(){return setInterval(function(){fe.parentNode===null&&window.clearInterval(ye),fe.classList.contains("panning")||(ge-=20),ge<=0&&(q.a.animateOut(fe,function(){typeof ue.onComplete=="function"&&ue.onComplete(),fe.parentNode&&Z.remove(fe)}),window.clearInterval(ye))},20)};ye=xe(),ue.keepOnHover&&(fe.addEventListener("mouseover",function(){window.clearInterval(ye)}),fe.addEventListener("mouseout",function(){ye=xe()}))}return B.i(Y.a)(fe,Z)}},function(I,N,B){N=I.exports=B(10)(),N.push([I.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(I,N){I.exports=function(){var B=[];return B.toString=function(){for(var j=[],U=0;U<this.length;U++){var q=this[U];q[2]?j.push("@media "+q[2]+"{"+q[1]+"}"):j.push(q[1])}return j.join("")},B.i=function(j,U){typeof j=="string"&&(j=[[null,j,""]]);for(var q={},Y=0;Y<this.length;Y++){var K=this[Y][0];typeof K=="number"&&(q[K]=!0)}for(Y=0;Y<j.length;Y++){var G=j[Y];typeof G[0]=="number"&&q[G[0]]||(U&&!G[2]?G[2]=U:U&&(G[2]="("+G[2]+") and ("+U+")"),B.push(G))}},B}},function(I,N,B){function j(q,Y){if(q==null)throw new TypeError("Cannot convert first argument to object");for(var K=Object(q),G=1;G<arguments.length;G++){var J=arguments[G];if(J!=null)for(var Z=Object.keys(Object(J)),ee=0,te=Z.length;ee<te;ee++){var se=Z[ee],re=Object.getOwnPropertyDescriptor(J,se);re!==void 0&&re.enumerable&&(K[se]=J[se])}}return K}function U(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:j})}I.exports={assign:j,polyfill:U}},function(I,N,B){var j;(function(U,q,Y,K){function G(nt,gt,et){return setTimeout(se(nt,et),gt)}function J(nt,gt,et){return!!Array.isArray(nt)&&(Z(nt,et[gt],et),!0)}function Z(nt,gt,et){var nn;if(nt)if(nt.forEach)nt.forEach(gt,et);else if(nt.length!==K)for(nn=0;nn<nt.length;)gt.call(et,nt[nn],nn,nt),nn++;else for(nn in nt)nt.hasOwnProperty(nn)&>.call(et,nt[nn],nn,nt)}function ee(nt,gt,et){var nn="DEPRECATED METHOD: "+gt+` `+et+` AT `;return function(){var xn=new Error("get-stack-trace"),Un=xn&&xn.stack?xn.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Jn=U.console&&(U.console.warn||U.console.log);return Jn&&Jn.call(U.console,nn,Un),nt.apply(this,arguments)}}function te(nt,gt,et){var nn,xn=gt.prototype;nn=nt.prototype=Object.create(xn),nn.constructor=nt,nn._super=xn,et&&Zt(nn,et)}function se(nt,gt){return function(){return nt.apply(gt,arguments)}}function re(nt,gt){return typeof nt==pt?nt.apply(gt&>[0]||K,gt):nt}function ne(nt,gt){return nt===K?gt:nt}function ce(nt,gt,et){Z(fe(gt),function(nn){nt.addEventListener(nn,et,!1)})}function me(nt,gt,et){Z(fe(gt),function(nn){nt.removeEventListener(nn,et,!1)})}function ue(nt,gt){for(;nt;){if(nt==gt)return!0;nt=nt.parentNode}return!1}function _e(nt,gt){return nt.indexOf(gt)>-1}function fe(nt){return nt.trim().split(/\s+/g)}function ge(nt,gt,et){if(nt.indexOf&&!et)return nt.indexOf(gt);for(var nn=0;nn<nt.length;){if(et&&nt[nn][et]==gt||!et&&nt[nn]===gt)return nn;nn++}return-1}function ye(nt){return Array.prototype.slice.call(nt,0)}function xe(nt,gt,et){for(var nn=[],xn=[],Un=0;Un<nt.length;){var Jn=gt?nt[Un][gt]:nt[Un];ge(xn,Jn)<0&&nn.push(nt[Un]),xn[Un]=Jn,Un++}return et&&(nn=gt?nn.sort(function(_r,xr){return _r[gt]>xr[gt]}):nn.sort()),nn}function le(nt,gt){for(var et,nn,xn=gt[0].toUpperCase()+gt.slice(1),Un=0;Un<vn.length;){if(et=vn[Un],(nn=et?et+xn:gt)in nt)return nn;Un++}return K}function be(){return Ct++}function ve(nt){var gt=nt.ownerDocument||nt;return gt.defaultView||gt.parentWindow||U}function we(nt,gt){var et=this;this.manager=nt,this.callback=gt,this.element=nt.element,this.target=nt.options.inputTarget,this.domHandler=function(nn){re(nt.options.enable,[nt])&&et.handler(nn)},this.init()}function Ae(nt){var gt=nt.options.inputClass;return new(gt||(Lt?Gt:fn?En:Tt?Gn:Wt))(nt,Se)}function Se(nt,gt,et){var nn=et.pointers.length,xn=et.changedPointers.length,Un=gt&wn&&nn-xn==0,Jn=gt&(zn|ir)&&nn-xn==0;et.isFirst=!!Un,et.isFinal=!!Jn,Un&&(nt.session={}),et.eventType=gt,Pe(nt,et),nt.emit("hammer.input",et),nt.recognize(et),nt.session.prevInput=et}function Pe(nt,gt){var et=nt.session,nn=gt.pointers,xn=nn.length;et.firstInput||(et.firstInput=ze(gt)),xn>1&&!et.firstMultiple?et.firstMultiple=ze(gt):xn===1&&(et.firstMultiple=!1);var Un=et.firstInput,Jn=et.firstMultiple,_r=Jn?Jn.center:Un.center,xr=gt.center=Ze(nn);gt.timeStamp=Ht(),gt.deltaTime=gt.timeStamp-Un.timeStamp,gt.angle=Dt(_r,xr),gt.distance=Ve(_r,xr),Me(et,gt),gt.offsetDirection=Ye(gt.deltaX,gt.deltaY);var Nr=ft(gt.deltaTime,gt.deltaX,gt.deltaY);gt.overallVelocityX=Nr.x,gt.overallVelocityY=Nr.y,gt.overallVelocity=qt(Nr.x)>qt(Nr.y)?Nr.x:Nr.y,gt.scale=Jn?Vt(Jn.pointers,nn):1,gt.rotation=Jn?Nt(Jn.pointers,nn):0,gt.maxPointers=et.prevInput?gt.pointers.length>et.prevInput.maxPointers?gt.pointers.length:et.prevInput.maxPointers:gt.pointers.length,Be(et,gt);var Mr=nt.element;ue(gt.srcEvent.target,Mr)&&(Mr=gt.srcEvent.target),gt.target=Mr}function Me(nt,gt){var et=gt.center,nn=nt.offsetDelta||{},xn=nt.prevDelta||{},Un=nt.prevInput||{};gt.eventType!==wn&&Un.eventType!==zn||(xn=nt.prevDelta={x:Un.deltaX||0,y:Un.deltaY||0},nn=nt.offsetDelta={x:et.x,y:et.y}),gt.deltaX=xn.x+(et.x-nn.x),gt.deltaY=xn.y+(et.y-nn.y)}function Be(nt,gt){var et,nn,xn,Un,Jn=nt.lastInterval||gt,_r=gt.timeStamp-Jn.timeStamp;if(gt.eventType!=ir&&(_r>hn||Jn.velocity===K)){var xr=gt.deltaX-Jn.deltaX,Nr=gt.deltaY-Jn.deltaY,Mr=ft(_r,xr,Nr);nn=Mr.x,xn=Mr.y,et=qt(Mr.x)>qt(Mr.y)?Mr.x:Mr.y,Un=Ye(xr,Nr),nt.lastInterval=gt}else et=Jn.velocity,nn=Jn.velocityX,xn=Jn.velocityY,Un=Jn.direction;gt.velocity=et,gt.velocityX=nn,gt.velocityY=xn,gt.direction=Un}function ze(nt){for(var gt=[],et=0;et<nt.pointers.length;)gt[et]={clientX:Pt(nt.pointers[et].clientX),clientY:Pt(nt.pointers[et].clientY)},et++;return{timeStamp:Ht(),pointers:gt,center:Ze(gt),deltaX:nt.deltaX,deltaY:nt.deltaY}}function Ze(nt){var gt=nt.length;if(gt===1)return{x:Pt(nt[0].clientX),y:Pt(nt[0].clientY)};for(var et=0,nn=0,xn=0;xn<gt;)et+=nt[xn].clientX,nn+=nt[xn].clientY,xn++;return{x:Pt(et/gt),y:Pt(nn/gt)}}function ft(nt,gt,et){return{x:gt/nt||0,y:et/nt||0}}function Ye(nt,gt){return nt===gt?Ir:qt(nt)>=qt(gt)?nt<0?Er:Dr:gt<0?Ur:Ke}function Ve(nt,gt,et){et||(et=_t);var nn=gt[et[0]]-nt[et[0]],xn=gt[et[1]]-nt[et[1]];return Math.sqrt(nn*nn+xn*xn)}function Dt(nt,gt,et){et||(et=_t);var nn=gt[et[0]]-nt[et[0]],xn=gt[et[1]]-nt[et[1]];return 180*Math.atan2(xn,nn)/Math.PI}function Nt(nt,gt){return Dt(gt[1],gt[0],Xt)+Dt(nt[1],nt[0],Xt)}function Vt(nt,gt){return Ve(gt[0],gt[1],Xt)/Ve(nt[0],nt[1],Xt)}function Wt(){this.evEl=Tn,this.evWin=In,this.pressed=!1,we.apply(this,arguments)}function Gt(){this.evEl=Rr,this.evWin=tr,we.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function tn(){this.evTarget=kr,this.evWin=sr,this.started=!1,we.apply(this,arguments)}function Qt(nt,gt){var et=ye(nt.touches),nn=ye(nt.changedTouches);return gt&(zn|ir)&&(et=xe(et.concat(nn),"identifier",!0)),[et,nn]}function En(){this.evTarget=mr,this.targetIds={},we.apply(this,arguments)}function kn(nt,gt){var et=ye(nt.touches),nn=this.targetIds;if(gt&(wn|cr)&&et.length===1)return nn[et[0].identifier]=!0,[et,et];var xn,Un,Jn=ye(nt.changedTouches),_r=[],xr=this.target;if(Un=et.filter(function(Nr){return ue(Nr.target,xr)}),gt===wn)for(xn=0;xn<Un.length;)nn[Un[xn].identifier]=!0,xn++;for(xn=0;xn<Jn.length;)nn[Jn[xn].identifier]&&_r.push(Jn[xn]),gt&(zn|ir)&&delete nn[Jn[xn].identifier],xn++;return _r.length?[xe(Un.concat(_r),"identifier",!0),_r]:void 0}function Gn(){we.apply(this,arguments);var nt=se(this.handler,this);this.touch=new En(this.manager,nt),this.mouse=new Wt(this.manager,nt),this.primaryTouch=null,this.lastTouches=[]}function An(nt,gt){nt&wn?(this.primaryTouch=gt.changedPointers[0].identifier,jn.call(this,gt)):nt&(zn|ir)&&jn.call(this,gt)}function jn(nt){var gt=nt.changedPointers[0];if(gt.identifier===this.primaryTouch){var et={x:gt.clientX,y:gt.clientY};this.lastTouches.push(et);var nn=this.lastTouches,xn=function(){var Un=nn.indexOf(et);Un>-1&&nn.splice(Un,1)};setTimeout(xn,br)}}function Mn(nt){for(var gt=nt.srcEvent.clientX,et=nt.srcEvent.clientY,nn=0;nn<this.lastTouches.length;nn++){var xn=this.lastTouches[nn],Un=Math.abs(gt-xn.x),Jn=Math.abs(et-xn.y);if(Un<=hr&&Jn<=hr)return!0}return!1}function Ln(nt,gt){this.manager=nt,this.set(gt)}function Et(nt){if(_e(nt,wt))return wt;var gt=_e(nt,Bt),et=_e(nt,Yt);return gt&&et?wt:gt||et?gt?Bt:Yt:_e(nt,bt)?bt:Qe}function We(nt){this.options=Zt({},this.defaults,nt||{}),this.id=be(),this.manager=null,this.options.enable=ne(this.options.enable,!0),this.state=en,this.simultaneous={},this.requireFail=[]}function xt(nt){return nt&or?"cancel":nt&cn?"end":nt&Sn?"move":nt&pn?"start":""}function Ue(nt){return nt==Ke?"down":nt==Ur?"up":nt==Er?"left":nt==Dr?"right":""}function Oe(nt,gt){var et=gt.manager;return et?et.get(nt):nt}function ke(){We.apply(this,arguments)}function $e(){ke.apply(this,arguments),this.pX=null,this.pY=null}function Ge(){ke.apply(this,arguments)}function rt(){We.apply(this,arguments),this._timer=null,this._input=null}function ut(){ke.apply(this,arguments)}function ct(){ke.apply(this,arguments)}function it(){We.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ot(nt,gt){return gt=gt||{},gt.recognizers=ne(gt.recognizers,ot.defaults.preset),new Ot(nt,gt)}function Ot(nt,gt){this.options=Zt({},ot.defaults,gt||{}),this.options.inputTarget=this.options.inputTarget||nt,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=nt,this.input=Ae(this),this.touchAction=new Ln(this,this.options.touchAction),dn(this,!0),Z(this.options.recognizers,function(et){var nn=this.add(new et[0](et[1]));et[2]&&nn.recognizeWith(et[2]),et[3]&&nn.requireFailure(et[3])},this)}function dn(nt,gt){var et=nt.element;if(et.style){var nn;Z(nt.options.cssProps,function(xn,Un){nn=le(et.style,Un),gt?(nt.oldCssProps[nn]=et.style[nn],et.style[nn]=xn):et.style[nn]=nt.oldCssProps[nn]||""}),gt||(nt.oldCssProps={})}}function Fn(nt,gt){var et=q.createEvent("Event");et.initEvent(nt,!0,!0),et.gesture=gt,gt.target.dispatchEvent(et)}var Zt,vn=["","webkit","Moz","MS","ms","o"],lt=q.createElement("div"),pt="function",Pt=Math.round,qt=Math.abs,Ht=Date.now;Zt=typeof Object.assign!="function"?function(nt){if(nt===K||nt===null)throw new TypeError("Cannot convert undefined or null to object");for(var gt=Object(nt),et=1;et<arguments.length;et++){var nn=arguments[et];if(nn!==K&&nn!==null)for(var xn in nn)nn.hasOwnProperty(xn)&&(gt[xn]=nn[xn])}return gt}:Object.assign;var mn=ee(function(nt,gt,et){for(var nn=Object.keys(gt),xn=0;xn<nn.length;)(!et||et&&nt[nn[xn]]===K)&&(nt[nn[xn]]=gt[nn[xn]]),xn++;return nt},"extend","Use `assign`."),Yn=ee(function(nt,gt){return mn(nt,gt,!0)},"merge","Use `assign`."),Ct=1,ht=/mobile|tablet|ip(ad|hone|od)|android/i,Tt="ontouchstart"in U,Lt=le(U,"PointerEvent")!==K,fn=Tt&&ht.test(navigator.userAgent),hn=25,wn=1,cr=2,zn=4,ir=8,Ir=1,Er=2,Dr=4,Ur=8,Ke=16,mt=Er|Dr,dt=Ur|Ke,Ne=mt|dt,_t=["x","y"],Xt=["clientX","clientY"];we.prototype={handler:function(){},init:function(){this.evEl&&ce(this.element,this.evEl,this.domHandler),this.evTarget&&ce(this.target,this.evTarget,this.domHandler),this.evWin&&ce(ve(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&me(this.element,this.evEl,this.domHandler),this.evTarget&&me(this.target,this.evTarget,this.domHandler),this.evWin&&me(ve(this.element),this.evWin,this.domHandler)}};var sn={mousedown:wn,mousemove:cr,mouseup:zn},Tn="mousedown",In="mousemove mouseup";te(Wt,we,{handler:function(nt){var gt=sn[nt.type];gt&wn&&nt.button===0&&(this.pressed=!0),gt&cr&&nt.which!==1&&(gt=zn),this.pressed&&(gt&zn&&(this.pressed=!1),this.callback(this.manager,gt,{pointers:[nt],changedPointers:[nt],pointerType:"mouse",srcEvent:nt}))}});var Qn={pointerdown:wn,pointermove:cr,pointerup:zn,pointercancel:ir,pointerout:ir},Xn={2:"touch",3:"pen",4:"mouse",5:"kinect"},Rr="pointerdown",tr="pointermove pointerup pointercancel";U.MSPointerEvent&&!U.PointerEvent&&(Rr="MSPointerDown",tr="MSPointerMove MSPointerUp MSPointerCancel"),te(Gt,we,{handler:function(nt){var gt=this.store,et=!1,nn=nt.type.toLowerCase().replace("ms",""),xn=Qn[nn],Un=Xn[nt.pointerType]||nt.pointerType,Jn=Un=="touch",_r=ge(gt,nt.pointerId,"pointerId");xn&wn&&(nt.button===0||Jn)?_r<0&&(gt.push(nt),_r=gt.length-1):xn&(zn|ir)&&(et=!0),_r<0||(gt[_r]=nt,this.callback(this.manager,xn,{pointers:gt,changedPointers:[nt],pointerType:Un,srcEvent:nt}),et&>.splice(_r,1))}});var fr={touchstart:wn,touchmove:cr,touchend:zn,touchcancel:ir},kr="touchstart",sr="touchstart touchmove touchend touchcancel";te(tn,we,{handler:function(nt){var gt=fr[nt.type];if(gt===wn&&(this.started=!0),this.started){var et=Qt.call(this,nt,gt);gt&(zn|ir)&&et[0].length-et[1].length==0&&(this.started=!1),this.callback(this.manager,gt,{pointers:et[0],changedPointers:et[1],pointerType:"touch",srcEvent:nt})}}});var Pn={touchstart:wn,touchmove:cr,touchend:zn,touchcancel:ir},mr="touchstart touchmove touchend touchcancel";te(En,we,{handler:function(nt){var gt=Pn[nt.type],et=kn.call(this,nt,gt);et&&this.callback(this.manager,gt,{pointers:et[0],changedPointers:et[1],pointerType:"touch",srcEvent:nt})}});var br=2500,hr=25;te(Gn,we,{handler:function(nt,gt,et){var nn=et.pointerType=="touch",xn=et.pointerType=="mouse";if(!(xn&&et.sourceCapabilities&&et.sourceCapabilities.firesTouchEvents)){if(nn)An.call(this,gt,et);else if(xn&&Mn.call(this,et))return;this.callback(nt,gt,et)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Bn=le(lt.style,"touchAction"),er=Bn!==K,Qe="auto",bt="manipulation",wt="none",Bt="pan-x",Yt="pan-y",Mt=function(){if(!er)return!1;var nt={},gt=U.CSS&&U.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(et){nt[et]=!gt||U.CSS.supports("touch-action",et)}),nt}();Ln.prototype={set:function(nt){nt=="compute"&&(nt=this.compute()),er&&this.manager.element.style&&Mt[nt]&&(this.manager.element.style[Bn]=nt),this.actions=nt.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var nt=[];return Z(this.manager.recognizers,function(gt){re(gt.options.enable,[gt])&&(nt=nt.concat(gt.getTouchAction()))}),Et(nt.join(" "))},preventDefaults:function(nt){var gt=nt.srcEvent,et=nt.offsetDirection;if(this.manager.session.prevented)return void gt.preventDefault();var nn=this.actions,xn=_e(nn,wt)&&!Mt[wt],Un=_e(nn,Yt)&&!Mt[Yt],Jn=_e(nn,Bt)&&!Mt[Bt];if(xn){var _r=nt.pointers.length===1,xr=nt.distance<2,Nr=nt.deltaTime<250;if(_r&&xr&&Nr)return}return Jn&&Un?void 0:xn||Un&&et&mt||Jn&&et&dt?this.preventSrc(gt):void 0},preventSrc:function(nt){this.manager.session.prevented=!0,nt.preventDefault()}};var en=1,pn=2,Sn=4,cn=8,ur=cn,or=16;We.prototype={defaults:{},set:function(nt){return Zt(this.options,nt),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(nt){if(J(nt,"recognizeWith",this))return this;var gt=this.simultaneous;return nt=Oe(nt,this),gt[nt.id]||(gt[nt.id]=nt,nt.recognizeWith(this)),this},dropRecognizeWith:function(nt){return J(nt,"dropRecognizeWith",this)?this:(nt=Oe(nt,this),delete this.simultaneous[nt.id],this)},requireFailure:function(nt){if(J(nt,"requireFailure",this))return this;var gt=this.requireFail;return nt=Oe(nt,this),ge(gt,nt)===-1&&(gt.push(nt),nt.requireFailure(this)),this},dropRequireFailure:function(nt){if(J(nt,"dropRequireFailure",this))return this;nt=Oe(nt,this);var gt=ge(this.requireFail,nt);return gt>-1&&this.requireFail.splice(gt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(nt){return!!this.simultaneous[nt.id]},emit:function(nt){function gt(xn){et.manager.emit(xn,nt)}var et=this,nn=this.state;nn<cn&>(et.options.event+xt(nn)),gt(et.options.event),nt.additionalEvent&>(nt.additionalEvent),nn>=cn&>(et.options.event+xt(nn))},tryEmit:function(nt){if(this.canEmit())return this.emit(nt);this.state=32},canEmit:function(){for(var nt=0;nt<this.requireFail.length;){if(!(this.requireFail[nt].state&(32|en)))return!1;nt++}return!0},recognize:function(nt){var gt=Zt({},nt);if(!re(this.options.enable,[this,gt]))return this.reset(),void(this.state=32);this.state&(ur|or|32)&&(this.state=en),this.state=this.process(gt),this.state&(pn|Sn|cn|or)&&this.tryEmit(gt)},process:function(nt){},getTouchAction:function(){},reset:function(){}},te(ke,We,{defaults:{pointers:1},attrTest:function(nt){var gt=this.options.pointers;return gt===0||nt.pointers.length===gt},process:function(nt){var gt=this.state,et=nt.eventType,nn=gt&(pn|Sn),xn=this.attrTest(nt);return nn&&(et&ir||!xn)?gt|or:nn||xn?et&zn?gt|cn:gt&pn?gt|Sn:pn:32}}),te($e,ke,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ne},getTouchAction:function(){var nt=this.options.direction,gt=[];return nt&mt&>.push(Yt),nt&dt&>.push(Bt),gt},directionTest:function(nt){var gt=this.options,et=!0,nn=nt.distance,xn=nt.direction,Un=nt.deltaX,Jn=nt.deltaY;return xn>.direction||(gt.direction&mt?(xn=Un===0?Ir:Un<0?Er:Dr,et=Un!=this.pX,nn=Math.abs(nt.deltaX)):(xn=Jn===0?Ir:Jn<0?Ur:Ke,et=Jn!=this.pY,nn=Math.abs(nt.deltaY))),nt.direction=xn,et&&nn>gt.threshold&&xn>.direction},attrTest:function(nt){return ke.prototype.attrTest.call(this,nt)&&(this.state&pn||!(this.state&pn)&&this.directionTest(nt))},emit:function(nt){this.pX=nt.deltaX,this.pY=nt.deltaY;var gt=Ue(nt.direction);gt&&(nt.additionalEvent=this.options.event+gt),this._super.emit.call(this,nt)}}),te(Ge,ke,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(nt){return this._super.attrTest.call(this,nt)&&(Math.abs(nt.scale-1)>this.options.threshold||this.state&pn)},emit:function(nt){if(nt.scale!==1){var gt=nt.scale<1?"in":"out";nt.additionalEvent=this.options.event+gt}this._super.emit.call(this,nt)}}),te(rt,We,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Qe]},process:function(nt){var gt=this.options,et=nt.pointers.length===gt.pointers,nn=nt.distance<gt.threshold,xn=nt.deltaTime>gt.time;if(this._input=nt,!nn||!et||nt.eventType&(zn|ir)&&!xn)this.reset();else if(nt.eventType&wn)this.reset(),this._timer=G(function(){this.state=ur,this.tryEmit()},gt.time,this);else if(nt.eventType&zn)return ur;return 32},reset:function(){clearTimeout(this._timer)},emit:function(nt){this.state===ur&&(nt&&nt.eventType&zn?this.manager.emit(this.options.event+"up",nt):(this._input.timeStamp=Ht(),this.manager.emit(this.options.event,this._input)))}}),te(ut,ke,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(nt){return this._super.attrTest.call(this,nt)&&(Math.abs(nt.rotation)>this.options.threshold||this.state&pn)}}),te(ct,ke,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:mt|dt,pointers:1},getTouchAction:function(){return $e.prototype.getTouchAction.call(this)},attrTest:function(nt){var gt,et=this.options.direction;return et&(mt|dt)?gt=nt.overallVelocity:et&mt?gt=nt.overallVelocityX:et&dt&&(gt=nt.overallVelocityY),this._super.attrTest.call(this,nt)&&et&nt.offsetDirection&&nt.distance>this.options.threshold&&nt.maxPointers==this.options.pointers&&qt(gt)>this.options.velocity&&nt.eventType&zn},emit:function(nt){var gt=Ue(nt.offsetDirection);gt&&this.manager.emit(this.options.event+gt,nt),this.manager.emit(this.options.event,nt)}}),te(it,We,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[bt]},process:function(nt){var gt=this.options,et=nt.pointers.length===gt.pointers,nn=nt.distance<gt.threshold,xn=nt.deltaTime<gt.time;if(this.reset(),nt.eventType&wn&&this.count===0)return this.failTimeout();if(nn&&xn&&et){if(nt.eventType!=zn)return this.failTimeout();var Un=!this.pTime||nt.timeStamp-this.pTime<gt.interval,Jn=!this.pCenter||Ve(this.pCenter,nt.center)<gt.posThreshold;if(this.pTime=nt.timeStamp,this.pCenter=nt.center,Jn&&Un?this.count+=1:this.count=1,this._input=nt,this.count%gt.taps===0)return this.hasRequireFailures()?(this._timer=G(function(){this.state=ur,this.tryEmit()},gt.interval,this),pn):ur}return 32},failTimeout:function(){return this._timer=G(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ur&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ot.VERSION="2.0.7",ot.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ut,{enable:!1}],[Ge,{enable:!1},["rotate"]],[ct,{direction:mt}],[$e,{direction:mt},["swipe"]],[it],[it,{event:"doubletap",taps:2},["tap"]],[rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Ot.prototype={set:function(nt){return Zt(this.options,nt),nt.touchAction&&this.touchAction.update(),nt.inputTarget&&(this.input.destroy(),this.input.target=nt.inputTarget,this.input.init()),this},stop:function(nt){this.session.stopped=nt?2:1},recognize:function(nt){var gt=this.session;if(!gt.stopped){this.touchAction.preventDefaults(nt);var et,nn=this.recognizers,xn=gt.curRecognizer;(!xn||xn&&xn.state&ur)&&(xn=gt.curRecognizer=null);for(var Un=0;Un<nn.length;)et=nn[Un],gt.stopped===2||xn&&et!=xn&&!et.canRecognizeWith(xn)?et.reset():et.recognize(nt),!xn&&et.state&(pn|Sn|cn)&&(xn=gt.curRecognizer=et),Un++}},get:function(nt){if(nt instanceof We)return nt;for(var gt=this.recognizers,et=0;et<gt.length;et++)if(gt[et].options.event==nt)return gt[et];return null},add:function(nt){if(J(nt,"add",this))return this;var gt=this.get(nt.options.event);return gt&&this.remove(gt),this.recognizers.push(nt),nt.manager=this,this.touchAction.update(),nt},remove:function(nt){if(J(nt,"remove",this))return this;if(nt=this.get(nt)){var gt=this.recognizers,et=ge(gt,nt);et!==-1&&(gt.splice(et,1),this.touchAction.update())}return this},on:function(nt,gt){if(nt!==K&>!==K){var et=this.handlers;return Z(fe(nt),function(nn){et[nn]=et[nn]||[],et[nn].push(gt)}),this}},off:function(nt,gt){if(nt!==K){var et=this.handlers;return Z(fe(nt),function(nn){gt?et[nn]&&et[nn].splice(ge(et[nn],gt),1):delete et[nn]}),this}},emit:function(nt,gt){this.options.domEvents&&Fn(nt,gt);var et=this.handlers[nt]&&this.handlers[nt].slice();if(et&&et.length){gt.type=nt,gt.preventDefault=function(){gt.srcEvent.preventDefault()};for(var nn=0;nn<et.length;)et[nn](gt),nn++}},destroy:function(){this.element&&dn(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Zt(ot,{INPUT_START:wn,INPUT_MOVE:cr,INPUT_END:zn,INPUT_CANCEL:ir,STATE_POSSIBLE:en,STATE_BEGAN:pn,STATE_CHANGED:Sn,STATE_ENDED:cn,STATE_RECOGNIZED:ur,STATE_CANCELLED:or,STATE_FAILED:32,DIRECTION_NONE:Ir,DIRECTION_LEFT:Er,DIRECTION_RIGHT:Dr,DIRECTION_UP:Ur,DIRECTION_DOWN:Ke,DIRECTION_HORIZONTAL:mt,DIRECTION_VERTICAL:dt,DIRECTION_ALL:Ne,Manager:Ot,Input:we,TouchAction:Ln,TouchInput:En,MouseInput:Wt,PointerEventInput:Gt,TouchMouseInput:Gn,SingleTouchInput:tn,Recognizer:We,AttrRecognizer:ke,Tap:it,Pan:$e,Swipe:ct,Pinch:Ge,Rotate:ut,Press:rt,on:ce,off:me,each:Z,merge:Yn,extend:mn,assign:Zt,inherit:te,bindFn:se,prefixed:le}),(U!==void 0?U:typeof self<"u"?self:{}).Hammer=ot,(j=(function(){return ot}).call(N,B,N,I))!==K&&(I.exports=j)})(window,document)},function(I,N){I.exports=function(B,j,U){for(var q=(2<<Math.log(j.length-1)/Math.LN2)-1,Y=-~(1.6*q*U/j.length),K="";;)for(var G=B(Y),J=Y;J--;)if(K+=j[G[J]&q]||"",K.length===+U)return K}},function(I,N,B){function j(J){var Z="",ee=Math.floor(.001*(Date.now()-K));return ee===q?U++:(U=0,q=ee),Z+=Y(G),Z+=Y(J),U>0&&(Z+=Y(U)),Z+=Y(ee)}var U,q,Y=B(15),K=(B(0),1567752802062),G=7;I.exports=j},function(I,N,B){function j(K){for(var G,J=0,Z="";!G;)Z+=Y(q,U.get(),1),G=K<Math.pow(16,J+1),J++;return Z}var U=B(0),q=B(18),Y=B(13);I.exports=j},function(I,N,B){function j(ee){return K.seed(ee),I.exports}function U(ee){return Z=ee,I.exports}function q(ee){return ee!==void 0&&K.characters(ee),K.shuffled()}function Y(){return G(Z)}var K=B(0),G=B(14),J=B(17),Z=B(20)||0;I.exports=Y,I.exports.generate=Y,I.exports.seed=j,I.exports.worker=U,I.exports.characters=q,I.exports.isValid=J},function(I,N,B){function j(q){return!(!q||typeof q!="string"||q.length<6)&&!new RegExp("[^"+U.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(q)}var U=B(0);I.exports=j},function(I,N,B){var j,U=typeof window=="object"&&(window.crypto||window.msCrypto);j=U&&U.getRandomValues?function(q){return U.getRandomValues(new Uint8Array(q))}:function(q){for(var Y=[],K=0;K<q;K++)Y.push(Math.floor(256*Math.random()));return Y},I.exports=j},function(I,N,B){function j(){return(q=(9301*q+49297)%233280)/233280}function U(Y){q=Y}var q=1;I.exports={nextValue:j,seed:U}},function(I,N,B){I.exports=0},function(I,N){I.exports=function(B,j,U,q){var Y,K=B=B||{},G=typeof B.default;G!=="object"&&G!=="function"||(Y=B,K=B.default);var J=typeof K=="function"?K.options:K;if(j&&(J.render=j.render,J.staticRenderFns=j.staticRenderFns),U&&(J._scopeId=U),q){var Z=Object.create(J.computed||null);Object.keys(q).forEach(function(ee){var te=q[ee];Z[ee]=function(){return te}}),J.computed=Z}return{esModule:Y,exports:K,options:J}}},function(I,N,B){var j=B(9);typeof j=="string"&&(j=[[I.i,j,""]]),j.locals&&(I.exports=j.locals),B(23)("df0682cc",j,!0,{})},function(I,N,B){function j(fe){for(var ge=0;ge<fe.length;ge++){var ye=fe[ge],xe=Z[ye.id];if(xe){xe.refs++;for(var le=0;le<xe.parts.length;le++)xe.parts[le](ye.parts[le]);for(;le<ye.parts.length;le++)xe.parts.push(q(ye.parts[le]));xe.parts.length>ye.parts.length&&(xe.parts.length=ye.parts.length)}else{for(var be=[],le=0;le<ye.parts.length;le++)be.push(q(ye.parts[le]));Z[ye.id]={id:ye.id,refs:1,parts:be}}}}function U(){var fe=document.createElement("style");return fe.type="text/css",ee.appendChild(fe),fe}function q(fe){var ge,ye,xe=document.querySelector("style["+me+'~="'+fe.id+'"]');if(xe){if(re)return ne;xe.parentNode.removeChild(xe)}if(ue){var le=se++;xe=te||(te=U()),ge=Y.bind(null,xe,le,!1),ye=Y.bind(null,xe,le,!0)}else xe=U(),ge=K.bind(null,xe),ye=function(){xe.parentNode.removeChild(xe)};return ge(fe),function(be){if(be){if(be.css===fe.css&&be.media===fe.media&&be.sourceMap===fe.sourceMap)return;ge(fe=be)}else ye()}}function Y(fe,ge,ye,xe){var le=ye?"":xe.css;if(fe.styleSheet)fe.styleSheet.cssText=_e(ge,le);else{var be=document.createTextNode(le),ve=fe.childNodes;ve[ge]&&fe.removeChild(ve[ge]),ve.length?fe.insertBefore(be,ve[ge]):fe.appendChild(be)}}function K(fe,ge){var ye=ge.css,xe=ge.media,le=ge.sourceMap;if(xe&&fe.setAttribute("media",xe),ce.ssrId&&fe.setAttribute(me,ge.id),le&&(ye+=` /*# sourceURL=`+le.sources[0]+" */",ye+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(le))))+" */"),fe.styleSheet)fe.styleSheet.cssText=ye;else{for(;fe.firstChild;)fe.removeChild(fe.firstChild);fe.appendChild(document.createTextNode(ye))}}var G=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!G)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var J=B(24),Z={},ee=G&&(document.head||document.getElementsByTagName("head")[0]),te=null,se=0,re=!1,ne=function(){},ce=null,me="data-vue-ssr-id",ue=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());I.exports=function(fe,ge,ye,xe){re=ye,ce=xe||{};var le=J(fe,ge);return j(le),function(be){for(var ve=[],we=0;we<le.length;we++){var Ae=le[we],Se=Z[Ae.id];Se.refs--,ve.push(Se)}be?(le=J(fe,be),j(le)):le=[];for(var we=0;we<ve.length;we++){var Se=ve[we];if(Se.refs===0){for(var Pe=0;Pe<Se.parts.length;Pe++)Se.parts[Pe]();delete Z[Se.id]}}}};var _e=function(){var fe=[];return function(ge,ye){return fe[ge]=ye,fe.filter(Boolean).join(` `)}}()},function(I,N){I.exports=function(B,j){for(var U=[],q={},Y=0;Y<j.length;Y++){var K=j[Y],G=K[0],J=K[1],Z=K[2],ee=K[3],te={id:B+":"+Y,css:J,media:Z,sourceMap:ee};q[G]?q[G].parts.push(te):U.push(q[G]={id:G,parts:[te]})}return U}},function(I,N){var B;B=function(){return this}();try{B=B||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(B=window)}I.exports=B}])})})(vueToasted_min);var vueToasted_minExports=vueToasted_min.exports;const Toasted=getDefaultExportFromCjs$1(vueToasted_minExports);Vue$3.use(Toasted,{position:"bottom-left",duration:3500,theme:"statamic",action:{text:"×",onClick:(M,$)=>{$.goAway(0)}}});const Toast={data:{toast:null,flash:null,initialToasts:null},created(){this.flash=Statamic.$config.get("flash"),this.initialToasts=Statamic.$config.get("toasts"),this.$events.$on("toast.success",this.setFlashSuccess),this.$events.$on("toast.error",this.setFlashError),this.$events.$on("toast.info",this.setFlashInfo)},mounted(){this.flashMessages(this.flash),this.flashMessages(this.initialToasts)},methods:{flashMessages(M){M.forEach(({type:$,message:I,duration:N})=>{const B={duration:N};switch($){case"error":this.$toast.error(I,B);break;case"success":this.$toast.success(I,B);break;default:this.$toast.info(I,B)}})},setFlashInfo(M,$){$={iconPack:"callback",icon:I=>(I.innerHTML='<svg viewBox="0 0 24 24" width="24" height="24"><g transform="matrix(1,0,0,1,0,0)"><path d="M 14.25,16.5H13.5c-0.828,0-1.5-0.672-1.5-1.5v-3.75c0-0.414-0.336-0.75-0.75-0.75H10.5 " stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M 11.625,6.75 c-0.207,0-0.375,0.168-0.375,0.375S11.418,7.5,11.625,7.5S12,7.332,12,7.125S11.832,6.75,11.625,6.75L11.625,6.75 " stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M 12,0.75 c6.213,0,11.25,5.037,11.25,11.25S18.213,23.25,12,23.25S0.75,18.213,0.75,12S5.787,0.75,12,0.75z" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',I),...$},this.$toasted.show(M,this.normalizeToastOptions($))},setFlashSuccess(M,$){$={iconPack:"callback",icon:I=>(I.innerHTML='<svg viewBox="0 0 24 24" height="12" width="12"><g transform="matrix(1,0,0,1,0,0)"><path d="M23.146,5.4l-2.792-2.8c-0.195-0.196-0.512-0.196-0.707-0.001c0,0-0.001,0.001-0.001,0.001L7.854,14.4 c-0.195,0.196-0.512,0.196-0.707,0.001c0,0-0.001-0.001-0.001-0.001l-2.792-2.8c-0.195-0.196-0.512-0.196-0.707-0.001 c0,0-0.001,0.001-0.001,0.001l-2.792,2.8c-0.195,0.195-0.195,0.512,0,0.707L7.146,21.4c0.195,0.196,0.512,0.196,0.707,0.001 c0,0,0.001-0.001,0.001-0.001L23.146,6.1C23.337,5.906,23.337,5.594,23.146,5.4z" stroke="none" fill="currentColor" stroke-width="0" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',I),...$},this.$toasted.success(M,this.normalizeToastOptions($))},setFlashError(M,$){$={iconPack:"callback",icon:I=>(I.innerHTML='<svg viewBox="0 0 24 24" height="18" width="18"><g transform="matrix(1,0,0,1,0,0)"><path d="M11.983,0C8.777,0.052,5.72,1.365,3.473,3.653C1.202,5.914-0.052,9.002,0,12.207C-0.008,18.712,5.26,23.992,11.765,24 c0.012,0,0.023,0,0.035,0h0.214c6.678-0.069,12.04-5.531,11.986-12.209l0,0c0.015-6.498-5.24-11.778-11.738-11.794 C12.169-0.003,12.076-0.002,11.983,0z M10.5,16.542c-0.03-0.815,0.606-1.499,1.421-1.529c0.009,0,0.019-0.001,0.028-0.001h0.027 c0.82,0.002,1.492,0.651,1.523,1.47c0.03,0.814-0.605,1.499-1.419,1.529c-0.01,0-0.02,0.001-0.03,0.001h-0.027 C11.203,18.009,10.532,17.361,10.5,16.542z M11,12.5v-6c0-0.552,0.448-1,1-1s1,0.448,1,1v6c0,0.552-0.448,1-1,1S11,13.052,11,12.5z" stroke="none" fill="currentColor" stroke-width="0" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',I),...$},this.$toasted.error(M,this.normalizeToastOptions($))},normalizeToastOptions(M){return M.duration||delete M.duration,M}}};function _typeof$2(M){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$2(M)}function _classCallCheck(M,$){if(!(M instanceof $))throw new TypeError("Cannot call a class as a function")}function _defineProperties(M,$){for(var I=0;I<$.length;I++){var N=$[I];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function _createClass(M,$,I){return $&&_defineProperties(M.prototype,$),I&&_defineProperties(M,I),Object.defineProperty(M,"prototype",{writable:!1}),M}function _extends(){return _extends=Object.assign||function(M){for(var $=1;$<arguments.length;$++){var I=arguments[$];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(M[N]=I[N])}return M},_extends.apply(this,arguments)}function _inherits(M,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create($&&$.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),$&&_setPrototypeOf(M,$)}function _getPrototypeOf(M){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},_getPrototypeOf(M)}function _setPrototypeOf(M,$){return _setPrototypeOf=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},_setPrototypeOf(M,$)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _assertThisInitialized(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function _possibleConstructorReturn(M,$){if($&&(typeof $=="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(M)}function _createSuper(M){var $=_isNativeReflectConstruct();return function(){var N=_getPrototypeOf(M),B;if($){var j=_getPrototypeOf(this).constructor;B=Reflect.construct(N,arguments,j)}else B=N.apply(this,arguments);return _possibleConstructorReturn(this,B)}}var Channel=function(){function M(){_classCallCheck(this,M)}return _createClass(M,[{key:"listenForWhisper",value:function(I,N){return this.listen(".client-"+I,N)}},{key:"notification",value:function(I){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",I)}},{key:"stopListeningForWhisper",value:function(I,N){return this.stopListening(".client-"+I,N)}}]),M}(),EventFormatter=function(){function M($){_classCallCheck(this,M),this.namespace=$}return _createClass(M,[{key:"format",value:function(I){return I.charAt(0)==="."||I.charAt(0)==="\\"?I.substr(1):(this.namespace&&(I=this.namespace+"."+I),I.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(I){this.namespace=I}}]),M}(),PusherChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(N,B,j){var U;return _classCallCheck(this,I),U=$.call(this),U.name=B,U.pusher=N,U.options=j,U.eventFormatter=new EventFormatter(U.options.namespace),U.subscribe(),U}return _createClass(I,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(B,j){return this.on(this.eventFormatter.format(B),j),this}},{key:"listenToAll",value:function(B){var j=this;return this.subscription.bind_global(function(U,q){if(!U.startsWith("pusher:")){var Y=j.options.namespace.replace(/\./g,"\\"),K=U.startsWith(Y)?U.substring(Y.length+1):"."+U;B(K,q)}}),this}},{key:"stopListening",value:function(B,j){return j?this.subscription.unbind(this.eventFormatter.format(B),j):this.subscription.unbind(this.eventFormatter.format(B)),this}},{key:"stopListeningToAll",value:function(B){return B?this.subscription.unbind_global(B):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(B){return this.on("pusher:subscription_succeeded",function(){B()}),this}},{key:"error",value:function(B){return this.on("pusher:subscription_error",function(j){B(j)}),this}},{key:"on",value:function(B,j){return this.subscription.bind(B,j),this}}]),I}(Channel),PusherPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this.pusher.channels.channels[this.name].trigger("client-".concat(B),j),this}}]),I}(PusherChannel),PusherEncryptedPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this.pusher.channels.channels[this.name].trigger("client-".concat(B),j),this}}]),I}(PusherChannel),PusherPresenceChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"here",value:function(B){return this.on("pusher:subscription_succeeded",function(j){B(Object.keys(j.members).map(function(U){return j.members[U]}))}),this}},{key:"joining",value:function(B){return this.on("pusher:member_added",function(j){B(j.info)}),this}},{key:"whisper",value:function(B,j){return this.pusher.channels.channels[this.name].trigger("client-".concat(B),j),this}},{key:"leaving",value:function(B){return this.on("pusher:member_removed",function(j){B(j.info)}),this}}]),I}(PusherChannel),SocketIoChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(N,B,j){var U;return _classCallCheck(this,I),U=$.call(this),U.events={},U.listeners={},U.name=B,U.socket=N,U.options=j,U.eventFormatter=new EventFormatter(U.options.namespace),U.subscribe(),U}return _createClass(I,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(B,j){return this.on(this.eventFormatter.format(B),j),this}},{key:"stopListening",value:function(B,j){return this.unbindEvent(this.eventFormatter.format(B),j),this}},{key:"subscribed",value:function(B){return this.on("connect",function(j){B(j)}),this}},{key:"error",value:function(B){return this}},{key:"on",value:function(B,j){var U=this;return this.listeners[B]=this.listeners[B]||[],this.events[B]||(this.events[B]=function(q,Y){U.name===q&&U.listeners[B]&&U.listeners[B].forEach(function(K){return K(Y)})},this.socket.on(B,this.events[B])),this.listeners[B].push(j),this}},{key:"unbind",value:function(){var B=this;Object.keys(this.events).forEach(function(j){B.unbindEvent(j)})}},{key:"unbindEvent",value:function(B,j){this.listeners[B]=this.listeners[B]||[],j&&(this.listeners[B]=this.listeners[B].filter(function(U){return U!==j})),(!j||this.listeners[B].length===0)&&(this.events[B]&&(this.socket.removeListener(B,this.events[B]),delete this.events[B]),delete this.listeners[B])}}]),I}(Channel),SocketIoPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(B),data:j}),this}}]),I}(SocketIoChannel),SocketIoPresenceChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"here",value:function(B){return this.on("presence:subscribed",function(j){B(j.map(function(U){return U.user_info}))}),this}},{key:"joining",value:function(B){return this.on("presence:joining",function(j){return B(j.user_info)}),this}},{key:"whisper",value:function(B,j){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(B),data:j}),this}},{key:"leaving",value:function(B){return this.on("presence:leaving",function(j){return B(j.user_info)}),this}}]),I}(SocketIoPrivateChannel),NullChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(B,j){return this}},{key:"listenToAll",value:function(B){return this}},{key:"stopListening",value:function(B,j){return this}},{key:"subscribed",value:function(B){return this}},{key:"error",value:function(B){return this}},{key:"on",value:function(B,j){return this}}]),I}(Channel),NullPrivateChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"whisper",value:function(B,j){return this}}]),I}(NullChannel),NullPresenceChannel=function(M){_inherits(I,M);var $=_createSuper(I);function I(){return _classCallCheck(this,I),$.apply(this,arguments)}return _createClass(I,[{key:"here",value:function(B){return this}},{key:"joining",value:function(B){return this}},{key:"whisper",value:function(B,j){return this}},{key:"leaving",value:function(B){return this}}]),I}(NullChannel),Connector=function(){function M($){_classCallCheck(this,M),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions($),this.connect()}return _createClass(M,[{key:"setOptions",value:function(I){this.options=_extends(this._defaultOptions,I);var N=this.csrfToken();return N&&(this.options.auth.headers["X-CSRF-TOKEN"]=N,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=N),N=this.options.bearerToken,N&&(this.options.auth.headers.Authorization="Bearer "+N,this.options.userAuthentication.headers.Authorization="Bearer "+N),I}},{key:"csrfToken",value:function(){var I;return typeof window<"u"&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document<"u"&&typeof document.querySelector=="function"&&(I=document.querySelector('meta[name="csrf-token"]'))?I.getAttribute("content"):null}}]),M}(),PusherConnector=function(M){_inherits(I,M);var $=_createSuper(I);function I(){var N;return _classCallCheck(this,I),N=$.apply(this,arguments),N.channels={},N}return _createClass(I,[{key:"connect",value:function(){typeof this.options.client<"u"?this.pusher=this.options.client:this.options.Pusher?this.pusher=new this.options.Pusher(this.options.key,this.options):this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(B,j,U){return this.channel(B).listen(j,U)}},{key:"channel",value:function(B){return this.channels[B]||(this.channels[B]=new PusherChannel(this.pusher,B,this.options)),this.channels[B]}},{key:"privateChannel",value:function(B){return this.channels["private-"+B]||(this.channels["private-"+B]=new PusherPrivateChannel(this.pusher,"private-"+B,this.options)),this.channels["private-"+B]}},{key:"encryptedPrivateChannel",value:function(B){return this.channels["private-encrypted-"+B]||(this.channels["private-encrypted-"+B]=new PusherEncryptedPrivateChannel(this.pusher,"private-encrypted-"+B,this.options)),this.channels["private-encrypted-"+B]}},{key:"presenceChannel",value:function(B){return this.channels["presence-"+B]||(this.channels["presence-"+B]=new PusherPresenceChannel(this.pusher,"presence-"+B,this.options)),this.channels["presence-"+B]}},{key:"leave",value:function(B){var j=this,U=[B,"private-"+B,"private-encrypted-"+B,"presence-"+B];U.forEach(function(q,Y){j.leaveChannel(q)})}},{key:"leaveChannel",value:function(B){this.channels[B]&&(this.channels[B].unsubscribe(),delete this.channels[B])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),I}(Connector),SocketIoConnector=function(M){_inherits(I,M);var $=_createSuper(I);function I(){var N;return _classCallCheck(this,I),N=$.apply(this,arguments),N.channels={},N}return _createClass(I,[{key:"connect",value:function(){var B=this,j=this.getSocketIO();return this.socket=j(this.options.host,this.options),this.socket.on("reconnect",function(){Object.values(B.channels).forEach(function(U){U.subscribe()})}),this.socket}},{key:"getSocketIO",value:function(){if(typeof this.options.client<"u")return this.options.client;if(typeof io<"u")return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(B,j,U){return this.channel(B).listen(j,U)}},{key:"channel",value:function(B){return this.channels[B]||(this.channels[B]=new SocketIoChannel(this.socket,B,this.options)),this.channels[B]}},{key:"privateChannel",value:function(B){return this.channels["private-"+B]||(this.channels["private-"+B]=new SocketIoPrivateChannel(this.socket,"private-"+B,this.options)),this.channels["private-"+B]}},{key:"presenceChannel",value:function(B){return this.channels["presence-"+B]||(this.channels["presence-"+B]=new SocketIoPresenceChannel(this.socket,"presence-"+B,this.options)),this.channels["presence-"+B]}},{key:"leave",value:function(B){var j=this,U=[B,"private-"+B,"presence-"+B];U.forEach(function(q){j.leaveChannel(q)})}},{key:"leaveChannel",value:function(B){this.channels[B]&&(this.channels[B].unsubscribe(),delete this.channels[B])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),I}(Connector),NullConnector=function(M){_inherits(I,M);var $=_createSuper(I);function I(){var N;return _classCallCheck(this,I),N=$.apply(this,arguments),N.channels={},N}return _createClass(I,[{key:"connect",value:function(){}},{key:"listen",value:function(B,j,U){return new NullChannel}},{key:"channel",value:function(B){return new NullChannel}},{key:"privateChannel",value:function(B){return new NullPrivateChannel}},{key:"encryptedPrivateChannel",value:function(B){return new NullPrivateChannel}},{key:"presenceChannel",value:function(B){return new NullPresenceChannel}},{key:"leave",value:function(B){}},{key:"leaveChannel",value:function(B){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),I}(Connector),Echo$1=function(){function M($){_classCallCheck(this,M),this.options=$,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return _createClass(M,[{key:"channel",value:function(I){return this.connector.channel(I)}},{key:"connect",value:function(){this.options.broadcaster=="reverb"?this.connector=new PusherConnector(_extends(_extends({},this.options),{cluster:""})):this.options.broadcaster=="pusher"?this.connector=new PusherConnector(this.options):this.options.broadcaster=="socket.io"?this.connector=new SocketIoConnector(this.options):this.options.broadcaster=="null"?this.connector=new NullConnector(this.options):typeof this.options.broadcaster=="function"&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(I){return this.connector.presenceChannel(I)}},{key:"leave",value:function(I){this.connector.leave(I)}},{key:"leaveChannel",value:function(I){this.connector.leaveChannel(I)}},{key:"leaveAllChannels",value:function(){for(var I in this.connector.channels)this.leaveChannel(I)}},{key:"listen",value:function(I,N,B){return this.connector.listen(I,N,B)}},{key:"private",value:function(I){return this.connector.privateChannel(I)}},{key:"encryptedPrivate",value:function(I){return this.connector.encryptedPrivateChannel(I)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){typeof Vue=="function"&&Vue.http&&this.registerVueRequestInterceptor(),typeof axios=="function"&&this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&&this.registerjQueryAjaxSetup(),(typeof Turbo>"u"?"undefined":_typeof$2(Turbo))==="object"&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var I=this;Vue.http.interceptors.push(function(N,B){I.socketId()&&N.headers.set("X-Socket-ID",I.socketId()),B()})}},{key:"registerAxiosRequestInterceptor",value:function(){var I=this;axios.interceptors.request.use(function(N){return I.socketId()&&(N.headers["X-Socket-Id"]=I.socketId()),N})}},{key:"registerjQueryAjaxSetup",value:function(){var I=this;typeof jQuery.ajax<"u"&&jQuery.ajaxPrefilter(function(N,B,j){I.socketId()&&j.setRequestHeader("X-Socket-Id",I.socketId())})}},{key:"registerTurboRequestInterceptor",value:function(){var I=this;document.addEventListener("turbo:before-fetch-request",function(N){N.detail.fetchOptions.headers["X-Socket-Id"]=I.socketId()})}}]),M}(),pusher={exports:{}};/*! * Pusher JavaScript Library v4.4.0 * https://pusher.com/ * * Copyright 2017, Pusher * Released under the MIT licence. */(function(M,$){(function(N,B){M.exports=B()})(commonjsGlobal,function(){return function(I){var N={};function B(j){if(N[j])return N[j].exports;var U=N[j]={exports:{},id:j,loaded:!1};return I[j].call(U.exports,U,U.exports,B),U.loaded=!0,U.exports}return B.m=I,B.c=N,B.p="",B(0)}([function(I,N,B){var j=B(1);I.exports=j.default},function(I,N,B){var j=B(2),U=B(9),q=B(24),Y=B(39),K=B(40),G=B(41),J=B(12),Z=B(5),ee=B(71),te=B(8),se=B(43),re=B(14),ne=function(){function me(ue,_e){var fe=this;if(ce(ue),_e=_e||{},!_e.cluster&&!(_e.wsHost||_e.httpHost)){var ge=re.default.buildLogSuffix("javascriptQuickStart");te.default.warn("You should always specify a cluster when connecting. "+ge)}this.key=ue,this.config=U.extend(ee.getGlobalConfig(),_e.cluster?ee.getClusterConfig(_e.cluster):{},_e),this.channels=se.default.createChannels(),this.global_emitter=new q.default,this.sessionID=Math.floor(Math.random()*1e9),this.timeline=new Y.default(this.key,this.sessionID,{cluster:this.config.cluster,features:me.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:K.default.INFO,version:Z.default.VERSION}),this.config.disableStats||(this.timelineSender=se.default.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+j.default.TimelineTransport.name}));var ye=function(xe){var le=U.extend({},fe.config,xe);return G.build(j.default.getDefaultStrategy(le),le)};this.connection=se.default.createConnectionManager(this.key,U.extend({getStrategy:ye,timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{useTLS:this.shouldUseTLS()})),this.connection.bind("connected",function(){fe.subscribeAll(),fe.timelineSender&&fe.timelineSender.send(fe.connection.isUsingTLS())}),this.connection.bind("message",function(xe){var le=xe.event,be=le.indexOf("pusher_internal:")===0;if(xe.channel){var ve=fe.channel(xe.channel);ve&&ve.handleEvent(xe)}be||fe.global_emitter.emit(xe.event,xe.data)}),this.connection.bind("connecting",function(){fe.channels.disconnect()}),this.connection.bind("disconnected",function(){fe.channels.disconnect()}),this.connection.bind("error",function(xe){te.default.warn("Error",xe)}),me.instances.push(this),this.timeline.info({instances:me.instances.length}),me.isReady&&this.connect()}return me.ready=function(){me.isReady=!0;for(var ue=0,_e=me.instances.length;ue<_e;ue++)me.instances[ue].connect()},me.log=function(ue){me.logToConsole&&window.console&&window.console.log&&window.console.log(ue)},me.getClientFeatures=function(){return U.keys(U.filterObject({ws:j.default.Transports.ws},function(ue){return ue.isSupported({})}))},me.prototype.channel=function(ue){return this.channels.find(ue)},me.prototype.allChannels=function(){return this.channels.all()},me.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var ue=this.connection.isUsingTLS(),_e=this.timelineSender;this.timelineSenderTimer=new J.PeriodicTimer(6e4,function(){_e.send(ue)})}},me.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},me.prototype.bind=function(ue,_e,fe){return this.global_emitter.bind(ue,_e,fe),this},me.prototype.unbind=function(ue,_e,fe){return this.global_emitter.unbind(ue,_e,fe),this},me.prototype.bind_global=function(ue){return this.global_emitter.bind_global(ue),this},me.prototype.unbind_global=function(ue){return this.global_emitter.unbind_global(ue),this},me.prototype.unbind_all=function(ue){return this.global_emitter.unbind_all(),this},me.prototype.subscribeAll=function(){var ue;for(ue in this.channels.channels)this.channels.channels.hasOwnProperty(ue)&&this.subscribe(ue)},me.prototype.subscribe=function(ue){var _e=this.channels.add(ue,this);return _e.subscriptionPending&&_e.subscriptionCancelled?_e.reinstateSubscription():!_e.subscriptionPending&&this.connection.state==="connected"&&_e.subscribe(),_e},me.prototype.unsubscribe=function(ue){var _e=this.channels.find(ue);_e&&_e.subscriptionPending?_e.cancelSubscription():(_e=this.channels.remove(ue),_e&&this.connection.state==="connected"&&_e.unsubscribe())},me.prototype.send_event=function(ue,_e,fe){return this.connection.send_event(ue,_e,fe)},me.prototype.shouldUseTLS=function(){return j.default.getProtocol()==="https:"||this.config.forceTLS===!0?!0:!!this.config.encrypted},me.instances=[],me.isReady=!1,me.logToConsole=!1,me.Runtime=j.default,me.ScriptReceivers=j.default.ScriptReceivers,me.DependenciesReceivers=j.default.DependenciesReceivers,me.auth_callbacks=j.default.auth_callbacks,me}();N.__esModule=!0,N.default=ne;function ce(me){if(me==null)throw"You must pass your app key when you instantiate Pusher."}j.default.setup(ne)},function(I,N,B){var j=B(3),U=B(7),q=B(15),Y=B(16),K=B(17),G=B(4),J=B(18),Z=B(19),ee=B(26),te=B(27),se=B(28),re=B(29),ne={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:G.ScriptReceivers,DependenciesReceivers:j.DependenciesReceivers,getDefaultStrategy:te.default,Transports:Z.default,transportConnectionInitializer:se.default,HTTPFactory:re.default,TimelineTransport:J.default,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(ce){var me=this;window.Pusher=ce;var ue=function(){me.onDocumentBody(ce.ready)};window.JSON?ue():j.Dependencies.load("json2",{},ue)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:U.default,jsonp:q.default}},onDocumentBody:function(ce){var me=this;document.body?ce():setTimeout(function(){me.onDocumentBody(ce)},0)},createJSONPRequest:function(ce,me){return new K.default(ce,me)},createScriptRequest:function(ce){return new Y.default(ce)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var ce=this.getXHRAPI();return new ce},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return ee.Network},createWebSocket:function(ce){var me=this.getWebSocketAPI();return new me(ce)},createSocketRequest:function(ce,me){if(this.isXHRSupported())return this.HTTPFactory.createXHR(ce,me);if(this.isXDRSupported(me.indexOf("https:")===0))return this.HTTPFactory.createXDR(ce,me);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var ce=this.getXHRAPI();return!!ce&&new ce().withCredentials!==void 0},isXDRSupported:function(ce){var me=ce?"https:":"http:",ue=this.getProtocol();return!!window.XDomainRequest&&ue===me},addUnloadListener:function(ce){window.addEventListener!==void 0?window.addEventListener("unload",ce,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",ce)},removeUnloadListener:function(ce){window.addEventListener!==void 0?window.removeEventListener("unload",ce,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",ce)}};N.__esModule=!0,N.default=ne},function(I,N,B){var j=B(4),U=B(5),q=B(6);N.DependenciesReceivers=new j.ScriptReceiverFactory("_pusher_dependencies","Pusher.DependenciesReceivers"),N.Dependencies=new q.default({cdn_http:U.default.cdn_http,cdn_https:U.default.cdn_https,version:U.default.VERSION,suffix:U.default.dependency_suffix,receivers:N.DependenciesReceivers})},function(I,N){var B=function(){function j(U,q){this.lastId=0,this.prefix=U,this.name=q}return j.prototype.create=function(U){this.lastId++;var q=this.lastId,Y=this.prefix+q,K=this.name+"["+q+"]",G=!1,J=function(){G||(U.apply(null,arguments),G=!0)};return this[q]=J,{number:q,id:Y,name:K,callback:J}},j.prototype.remove=function(U){delete this[U.number]},j}();N.ScriptReceiverFactory=B,N.ScriptReceivers=new B("_pusher_script_","Pusher.ScriptReceivers")},function(I,N){var B={VERSION:"4.4.0",PROTOCOL:7,host:"ws.pusherapp.com",ws_port:80,wss_port:443,ws_path:"",sockjs_host:"sockjs.pusher.com",sockjs_http_port:80,sockjs_https_port:443,sockjs_path:"/pusher",stats_host:"stats.pusher.com",channel_auth_endpoint:"/pusher/auth",channel_auth_transport:"ajax",activity_timeout:12e4,pong_timeout:3e4,unavailable_timeout:1e4,cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};N.__esModule=!0,N.default=B},function(I,N,B){var j=B(4),U=B(2),q=function(){function Y(K){this.options=K,this.receivers=K.receivers||j.ScriptReceivers,this.loading={}}return Y.prototype.load=function(K,G,J){var Z=this;if(Z.loading[K]&&Z.loading[K].length>0)Z.loading[K].push(J);else{Z.loading[K]=[J];var ee=U.default.createScriptRequest(Z.getPath(K,G)),te=Z.receivers.create(function(se){if(Z.receivers.remove(te),Z.loading[K]){var re=Z.loading[K];delete Z.loading[K];for(var ne=function(me){me||ee.cleanup()},ce=0;ce<re.length;ce++)re[ce](se,ne)}});ee.send(te)}},Y.prototype.getRoot=function(K){var G,J=U.default.getDocument().location.protocol;return K&&K.useTLS||J==="https:"?G=this.options.cdn_https:G=this.options.cdn_http,G.replace(/\/*$/,"")+"/"+this.options.version},Y.prototype.getPath=function(K,G){return this.getRoot(G)+"/"+K+this.options.suffix+".js"},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(8),U=B(2),q=B(14),Y=function(K,G,J){var Z=this,ee;ee=U.default.createXHR(),ee.open("POST",Z.options.authEndpoint,!0),ee.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var te in this.authOptions.headers)ee.setRequestHeader(te,this.authOptions.headers[te]);return ee.onreadystatechange=function(){if(ee.readyState===4)if(ee.status===200){var se,re=!1;try{se=JSON.parse(ee.responseText),re=!0}catch{J(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+ee.responseText)}re&&J(!1,se)}else{var ne=q.default.buildLogSuffix("authenticationEndpoint");j.default.warn("Couldn't retrieve authentication info. "+ee.status+("Clients must be authenticated to join private or presence channels. "+ne)),J(!0,ee.status)}},ee.send(this.composeQuery(G)),ee};N.__esModule=!0,N.default=Y},function(I,N,B){var j=B(9),U=B(1),q={debug:function(){U.default.log&&U.default.log(j.stringify.apply(this,arguments))},warn:function(){var Y=j.stringify.apply(this,arguments);U.default.log?U.default.log(Y):window.console&&(window.console.warn?window.console.warn(Y):window.console.log&&window.console.log(Y))}};N.__esModule=!0,N.default=q},function(I,N,B){var j=B(10),U=B(11);function q(xe){for(var le=[],be=1;be<arguments.length;be++)le[be-1]=arguments[be];for(var ve=0;ve<le.length;ve++){var we=le[ve];for(var Ae in we)we[Ae]&&we[Ae].constructor&&we[Ae].constructor===Object?xe[Ae]=q(xe[Ae]||{},we[Ae]):xe[Ae]=we[Ae]}return xe}N.extend=q;function Y(){for(var xe=["Pusher"],le=0;le<arguments.length;le++)typeof arguments[le]=="string"?xe.push(arguments[le]):xe.push(ye(arguments[le]));return xe.join(" : ")}N.stringify=Y;function K(xe,le){var be=Array.prototype.indexOf;if(xe===null)return-1;if(be&&xe.indexOf===be)return xe.indexOf(le);for(var ve=0,we=xe.length;ve<we;ve++)if(xe[ve]===le)return ve;return-1}N.arrayIndexOf=K;function G(xe,le){for(var be in xe)Object.prototype.hasOwnProperty.call(xe,be)&&le(xe[be],be,xe)}N.objectApply=G;function J(xe){var le=[];return G(xe,function(be,ve){le.push(ve)}),le}N.keys=J;function Z(xe){var le=[];return G(xe,function(be){le.push(be)}),le}N.values=Z;function ee(xe,le,be){for(var ve=0;ve<xe.length;ve++)le.call(be||window,xe[ve],ve,xe)}N.apply=ee;function te(xe,le){for(var be=[],ve=0;ve<xe.length;ve++)be.push(le(xe[ve],ve,xe,be));return be}N.map=te;function se(xe,le){var be={};return G(xe,function(ve,we){be[we]=le(ve)}),be}N.mapObject=se;function re(xe,le){le=le||function(we){return!!we};for(var be=[],ve=0;ve<xe.length;ve++)le(xe[ve],ve,xe,be)&&be.push(xe[ve]);return be}N.filter=re;function ne(xe,le){var be={};return G(xe,function(ve,we){(le&&le(ve,we,xe,be)||ve)&&(be[we]=ve)}),be}N.filterObject=ne;function ce(xe){var le=[];return G(xe,function(be,ve){le.push([ve,be])}),le}N.flatten=ce;function me(xe,le){for(var be=0;be<xe.length;be++)if(le(xe[be],be,xe))return!0;return!1}N.any=me;function ue(xe,le){for(var be=0;be<xe.length;be++)if(!le(xe[be],be,xe))return!1;return!0}N.all=ue;function _e(xe){return se(xe,function(le){return typeof le=="object"&&(le=ye(le)),encodeURIComponent(j.default(le.toString()))})}N.encodeParamsObject=_e;function fe(xe){var le=ne(xe,function(ve){return ve!==void 0}),be=te(ce(_e(le)),U.default.method("join","=")).join("&");return be}N.buildQueryString=fe;function ge(xe){var le=[],be=[];return function ve(we,Ae){var Se,Pe,Me;switch(typeof we){case"object":if(!we)return null;for(Se=0;Se<le.length;Se+=1)if(le[Se]===we)return{$ref:be[Se]};if(le.push(we),be.push(Ae),Object.prototype.toString.apply(we)==="[object Array]")for(Me=[],Se=0;Se<we.length;Se+=1)Me[Se]=ve(we[Se],Ae+"["+Se+"]");else{Me={};for(Pe in we)Object.prototype.hasOwnProperty.call(we,Pe)&&(Me[Pe]=ve(we[Pe],Ae+"["+JSON.stringify(Pe)+"]"))}return Me;case"number":case"string":case"boolean":return we}}(xe,"$")}N.decycleObject=ge;function ye(xe){try{return JSON.stringify(xe)}catch{return JSON.stringify(ge(xe))}}N.safeJSONStringify=ye},function(I,N,B){function j(Z){return J(K(Z))}N.__esModule=!0,N.default=j;var U=String.fromCharCode,q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=function(Z){var ee=Z.charCodeAt(0);return ee<128?Z:ee<2048?U(192|ee>>>6)+U(128|ee&63):U(224|ee>>>12&15)+U(128|ee>>>6&63)+U(128|ee&63)},K=function(Z){return Z.replace(/[^\x00-\x7F]/g,Y)},G=function(Z){var ee=[0,2,1][Z.length%3],te=Z.charCodeAt(0)<<16|(Z.length>1?Z.charCodeAt(1):0)<<8|(Z.length>2?Z.charCodeAt(2):0),se=[q.charAt(te>>>18),q.charAt(te>>>12&63),ee>=2?"=":q.charAt(te>>>6&63),ee>=1?"=":q.charAt(te&63)];return se.join("")},J=window.btoa||function(Z){return Z.replace(/[\s\S]{1,3}/g,G)}},function(I,N,B){var j=B(12),U={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(q){return new j.OneOffTimer(0,q)},method:function(q){var Y=Array.prototype.slice.call(arguments,1);return function(K){return K[q].apply(K,Y.concat(arguments))}}};N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(13);function q(J){window.clearTimeout(J)}function Y(J){window.clearInterval(J)}var K=function(J){j(Z,J);function Z(ee,te){J.call(this,setTimeout,q,ee,function(se){return te(),null})}return Z}(U.default);N.OneOffTimer=K;var G=function(J){j(Z,J);function Z(ee,te){J.call(this,setInterval,Y,ee,function(se){return te(),se})}return Z}(U.default);N.PeriodicTimer=G},function(I,N){var B=function(){function j(U,q,Y,K){var G=this;this.clear=q,this.timer=U(function(){G.timer&&(G.timer=K(G.timer))},Y)}return j.prototype.isRunning=function(){return this.timer!==null},j.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},j}();N.__esModule=!0,N.default=B},function(I,N){var B={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/authenticating_users"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"}}},j=function(U){var q="See:",Y=B.urls[U];if(!Y)return"";var K;return Y.fullUrl?K=Y.fullUrl:Y.path&&(K=B.baseUrl+Y.path),K?q+" "+K:""};N.__esModule=!0,N.default={buildLogSuffix:j}},function(I,N,B){var j=B(8),U=function(q,Y,K){this.authOptions.headers!==void 0&&j.default.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var G=q.nextAuthCallbackID.toString();q.nextAuthCallbackID++;var J=q.getDocument(),Z=J.createElement("script");q.auth_callbacks[G]=function(se){K(!1,se)};var ee="Pusher.auth_callbacks['"+G+"']";Z.src=this.options.authEndpoint+"?callback="+encodeURIComponent(ee)+"&"+this.composeQuery(Y);var te=J.getElementsByTagName("head")[0]||J.documentElement;te.insertBefore(Z,te.firstChild)};N.__esModule=!0,N.default=U},function(I,N){var B=function(){function j(U){this.src=U}return j.prototype.send=function(U){var q=this,Y="Error loading "+q.src;q.script=document.createElement("script"),q.script.id=U.id,q.script.src=q.src,q.script.type="text/javascript",q.script.charset="UTF-8",q.script.addEventListener?(q.script.onerror=function(){U.callback(Y)},q.script.onload=function(){U.callback(null)}):q.script.onreadystatechange=function(){(q.script.readyState==="loaded"||q.script.readyState==="complete")&&U.callback(null)},q.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(q.errorScript=document.createElement("script"),q.errorScript.id=U.id+"_error",q.errorScript.text=U.name+"('"+Y+"');",q.script.async=q.errorScript.async=!1):q.script.async=!0;var K=document.getElementsByTagName("head")[0];K.insertBefore(q.script,K.firstChild),q.errorScript&&K.insertBefore(q.errorScript,q.script.nextSibling)},j.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},j}();N.__esModule=!0,N.default=B},function(I,N,B){var j=B(9),U=B(2),q=function(){function Y(K,G){this.url=K,this.data=G}return Y.prototype.send=function(K){if(!this.request){var G=j.buildQueryString(this.data),J=this.url+"/"+K.number+"?"+G;this.request=U.default.createScriptRequest(J),this.request.send(K)}},Y.prototype.cleanup=function(){this.request&&this.request.cleanup()},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(2),U=B(4),q=function(K,G){return function(J,Z){var ee="http"+(G?"s":"")+"://",te=ee+(K.host||K.options.host)+K.options.path,se=j.default.createJSONPRequest(te,J),re=j.default.ScriptReceivers.create(function(ne,ce){U.ScriptReceivers.remove(re),se.cleanup(),ce&&ce.host&&(K.host=ce.host),Z&&Z(ne,ce)});se.send(re)}},Y={name:"jsonp",getAgent:q};N.__esModule=!0,N.default=Y},function(I,N,B){var j=B(20),U=B(22),q=B(21),Y=B(2),K=B(3),G=B(9),J=new U.default({file:"sockjs",urls:q.sockjs,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(se,re){return new window.SockJS(se,null,{js_path:K.Dependencies.getPath("sockjs",{useTLS:re.useTLS}),ignore_null_origin:re.ignoreNullOrigin})},beforeOpen:function(se,re){se.send(JSON.stringify({path:re}))}}),Z={isSupported:function(se){var re=Y.default.isXDRSupported(se.useTLS);return re}},ee=new U.default(G.extend({},j.streamingConfiguration,Z)),te=new U.default(G.extend({},j.pollingConfiguration,Z));j.default.xdr_streaming=ee,j.default.xdr_polling=te,j.default.sockjs=J,N.__esModule=!0,N.default=j.default},function(I,N,B){var j=B(21),U=B(22),q=B(9),Y=B(2),K=new U.default({urls:j.ws,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Y.default.getWebSocketAPI()},isSupported:function(){return!!Y.default.getWebSocketAPI()},getSocket:function(se){return Y.default.createWebSocket(se)}}),G={urls:j.http,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}};N.streamingConfiguration=q.extend({getSocket:function(se){return Y.default.HTTPFactory.createStreamingSocket(se)}},G),N.pollingConfiguration=q.extend({getSocket:function(se){return Y.default.HTTPFactory.createPollingSocket(se)}},G);var J={isSupported:function(){return Y.default.isXHRSupported()}},Z=new U.default(q.extend({},N.streamingConfiguration,J)),ee=new U.default(q.extend({},N.pollingConfiguration,J)),te={ws:K,xhr_streaming:Z,xhr_polling:ee};N.__esModule=!0,N.default=te},function(I,N,B){var j=B(5);function U(Y,K,G){var J=Y+(K.useTLS?"s":""),Z=K.useTLS?K.hostTLS:K.hostNonTLS;return J+"://"+Z+G}function q(Y,K){var G="/app/"+Y,J="?protocol="+j.default.PROTOCOL+"&client=js&version="+j.default.VERSION+(K?"&"+K:"");return G+J}N.ws={getInitial:function(Y,K){var G=(K.httpPath||"")+q(Y,"flash=false");return U("ws",K,G)}},N.http={getInitial:function(Y,K){var G=(K.httpPath||"/pusher")+q(Y);return U("http",K,G)}},N.sockjs={getInitial:function(Y,K){return U("http",K,K.httpPath||"/pusher")},getPath:function(Y,K){return q(Y)}}},function(I,N,B){var j=B(23),U=function(){function q(Y){this.hooks=Y}return q.prototype.isSupported=function(Y){return this.hooks.isSupported(Y)},q.prototype.createConnection=function(Y,K,G,J){return new j.default(this.hooks,Y,K,G,J)},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function se(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)},U=B(11),q=B(9),Y=B(24),K=B(8),G=B(2),J=function(Z){j(ee,Z);function ee(te,se,re,ne,ce){Z.call(this),this.initialize=G.default.transportConnectionInitializer,this.hooks=te,this.name=se,this.priority=re,this.key=ne,this.options=ce,this.state="new",this.timeline=ce.timeline,this.activityTimeout=ce.activityTimeout,this.id=this.timeline.generateUniqueID()}return ee.prototype.handlesActivityChecks=function(){return!!this.hooks.handlesActivityChecks},ee.prototype.supportsPing=function(){return!!this.hooks.supportsPing},ee.prototype.connect=function(){var te=this;if(this.socket||this.state!=="initialized")return!1;var se=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(se,this.options)}catch(re){return U.default.defer(function(){te.onError(re),te.changeState("closed")}),!1}return this.bindListeners(),K.default.debug("Connecting",{transport:this.name,url:se}),this.changeState("connecting"),!0},ee.prototype.close=function(){return this.socket?(this.socket.close(),!0):!1},ee.prototype.send=function(te){var se=this;return this.state==="open"?(U.default.defer(function(){se.socket&&se.socket.send(te)}),!0):!1},ee.prototype.ping=function(){this.state==="open"&&this.supportsPing()&&this.socket.ping()},ee.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},ee.prototype.onError=function(te){this.emit("error",{type:"WebSocketError",error:te}),this.timeline.error(this.buildTimelineMessage({error:te.toString()}))},ee.prototype.onClose=function(te){te?this.changeState("closed",{code:te.code,reason:te.reason,wasClean:te.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},ee.prototype.onMessage=function(te){this.emit("message",te)},ee.prototype.onActivity=function(){this.emit("activity")},ee.prototype.bindListeners=function(){var te=this;this.socket.onopen=function(){te.onOpen()},this.socket.onerror=function(se){te.onError(se)},this.socket.onclose=function(se){te.onClose(se)},this.socket.onmessage=function(se){te.onMessage(se)},this.supportsPing()&&(this.socket.onactivity=function(){te.onActivity()})},ee.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},ee.prototype.changeState=function(te,se){this.state=te,this.timeline.info(this.buildTimelineMessage({state:te,params:se})),this.emit(te,se)},ee.prototype.buildTimelineMessage=function(te){return q.extend({cid:this.id},te)},ee}(Y.default);N.__esModule=!0,N.default=J},function(I,N,B){var j=B(9),U=B(25),q=function(){function Y(K){this.callbacks=new U.default,this.global_callbacks=[],this.failThrough=K}return Y.prototype.bind=function(K,G,J){return this.callbacks.add(K,G,J),this},Y.prototype.bind_global=function(K){return this.global_callbacks.push(K),this},Y.prototype.unbind=function(K,G,J){return this.callbacks.remove(K,G,J),this},Y.prototype.unbind_global=function(K){return K?(this.global_callbacks=j.filter(this.global_callbacks||[],function(G){return G!==K}),this):(this.global_callbacks=[],this)},Y.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},Y.prototype.emit=function(K,G,J){for(var Z=0;Z<this.global_callbacks.length;Z++)this.global_callbacks[Z](K,G);var ee=this.callbacks.get(K),te=[];if(J?te.push(G,J):G&&te.push(G),ee&&ee.length>0)for(var Z=0;Z<ee.length;Z++)ee[Z].fn.apply(ee[Z].context||window,te);else this.failThrough&&this.failThrough(K,G);return this},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(9),U=function(){function Y(){this._callbacks={}}return Y.prototype.get=function(K){return this._callbacks[q(K)]},Y.prototype.add=function(K,G,J){var Z=q(K);this._callbacks[Z]=this._callbacks[Z]||[],this._callbacks[Z].push({fn:G,context:J})},Y.prototype.remove=function(K,G,J){if(!K&&!G&&!J){this._callbacks={};return}var Z=K?[q(K)]:j.keys(this._callbacks);G||J?this.removeCallback(Z,G,J):this.removeAllCallbacks(Z)},Y.prototype.removeCallback=function(K,G,J){j.apply(K,function(Z){this._callbacks[Z]=j.filter(this._callbacks[Z]||[],function(ee){return G&&G!==ee.fn||J&&J!==ee.context}),this._callbacks[Z].length===0&&delete this._callbacks[Z]},this)},Y.prototype.removeAllCallbacks=function(K){j.apply(K,function(G){delete this._callbacks[G]},this)},Y}();N.__esModule=!0,N.default=U;function q(Y){return"_"+Y}},function(I,N,B){var j=this&&this.__extends||function(Y,K){for(var G in K)K.hasOwnProperty(G)&&(Y[G]=K[G]);function J(){this.constructor=Y}Y.prototype=K===null?Object.create(K):(J.prototype=K.prototype,new J)},U=B(24),q=function(Y){j(K,Y);function K(){Y.call(this);var G=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){G.emit("online")},!1),window.addEventListener("offline",function(){G.emit("offline")},!1))}return K.prototype.isOnline=function(){return window.navigator.onLine===void 0?!0:window.navigator.onLine},K}(U.default);N.NetInfo=q,N.Network=new q},function(I,N){var B=function(j){var U;return j.useTLS?U=[":best_connected_ever",":ws_loop",[":delayed",2e3,[":http_fallback_loop"]]]:U=[":best_connected_ever",":ws_loop",[":delayed",2e3,[":wss_loop"]],[":delayed",5e3,[":http_fallback_loop"]]],[[":def","ws_options",{hostNonTLS:j.wsHost+":"+j.wsPort,hostTLS:j.wsHost+":"+j.wssPort,httpPath:j.wsPath}],[":def","wss_options",[":extend",":ws_options",{useTLS:!0}]],[":def","sockjs_options",{hostNonTLS:j.httpHost+":"+j.httpPort,hostTLS:j.httpHost+":"+j.httpsPort,httpPath:j.httpPath}],[":def","timeouts",{loop:!0,timeout:15e3,timeoutLimit:6e4}],[":def","ws_manager",[":transport_manager",{lives:2,minPingDelay:1e4,maxPingDelay:j.activity_timeout}]],[":def","streaming_manager",[":transport_manager",{lives:2,minPingDelay:1e4,maxPingDelay:j.activity_timeout}]],[":def_transport","ws","ws",3,":ws_options",":ws_manager"],[":def_transport","wss","ws",3,":wss_options",":ws_manager"],[":def_transport","sockjs","sockjs",1,":sockjs_options"],[":def_transport","xhr_streaming","xhr_streaming",1,":sockjs_options",":streaming_manager"],[":def_transport","xdr_streaming","xdr_streaming",1,":sockjs_options",":streaming_manager"],[":def_transport","xhr_polling","xhr_polling",1,":sockjs_options"],[":def_transport","xdr_polling","xdr_polling",1,":sockjs_options"],[":def","ws_loop",[":sequential",":timeouts",":ws"]],[":def","wss_loop",[":sequential",":timeouts",":wss"]],[":def","sockjs_loop",[":sequential",":timeouts",":sockjs"]],[":def","streaming_loop",[":sequential",":timeouts",[":if",[":is_supported",":xhr_streaming"],":xhr_streaming",":xdr_streaming"]]],[":def","polling_loop",[":sequential",":timeouts",[":if",[":is_supported",":xhr_polling"],":xhr_polling",":xdr_polling"]]],[":def","http_loop",[":if",[":is_supported",":streaming_loop"],[":best_connected_ever",":streaming_loop",[":delayed",4e3,[":polling_loop"]]],[":polling_loop"]]],[":def","http_fallback_loop",[":if",[":is_supported",":http_loop"],[":http_loop"],[":sockjs_loop"]]],[":def","strategy",[":cached",18e5,[":first_connected",[":if",[":is_supported",":ws"],U,":http_fallback_loop"]]]]]};N.__esModule=!0,N.default=B},function(I,N,B){var j=B(3);function U(){var q=this;q.timeline.info(q.buildTimelineMessage({transport:q.name+(q.options.useTLS?"s":"")})),q.hooks.isInitialized()?q.changeState("initialized"):q.hooks.file?(q.changeState("initializing"),j.Dependencies.load(q.hooks.file,{useTLS:q.options.useTLS},function(Y,K){q.hooks.isInitialized()?(q.changeState("initialized"),K(!0)):(Y&&q.onError(Y),q.onClose(),K(!1))})):q.onClose()}N.__esModule=!0,N.default=U},function(I,N,B){var j=B(30),U=B(32);U.default.createXDR=function(q,Y){return this.createRequest(j.default,q,Y)},N.__esModule=!0,N.default=U.default},function(I,N,B){var j=B(31),U={getRequest:function(q){var Y=new window.XDomainRequest;return Y.ontimeout=function(){q.emit("error",new j.RequestTimedOut),q.close()},Y.onerror=function(K){q.emit("error",K),q.close()},Y.onprogress=function(){Y.responseText&&Y.responseText.length>0&&q.onChunk(200,Y.responseText)},Y.onload=function(){Y.responseText&&Y.responseText.length>0&&q.onChunk(200,Y.responseText),q.emit("finished",200),q.close()},Y},abortRequest:function(q){q.ontimeout=q.onerror=q.onprogress=q.onload=null,q.abort()}};N.__esModule=!0,N.default=U},function(I,N){var B=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function se(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)},j=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.BadEventName=j;var U=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.RequestTimedOut=U;var q=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.TransportPriorityTooLow=q;var Y=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.TransportClosed=Y;var K=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.UnsupportedFeature=K;var G=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.UnsupportedTransport=G;var J=function(Z){B(ee,Z);function ee(){Z.apply(this,arguments)}return ee}(Error);N.UnsupportedStrategy=J},function(I,N,B){var j=B(33),U=B(34),q=B(36),Y=B(37),K=B(38),G={createStreamingSocket:function(J){return this.createSocket(q.default,J)},createPollingSocket:function(J){return this.createSocket(Y.default,J)},createSocket:function(J,Z){return new U.default(J,Z)},createXHR:function(J,Z){return this.createRequest(K.default,J,Z)},createRequest:function(J,Z,ee){return new j.default(J,Z,ee)}};N.__esModule=!0,N.default=G},function(I,N,B){var j=this&&this.__extends||function(G,J){for(var Z in J)J.hasOwnProperty(Z)&&(G[Z]=J[Z]);function ee(){this.constructor=G}G.prototype=J===null?Object.create(J):(ee.prototype=J.prototype,new ee)},U=B(2),q=B(24),Y=256*1024,K=function(G){j(J,G);function J(Z,ee,te){G.call(this),this.hooks=Z,this.method=ee,this.url=te}return J.prototype.start=function(Z){var ee=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){ee.close()},U.default.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(Z)},J.prototype.close=function(){this.unloader&&(U.default.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},J.prototype.onChunk=function(Z,ee){for(;;){var te=this.advanceBuffer(ee);if(te)this.emit("chunk",{status:Z,data:te});else break}this.isBufferTooLong(ee)&&this.emit("buffer_too_long")},J.prototype.advanceBuffer=function(Z){var ee=Z.slice(this.position),te=ee.indexOf(` `);return te!==-1?(this.position+=te+1,ee.slice(0,te)):null},J.prototype.isBufferTooLong=function(Z){return this.position===Z.length&&Z.length>Y},J}(q.default);N.__esModule=!0,N.default=K},function(I,N,B){var j=B(35),U=B(11),q=B(2),Y=1,K=function(){function re(ne,ce){this.hooks=ne,this.session=te(1e3)+"/"+se(8),this.location=G(ce),this.readyState=j.default.CONNECTING,this.openStream()}return re.prototype.send=function(ne){return this.sendRaw(JSON.stringify([ne]))},re.prototype.ping=function(){this.hooks.sendHeartbeat(this)},re.prototype.close=function(ne,ce){this.onClose(ne,ce,!0)},re.prototype.sendRaw=function(ne){if(this.readyState===j.default.OPEN)try{return q.default.createSocketRequest("POST",Z(J(this.location,this.session))).start(ne),!0}catch{return!1}else return!1},re.prototype.reconnect=function(){this.closeStream(),this.openStream()},re.prototype.onClose=function(ne,ce,me){this.closeStream(),this.readyState=j.default.CLOSED,this.onclose&&this.onclose({code:ne,reason:ce,wasClean:me})},re.prototype.onChunk=function(ne){if(ne.status===200){this.readyState===j.default.OPEN&&this.onActivity();var ce,me=ne.data.slice(0,1);switch(me){case"o":ce=JSON.parse(ne.data.slice(1)||"{}"),this.onOpen(ce);break;case"a":ce=JSON.parse(ne.data.slice(1)||"[]");for(var ue=0;ue<ce.length;ue++)this.onEvent(ce[ue]);break;case"m":ce=JSON.parse(ne.data.slice(1)||"null"),this.onEvent(ce);break;case"h":this.hooks.onHeartbeat(this);break;case"c":ce=JSON.parse(ne.data.slice(1)||"[]"),this.onClose(ce[0],ce[1],!0);break}}},re.prototype.onOpen=function(ne){this.readyState===j.default.CONNECTING?(ne&&ne.hostname&&(this.location.base=ee(this.location.base,ne.hostname)),this.readyState=j.default.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},re.prototype.onEvent=function(ne){this.readyState===j.default.OPEN&&this.onmessage&&this.onmessage({data:ne})},re.prototype.onActivity=function(){this.onactivity&&this.onactivity()},re.prototype.onError=function(ne){this.onerror&&this.onerror(ne)},re.prototype.openStream=function(){var ne=this;this.stream=q.default.createSocketRequest("POST",Z(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",function(ce){ne.onChunk(ce)}),this.stream.bind("finished",function(ce){ne.hooks.onFinished(ne,ce)}),this.stream.bind("buffer_too_long",function(){ne.reconnect()});try{this.stream.start()}catch(ce){U.default.defer(function(){ne.onError(ce),ne.onClose(1006,"Could not start streaming",!1)})}},re.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},re}();function G(re){var ne=/([^\?]*)\/*(\??.*)/.exec(re);return{base:ne[1],queryString:ne[2]}}function J(re,ne){return re.base+"/"+ne+"/xhr_send"}function Z(re){var ne=re.indexOf("?")===-1?"?":"&";return re+ne+"t="+ +new Date+"&n="+Y++}function ee(re,ne){var ce=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(re);return ce[1]+ne+ce[3]}function te(re){return Math.floor(Math.random()*re)}function se(re){for(var ne=[],ce=0;ce<re;ce++)ne.push(te(32).toString(32));return ne.join("")}N.__esModule=!0,N.default=K},function(I,N){var B;(function(j){j[j.CONNECTING=0]="CONNECTING",j[j.OPEN=1]="OPEN",j[j.CLOSED=3]="CLOSED"})(B||(B={})),N.__esModule=!0,N.default=B},function(I,N){var B={getReceiveURL:function(j,U){return j.base+"/"+U+"/xhr_streaming"+j.queryString},onHeartbeat:function(j){j.sendRaw("[]")},sendHeartbeat:function(j){j.sendRaw("[]")},onFinished:function(j,U){j.onClose(1006,"Connection interrupted ("+U+")",!1)}};N.__esModule=!0,N.default=B},function(I,N){var B={getReceiveURL:function(j,U){return j.base+"/"+U+"/xhr"+j.queryString},onHeartbeat:function(){},sendHeartbeat:function(j){j.sendRaw("[]")},onFinished:function(j,U){U===200?j.reconnect():j.onClose(1006,"Connection interrupted ("+U+")",!1)}};N.__esModule=!0,N.default=B},function(I,N,B){var j=B(2),U={getRequest:function(q){var Y=j.default.getXHRAPI(),K=new Y;return K.onreadystatechange=K.onprogress=function(){switch(K.readyState){case 3:K.responseText&&K.responseText.length>0&&q.onChunk(K.status,K.responseText);break;case 4:K.responseText&&K.responseText.length>0&&q.onChunk(K.status,K.responseText),q.emit("finished",K.status),q.close();break}},K},abortRequest:function(q){q.onreadystatechange=null,q.abort()}};N.__esModule=!0,N.default=U},function(I,N,B){var j=B(9),U=B(11),q=B(40),Y=function(){function K(G,J,Z){this.key=G,this.session=J,this.events=[],this.options=Z||{},this.sent=0,this.uniqueID=0}return K.prototype.log=function(G,J){G<=this.options.level&&(this.events.push(j.extend({},J,{timestamp:U.default.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},K.prototype.error=function(G){this.log(q.default.ERROR,G)},K.prototype.info=function(G){this.log(q.default.INFO,G)},K.prototype.debug=function(G){this.log(q.default.DEBUG,G)},K.prototype.isEmpty=function(){return this.events.length===0},K.prototype.send=function(G,J){var Z=this,ee=j.extend({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],G(ee,function(te,se){te||Z.sent++,J&&J(te,se)}),!0},K.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},K}();N.__esModule=!0,N.default=Y},function(I,N){var B;(function(j){j[j.ERROR=3]="ERROR",j[j.INFO=6]="INFO",j[j.DEBUG=7]="DEBUG"})(B||(B={})),N.__esModule=!0,N.default=B},function(I,N,B){var j=B(9),U=B(11),q=B(42),Y=B(31),K=B(64),G=B(65),J=B(66),Z=B(67),ee=B(68),te=B(69),se=B(70),re=B(2),ne=re.default.Transports;N.build=function(be,ve){var we=j.extend({},ue,ve);return le(be,we)[1].strategy};var ce={isSupported:function(){return!1},connect:function(be,ve){var we=U.default.defer(function(){ve(new Y.UnsupportedStrategy)});return{abort:function(){we.ensureAborted()},forceMinPriority:function(){}}}};function me(be){return function(ve){return[be.apply(this,arguments),ve]}}var ue={extend:function(be,ve,we){return[j.extend({},ve,we),be]},def:function(be,ve,we){if(be[ve]!==void 0)throw"Redefining symbol "+ve;return be[ve]=we,[void 0,be]},def_transport:function(be,ve,we,Ae,Se,Pe){var Me=ne[we];if(!Me)throw new Y.UnsupportedTransport(we);var Be=(!be.enabledTransports||j.arrayIndexOf(be.enabledTransports,ve)!==-1)&&(!be.disabledTransports||j.arrayIndexOf(be.disabledTransports,ve)===-1),ze;Be?ze=new K.default(ve,Ae,Pe?Pe.getAssistant(Me):Me,j.extend({key:be.key,useTLS:be.useTLS,timeline:be.timeline,ignoreNullOrigin:be.ignoreNullOrigin},Se)):ze=ce;var Ze=be.def(be,ve,ze)[1];return Ze.Transports=be.Transports||{},Ze.Transports[ve]=ze,[void 0,Ze]},transport_manager:me(function(be,ve){return new q.default(ve)}),sequential:me(function(be,ve){var we=Array.prototype.slice.call(arguments,2);return new G.default(we,ve)}),cached:me(function(be,ve,we){return new Z.default(we,be.Transports,{ttl:ve,timeline:be.timeline,useTLS:be.useTLS})}),first_connected:me(function(be,ve){return new se.default(ve)}),best_connected_ever:me(function(){var be=Array.prototype.slice.call(arguments,1);return new J.default(be)}),delayed:me(function(be,ve,we){return new ee.default(we,{delay:ve})}),if:me(function(be,ve,we,Ae){return new te.default(ve,we,Ae)}),is_supported:me(function(be,ve){return function(){return ve.isSupported()}})};function _e(be){return typeof be=="string"&&be.charAt(0)===":"}function fe(be,ve){return ve[be.slice(1)]}function ge(be,ve){if(be.length===0)return[[],ve];var we=le(be[0],ve),Ae=ge(be.slice(1),we[1]);return[[we[0]].concat(Ae[0]),Ae[1]]}function ye(be,ve){if(!_e(be))return[be,ve];var we=fe(be,ve);if(we===void 0)throw"Undefined symbol "+be;return[we,ve]}function xe(be,ve){if(_e(be[0])){var we=fe(be[0],ve);if(be.length>1){if(typeof we!="function")throw"Calling non-function "+be[0];var Ae=[j.extend({},ve)].concat(j.map(be.slice(1),function(Se){return le(Se,j.extend({},ve))[0]}));return we.apply(this,Ae)}else return[we,ve]}else return ge(be,ve)}function le(be,ve){return typeof be=="string"?ye(be,ve):typeof be=="object"&&be instanceof Array&&be.length>0?xe(be,ve):[be,ve]}},function(I,N,B){var j=B(43),U=function(){function q(Y){this.options=Y||{},this.livesLeft=this.options.lives||1/0}return q.prototype.getAssistant=function(Y){return j.default.createAssistantToTheTransportManager(this,Y,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},q.prototype.isAlive=function(){return this.livesLeft>0},q.prototype.reportDeath=function(){this.livesLeft-=1},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=B(44),U=B(45),q=B(48),Y=B(49),K=B(50),G=B(51),J=B(54),Z=B(52),ee=B(62),te=B(63),se={createChannels:function(){return new te.default},createConnectionManager:function(re,ne){return new ee.default(re,ne)},createChannel:function(re,ne){return new Z.default(re,ne)},createPrivateChannel:function(re,ne){return new G.default(re,ne)},createPresenceChannel:function(re,ne){return new K.default(re,ne)},createEncryptedChannel:function(re,ne){return new J.default(re,ne)},createTimelineSender:function(re,ne){return new Y.default(re,ne)},createAuthorizer:function(re,ne){return ne.authorizer?ne.authorizer(re,ne):new q.default(re,ne)},createHandshake:function(re,ne){return new U.default(re,ne)},createAssistantToTheTransportManager:function(re,ne,ce){return new j.default(re,ne,ce)}};N.__esModule=!0,N.default=se},function(I,N,B){var j=B(11),U=B(9),q=function(){function Y(K,G,J){this.manager=K,this.transport=G,this.minPingDelay=J.minPingDelay,this.maxPingDelay=J.maxPingDelay,this.pingDelay=void 0}return Y.prototype.createConnection=function(K,G,J,Z){var ee=this;Z=U.extend({},Z,{activityTimeout:this.pingDelay});var te=this.transport.createConnection(K,G,J,Z),se=null,re=function(){te.unbind("open",re),te.bind("closed",ne),se=j.default.now()},ne=function(ce){if(te.unbind("closed",ne),ce.code===1002||ce.code===1003)ee.manager.reportDeath();else if(!ce.wasClean&&se){var me=j.default.now()-se;me<2*ee.maxPingDelay&&(ee.manager.reportDeath(),ee.pingDelay=Math.max(me/2,ee.minPingDelay))}};return te.bind("open",re),te},Y.prototype.isSupported=function(K){return this.manager.isAlive()&&this.transport.isSupported(K)},Y}();N.__esModule=!0,N.default=q},function(I,N,B){var j=B(9),U=B(46),q=B(47),Y=function(){function K(G,J){this.transport=G,this.callback=J,this.bindListeners()}return K.prototype.close=function(){this.unbindListeners(),this.transport.close()},K.prototype.bindListeners=function(){var G=this;this.onMessage=function(J){G.unbindListeners();var Z;try{Z=U.processHandshake(J)}catch(ee){G.finish("error",{error:ee}),G.transport.close();return}Z.action==="connected"?G.finish("connected",{connection:new q.default(Z.id,G.transport),activityTimeout:Z.activityTimeout}):(G.finish(Z.action,{error:Z.error}),G.transport.close())},this.onClosed=function(J){G.unbindListeners();var Z=U.getCloseAction(J)||"backoff",ee=U.getCloseError(J);G.finish(Z,{error:ee})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},K.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},K.prototype.finish=function(G,J){this.callback(j.extend({transport:this.transport,action:G},J))},K}();N.__esModule=!0,N.default=Y},function(I,N){N.decodeMessage=function(B){try{var j=JSON.parse(B.data),U=j.data;if(typeof U=="string")try{U=JSON.parse(j.data)}catch{}var q={event:j.event,channel:j.channel,data:U};return j.user_id&&(q.user_id=j.user_id),q}catch(Y){throw{type:"MessageParseError",error:Y,data:B.data}}},N.encodeMessage=function(B){return JSON.stringify(B)},N.processHandshake=function(B){var j=N.decodeMessage(B);if(j.event==="pusher:connection_established"){if(!j.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:j.data.socket_id,activityTimeout:j.data.activity_timeout*1e3}}else{if(j.event==="pusher:error")return{action:this.getCloseAction(j.data),error:this.getCloseError(j.data)};throw"Invalid handshake"}},N.getCloseAction=function(B){return B.code<4e3?B.code>=1002&&B.code<=1004?"backoff":null:B.code===4e3?"tls_only":B.code<4100?"refused":B.code<4200?"backoff":B.code<4300?"retry":"refused"},N.getCloseError=function(B){return B.code!==1e3&&B.code!==1001?{type:"PusherError",data:{code:B.code,message:B.reason||B.message}}:null}},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(9),q=B(24),Y=B(46),K=B(8),G=function(J){j(Z,J);function Z(ee,te){J.call(this),this.id=ee,this.transport=te,this.activityTimeout=te.activityTimeout,this.bindListeners()}return Z.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},Z.prototype.send=function(ee){return this.transport.send(ee)},Z.prototype.send_event=function(ee,te,se){var re={event:ee,data:te};return se&&(re.channel=se),K.default.debug("Event sent",re),this.send(Y.encodeMessage(re))},Z.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},Z.prototype.close=function(){this.transport.close()},Z.prototype.bindListeners=function(){var ee=this,te={message:function(re){var ne;try{ne=Y.decodeMessage(re)}catch(ce){ee.emit("error",{type:"MessageParseError",error:ce,data:re.data})}if(ne!==void 0){switch(K.default.debug("Event recd",ne),ne.event){case"pusher:error":ee.emit("error",{type:"PusherError",data:ne.data});break;case"pusher:ping":ee.emit("ping");break;case"pusher:pong":ee.emit("pong");break}ee.emit("message",ne)}},activity:function(){ee.emit("activity")},error:function(re){ee.emit("error",{type:"WebSocketError",error:re})},closed:function(re){se(),re&&re.code&&ee.handleCloseEvent(re),ee.transport=null,ee.emit("closed")}},se=function(){U.objectApply(te,function(re,ne){ee.transport.unbind(ne,re)})};U.objectApply(te,function(re,ne){ee.transport.bind(ne,re)})},Z.prototype.handleCloseEvent=function(ee){var te=Y.getCloseAction(ee),se=Y.getCloseError(ee);se&&this.emit("error",se),te&&this.emit(te,{action:te,error:se})},Z}(q.default);N.__esModule=!0,N.default=G},function(I,N,B){var j=B(2),U=function(){function q(Y,K){this.channel=Y;var G=K.authTransport;if(typeof j.default.getAuthorizers()[G]>"u")throw"'"+G+"' is not a recognized auth transport";this.type=G,this.options=K,this.authOptions=(K||{}).auth||{}}return q.prototype.composeQuery=function(Y){var K="socket_id="+encodeURIComponent(Y)+"&channel_name="+encodeURIComponent(this.channel.name);for(var G in this.authOptions.params)K+="&"+encodeURIComponent(G)+"="+encodeURIComponent(this.authOptions.params[G]);return K},q.prototype.authorize=function(Y,K){return q.authorizers=q.authorizers||j.default.getAuthorizers(),q.authorizers[this.type].call(this,j.default,Y,K)},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=B(2),U=function(){function q(Y,K){this.timeline=Y,this.options=K||{}}return q.prototype.send=function(Y,K){this.timeline.isEmpty()||this.timeline.send(j.default.TimelineTransport.getAgent(this,Y),K)},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(51),q=B(8),Y=B(53),K=B(14),G=function(J){j(Z,J);function Z(ee,te){J.call(this,ee,te),this.members=new Y.default}return Z.prototype.authorize=function(ee,te){var se=this;J.prototype.authorize.call(this,ee,function(re,ne){if(!re){if(ne.channel_data===void 0){var ce=K.default.buildLogSuffix("authenticationEndpoint");q.default.warn("Invalid auth response for channel '"+se.name+"',"+("expected 'channel_data' field. "+ce)),te("Invalid auth response");return}var me=JSON.parse(ne.channel_data);se.members.setMyID(me.user_id)}te(re,ne)})},Z.prototype.handleEvent=function(ee){var te=ee.event;if(te.indexOf("pusher_internal:")===0)this.handleInternalEvent(ee);else{var se=ee.data,re={};ee.user_id&&(re.user_id=ee.user_id),this.emit(te,se,re)}},Z.prototype.handleInternalEvent=function(ee){var te=ee.event,se=ee.data;switch(te){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(ee);break;case"pusher_internal:member_added":var re=this.members.addMember(se);this.emit("pusher:member_added",re);break;case"pusher_internal:member_removed":var ne=this.members.removeMember(se);ne&&this.emit("pusher:member_removed",ne);break}},Z.prototype.handleSubscriptionSucceededEvent=function(ee){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(ee.data),this.emit("pusher:subscription_succeeded",this.members))},Z.prototype.disconnect=function(){this.members.reset(),J.prototype.disconnect.call(this)},Z}(U.default);N.__esModule=!0,N.default=G},function(I,N,B){var j=this&&this.__extends||function(K,G){for(var J in G)G.hasOwnProperty(J)&&(K[J]=G[J]);function Z(){this.constructor=K}K.prototype=G===null?Object.create(G):(Z.prototype=G.prototype,new Z)},U=B(43),q=B(52),Y=function(K){j(G,K);function G(){K.apply(this,arguments)}return G.prototype.authorize=function(J,Z){var ee=U.default.createAuthorizer(this,this.pusher.config);return ee.authorize(J,Z)},G}(q.default);N.__esModule=!0,N.default=Y},function(I,N,B){var j=this&&this.__extends||function(J,Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(J[ee]=Z[ee]);function te(){this.constructor=J}J.prototype=Z===null?Object.create(Z):(te.prototype=Z.prototype,new te)},U=B(24),q=B(31),Y=B(8),K=B(14),G=function(J){j(Z,J);function Z(ee,te){J.call(this,function(se,re){Y.default.debug("No callbacks on "+ee+" for "+se)}),this.name=ee,this.pusher=te,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}return Z.prototype.authorize=function(ee,te){return te(!1,{})},Z.prototype.trigger=function(ee,te){if(ee.indexOf("client-")!==0)throw new q.BadEventName("Event '"+ee+"' does not start with 'client-'");if(!this.subscribed){var se=K.default.buildLogSuffix("triggeringClientEvents");Y.default.warn("Client event triggered before channel 'subscription_succeeded' event . "+se)}return this.pusher.send_event(ee,te,this.name)},Z.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},Z.prototype.handleEvent=function(ee){var te=ee.event,se=ee.data;if(te==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(ee);else if(te.indexOf("pusher_internal:")!==0){var re={};this.emit(te,se,re)}},Z.prototype.handleSubscriptionSucceededEvent=function(ee){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",ee.data)},Z.prototype.subscribe=function(){var ee=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(te,se){te?ee.emit("pusher:subscription_error",se):ee.pusher.send_event("pusher:subscribe",{auth:se.auth,channel_data:se.channel_data,channel:ee.name})}))},Z.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},Z.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},Z.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},Z}(U.default);N.__esModule=!0,N.default=G},function(I,N,B){var j=B(9),U=function(){function q(){this.reset()}return q.prototype.get=function(Y){return Object.prototype.hasOwnProperty.call(this.members,Y)?{id:Y,info:this.members[Y]}:null},q.prototype.each=function(Y){var K=this;j.objectApply(this.members,function(G,J){Y(K.get(J))})},q.prototype.setMyID=function(Y){this.myID=Y},q.prototype.onSubscription=function(Y){this.members=Y.presence.hash,this.count=Y.presence.count,this.me=this.get(this.myID)},q.prototype.addMember=function(Y){return this.get(Y.user_id)===null&&this.count++,this.members[Y.user_id]=Y.user_info,this.get(Y.user_id)},q.prototype.removeMember=function(Y){var K=this.get(Y.user_id);return K&&(delete this.members[Y.user_id],this.count--),K},q.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},q}();N.__esModule=!0,N.default=U},function(I,N,B){var j=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function se(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)},U=B(51),q=B(31),Y=B(8),K=B(55),G=B(57),J=function(Z){j(ee,Z);function ee(){Z.apply(this,arguments),this.key=null}return ee.prototype.authorize=function(te,se){var re=this;Z.prototype.authorize.call(this,te,function(ne,ce){if(ne){se(!0,ce);return}var me=ce.shared_secret;if(!me){var ue="No shared_secret key in auth payload for encrypted channel: "+re.name;se(!0,ue),Y.default.warn("Error: "+ue);return}re.key=G.decodeBase64(me),delete ce.shared_secret,se(!1,ce)})},ee.prototype.trigger=function(te,se){throw new q.UnsupportedFeature("Client events are not currently supported for encrypted channels")},ee.prototype.handleEvent=function(te){var se=te.event,re=te.data;if(se.indexOf("pusher_internal:")===0||se.indexOf("pusher:")===0){Z.prototype.handleEvent.call(this,te);return}this.handleEncryptedEvent(se,re)},ee.prototype.handleEncryptedEvent=function(te,se){var re=this;if(!this.key){Y.default.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!se.ciphertext||!se.nonce){Y.default.warn("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+se);return}var ne=G.decodeBase64(se.ciphertext);if(ne.length<K.secretbox.overheadLength){Y.default.warn("Expected encrypted event ciphertext length to be "+K.secretbox.overheadLength+", got: "+ne.length);return}var ce=G.decodeBase64(se.nonce);if(ce.length<K.secretbox.nonceLength){Y.default.warn("Expected encrypted event nonce length to be "+K.secretbox.nonceLength+", got: "+ce.length);return}var me=K.secretbox.open(ne,ce,this.key);if(me===null){Y.default.debug("Failed to decrypted an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,function(ue,_e){if(ue){Y.default.warn("Failed to make a request to the authEndpoint: "+_e+". Unable to fetch new key, so dropping encrypted event");return}if(me=K.secretbox.open(ne,ce,re.key),me===null){Y.default.warn("Failed to decrypt event with new key. Dropping encrypted event");return}re.emitJSON(te,G.encodeUTF8(me))});return}this.emitJSON(te,G.encodeUTF8(me))},ee.prototype.emitJSON=function(te,se){try{this.emit(te,JSON.parse(se))}catch{this.emit(te,se)}return this},ee}(U.default);N.__esModule=!0,N.default=J},function(I,N,B){(function(j){var U=function(Ke){var mt,dt=new Float64Array(16);if(Ke)for(mt=0;mt<Ke.length;mt++)dt[mt]=Ke[mt];return dt},q=function(){throw new Error("no PRNG")},Y=new Uint8Array(16),K=new Uint8Array(32);K[0]=9;var G=U(),J=U([1]),Z=U([56129,1]),ee=U([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),te=U([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),se=U([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),re=U([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),ne=U([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function ce(Ke,mt,dt,Ne){Ke[mt]=dt>>24&255,Ke[mt+1]=dt>>16&255,Ke[mt+2]=dt>>8&255,Ke[mt+3]=dt&255,Ke[mt+4]=Ne>>24&255,Ke[mt+5]=Ne>>16&255,Ke[mt+6]=Ne>>8&255,Ke[mt+7]=Ne&255}function me(Ke,mt,dt,Ne,_t){var Xt,sn=0;for(Xt=0;Xt<_t;Xt++)sn|=Ke[mt+Xt]^dt[Ne+Xt];return(1&sn-1>>>8)-1}function ue(Ke,mt,dt,Ne){return me(Ke,mt,dt,Ne,16)}function _e(Ke,mt,dt,Ne){return me(Ke,mt,dt,Ne,32)}function fe(Ke,mt,dt,Ne){for(var _t=Ne[0]&255|(Ne[1]&255)<<8|(Ne[2]&255)<<16|(Ne[3]&255)<<24,Xt=dt[0]&255|(dt[1]&255)<<8|(dt[2]&255)<<16|(dt[3]&255)<<24,sn=dt[4]&255|(dt[5]&255)<<8|(dt[6]&255)<<16|(dt[7]&255)<<24,Tn=dt[8]&255|(dt[9]&255)<<8|(dt[10]&255)<<16|(dt[11]&255)<<24,In=dt[12]&255|(dt[13]&255)<<8|(dt[14]&255)<<16|(dt[15]&255)<<24,Qn=Ne[4]&255|(Ne[5]&255)<<8|(Ne[6]&255)<<16|(Ne[7]&255)<<24,Xn=mt[0]&255|(mt[1]&255)<<8|(mt[2]&255)<<16|(mt[3]&255)<<24,Rr=mt[4]&255|(mt[5]&255)<<8|(mt[6]&255)<<16|(mt[7]&255)<<24,tr=mt[8]&255|(mt[9]&255)<<8|(mt[10]&255)<<16|(mt[11]&255)<<24,fr=mt[12]&255|(mt[13]&255)<<8|(mt[14]&255)<<16|(mt[15]&255)<<24,kr=Ne[8]&255|(Ne[9]&255)<<8|(Ne[10]&255)<<16|(Ne[11]&255)<<24,sr=dt[16]&255|(dt[17]&255)<<8|(dt[18]&255)<<16|(dt[19]&255)<<24,Pn=dt[20]&255|(dt[21]&255)<<8|(dt[22]&255)<<16|(dt[23]&255)<<24,mr=dt[24]&255|(dt[25]&255)<<8|(dt[26]&255)<<16|(dt[27]&255)<<24,br=dt[28]&255|(dt[29]&255)<<8|(dt[30]&255)<<16|(dt[31]&255)<<24,hr=Ne[12]&255|(Ne[13]&255)<<8|(Ne[14]&255)<<16|(Ne[15]&255)<<24,Bn=_t,er=Xt,Qe=sn,bt=Tn,wt=In,Bt=Qn,Yt=Xn,Mt=Rr,en=tr,pn=fr,Sn=kr,cn=sr,ur=Pn,or=mr,nt=br,gt=hr,et,nn=0;nn<20;nn+=2)et=Bn+ur|0,wt^=et<<7|et>>>32-7,et=wt+Bn|0,en^=et<<9|et>>>32-9,et=en+wt|0,ur^=et<<13|et>>>32-13,et=ur+en|0,Bn^=et<<18|et>>>32-18,et=Bt+er|0,pn^=et<<7|et>>>32-7,et=pn+Bt|0,or^=et<<9|et>>>32-9,et=or+pn|0,er^=et<<13|et>>>32-13,et=er+or|0,Bt^=et<<18|et>>>32-18,et=Sn+Yt|0,nt^=et<<7|et>>>32-7,et=nt+Sn|0,Qe^=et<<9|et>>>32-9,et=Qe+nt|0,Yt^=et<<13|et>>>32-13,et=Yt+Qe|0,Sn^=et<<18|et>>>32-18,et=gt+cn|0,bt^=et<<7|et>>>32-7,et=bt+gt|0,Mt^=et<<9|et>>>32-9,et=Mt+bt|0,cn^=et<<13|et>>>32-13,et=cn+Mt|0,gt^=et<<18|et>>>32-18,et=Bn+bt|0,er^=et<<7|et>>>32-7,et=er+Bn|0,Qe^=et<<9|et>>>32-9,et=Qe+er|0,bt^=et<<13|et>>>32-13,et=bt+Qe|0,Bn^=et<<18|et>>>32-18,et=Bt+wt|0,Yt^=et<<7|et>>>32-7,et=Yt+Bt|0,Mt^=et<<9|et>>>32-9,et=Mt+Yt|0,wt^=et<<13|et>>>32-13,et=wt+Mt|0,Bt^=et<<18|et>>>32-18,et=Sn+pn|0,cn^=et<<7|et>>>32-7,et=cn+Sn|0,en^=et<<9|et>>>32-9,et=en+cn|0,pn^=et<<13|et>>>32-13,et=pn+en|0,Sn^=et<<18|et>>>32-18,et=gt+nt|0,ur^=et<<7|et>>>32-7,et=ur+gt|0,or^=et<<9|et>>>32-9,et=or+ur|0,nt^=et<<13|et>>>32-13,et=nt+or|0,gt^=et<<18|et>>>32-18;Bn=Bn+_t|0,er=er+Xt|0,Qe=Qe+sn|0,bt=bt+Tn|0,wt=wt+In|0,Bt=Bt+Qn|0,Yt=Yt+Xn|0,Mt=Mt+Rr|0,en=en+tr|0,pn=pn+fr|0,Sn=Sn+kr|0,cn=cn+sr|0,ur=ur+Pn|0,or=or+mr|0,nt=nt+br|0,gt=gt+hr|0,Ke[0]=Bn>>>0&255,Ke[1]=Bn>>>8&255,Ke[2]=Bn>>>16&255,Ke[3]=Bn>>>24&255,Ke[4]=er>>>0&255,Ke[5]=er>>>8&255,Ke[6]=er>>>16&255,Ke[7]=er>>>24&255,Ke[8]=Qe>>>0&255,Ke[9]=Qe>>>8&255,Ke[10]=Qe>>>16&255,Ke[11]=Qe>>>24&255,Ke[12]=bt>>>0&255,Ke[13]=bt>>>8&255,Ke[14]=bt>>>16&255,Ke[15]=bt>>>24&255,Ke[16]=wt>>>0&255,Ke[17]=wt>>>8&255,Ke[18]=wt>>>16&255,Ke[19]=wt>>>24&255,Ke[20]=Bt>>>0&255,Ke[21]=Bt>>>8&255,Ke[22]=Bt>>>16&255,Ke[23]=Bt>>>24&255,Ke[24]=Yt>>>0&255,Ke[25]=Yt>>>8&255,Ke[26]=Yt>>>16&255,Ke[27]=Yt>>>24&255,Ke[28]=Mt>>>0&255,Ke[29]=Mt>>>8&255,Ke[30]=Mt>>>16&255,Ke[31]=Mt>>>24&255,Ke[32]=en>>>0&255,Ke[33]=en>>>8&255,Ke[34]=en>>>16&255,Ke[35]=en>>>24&255,Ke[36]=pn>>>0&255,Ke[37]=pn>>>8&255,Ke[38]=pn>>>16&255,Ke[39]=pn>>>24&255,Ke[40]=Sn>>>0&255,Ke[41]=Sn>>>8&255,Ke[42]=Sn>>>16&255,Ke[43]=Sn>>>24&255,Ke[44]=cn>>>0&255,Ke[45]=cn>>>8&255,Ke[46]=cn>>>16&255,Ke[47]=cn>>>24&255,Ke[48]=ur>>>0&255,Ke[49]=ur>>>8&255,Ke[50]=ur>>>16&255,Ke[51]=ur>>>24&255,Ke[52]=or>>>0&255,Ke[53]=or>>>8&255,Ke[54]=or>>>16&255,Ke[55]=or>>>24&255,Ke[56]=nt>>>0&255,Ke[57]=nt>>>8&255,Ke[58]=nt>>>16&255,Ke[59]=nt>>>24&255,Ke[60]=gt>>>0&255,Ke[61]=gt>>>8&255,Ke[62]=gt>>>16&255,Ke[63]=gt>>>24&255}function ge(Ke,mt,dt,Ne){for(var _t=Ne[0]&255|(Ne[1]&255)<<8|(Ne[2]&255)<<16|(Ne[3]&255)<<24,Xt=dt[0]&255|(dt[1]&255)<<8|(dt[2]&255)<<16|(dt[3]&255)<<24,sn=dt[4]&255|(dt[5]&255)<<8|(dt[6]&255)<<16|(dt[7]&255)<<24,Tn=dt[8]&255|(dt[9]&255)<<8|(dt[10]&255)<<16|(dt[11]&255)<<24,In=dt[12]&255|(dt[13]&255)<<8|(dt[14]&255)<<16|(dt[15]&255)<<24,Qn=Ne[4]&255|(Ne[5]&255)<<8|(Ne[6]&255)<<16|(Ne[7]&255)<<24,Xn=mt[0]&255|(mt[1]&255)<<8|(mt[2]&255)<<16|(mt[3]&255)<<24,Rr=mt[4]&255|(mt[5]&255)<<8|(mt[6]&255)<<16|(mt[7]&255)<<24,tr=mt[8]&255|(mt[9]&255)<<8|(mt[10]&255)<<16|(mt[11]&255)<<24,fr=mt[12]&255|(mt[13]&255)<<8|(mt[14]&255)<<16|(mt[15]&255)<<24,kr=Ne[8]&255|(Ne[9]&255)<<8|(Ne[10]&255)<<16|(Ne[11]&255)<<24,sr=dt[16]&255|(dt[17]&255)<<8|(dt[18]&255)<<16|(dt[19]&255)<<24,Pn=dt[20]&255|(dt[21]&255)<<8|(dt[22]&255)<<16|(dt[23]&255)<<24,mr=dt[24]&255|(dt[25]&255)<<8|(dt[26]&255)<<16|(dt[27]&255)<<24,br=dt[28]&255|(dt[29]&255)<<8|(dt[30]&255)<<16|(dt[31]&255)<<24,hr=Ne[12]&255|(Ne[13]&255)<<8|(Ne[14]&255)<<16|(Ne[15]&255)<<24,Bn=_t,er=Xt,Qe=sn,bt=Tn,wt=In,Bt=Qn,Yt=Xn,Mt=Rr,en=tr,pn=fr,Sn=kr,cn=sr,ur=Pn,or=mr,nt=br,gt=hr,et,nn=0;nn<20;nn+=2)et=Bn+ur|0,wt^=et<<7|et>>>32-7,et=wt+Bn|0,en^=et<<9|et>>>32-9,et=en+wt|0,ur^=et<<13|et>>>32-13,et=ur+en|0,Bn^=et<<18|et>>>32-18,et=Bt+er|0,pn^=et<<7|et>>>32-7,et=pn+Bt|0,or^=et<<9|et>>>32-9,et=or+pn|0,er^=et<<13|et>>>32-13,et=er+or|0,Bt^=et<<18|et>>>32-18,et=Sn+Yt|0,nt^=et<<7|et>>>32-7,et=nt+Sn|0,Qe^=et<<9|et>>>32-9,et=Qe+nt|0,Yt^=et<<13|et>>>32-13,et=Yt+Qe|0,Sn^=et<<18|et>>>32-18,et=gt+cn|0,bt^=et<<7|et>>>32-7,et=bt+gt|0,Mt^=et<<9|et>>>32-9,et=Mt+bt|0,cn^=et<<13|et>>>32-13,et=cn+Mt|0,gt^=et<<18|et>>>32-18,et=Bn+bt|0,er^=et<<7|et>>>32-7,et=er+Bn|0,Qe^=et<<9|et>>>32-9,et=Qe+er|0,bt^=et<<13|et>>>32-13,et=bt+Qe|0,Bn^=et<<18|et>>>32-18,et=Bt+wt|0,Yt^=et<<7|et>>>32-7,et=Yt+Bt|0,Mt^=et<<9|et>>>32-9,et=Mt+Yt|0,wt^=et<<13|et>>>32-13,et=wt+Mt|0,Bt^=et<<18|et>>>32-18,et=Sn+pn|0,cn^=et<<7|et>>>32-7,et=cn+Sn|0,en^=et<<9|et>>>32-9,et=en+cn|0,pn^=et<<13|et>>>32-13,et=pn+en|0,Sn^=et<<18|et>>>32-18,et=gt+nt|0,ur^=et<<7|et>>>32-7,et=ur+gt|0,or^=et<<9|et>>>32-9,et=or+ur|0,nt^=et<<13|et>>>32-13,et=nt+or|0,gt^=et<<18|et>>>32-18;Ke[0]=Bn>>>0&255,Ke[1]=Bn>>>8&255,Ke[2]=Bn>>>16&255,Ke[3]=Bn>>>24&255,Ke[4]=Bt>>>0&255,Ke[5]=Bt>>>8&255,Ke[6]=Bt>>>16&255,Ke[7]=Bt>>>24&255,Ke[8]=Sn>>>0&255,Ke[9]=Sn>>>8&255,Ke[10]=Sn>>>16&255,Ke[11]=Sn>>>24&255,Ke[12]=gt>>>0&255,Ke[13]=gt>>>8&255,Ke[14]=gt>>>16&255,Ke[15]=gt>>>24&255,Ke[16]=Yt>>>0&255,Ke[17]=Yt>>>8&255,Ke[18]=Yt>>>16&255,Ke[19]=Yt>>>24&255,Ke[20]=Mt>>>0&255,Ke[21]=Mt>>>8&255,Ke[22]=Mt>>>16&255,Ke[23]=Mt>>>24&255,Ke[24]=en>>>0&255,Ke[25]=en>>>8&255,Ke[26]=en>>>16&255,Ke[27]=en>>>24&255,Ke[28]=pn>>>0&255,Ke[29]=pn>>>8&255,Ke[30]=pn>>>16&255,Ke[31]=pn>>>24&255}function ye(Ke,mt,dt,Ne){fe(Ke,mt,dt,Ne)}function xe(Ke,mt,dt,Ne){ge(Ke,mt,dt,Ne)}var le=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function be(Ke,mt,dt,Ne,_t,Xt,sn){var Tn=new Uint8Array(16),In=new Uint8Array(64),Qn,Xn;for(Xn=0;Xn<16;Xn++)Tn[Xn]=0;for(Xn=0;Xn<8;Xn++)Tn[Xn]=Xt[Xn];for(;_t>=64;){for(ye(In,Tn,sn,le),Xn=0;Xn<64;Xn++)Ke[mt+Xn]=dt[Ne+Xn]^In[Xn];for(Qn=1,Xn=8;Xn<16;Xn++)Qn=Qn+(Tn[Xn]&255)|0,Tn[Xn]=Qn&255,Qn>>>=8;_t-=64,mt+=64,Ne+=64}if(_t>0)for(ye(In,Tn,sn,le),Xn=0;Xn<_t;Xn++)Ke[mt+Xn]=dt[Ne+Xn]^In[Xn];return 0}function ve(Ke,mt,dt,Ne,_t){var Xt=new Uint8Array(16),sn=new Uint8Array(64),Tn,In;for(In=0;In<16;In++)Xt[In]=0;for(In=0;In<8;In++)Xt[In]=Ne[In];for(;dt>=64;){for(ye(sn,Xt,_t,le),In=0;In<64;In++)Ke[mt+In]=sn[In];for(Tn=1,In=8;In<16;In++)Tn=Tn+(Xt[In]&255)|0,Xt[In]=Tn&255,Tn>>>=8;dt-=64,mt+=64}if(dt>0)for(ye(sn,Xt,_t,le),In=0;In<dt;In++)Ke[mt+In]=sn[In];return 0}function we(Ke,mt,dt,Ne,_t){var Xt=new Uint8Array(32);xe(Xt,Ne,_t,le);for(var sn=new Uint8Array(8),Tn=0;Tn<8;Tn++)sn[Tn]=Ne[Tn+16];return ve(Ke,mt,dt,sn,Xt)}function Ae(Ke,mt,dt,Ne,_t,Xt,sn){var Tn=new Uint8Array(32);xe(Tn,Xt,sn,le);for(var In=new Uint8Array(8),Qn=0;Qn<8;Qn++)In[Qn]=Xt[Qn+16];return be(Ke,mt,dt,Ne,_t,In,Tn)}var Se=function(Ke){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var mt,dt,Ne,_t,Xt,sn,Tn,In;mt=Ke[0]&255|(Ke[1]&255)<<8,this.r[0]=mt&8191,dt=Ke[2]&255|(Ke[3]&255)<<8,this.r[1]=(mt>>>13|dt<<3)&8191,Ne=Ke[4]&255|(Ke[5]&255)<<8,this.r[2]=(dt>>>10|Ne<<6)&7939,_t=Ke[6]&255|(Ke[7]&255)<<8,this.r[3]=(Ne>>>7|_t<<9)&8191,Xt=Ke[8]&255|(Ke[9]&255)<<8,this.r[4]=(_t>>>4|Xt<<12)&255,this.r[5]=Xt>>>1&8190,sn=Ke[10]&255|(Ke[11]&255)<<8,this.r[6]=(Xt>>>14|sn<<2)&8191,Tn=Ke[12]&255|(Ke[13]&255)<<8,this.r[7]=(sn>>>11|Tn<<5)&8065,In=Ke[14]&255|(Ke[15]&255)<<8,this.r[8]=(Tn>>>8|In<<8)&8191,this.r[9]=In>>>5&127,this.pad[0]=Ke[16]&255|(Ke[17]&255)<<8,this.pad[1]=Ke[18]&255|(Ke[19]&255)<<8,this.pad[2]=Ke[20]&255|(Ke[21]&255)<<8,this.pad[3]=Ke[22]&255|(Ke[23]&255)<<8,this.pad[4]=Ke[24]&255|(Ke[25]&255)<<8,this.pad[5]=Ke[26]&255|(Ke[27]&255)<<8,this.pad[6]=Ke[28]&255|(Ke[29]&255)<<8,this.pad[7]=Ke[30]&255|(Ke[31]&255)<<8};Se.prototype.blocks=function(Ke,mt,dt){for(var Ne=this.fin?0:2048,_t,Xt,sn,Tn,In,Qn,Xn,Rr,tr,fr,kr,sr,Pn,mr,br,hr,Bn,er,Qe,bt=this.h[0],wt=this.h[1],Bt=this.h[2],Yt=this.h[3],Mt=this.h[4],en=this.h[5],pn=this.h[6],Sn=this.h[7],cn=this.h[8],ur=this.h[9],or=this.r[0],nt=this.r[1],gt=this.r[2],et=this.r[3],nn=this.r[4],xn=this.r[5],Un=this.r[6],Jn=this.r[7],_r=this.r[8],xr=this.r[9];dt>=16;)_t=Ke[mt+0]&255|(Ke[mt+1]&255)<<8,bt+=_t&8191,Xt=Ke[mt+2]&255|(Ke[mt+3]&255)<<8,wt+=(_t>>>13|Xt<<3)&8191,sn=Ke[mt+4]&255|(Ke[mt+5]&255)<<8,Bt+=(Xt>>>10|sn<<6)&8191,Tn=Ke[mt+6]&255|(Ke[mt+7]&255)<<8,Yt+=(sn>>>7|Tn<<9)&8191,In=Ke[mt+8]&255|(Ke[mt+9]&255)<<8,Mt+=(Tn>>>4|In<<12)&8191,en+=In>>>1&8191,Qn=Ke[mt+10]&255|(Ke[mt+11]&255)<<8,pn+=(In>>>14|Qn<<2)&8191,Xn=Ke[mt+12]&255|(Ke[mt+13]&255)<<8,Sn+=(Qn>>>11|Xn<<5)&8191,Rr=Ke[mt+14]&255|(Ke[mt+15]&255)<<8,cn+=(Xn>>>8|Rr<<8)&8191,ur+=Rr>>>5|Ne,tr=0,fr=tr,fr+=bt*or,fr+=wt*(5*xr),fr+=Bt*(5*_r),fr+=Yt*(5*Jn),fr+=Mt*(5*Un),tr=fr>>>13,fr&=8191,fr+=en*(5*xn),fr+=pn*(5*nn),fr+=Sn*(5*et),fr+=cn*(5*gt),fr+=ur*(5*nt),tr+=fr>>>13,fr&=8191,kr=tr,kr+=bt*nt,kr+=wt*or,kr+=Bt*(5*xr),kr+=Yt*(5*_r),kr+=Mt*(5*Jn),tr=kr>>>13,kr&=8191,kr+=en*(5*Un),kr+=pn*(5*xn),kr+=Sn*(5*nn),kr+=cn*(5*et),kr+=ur*(5*gt),tr+=kr>>>13,kr&=8191,sr=tr,sr+=bt*gt,sr+=wt*nt,sr+=Bt*or,sr+=Yt*(5*xr),sr+=Mt*(5*_r),tr=sr>>>13,sr&=8191,sr+=en*(5*Jn),sr+=pn*(5*Un),sr+=Sn*(5*xn),sr+=cn*(5*nn),sr+=ur*(5*et),tr+=sr>>>13,sr&=8191,Pn=tr,Pn+=bt*et,Pn+=wt*gt,Pn+=Bt*nt,Pn+=Yt*or,Pn+=Mt*(5*xr),tr=Pn>>>13,Pn&=8191,Pn+=en*(5*_r),Pn+=pn*(5*Jn),Pn+=Sn*(5*Un),Pn+=cn*(5*xn),Pn+=ur*(5*nn),tr+=Pn>>>13,Pn&=8191,mr=tr,mr+=bt*nn,mr+=wt*et,mr+=Bt*gt,mr+=Yt*nt,mr+=Mt*or,tr=mr>>>13,mr&=8191,mr+=en*(5*xr),mr+=pn*(5*_r),mr+=Sn*(5*Jn),mr+=cn*(5*Un),mr+=ur*(5*xn),tr+=mr>>>13,mr&=8191,br=tr,br+=bt*xn,br+=wt*nn,br+=Bt*et,br+=Yt*gt,br+=Mt*nt,tr=br>>>13,br&=8191,br+=en*or,br+=pn*(5*xr),br+=Sn*(5*_r),br+=cn*(5*Jn),br+=ur*(5*Un),tr+=br>>>13,br&=8191,hr=tr,hr+=bt*Un,hr+=wt*xn,hr+=Bt*nn,hr+=Yt*et,hr+=Mt*gt,tr=hr>>>13,hr&=8191,hr+=en*nt,hr+=pn*or,hr+=Sn*(5*xr),hr+=cn*(5*_r),hr+=ur*(5*Jn),tr+=hr>>>13,hr&=8191,Bn=tr,Bn+=bt*Jn,Bn+=wt*Un,Bn+=Bt*xn,Bn+=Yt*nn,Bn+=Mt*et,tr=Bn>>>13,Bn&=8191,Bn+=en*gt,Bn+=pn*nt,Bn+=Sn*or,Bn+=cn*(5*xr),Bn+=ur*(5*_r),tr+=Bn>>>13,Bn&=8191,er=tr,er+=bt*_r,er+=wt*Jn,er+=Bt*Un,er+=Yt*xn,er+=Mt*nn,tr=er>>>13,er&=8191,er+=en*et,er+=pn*gt,er+=Sn*nt,er+=cn*or,er+=ur*(5*xr),tr+=er>>>13,er&=8191,Qe=tr,Qe+=bt*xr,Qe+=wt*_r,Qe+=Bt*Jn,Qe+=Yt*Un,Qe+=Mt*xn,tr=Qe>>>13,Qe&=8191,Qe+=en*nn,Qe+=pn*et,Qe+=Sn*gt,Qe+=cn*nt,Qe+=ur*or,tr+=Qe>>>13,Qe&=8191,tr=(tr<<2)+tr|0,tr=tr+fr|0,fr=tr&8191,tr=tr>>>13,kr+=tr,bt=fr,wt=kr,Bt=sr,Yt=Pn,Mt=mr,en=br,pn=hr,Sn=Bn,cn=er,ur=Qe,mt+=16,dt-=16;this.h[0]=bt,this.h[1]=wt,this.h[2]=Bt,this.h[3]=Yt,this.h[4]=Mt,this.h[5]=en,this.h[6]=pn,this.h[7]=Sn,this.h[8]=cn,this.h[9]=ur},Se.prototype.finish=function(Ke,mt){var dt=new Uint16Array(10),Ne,_t,Xt,sn;if(this.leftover){for(sn=this.leftover,this.buffer[sn++]=1;sn<16;sn++)this.buffer[sn]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(Ne=this.h[1]>>>13,this.h[1]&=8191,sn=2;sn<10;sn++)this.h[sn]+=Ne,Ne=this.h[sn]>>>13,this.h[sn]&=8191;for(this.h[0]+=Ne*5,Ne=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=Ne,Ne=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=Ne,dt[0]=this.h[0]+5,Ne=dt[0]>>>13,dt[0]&=8191,sn=1;sn<10;sn++)dt[sn]=this.h[sn]+Ne,Ne=dt[sn]>>>13,dt[sn]&=8191;for(dt[9]-=8192,_t=(Ne^1)-1,sn=0;sn<10;sn++)dt[sn]&=_t;for(_t=~_t,sn=0;sn<10;sn++)this.h[sn]=this.h[sn]&_t|dt[sn];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Xt=this.h[0]+this.pad[0],this.h[0]=Xt&65535,sn=1;sn<8;sn++)Xt=(this.h[sn]+this.pad[sn]|0)+(Xt>>>16)|0,this.h[sn]=Xt&65535;Ke[mt+0]=this.h[0]>>>0&255,Ke[mt+1]=this.h[0]>>>8&255,Ke[mt+2]=this.h[1]>>>0&255,Ke[mt+3]=this.h[1]>>>8&255,Ke[mt+4]=this.h[2]>>>0&255,Ke[mt+5]=this.h[2]>>>8&255,Ke[mt+6]=this.h[3]>>>0&255,Ke[mt+7]=this.h[3]>>>8&255,Ke[mt+8]=this.h[4]>>>0&255,Ke[mt+9]=this.h[4]>>>8&255,Ke[mt+10]=this.h[5]>>>0&255,Ke[mt+11]=this.h[5]>>>8&255,Ke[mt+12]=this.h[6]>>>0&255,Ke[mt+13]=this.h[6]>>>8&255,Ke[mt+14]=this.h[7]>>>0&255,Ke[mt+15]=this.h[7]>>>8&255},Se.prototype.update=function(Ke,mt,dt){var Ne,_t;if(this.leftover){for(_t=16-this.leftover,_t>dt&&(_t=dt),Ne=0;Ne<_t;Ne++)this.buffer[this.leftover+Ne]=Ke[mt+Ne];if(dt-=_t,mt+=_t,this.leftover+=_t,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(dt>=16&&(_t=dt-dt%16,this.blocks(Ke,mt,_t),mt+=_t,dt-=_t),dt){for(Ne=0;Ne<dt;Ne++)this.buffer[this.leftover+Ne]=Ke[mt+Ne];this.leftover+=dt}};function Pe(Ke,mt,dt,Ne,_t,Xt){var sn=new Se(Xt);return sn.update(dt,Ne,_t),sn.finish(Ke,mt),0}function Me(Ke,mt,dt,Ne,_t,Xt){var sn=new Uint8Array(16);return Pe(sn,0,dt,Ne,_t,Xt),ue(Ke,mt,sn,0)}function Be(Ke,mt,dt,Ne,_t){var Xt;if(dt<32)return-1;for(Ae(Ke,0,mt,0,dt,Ne,_t),Pe(Ke,16,Ke,32,dt-32,Ke),Xt=0;Xt<16;Xt++)Ke[Xt]=0;return 0}function ze(Ke,mt,dt,Ne,_t){var Xt,sn=new Uint8Array(32);if(dt<32||(we(sn,0,32,Ne,_t),Me(mt,16,mt,32,dt-32,sn)!==0))return-1;for(Ae(Ke,0,mt,0,dt,Ne,_t),Xt=0;Xt<32;Xt++)Ke[Xt]=0;return 0}function Ze(Ke,mt){var dt;for(dt=0;dt<16;dt++)Ke[dt]=mt[dt]|0}function ft(Ke){var mt,dt,Ne=1;for(mt=0;mt<16;mt++)dt=Ke[mt]+Ne+65535,Ne=Math.floor(dt/65536),Ke[mt]=dt-Ne*65536;Ke[0]+=Ne-1+37*(Ne-1)}function Ye(Ke,mt,dt){for(var Ne,_t=~(dt-1),Xt=0;Xt<16;Xt++)Ne=_t&(Ke[Xt]^mt[Xt]),Ke[Xt]^=Ne,mt[Xt]^=Ne}function Ve(Ke,mt){var dt,Ne,_t,Xt=U(),sn=U();for(dt=0;dt<16;dt++)sn[dt]=mt[dt];for(ft(sn),ft(sn),ft(sn),Ne=0;Ne<2;Ne++){for(Xt[0]=sn[0]-65517,dt=1;dt<15;dt++)Xt[dt]=sn[dt]-65535-(Xt[dt-1]>>16&1),Xt[dt-1]&=65535;Xt[15]=sn[15]-32767-(Xt[14]>>16&1),_t=Xt[15]>>16&1,Xt[14]&=65535,Ye(sn,Xt,1-_t)}for(dt=0;dt<16;dt++)Ke[2*dt]=sn[dt]&255,Ke[2*dt+1]=sn[dt]>>8}function Dt(Ke,mt){var dt=new Uint8Array(32),Ne=new Uint8Array(32);return Ve(dt,Ke),Ve(Ne,mt),_e(dt,0,Ne,0)}function Nt(Ke){var mt=new Uint8Array(32);return Ve(mt,Ke),mt[0]&1}function Vt(Ke,mt){var dt;for(dt=0;dt<16;dt++)Ke[dt]=mt[2*dt]+(mt[2*dt+1]<<8);Ke[15]&=32767}function Wt(Ke,mt,dt){for(var Ne=0;Ne<16;Ne++)Ke[Ne]=mt[Ne]+dt[Ne]}function Gt(Ke,mt,dt){for(var Ne=0;Ne<16;Ne++)Ke[Ne]=mt[Ne]-dt[Ne]}function tn(Ke,mt,dt){var Ne,_t,Xt=0,sn=0,Tn=0,In=0,Qn=0,Xn=0,Rr=0,tr=0,fr=0,kr=0,sr=0,Pn=0,mr=0,br=0,hr=0,Bn=0,er=0,Qe=0,bt=0,wt=0,Bt=0,Yt=0,Mt=0,en=0,pn=0,Sn=0,cn=0,ur=0,or=0,nt=0,gt=0,et=dt[0],nn=dt[1],xn=dt[2],Un=dt[3],Jn=dt[4],_r=dt[5],xr=dt[6],Nr=dt[7],Mr=dt[8],Qr=dt[9],ni=dt[10],Jr=dt[11],ri=dt[12],Yr=dt[13],ti=dt[14],gi=dt[15];Ne=mt[0],Xt+=Ne*et,sn+=Ne*nn,Tn+=Ne*xn,In+=Ne*Un,Qn+=Ne*Jn,Xn+=Ne*_r,Rr+=Ne*xr,tr+=Ne*Nr,fr+=Ne*Mr,kr+=Ne*Qr,sr+=Ne*ni,Pn+=Ne*Jr,mr+=Ne*ri,br+=Ne*Yr,hr+=Ne*ti,Bn+=Ne*gi,Ne=mt[1],sn+=Ne*et,Tn+=Ne*nn,In+=Ne*xn,Qn+=Ne*Un,Xn+=Ne*Jn,Rr+=Ne*_r,tr+=Ne*xr,fr+=Ne*Nr,kr+=Ne*Mr,sr+=Ne*Qr,Pn+=Ne*ni,mr+=Ne*Jr,br+=Ne*ri,hr+=Ne*Yr,Bn+=Ne*ti,er+=Ne*gi,Ne=mt[2],Tn+=Ne*et,In+=Ne*nn,Qn+=Ne*xn,Xn+=Ne*Un,Rr+=Ne*Jn,tr+=Ne*_r,fr+=Ne*xr,kr+=Ne*Nr,sr+=Ne*Mr,Pn+=Ne*Qr,mr+=Ne*ni,br+=Ne*Jr,hr+=Ne*ri,Bn+=Ne*Yr,er+=Ne*ti,Qe+=Ne*gi,Ne=mt[3],In+=Ne*et,Qn+=Ne*nn,Xn+=Ne*xn,Rr+=Ne*Un,tr+=Ne*Jn,fr+=Ne*_r,kr+=Ne*xr,sr+=Ne*Nr,Pn+=Ne*Mr,mr+=Ne*Qr,br+=Ne*ni,hr+=Ne*Jr,Bn+=Ne*ri,er+=Ne*Yr,Qe+=Ne*ti,bt+=Ne*gi,Ne=mt[4],Qn+=Ne*et,Xn+=Ne*nn,Rr+=Ne*xn,tr+=Ne*Un,fr+=Ne*Jn,kr+=Ne*_r,sr+=Ne*xr,Pn+=Ne*Nr,mr+=Ne*Mr,br+=Ne*Qr,hr+=Ne*ni,Bn+=Ne*Jr,er+=Ne*ri,Qe+=Ne*Yr,bt+=Ne*ti,wt+=Ne*gi,Ne=mt[5],Xn+=Ne*et,Rr+=Ne*nn,tr+=Ne*xn,fr+=Ne*Un,kr+=Ne*Jn,sr+=Ne*_r,Pn+=Ne*xr,mr+=Ne*Nr,br+=Ne*Mr,hr+=Ne*Qr,Bn+=Ne*ni,er+=Ne*Jr,Qe+=Ne*ri,bt+=Ne*Yr,wt+=Ne*ti,Bt+=Ne*gi,Ne=mt[6],Rr+=Ne*et,tr+=Ne*nn,fr+=Ne*xn,kr+=Ne*Un,sr+=Ne*Jn,Pn+=Ne*_r,mr+=Ne*xr,br+=Ne*Nr,hr+=Ne*Mr,Bn+=Ne*Qr,er+=Ne*ni,Qe+=Ne*Jr,bt+=Ne*ri,wt+=Ne*Yr,Bt+=Ne*ti,Yt+=Ne*gi,Ne=mt[7],tr+=Ne*et,fr+=Ne*nn,kr+=Ne*xn,sr+=Ne*Un,Pn+=Ne*Jn,mr+=Ne*_r,br+=Ne*xr,hr+=Ne*Nr,Bn+=Ne*Mr,er+=Ne*Qr,Qe+=Ne*ni,bt+=Ne*Jr,wt+=Ne*ri,Bt+=Ne*Yr,Yt+=Ne*ti,Mt+=Ne*gi,Ne=mt[8],fr+=Ne*et,kr+=Ne*nn,sr+=Ne*xn,Pn+=Ne*Un,mr+=Ne*Jn,br+=Ne*_r,hr+=Ne*xr,Bn+=Ne*Nr,er+=Ne*Mr,Qe+=Ne*Qr,bt+=Ne*ni,wt+=Ne*Jr,Bt+=Ne*ri,Yt+=Ne*Yr,Mt+=Ne*ti,en+=Ne*gi,Ne=mt[9],kr+=Ne*et,sr+=Ne*nn,Pn+=Ne*xn,mr+=Ne*Un,br+=Ne*Jn,hr+=Ne*_r,Bn+=Ne*xr,er+=Ne*Nr,Qe+=Ne*Mr,bt+=Ne*Qr,wt+=Ne*ni,Bt+=Ne*Jr,Yt+=Ne*ri,Mt+=Ne*Yr,en+=Ne*ti,pn+=Ne*gi,Ne=mt[10],sr+=Ne*et,Pn+=Ne*nn,mr+=Ne*xn,br+=Ne*Un,hr+=Ne*Jn,Bn+=Ne*_r,er+=Ne*xr,Qe+=Ne*Nr,bt+=Ne*Mr,wt+=Ne*Qr,Bt+=Ne*ni,Yt+=Ne*Jr,Mt+=Ne*ri,en+=Ne*Yr,pn+=Ne*ti,Sn+=Ne*gi,Ne=mt[11],Pn+=Ne*et,mr+=Ne*nn,br+=Ne*xn,hr+=Ne*Un,Bn+=Ne*Jn,er+=Ne*_r,Qe+=Ne*xr,bt+=Ne*Nr,wt+=Ne*Mr,Bt+=Ne*Qr,Yt+=Ne*ni,Mt+=Ne*Jr,en+=Ne*ri,pn+=Ne*Yr,Sn+=Ne*ti,cn+=Ne*gi,Ne=mt[12],mr+=Ne*et,br+=Ne*nn,hr+=Ne*xn,Bn+=Ne*Un,er+=Ne*Jn,Qe+=Ne*_r,bt+=Ne*xr,wt+=Ne*Nr,Bt+=Ne*Mr,Yt+=Ne*Qr,Mt+=Ne*ni,en+=Ne*Jr,pn+=Ne*ri,Sn+=Ne*Yr,cn+=Ne*ti,ur+=Ne*gi,Ne=mt[13],br+=Ne*et,hr+=Ne*nn,Bn+=Ne*xn,er+=Ne*Un,Qe+=Ne*Jn,bt+=Ne*_r,wt+=Ne*xr,Bt+=Ne*Nr,Yt+=Ne*Mr,Mt+=Ne*Qr,en+=Ne*ni,pn+=Ne*Jr,Sn+=Ne*ri,cn+=Ne*Yr,ur+=Ne*ti,or+=Ne*gi,Ne=mt[14],hr+=Ne*et,Bn+=Ne*nn,er+=Ne*xn,Qe+=Ne*Un,bt+=Ne*Jn,wt+=Ne*_r,Bt+=Ne*xr,Yt+=Ne*Nr,Mt+=Ne*Mr,en+=Ne*Qr,pn+=Ne*ni,Sn+=Ne*Jr,cn+=Ne*ri,ur+=Ne*Yr,or+=Ne*ti,nt+=Ne*gi,Ne=mt[15],Bn+=Ne*et,er+=Ne*nn,Qe+=Ne*xn,bt+=Ne*Un,wt+=Ne*Jn,Bt+=Ne*_r,Yt+=Ne*xr,Mt+=Ne*Nr,en+=Ne*Mr,pn+=Ne*Qr,Sn+=Ne*ni,cn+=Ne*Jr,ur+=Ne*ri,or+=Ne*Yr,nt+=Ne*ti,gt+=Ne*gi,Xt+=38*er,sn+=38*Qe,Tn+=38*bt,In+=38*wt,Qn+=38*Bt,Xn+=38*Yt,Rr+=38*Mt,tr+=38*en,fr+=38*pn,kr+=38*Sn,sr+=38*cn,Pn+=38*ur,mr+=38*or,br+=38*nt,hr+=38*gt,_t=1,Ne=Xt+_t+65535,_t=Math.floor(Ne/65536),Xt=Ne-_t*65536,Ne=sn+_t+65535,_t=Math.floor(Ne/65536),sn=Ne-_t*65536,Ne=Tn+_t+65535,_t=Math.floor(Ne/65536),Tn=Ne-_t*65536,Ne=In+_t+65535,_t=Math.floor(Ne/65536),In=Ne-_t*65536,Ne=Qn+_t+65535,_t=Math.floor(Ne/65536),Qn=Ne-_t*65536,Ne=Xn+_t+65535,_t=Math.floor(Ne/65536),Xn=Ne-_t*65536,Ne=Rr+_t+65535,_t=Math.floor(Ne/65536),Rr=Ne-_t*65536,Ne=tr+_t+65535,_t=Math.floor(Ne/65536),tr=Ne-_t*65536,Ne=fr+_t+65535,_t=Math.floor(Ne/65536),fr=Ne-_t*65536,Ne=kr+_t+65535,_t=Math.floor(Ne/65536),kr=Ne-_t*65536,Ne=sr+_t+65535,_t=Math.floor(Ne/65536),sr=Ne-_t*65536,Ne=Pn+_t+65535,_t=Math.floor(Ne/65536),Pn=Ne-_t*65536,Ne=mr+_t+65535,_t=Math.floor(Ne/65536),mr=Ne-_t*65536,Ne=br+_t+65535,_t=Math.floor(Ne/65536),br=Ne-_t*65536,Ne=hr+_t+65535,_t=Math.floor(Ne/65536),hr=Ne-_t*65536,Ne=Bn+_t+65535,_t=Math.floor(Ne/65536),Bn=Ne-_t*65536,Xt+=_t-1+37*(_t-1),_t=1,Ne=Xt+_t+65535,_t=Math.floor(Ne/65536),Xt=Ne-_t*65536,Ne=sn+_t+65535,_t=Math.floor(Ne/65536),sn=Ne-_t*65536,Ne=Tn+_t+65535,_t=Math.floor(Ne/65536),Tn=Ne-_t*65536,Ne=In+_t+65535,_t=Math.floor(Ne/65536),In=Ne-_t*65536,Ne=Qn+_t+65535,_t=Math.floor(Ne/65536),Qn=Ne-_t*65536,Ne=Xn+_t+65535,_t=Math.floor(Ne/65536),Xn=Ne-_t*65536,Ne=Rr+_t+65535,_t=Math.floor(Ne/65536),Rr=Ne-_t*65536,Ne=tr+_t+65535,_t=Math.floor(Ne/65536),tr=Ne-_t*65536,Ne=fr+_t+65535,_t=Math.floor(Ne/65536),fr=Ne-_t*65536,Ne=kr+_t+65535,_t=Math.floor(Ne/65536),kr=Ne-_t*65536,Ne=sr+_t+65535,_t=Math.floor(Ne/65536),sr=Ne-_t*65536,Ne=Pn+_t+65535,_t=Math.floor(Ne/65536),Pn=Ne-_t*65536,Ne=mr+_t+65535,_t=Math.floor(Ne/65536),mr=Ne-_t*65536,Ne=br+_t+65535,_t=Math.floor(Ne/65536),br=Ne-_t*65536,Ne=hr+_t+65535,_t=Math.floor(Ne/65536),hr=Ne-_t*65536,Ne=Bn+_t+65535,_t=Math.floor(Ne/65536),Bn=Ne-_t*65536,Xt+=_t-1+37*(_t-1),Ke[0]=Xt,Ke[1]=sn,Ke[2]=Tn,Ke[3]=In,Ke[4]=Qn,Ke[5]=Xn,Ke[6]=Rr,Ke[7]=tr,Ke[8]=fr,Ke[9]=kr,Ke[10]=sr,Ke[11]=Pn,Ke[12]=mr,Ke[13]=br,Ke[14]=hr,Ke[15]=Bn}function Qt(Ke,mt){tn(Ke,mt,mt)}function En(Ke,mt){var dt=U(),Ne;for(Ne=0;Ne<16;Ne++)dt[Ne]=mt[Ne];for(Ne=253;Ne>=0;Ne--)Qt(dt,dt),Ne!==2&&Ne!==4&&tn(dt,dt,mt);for(Ne=0;Ne<16;Ne++)Ke[Ne]=dt[Ne]}function kn(Ke,mt){var dt=U(),Ne;for(Ne=0;Ne<16;Ne++)dt[Ne]=mt[Ne];for(Ne=250;Ne>=0;Ne--)Qt(dt,dt),Ne!==1&&tn(dt,dt,mt);for(Ne=0;Ne<16;Ne++)Ke[Ne]=dt[Ne]}function Gn(Ke,mt,dt){var Ne=new Uint8Array(32),_t=new Float64Array(80),Xt,sn,Tn=U(),In=U(),Qn=U(),Xn=U(),Rr=U(),tr=U();for(sn=0;sn<31;sn++)Ne[sn]=mt[sn];for(Ne[31]=mt[31]&127|64,Ne[0]&=248,Vt(_t,dt),sn=0;sn<16;sn++)In[sn]=_t[sn],Xn[sn]=Tn[sn]=Qn[sn]=0;for(Tn[0]=Xn[0]=1,sn=254;sn>=0;--sn)Xt=Ne[sn>>>3]>>>(sn&7)&1,Ye(Tn,In,Xt),Ye(Qn,Xn,Xt),Wt(Rr,Tn,Qn),Gt(Tn,Tn,Qn),Wt(Qn,In,Xn),Gt(In,In,Xn),Qt(Xn,Rr),Qt(tr,Tn),tn(Tn,Qn,Tn),tn(Qn,In,Rr),Wt(Rr,Tn,Qn),Gt(Tn,Tn,Qn),Qt(In,Tn),Gt(Qn,Xn,tr),tn(Tn,Qn,Z),Wt(Tn,Tn,Xn),tn(Qn,Qn,Tn),tn(Tn,Xn,tr),tn(Xn,In,_t),Qt(In,Rr),Ye(Tn,In,Xt),Ye(Qn,Xn,Xt);for(sn=0;sn<16;sn++)_t[sn+16]=Tn[sn],_t[sn+32]=Qn[sn],_t[sn+48]=In[sn],_t[sn+64]=Xn[sn];var fr=_t.subarray(32),kr=_t.subarray(16);return En(fr,fr),tn(kr,kr,fr),Ve(Ke,kr),0}function An(Ke,mt){return Gn(Ke,mt,K)}function jn(Ke,mt){return q(mt,32),An(Ke,mt)}function Mn(Ke,mt,dt){var Ne=new Uint8Array(32);return Gn(Ne,dt,mt),xe(Ke,Y,Ne,le)}var Ln=Be,Et=ze;function We(Ke,mt,dt,Ne,_t,Xt){var sn=new Uint8Array(32);return Mn(sn,_t,Xt),Ln(Ke,mt,dt,Ne,sn)}function xt(Ke,mt,dt,Ne,_t,Xt){var sn=new Uint8Array(32);return Mn(sn,_t,Xt),Et(Ke,mt,dt,Ne,sn)}var Ue=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Oe(Ke,mt,dt,Ne){for(var _t=new Int32Array(16),Xt=new Int32Array(16),sn,Tn,In,Qn,Xn,Rr,tr,fr,kr,sr,Pn,mr,br,hr,Bn,er,Qe,bt,wt,Bt,Yt,Mt,en,pn,Sn,cn,ur=Ke[0],or=Ke[1],nt=Ke[2],gt=Ke[3],et=Ke[4],nn=Ke[5],xn=Ke[6],Un=Ke[7],Jn=mt[0],_r=mt[1],xr=mt[2],Nr=mt[3],Mr=mt[4],Qr=mt[5],ni=mt[6],Jr=mt[7],ri=0;Ne>=128;){for(wt=0;wt<16;wt++)Bt=8*wt+ri,_t[wt]=dt[Bt+0]<<24|dt[Bt+1]<<16|dt[Bt+2]<<8|dt[Bt+3],Xt[wt]=dt[Bt+4]<<24|dt[Bt+5]<<16|dt[Bt+6]<<8|dt[Bt+7];for(wt=0;wt<80;wt++)if(sn=ur,Tn=or,In=nt,Qn=gt,Xn=et,Rr=nn,tr=xn,fr=Un,kr=Jn,sr=_r,Pn=xr,mr=Nr,br=Mr,hr=Qr,Bn=ni,er=Jr,Yt=Un,Mt=Jr,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=(et>>>14|Mr<<32-14)^(et>>>18|Mr<<32-18)^(Mr>>>41-32|et<<32-(41-32)),Mt=(Mr>>>14|et<<32-14)^(Mr>>>18|et<<32-18)^(et>>>41-32|Mr<<32-(41-32)),en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,Yt=et&nn^~et&xn,Mt=Mr&Qr^~Mr&ni,en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,Yt=Ue[wt*2],Mt=Ue[wt*2+1],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,Yt=_t[wt%16],Mt=Xt[wt%16],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Qe=Sn&65535|cn<<16,bt=en&65535|pn<<16,Yt=Qe,Mt=bt,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=(ur>>>28|Jn<<32-28)^(Jn>>>34-32|ur<<32-(34-32))^(Jn>>>39-32|ur<<32-(39-32)),Mt=(Jn>>>28|ur<<32-28)^(ur>>>34-32|Jn<<32-(34-32))^(ur>>>39-32|Jn<<32-(39-32)),en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,Yt=ur&or^ur&nt^or&nt,Mt=Jn&_r^Jn&xr^_r&xr,en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,fr=Sn&65535|cn<<16,er=en&65535|pn<<16,Yt=Qn,Mt=mr,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Qe,Mt=bt,en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Qn=Sn&65535|cn<<16,mr=en&65535|pn<<16,or=sn,nt=Tn,gt=In,et=Qn,nn=Xn,xn=Rr,Un=tr,ur=fr,_r=kr,xr=sr,Nr=Pn,Mr=mr,Qr=br,ni=hr,Jr=Bn,Jn=er,wt%16===15)for(Bt=0;Bt<16;Bt++)Yt=_t[Bt],Mt=Xt[Bt],en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=_t[(Bt+9)%16],Mt=Xt[(Bt+9)%16],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,Qe=_t[(Bt+1)%16],bt=Xt[(Bt+1)%16],Yt=(Qe>>>1|bt<<32-1)^(Qe>>>8|bt<<32-8)^Qe>>>7,Mt=(bt>>>1|Qe<<32-1)^(bt>>>8|Qe<<32-8)^(bt>>>7|Qe<<32-7),en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,Qe=_t[(Bt+14)%16],bt=Xt[(Bt+14)%16],Yt=(Qe>>>19|bt<<32-19)^(bt>>>61-32|Qe<<32-(61-32))^Qe>>>6,Mt=(bt>>>19|Qe<<32-19)^(Qe>>>61-32|bt<<32-(61-32))^(bt>>>6|Qe<<32-6),en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,_t[Bt]=Sn&65535|cn<<16,Xt[Bt]=en&65535|pn<<16;Yt=ur,Mt=Jn,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[0],Mt=mt[0],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[0]=ur=Sn&65535|cn<<16,mt[0]=Jn=en&65535|pn<<16,Yt=or,Mt=_r,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[1],Mt=mt[1],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[1]=or=Sn&65535|cn<<16,mt[1]=_r=en&65535|pn<<16,Yt=nt,Mt=xr,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[2],Mt=mt[2],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[2]=nt=Sn&65535|cn<<16,mt[2]=xr=en&65535|pn<<16,Yt=gt,Mt=Nr,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[3],Mt=mt[3],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[3]=gt=Sn&65535|cn<<16,mt[3]=Nr=en&65535|pn<<16,Yt=et,Mt=Mr,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[4],Mt=mt[4],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[4]=et=Sn&65535|cn<<16,mt[4]=Mr=en&65535|pn<<16,Yt=nn,Mt=Qr,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[5],Mt=mt[5],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[5]=nn=Sn&65535|cn<<16,mt[5]=Qr=en&65535|pn<<16,Yt=xn,Mt=ni,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[6],Mt=mt[6],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[6]=xn=Sn&65535|cn<<16,mt[6]=ni=en&65535|pn<<16,Yt=Un,Mt=Jr,en=Mt&65535,pn=Mt>>>16,Sn=Yt&65535,cn=Yt>>>16,Yt=Ke[7],Mt=mt[7],en+=Mt&65535,pn+=Mt>>>16,Sn+=Yt&65535,cn+=Yt>>>16,pn+=en>>>16,Sn+=pn>>>16,cn+=Sn>>>16,Ke[7]=Un=Sn&65535|cn<<16,mt[7]=Jr=en&65535|pn<<16,ri+=128,Ne-=128}return Ne}function ke(Ke,mt,dt){var Ne=new Int32Array(8),_t=new Int32Array(8),Xt=new Uint8Array(256),sn,Tn=dt;for(Ne[0]=1779033703,Ne[1]=3144134277,Ne[2]=1013904242,Ne[3]=2773480762,Ne[4]=1359893119,Ne[5]=2600822924,Ne[6]=528734635,Ne[7]=1541459225,_t[0]=4089235720,_t[1]=2227873595,_t[2]=4271175723,_t[3]=1595750129,_t[4]=2917565137,_t[5]=725511199,_t[6]=4215389547,_t[7]=327033209,Oe(Ne,_t,mt,dt),dt%=128,sn=0;sn<dt;sn++)Xt[sn]=mt[Tn-dt+sn];for(Xt[dt]=128,dt=256-128*(dt<112?1:0),Xt[dt-9]=0,ce(Xt,dt-8,Tn/536870912|0,Tn<<3),Oe(Ne,_t,Xt,dt),sn=0;sn<8;sn++)ce(Ke,8*sn,Ne[sn],_t[sn]);return 0}function $e(Ke,mt){var dt=U(),Ne=U(),_t=U(),Xt=U(),sn=U(),Tn=U(),In=U(),Qn=U(),Xn=U();Gt(dt,Ke[1],Ke[0]),Gt(Xn,mt[1],mt[0]),tn(dt,dt,Xn),Wt(Ne,Ke[0],Ke[1]),Wt(Xn,mt[0],mt[1]),tn(Ne,Ne,Xn),tn(_t,Ke[3],mt[3]),tn(_t,_t,te),tn(Xt,Ke[2],mt[2]),Wt(Xt,Xt,Xt),Gt(sn,Ne,dt),Gt(Tn,Xt,_t),Wt(In,Xt,_t),Wt(Qn,Ne,dt),tn(Ke[0],sn,Tn),tn(Ke[1],Qn,In),tn(Ke[2],In,Tn),tn(Ke[3],sn,Qn)}function Ge(Ke,mt,dt){var Ne;for(Ne=0;Ne<4;Ne++)Ye(Ke[Ne],mt[Ne],dt)}function rt(Ke,mt){var dt=U(),Ne=U(),_t=U();En(_t,mt[2]),tn(dt,mt[0],_t),tn(Ne,mt[1],_t),Ve(Ke,Ne),Ke[31]^=Nt(dt)<<7}function ut(Ke,mt,dt){var Ne,_t;for(Ze(Ke[0],G),Ze(Ke[1],J),Ze(Ke[2],J),Ze(Ke[3],G),_t=255;_t>=0;--_t)Ne=dt[_t/8|0]>>(_t&7)&1,Ge(Ke,mt,Ne),$e(mt,Ke),$e(Ke,Ke),Ge(Ke,mt,Ne)}function ct(Ke,mt){var dt=[U(),U(),U(),U()];Ze(dt[0],se),Ze(dt[1],re),Ze(dt[2],J),tn(dt[3],se,re),ut(Ke,dt,mt)}function it(Ke,mt,dt){var Ne=new Uint8Array(64),_t=[U(),U(),U(),U()],Xt;for(dt||q(mt,32),ke(Ne,mt,32),Ne[0]&=248,Ne[31]&=127,Ne[31]|=64,ct(_t,Ne),rt(Ke,_t),Xt=0;Xt<32;Xt++)mt[Xt+32]=Ke[Xt];return 0}var ot=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Ot(Ke,mt){var dt,Ne,_t,Xt;for(Ne=63;Ne>=32;--Ne){for(dt=0,_t=Ne-32,Xt=Ne-12;_t<Xt;++_t)mt[_t]+=dt-16*mt[Ne]*ot[_t-(Ne-32)],dt=mt[_t]+128>>8,mt[_t]-=dt*256;mt[_t]+=dt,mt[Ne]=0}for(dt=0,_t=0;_t<32;_t++)mt[_t]+=dt-(mt[31]>>4)*ot[_t],dt=mt[_t]>>8,mt[_t]&=255;for(_t=0;_t<32;_t++)mt[_t]-=dt*ot[_t];for(Ne=0;Ne<32;Ne++)mt[Ne+1]+=mt[Ne]>>8,Ke[Ne]=mt[Ne]&255}function dn(Ke){var mt=new Float64Array(64),dt;for(dt=0;dt<64;dt++)mt[dt]=Ke[dt];for(dt=0;dt<64;dt++)Ke[dt]=0;Ot(Ke,mt)}function Fn(Ke,mt,dt,Ne){var _t=new Uint8Array(64),Xt=new Uint8Array(64),sn=new Uint8Array(64),Tn,In,Qn=new Float64Array(64),Xn=[U(),U(),U(),U()];ke(_t,Ne,32),_t[0]&=248,_t[31]&=127,_t[31]|=64;var Rr=dt+64;for(Tn=0;Tn<dt;Tn++)Ke[64+Tn]=mt[Tn];for(Tn=0;Tn<32;Tn++)Ke[32+Tn]=_t[32+Tn];for(ke(sn,Ke.subarray(32),dt+32),dn(sn),ct(Xn,sn),rt(Ke,Xn),Tn=32;Tn<64;Tn++)Ke[Tn]=Ne[Tn];for(ke(Xt,Ke,dt+64),dn(Xt),Tn=0;Tn<64;Tn++)Qn[Tn]=0;for(Tn=0;Tn<32;Tn++)Qn[Tn]=sn[Tn];for(Tn=0;Tn<32;Tn++)for(In=0;In<32;In++)Qn[Tn+In]+=Xt[Tn]*_t[In];return Ot(Ke.subarray(32),Qn),Rr}function Zt(Ke,mt){var dt=U(),Ne=U(),_t=U(),Xt=U(),sn=U(),Tn=U(),In=U();return Ze(Ke[2],J),Vt(Ke[1],mt),Qt(_t,Ke[1]),tn(Xt,_t,ee),Gt(_t,_t,Ke[2]),Wt(Xt,Ke[2],Xt),Qt(sn,Xt),Qt(Tn,sn),tn(In,Tn,sn),tn(dt,In,_t),tn(dt,dt,Xt),kn(dt,dt),tn(dt,dt,_t),tn(dt,dt,Xt),tn(dt,dt,Xt),tn(Ke[0],dt,Xt),Qt(Ne,Ke[0]),tn(Ne,Ne,Xt),Dt(Ne,_t)&&tn(Ke[0],Ke[0],ne),Qt(Ne,Ke[0]),tn(Ne,Ne,Xt),Dt(Ne,_t)?-1:(Nt(Ke[0])===mt[31]>>7&&Gt(Ke[0],G,Ke[0]),tn(Ke[3],Ke[0],Ke[1]),0)}function vn(Ke,mt,dt,Ne){var _t,Xt,sn=new Uint8Array(32),Tn=new Uint8Array(64),In=[U(),U(),U(),U()],Qn=[U(),U(),U(),U()];if(Xt=-1,dt<64||Zt(Qn,Ne))return-1;for(_t=0;_t<dt;_t++)Ke[_t]=mt[_t];for(_t=0;_t<32;_t++)Ke[_t+32]=Ne[_t];if(ke(Tn,Ke,dt),dn(Tn),ut(In,Qn,Tn),ct(Qn,mt.subarray(32)),$e(In,Qn),rt(sn,In),dt-=64,_e(mt,0,sn,0)){for(_t=0;_t<dt;_t++)Ke[_t]=0;return-1}for(_t=0;_t<dt;_t++)Ke[_t]=mt[_t+64];return Xt=dt,Xt}var lt=32,pt=24,Pt=32,qt=16,Ht=32,mn=32,Yn=32,Ct=32,ht=32,Tt=pt,Lt=Pt,fn=qt,hn=64,wn=32,cr=64,zn=32,ir=64;j.lowlevel={crypto_core_hsalsa20:xe,crypto_stream_xor:Ae,crypto_stream:we,crypto_stream_salsa20_xor:be,crypto_stream_salsa20:ve,crypto_onetimeauth:Pe,crypto_onetimeauth_verify:Me,crypto_verify_16:ue,crypto_verify_32:_e,crypto_secretbox:Be,crypto_secretbox_open:ze,crypto_scalarmult:Gn,crypto_scalarmult_base:An,crypto_box_beforenm:Mn,crypto_box_afternm:Ln,crypto_box:We,crypto_box_open:xt,crypto_box_keypair:jn,crypto_hash:ke,crypto_sign:Fn,crypto_sign_keypair:it,crypto_sign_open:vn,crypto_secretbox_KEYBYTES:lt,crypto_secretbox_NONCEBYTES:pt,crypto_secretbox_ZEROBYTES:Pt,crypto_secretbox_BOXZEROBYTES:qt,crypto_scalarmult_BYTES:Ht,crypto_scalarmult_SCALARBYTES:mn,crypto_box_PUBLICKEYBYTES:Yn,crypto_box_SECRETKEYBYTES:Ct,crypto_box_BEFORENMBYTES:ht,crypto_box_NONCEBYTES:Tt,crypto_box_ZEROBYTES:Lt,crypto_box_BOXZEROBYTES:fn,crypto_sign_BYTES:hn,crypto_sign_PUBLICKEYBYTES:wn,crypto_sign_SECRETKEYBYTES:cr,crypto_sign_SEEDBYTES:zn,crypto_hash_BYTES:ir};function Ir(Ke,mt){if(Ke.length!==lt)throw new Error("bad key size");if(mt.length!==pt)throw new Error("bad nonce size")}function Er(Ke,mt){if(Ke.length!==Yn)throw new Error("bad public key size");if(mt.length!==Ct)throw new Error("bad secret key size")}function Dr(){for(var Ke=0;Ke<arguments.length;Ke++)if(!(arguments[Ke]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ur(Ke){for(var mt=0;mt<Ke.length;mt++)Ke[mt]=0}j.randomBytes=function(Ke){var mt=new Uint8Array(Ke);return q(mt,Ke),mt},j.secretbox=function(Ke,mt,dt){Dr(Ke,mt,dt),Ir(dt,mt);for(var Ne=new Uint8Array(Pt+Ke.length),_t=new Uint8Array(Ne.length),Xt=0;Xt<Ke.length;Xt++)Ne[Xt+Pt]=Ke[Xt];return Be(_t,Ne,Ne.length,mt,dt),_t.subarray(qt)},j.secretbox.open=function(Ke,mt,dt){Dr(Ke,mt,dt),Ir(dt,mt);for(var Ne=new Uint8Array(qt+Ke.length),_t=new Uint8Array(Ne.length),Xt=0;Xt<Ke.length;Xt++)Ne[Xt+qt]=Ke[Xt];return Ne.length<32||ze(_t,Ne,Ne.length,mt,dt)!==0?null:_t.subarray(Pt)},j.secretbox.keyLength=lt,j.secretbox.nonceLength=pt,j.secretbox.overheadLength=qt,j.scalarMult=function(Ke,mt){if(Dr(Ke,mt),Ke.length!==mn)throw new Error("bad n size");if(mt.length!==Ht)throw new Error("bad p size");var dt=new Uint8Array(Ht);return Gn(dt,Ke,mt),dt},j.scalarMult.base=function(Ke){if(Dr(Ke),Ke.length!==mn)throw new Error("bad n size");var mt=new Uint8Array(Ht);return An(mt,Ke),mt},j.scalarMult.scalarLength=mn,j.scalarMult.groupElementLength=Ht,j.box=function(Ke,mt,dt,Ne){var _t=j.box.before(dt,Ne);return j.secretbox(Ke,mt,_t)},j.box.before=function(Ke,mt){Dr(Ke,mt),Er(Ke,mt);var dt=new Uint8Array(ht);return Mn(dt,Ke,mt),dt},j.box.after=j.secretbox,j.box.open=function(Ke,mt,dt,Ne){var _t=j.box.before(dt,Ne);return j.secretbox.open(Ke,mt,_t)},j.box.open.after=j.secretbox.open,j.box.keyPair=function(){var Ke=new Uint8Array(Yn),mt=new Uint8Array(Ct);return jn(Ke,mt),{publicKey:Ke,secretKey:mt}},j.box.keyPair.fromSecretKey=function(Ke){if(Dr(Ke),Ke.length!==Ct)throw new Error("bad secret key size");var mt=new Uint8Array(Yn);return An(mt,Ke),{publicKey:mt,secretKey:new Uint8Array(Ke)}},j.box.publicKeyLength=Yn,j.box.secretKeyLength=Ct,j.box.sharedKeyLength=ht,j.box.nonceLength=Tt,j.box.overheadLength=j.secretbox.overheadLength,j.sign=function(Ke,mt){if(Dr(Ke,mt),mt.length!==cr)throw new Error("bad secret key size");var dt=new Uint8Array(hn+Ke.length);return Fn(dt,Ke,Ke.length,mt),dt},j.sign.open=function(Ke,mt){if(Dr(Ke,mt),mt.length!==wn)throw new Error("bad public key size");var dt=new Uint8Array(Ke.length),Ne=vn(dt,Ke,Ke.length,mt);if(Ne<0)return null;for(var _t=new Uint8Array(Ne),Xt=0;Xt<_t.length;Xt++)_t[Xt]=dt[Xt];return _t},j.sign.detached=function(Ke,mt){for(var dt=j.sign(Ke,mt),Ne=new Uint8Array(hn),_t=0;_t<Ne.length;_t++)Ne[_t]=dt[_t];return Ne},j.sign.detached.verify=function(Ke,mt,dt){if(Dr(Ke,mt,dt),mt.length!==hn)throw new Error("bad signature size");if(dt.length!==wn)throw new Error("bad public key size");var Ne=new Uint8Array(hn+Ke.length),_t=new Uint8Array(hn+Ke.length),Xt;for(Xt=0;Xt<hn;Xt++)Ne[Xt]=mt[Xt];for(Xt=0;Xt<Ke.length;Xt++)Ne[Xt+hn]=Ke[Xt];return vn(_t,Ne,Ne.length,dt)>=0},j.sign.keyPair=function(){var Ke=new Uint8Array(wn),mt=new Uint8Array(cr);return it(Ke,mt),{publicKey:Ke,secretKey:mt}},j.sign.keyPair.fromSecretKey=function(Ke){if(Dr(Ke),Ke.length!==cr)throw new Error("bad secret key size");for(var mt=new Uint8Array(wn),dt=0;dt<mt.length;dt++)mt[dt]=Ke[32+dt];return{publicKey:mt,secretKey:new Uint8Array(Ke)}},j.sign.keyPair.fromSeed=function(Ke){if(Dr(Ke),Ke.length!==zn)throw new Error("bad seed size");for(var mt=new Uint8Array(wn),dt=new Uint8Array(cr),Ne=0;Ne<32;Ne++)dt[Ne]=Ke[Ne];return it(mt,dt,!0),{publicKey:mt,secretKey:dt}},j.sign.publicKeyLength=wn,j.sign.secretKeyLength=cr,j.sign.seedLength=zn,j.sign.signatureLength=hn,j.hash=function(Ke){Dr(Ke);var mt=new Uint8Array(ir);return ke(mt,Ke,Ke.length),mt},j.hash.hashLength=ir,j.verify=function(Ke,mt){return Dr(Ke,mt),Ke.length===0||mt.length===0||Ke.length!==mt.length?!1:me(Ke,0,mt,0,Ke.length)===0},j.setPRNG=function(Ke){q=Ke},function(){var Ke=typeof self<"u"?self.crypto||self.msCrypto:null;if(Ke&&Ke.getRandomValues){var mt=65536;j.setPRNG(function(dt,Ne){var _t,Xt=new Uint8Array(Ne);for(_t=0;_t<Ne;_t+=mt)Ke.getRandomValues(Xt.subarray(_t,_t+Math.min(Ne-_t,mt)));for(_t=0;_t<Ne;_t++)dt[_t]=Xt[_t];Ur(Xt)})}else Ke=B(56),Ke&&Ke.randomBytes&&j.setPRNG(function(dt,Ne){var _t,Xt=Ke.randomBytes(Ne);for(_t=0;_t<Ne;_t++)dt[_t]=Xt[_t];Ur(Xt)})}()})(typeof I<"u"&&I.exports?I.exports:self.nacl=self.nacl||{})},function(I,N){},function(I,N,B){(function(j){(function(U,q){typeof I<"u"&&I.exports?I.exports=q():(U.nacl||(U.nacl={}),U.nacl.util=q())})(this,function(){var U={};function q(Y){if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Y))throw new TypeError("invalid encoding")}return U.decodeUTF8=function(Y){if(typeof Y!="string")throw new TypeError("expected string");var K,G=unescape(encodeURIComponent(Y)),J=new Uint8Array(G.length);for(K=0;K<G.length;K++)J[K]=G.charCodeAt(K);return J},U.encodeUTF8=function(Y){var K,G=[];for(K=0;K<Y.length;K++)G.push(String.fromCharCode(Y[K]));return decodeURIComponent(escape(G.join("")))},typeof atob>"u"?typeof j.from<"u"?(U.encodeBase64=function(Y){return j.from(Y).toString("base64")},U.decodeBase64=function(Y){return q(Y),new Uint8Array(Array.prototype.slice.call(j.from(Y,"base64"),0))}):(U.encodeBase64=function(Y){return new j(Y).toString("base64")},U.decodeBase64=function(Y){return q(Y),new Uint8Array(Array.prototype.slice.call(new j(Y,"base64"),0))}):(U.encodeBase64=function(Y){var K,G=[],J=Y.length;for(K=0;K<J;K++)G.push(String.fromCharCode(Y[K]));return btoa(G.join(""))},U.decodeBase64=function(Y){q(Y);var K,G=atob(Y),J=new Uint8Array(G.length);for(K=0;K<G.length;K++)J[K]=G.charCodeAt(K);return J}),U})}).call(N,B(58).Buffer)},function(I,N,B){var j=B(59),U=B(60),q=B(61);N.Buffer=J,N.SlowBuffer=_e,N.INSPECT_MAX_BYTES=50,J.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:Y(),N.kMaxLength=K();function Y(){try{var Oe=new Uint8Array(1);return Oe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Oe.foo()===42&&typeof Oe.subarray=="function"&&Oe.subarray(1,1).byteLength===0}catch{return!1}}function K(){return J.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function G(Oe,ke){if(K()<ke)throw new RangeError("Invalid typed array length");return J.TYPED_ARRAY_SUPPORT?(Oe=new Uint8Array(ke),Oe.__proto__=J.prototype):(Oe===null&&(Oe=new J(ke)),Oe.length=ke),Oe}function J(Oe,ke,$e){if(!J.TYPED_ARRAY_SUPPORT&&!(this instanceof J))return new J(Oe,ke,$e);if(typeof Oe=="number"){if(typeof ke=="string")throw new Error("If encoding is specified then the first argument must be a string");return se(this,Oe)}return Z(this,Oe,ke,$e)}J.poolSize=8192,J._augment=function(Oe){return Oe.__proto__=J.prototype,Oe};function Z(Oe,ke,$e,Ge){if(typeof ke=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&ke instanceof ArrayBuffer?ce(Oe,ke,$e,Ge):typeof ke=="string"?re(Oe,ke,$e):me(Oe,ke)}J.from=function(Oe,ke,$e){return Z(null,Oe,ke,$e)},J.TYPED_ARRAY_SUPPORT&&(J.prototype.__proto__=Uint8Array.prototype,J.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&J[Symbol.species]===J&&Object.defineProperty(J,Symbol.species,{value:null,configurable:!0}));function ee(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be a number');if(Oe<0)throw new RangeError('"size" argument must not be negative')}function te(Oe,ke,$e,Ge){return ee(ke),ke<=0?G(Oe,ke):$e!==void 0?typeof Ge=="string"?G(Oe,ke).fill($e,Ge):G(Oe,ke).fill($e):G(Oe,ke)}J.alloc=function(Oe,ke,$e){return te(null,Oe,ke,$e)};function se(Oe,ke){if(ee(ke),Oe=G(Oe,ke<0?0:ue(ke)|0),!J.TYPED_ARRAY_SUPPORT)for(var $e=0;$e<ke;++$e)Oe[$e]=0;return Oe}J.allocUnsafe=function(Oe){return se(null,Oe)},J.allocUnsafeSlow=function(Oe){return se(null,Oe)};function re(Oe,ke,$e){if((typeof $e!="string"||$e==="")&&($e="utf8"),!J.isEncoding($e))throw new TypeError('"encoding" must be a valid string encoding');var Ge=fe(ke,$e)|0;Oe=G(Oe,Ge);var rt=Oe.write(ke,$e);return rt!==Ge&&(Oe=Oe.slice(0,rt)),Oe}function ne(Oe,ke){var $e=ke.length<0?0:ue(ke.length)|0;Oe=G(Oe,$e);for(var Ge=0;Ge<$e;Ge+=1)Oe[Ge]=ke[Ge]&255;return Oe}function ce(Oe,ke,$e,Ge){if(ke.byteLength,$e<0||ke.byteLength<$e)throw new RangeError("'offset' is out of bounds");if(ke.byteLength<$e+(Ge||0))throw new RangeError("'length' is out of bounds");return $e===void 0&&Ge===void 0?ke=new Uint8Array(ke):Ge===void 0?ke=new Uint8Array(ke,$e):ke=new Uint8Array(ke,$e,Ge),J.TYPED_ARRAY_SUPPORT?(Oe=ke,Oe.__proto__=J.prototype):Oe=ne(Oe,ke),Oe}function me(Oe,ke){if(J.isBuffer(ke)){var $e=ue(ke.length)|0;return Oe=G(Oe,$e),Oe.length===0||ke.copy(Oe,0,0,$e),Oe}if(ke){if(typeof ArrayBuffer<"u"&&ke.buffer instanceof ArrayBuffer||"length"in ke)return typeof ke.length!="number"||Ue(ke.length)?G(Oe,0):ne(Oe,ke);if(ke.type==="Buffer"&&q(ke.data))return ne(Oe,ke.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ue(Oe){if(Oe>=K())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K().toString(16)+" bytes");return Oe|0}function _e(Oe){return+Oe!=Oe&&(Oe=0),J.alloc(+Oe)}J.isBuffer=function(ke){return!!(ke!=null&&ke._isBuffer)},J.compare=function(ke,$e){if(!J.isBuffer(ke)||!J.isBuffer($e))throw new TypeError("Arguments must be Buffers");if(ke===$e)return 0;for(var Ge=ke.length,rt=$e.length,ut=0,ct=Math.min(Ge,rt);ut<ct;++ut)if(ke[ut]!==$e[ut]){Ge=ke[ut],rt=$e[ut];break}return Ge<rt?-1:rt<Ge?1:0},J.isEncoding=function(ke){switch(String(ke).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},J.concat=function(ke,$e){if(!q(ke))throw new TypeError('"list" argument must be an Array of Buffers');if(ke.length===0)return J.alloc(0);var Ge;if($e===void 0)for($e=0,Ge=0;Ge<ke.length;++Ge)$e+=ke[Ge].length;var rt=J.allocUnsafe($e),ut=0;for(Ge=0;Ge<ke.length;++Ge){var ct=ke[Ge];if(!J.isBuffer(ct))throw new TypeError('"list" argument must be an Array of Buffers');ct.copy(rt,ut),ut+=ct.length}return rt};function fe(Oe,ke){if(J.isBuffer(Oe))return Oe.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Oe)||Oe instanceof ArrayBuffer))return Oe.byteLength;typeof Oe!="string"&&(Oe=""+Oe);var $e=Oe.length;if($e===0)return 0;for(var Ge=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return $e;case"utf8":case"utf-8":case void 0:return Mn(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e*2;case"hex":return $e>>>1;case"base64":return We(Oe).length;default:if(Ge)return Mn(Oe).length;ke=(""+ke).toLowerCase(),Ge=!0}}J.byteLength=fe;function ge(Oe,ke,$e){var Ge=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||(($e===void 0||$e>this.length)&&($e=this.length),$e<=0)||($e>>>=0,ke>>>=0,$e<=ke))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return Ve(this,ke,$e);case"utf8":case"utf-8":return Be(this,ke,$e);case"ascii":return ft(this,ke,$e);case"latin1":case"binary":return Ye(this,ke,$e);case"base64":return Me(this,ke,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dt(this,ke,$e);default:if(Ge)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),Ge=!0}}J.prototype._isBuffer=!0;function ye(Oe,ke,$e){var Ge=Oe[ke];Oe[ke]=Oe[$e],Oe[$e]=Ge}J.prototype.swap16=function(){var ke=this.length;if(ke%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $e=0;$e<ke;$e+=2)ye(this,$e,$e+1);return this},J.prototype.swap32=function(){var ke=this.length;if(ke%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $e=0;$e<ke;$e+=4)ye(this,$e,$e+3),ye(this,$e+1,$e+2);return this},J.prototype.swap64=function(){var ke=this.length;if(ke%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $e=0;$e<ke;$e+=8)ye(this,$e,$e+7),ye(this,$e+1,$e+6),ye(this,$e+2,$e+5),ye(this,$e+3,$e+4);return this},J.prototype.toString=function(){var ke=this.length|0;return ke===0?"":arguments.length===0?Be(this,0,ke):ge.apply(this,arguments)},J.prototype.equals=function(ke){if(!J.isBuffer(ke))throw new TypeError("Argument must be a Buffer");return this===ke?!0:J.compare(this,ke)===0},J.prototype.inspect=function(){var ke="",$e=N.INSPECT_MAX_BYTES;return this.length>0&&(ke=this.toString("hex",0,$e).match(/.{2}/g).join(" "),this.length>$e&&(ke+=" ... ")),"<Buffer "+ke+">"},J.prototype.compare=function(ke,$e,Ge,rt,ut){if(!J.isBuffer(ke))throw new TypeError("Argument must be a Buffer");if($e===void 0&&($e=0),Ge===void 0&&(Ge=ke?ke.length:0),rt===void 0&&(rt=0),ut===void 0&&(ut=this.length),$e<0||Ge>ke.length||rt<0||ut>this.length)throw new RangeError("out of range index");if(rt>=ut&&$e>=Ge)return 0;if(rt>=ut)return-1;if($e>=Ge)return 1;if($e>>>=0,Ge>>>=0,rt>>>=0,ut>>>=0,this===ke)return 0;for(var ct=ut-rt,it=Ge-$e,ot=Math.min(ct,it),Ot=this.slice(rt,ut),dn=ke.slice($e,Ge),Fn=0;Fn<ot;++Fn)if(Ot[Fn]!==dn[Fn]){ct=Ot[Fn],it=dn[Fn];break}return ct<it?-1:it<ct?1:0};function xe(Oe,ke,$e,Ge,rt){if(Oe.length===0)return-1;if(typeof $e=="string"?(Ge=$e,$e=0):$e>2147483647?$e=2147483647:$e<-2147483648&&($e=-2147483648),$e=+$e,isNaN($e)&&($e=rt?0:Oe.length-1),$e<0&&($e=Oe.length+$e),$e>=Oe.length){if(rt)return-1;$e=Oe.length-1}else if($e<0)if(rt)$e=0;else return-1;if(typeof ke=="string"&&(ke=J.from(ke,Ge)),J.isBuffer(ke))return ke.length===0?-1:le(Oe,ke,$e,Ge,rt);if(typeof ke=="number")return ke=ke&255,J.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?rt?Uint8Array.prototype.indexOf.call(Oe,ke,$e):Uint8Array.prototype.lastIndexOf.call(Oe,ke,$e):le(Oe,[ke],$e,Ge,rt);throw new TypeError("val must be string, number or Buffer")}function le(Oe,ke,$e,Ge,rt){var ut=1,ct=Oe.length,it=ke.length;if(Ge!==void 0&&(Ge=String(Ge).toLowerCase(),Ge==="ucs2"||Ge==="ucs-2"||Ge==="utf16le"||Ge==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;ut=2,ct/=2,it/=2,$e/=2}function ot(vn,lt){return ut===1?vn[lt]:vn.readUInt16BE(lt*ut)}var Ot;if(rt){var dn=-1;for(Ot=$e;Ot<ct;Ot++)if(ot(Oe,Ot)===ot(ke,dn===-1?0:Ot-dn)){if(dn===-1&&(dn=Ot),Ot-dn+1===it)return dn*ut}else dn!==-1&&(Ot-=Ot-dn),dn=-1}else for($e+it>ct&&($e=ct-it),Ot=$e;Ot>=0;Ot--){for(var Fn=!0,Zt=0;Zt<it;Zt++)if(ot(Oe,Ot+Zt)!==ot(ke,Zt)){Fn=!1;break}if(Fn)return Ot}return-1}J.prototype.includes=function(ke,$e,Ge){return this.indexOf(ke,$e,Ge)!==-1},J.prototype.indexOf=function(ke,$e,Ge){return xe(this,ke,$e,Ge,!0)},J.prototype.lastIndexOf=function(ke,$e,Ge){return xe(this,ke,$e,Ge,!1)};function be(Oe,ke,$e,Ge){$e=Number($e)||0;var rt=Oe.length-$e;Ge?(Ge=Number(Ge),Ge>rt&&(Ge=rt)):Ge=rt;var ut=ke.length;if(ut%2!==0)throw new TypeError("Invalid hex string");Ge>ut/2&&(Ge=ut/2);for(var ct=0;ct<Ge;++ct){var it=parseInt(ke.substr(ct*2,2),16);if(isNaN(it))return ct;Oe[$e+ct]=it}return ct}function ve(Oe,ke,$e,Ge){return xt(Mn(ke,Oe.length-$e),Oe,$e,Ge)}function we(Oe,ke,$e,Ge){return xt(Ln(ke),Oe,$e,Ge)}function Ae(Oe,ke,$e,Ge){return we(Oe,ke,$e,Ge)}function Se(Oe,ke,$e,Ge){return xt(We(ke),Oe,$e,Ge)}function Pe(Oe,ke,$e,Ge){return xt(Et(ke,Oe.length-$e),Oe,$e,Ge)}J.prototype.write=function(ke,$e,Ge,rt){if($e===void 0)rt="utf8",Ge=this.length,$e=0;else if(Ge===void 0&&typeof $e=="string")rt=$e,Ge=this.length,$e=0;else if(isFinite($e))$e=$e|0,isFinite(Ge)?(Ge=Ge|0,rt===void 0&&(rt="utf8")):(rt=Ge,Ge=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ut=this.length-$e;if((Ge===void 0||Ge>ut)&&(Ge=ut),ke.length>0&&(Ge<0||$e<0)||$e>this.length)throw new RangeError("Attempt to write outside buffer bounds");rt||(rt="utf8");for(var ct=!1;;)switch(rt){case"hex":return be(this,ke,$e,Ge);case"utf8":case"utf-8":return ve(this,ke,$e,Ge);case"ascii":return we(this,ke,$e,Ge);case"latin1":case"binary":return Ae(this,ke,$e,Ge);case"base64":return Se(this,ke,$e,Ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,ke,$e,Ge);default:if(ct)throw new TypeError("Unknown encoding: "+rt);rt=(""+rt).toLowerCase(),ct=!0}},J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Me(Oe,ke,$e){return ke===0&&$e===Oe.length?j.fromByteArray(Oe):j.fromByteArray(Oe.slice(ke,$e))}function Be(Oe,ke,$e){$e=Math.min(Oe.length,$e);for(var Ge=[],rt=ke;rt<$e;){var ut=Oe[rt],ct=null,it=ut>239?4:ut>223?3:ut>191?2:1;if(rt+it<=$e){var ot,Ot,dn,Fn;switch(it){case 1:ut<128&&(ct=ut);break;case 2:ot=Oe[rt+1],(ot&192)===128&&(Fn=(ut&31)<<6|ot&63,Fn>127&&(ct=Fn));break;case 3:ot=Oe[rt+1],Ot=Oe[rt+2],(ot&192)===128&&(Ot&192)===128&&(Fn=(ut&15)<<12|(ot&63)<<6|Ot&63,Fn>2047&&(Fn<55296||Fn>57343)&&(ct=Fn));break;case 4:ot=Oe[rt+1],Ot=Oe[rt+2],dn=Oe[rt+3],(ot&192)===128&&(Ot&192)===128&&(dn&192)===128&&(Fn=(ut&15)<<18|(ot&63)<<12|(Ot&63)<<6|dn&63,Fn>65535&&Fn<1114112&&(ct=Fn))}}ct===null?(ct=65533,it=1):ct>65535&&(ct-=65536,Ge.push(ct>>>10&1023|55296),ct=56320|ct&1023),Ge.push(ct),rt+=it}return Ze(Ge)}var ze=4096;function Ze(Oe){var ke=Oe.length;if(ke<=ze)return String.fromCharCode.apply(String,Oe);for(var $e="",Ge=0;Ge<ke;)$e+=String.fromCharCode.apply(String,Oe.slice(Ge,Ge+=ze));return $e}function ft(Oe,ke,$e){var Ge="";$e=Math.min(Oe.length,$e);for(var rt=ke;rt<$e;++rt)Ge+=String.fromCharCode(Oe[rt]&127);return Ge}function Ye(Oe,ke,$e){var Ge="";$e=Math.min(Oe.length,$e);for(var rt=ke;rt<$e;++rt)Ge+=String.fromCharCode(Oe[rt]);return Ge}function Ve(Oe,ke,$e){var Ge=Oe.length;(!ke||ke<0)&&(ke=0),(!$e||$e<0||$e>Ge)&&($e=Ge);for(var rt="",ut=ke;ut<$e;++ut)rt+=jn(Oe[ut]);return rt}function Dt(Oe,ke,$e){for(var Ge=Oe.slice(ke,$e),rt="",ut=0;ut<Ge.length;ut+=2)rt+=String.fromCharCode(Ge[ut]+Ge[ut+1]*256);return rt}J.prototype.slice=function(ke,$e){var Ge=this.length;ke=~~ke,$e=$e===void 0?Ge:~~$e,ke<0?(ke+=Ge,ke<0&&(ke=0)):ke>Ge&&(ke=Ge),$e<0?($e+=Ge,$e<0&&($e=0)):$e>Ge&&($e=Ge),$e<ke&&($e=ke);var rt;if(J.TYPED_ARRAY_SUPPORT)rt=this.subarray(ke,$e),rt.__proto__=J.prototype;else{var ut=$e-ke;rt=new J(ut,void 0);for(var ct=0;ct<ut;++ct)rt[ct]=this[ct+ke]}return rt};function Nt(Oe,ke,$e){if(Oe%1!==0||Oe<0)throw new RangeError("offset is not uint");if(Oe+ke>$e)throw new RangeError("Trying to access beyond buffer length")}J.prototype.readUIntLE=function(ke,$e,Ge){ke=ke|0,$e=$e|0,Ge||Nt(ke,$e,this.length);for(var rt=this[ke],ut=1,ct=0;++ct<$e&&(ut*=256);)rt+=this[ke+ct]*ut;return rt},J.prototype.readUIntBE=function(ke,$e,Ge){ke=ke|0,$e=$e|0,Ge||Nt(ke,$e,this.length);for(var rt=this[ke+--$e],ut=1;$e>0&&(ut*=256);)rt+=this[ke+--$e]*ut;return rt},J.prototype.readUInt8=function(ke,$e){return $e||Nt(ke,1,this.length),this[ke]},J.prototype.readUInt16LE=function(ke,$e){return $e||Nt(ke,2,this.length),this[ke]|this[ke+1]<<8},J.prototype.readUInt16BE=function(ke,$e){return $e||Nt(ke,2,this.length),this[ke]<<8|this[ke+1]},J.prototype.readUInt32LE=function(ke,$e){return $e||Nt(ke,4,this.length),(this[ke]|this[ke+1]<<8|this[ke+2]<<16)+this[ke+3]*16777216},J.prototype.readUInt32BE=function(ke,$e){return $e||Nt(ke,4,this.length),this[ke]*16777216+(this[ke+1]<<16|this[ke+2]<<8|this[ke+3])},J.prototype.readIntLE=function(ke,$e,Ge){ke=ke|0,$e=$e|0,Ge||Nt(ke,$e,this.length);for(var rt=this[ke],ut=1,ct=0;++ct<$e&&(ut*=256);)rt+=this[ke+ct]*ut;return ut*=128,rt>=ut&&(rt-=Math.pow(2,8*$e)),rt},J.prototype.readIntBE=function(ke,$e,Ge){ke=ke|0,$e=$e|0,Ge||Nt(ke,$e,this.length);for(var rt=$e,ut=1,ct=this[ke+--rt];rt>0&&(ut*=256);)ct+=this[ke+--rt]*ut;return ut*=128,ct>=ut&&(ct-=Math.pow(2,8*$e)),ct},J.prototype.readInt8=function(ke,$e){return $e||Nt(ke,1,this.length),this[ke]&128?(255-this[ke]+1)*-1:this[ke]},J.prototype.readInt16LE=function(ke,$e){$e||Nt(ke,2,this.length);var Ge=this[ke]|this[ke+1]<<8;return Ge&32768?Ge|4294901760:Ge},J.prototype.readInt16BE=function(ke,$e){$e||Nt(ke,2,this.length);var Ge=this[ke+1]|this[ke]<<8;return Ge&32768?Ge|4294901760:Ge},J.prototype.readInt32LE=function(ke,$e){return $e||Nt(ke,4,this.length),this[ke]|this[ke+1]<<8|this[ke+2]<<16|this[ke+3]<<24},J.prototype.readInt32BE=function(ke,$e){return $e||Nt(ke,4,this.length),this[ke]<<24|this[ke+1]<<16|this[ke+2]<<8|this[ke+3]},J.prototype.readFloatLE=function(ke,$e){return $e||Nt(ke,4,this.length),U.read(this,ke,!0,23,4)},J.prototype.readFloatBE=function(ke,$e){return $e||Nt(ke,4,this.length),U.read(this,ke,!1,23,4)},J.prototype.readDoubleLE=function(ke,$e){return $e||Nt(ke,8,this.length),U.read(this,ke,!0,52,8)},J.prototype.readDoubleBE=function(ke,$e){return $e||Nt(ke,8,this.length),U.read(this,ke,!1,52,8)};function Vt(Oe,ke,$e,Ge,rt,ut){if(!J.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>rt||ke<ut)throw new RangeError('"value" argument is out of bounds');if($e+Ge>Oe.length)throw new RangeError("Index out of range")}J.prototype.writeUIntLE=function(ke,$e,Ge,rt){if(ke=+ke,$e=$e|0,Ge=Ge|0,!rt){var ut=Math.pow(2,8*Ge)-1;Vt(this,ke,$e,Ge,ut,0)}var ct=1,it=0;for(this[$e]=ke&255;++it<Ge&&(ct*=256);)this[$e+it]=ke/ct&255;return $e+Ge},J.prototype.writeUIntBE=function(ke,$e,Ge,rt){if(ke=+ke,$e=$e|0,Ge=Ge|0,!rt){var ut=Math.pow(2,8*Ge)-1;Vt(this,ke,$e,Ge,ut,0)}var ct=Ge-1,it=1;for(this[$e+ct]=ke&255;--ct>=0&&(it*=256);)this[$e+ct]=ke/it&255;return $e+Ge},J.prototype.writeUInt8=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,1,255,0),J.TYPED_ARRAY_SUPPORT||(ke=Math.floor(ke)),this[$e]=ke&255,$e+1};function Wt(Oe,ke,$e,Ge){ke<0&&(ke=65535+ke+1);for(var rt=0,ut=Math.min(Oe.length-$e,2);rt<ut;++rt)Oe[$e+rt]=(ke&255<<8*(Ge?rt:1-rt))>>>(Ge?rt:1-rt)*8}J.prototype.writeUInt16LE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,2,65535,0),J.TYPED_ARRAY_SUPPORT?(this[$e]=ke&255,this[$e+1]=ke>>>8):Wt(this,ke,$e,!0),$e+2},J.prototype.writeUInt16BE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,2,65535,0),J.TYPED_ARRAY_SUPPORT?(this[$e]=ke>>>8,this[$e+1]=ke&255):Wt(this,ke,$e,!1),$e+2};function Gt(Oe,ke,$e,Ge){ke<0&&(ke=4294967295+ke+1);for(var rt=0,ut=Math.min(Oe.length-$e,4);rt<ut;++rt)Oe[$e+rt]=ke>>>(Ge?rt:3-rt)*8&255}J.prototype.writeUInt32LE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,4,4294967295,0),J.TYPED_ARRAY_SUPPORT?(this[$e+3]=ke>>>24,this[$e+2]=ke>>>16,this[$e+1]=ke>>>8,this[$e]=ke&255):Gt(this,ke,$e,!0),$e+4},J.prototype.writeUInt32BE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,4,4294967295,0),J.TYPED_ARRAY_SUPPORT?(this[$e]=ke>>>24,this[$e+1]=ke>>>16,this[$e+2]=ke>>>8,this[$e+3]=ke&255):Gt(this,ke,$e,!1),$e+4},J.prototype.writeIntLE=function(ke,$e,Ge,rt){if(ke=+ke,$e=$e|0,!rt){var ut=Math.pow(2,8*Ge-1);Vt(this,ke,$e,Ge,ut-1,-ut)}var ct=0,it=1,ot=0;for(this[$e]=ke&255;++ct<Ge&&(it*=256);)ke<0&&ot===0&&this[$e+ct-1]!==0&&(ot=1),this[$e+ct]=(ke/it>>0)-ot&255;return $e+Ge},J.prototype.writeIntBE=function(ke,$e,Ge,rt){if(ke=+ke,$e=$e|0,!rt){var ut=Math.pow(2,8*Ge-1);Vt(this,ke,$e,Ge,ut-1,-ut)}var ct=Ge-1,it=1,ot=0;for(this[$e+ct]=ke&255;--ct>=0&&(it*=256);)ke<0&&ot===0&&this[$e+ct+1]!==0&&(ot=1),this[$e+ct]=(ke/it>>0)-ot&255;return $e+Ge},J.prototype.writeInt8=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,1,127,-128),J.TYPED_ARRAY_SUPPORT||(ke=Math.floor(ke)),ke<0&&(ke=255+ke+1),this[$e]=ke&255,$e+1},J.prototype.writeInt16LE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,2,32767,-32768),J.TYPED_ARRAY_SUPPORT?(this[$e]=ke&255,this[$e+1]=ke>>>8):Wt(this,ke,$e,!0),$e+2},J.prototype.writeInt16BE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,2,32767,-32768),J.TYPED_ARRAY_SUPPORT?(this[$e]=ke>>>8,this[$e+1]=ke&255):Wt(this,ke,$e,!1),$e+2},J.prototype.writeInt32LE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,4,2147483647,-2147483648),J.TYPED_ARRAY_SUPPORT?(this[$e]=ke&255,this[$e+1]=ke>>>8,this[$e+2]=ke>>>16,this[$e+3]=ke>>>24):Gt(this,ke,$e,!0),$e+4},J.prototype.writeInt32BE=function(ke,$e,Ge){return ke=+ke,$e=$e|0,Ge||Vt(this,ke,$e,4,2147483647,-2147483648),ke<0&&(ke=4294967295+ke+1),J.TYPED_ARRAY_SUPPORT?(this[$e]=ke>>>24,this[$e+1]=ke>>>16,this[$e+2]=ke>>>8,this[$e+3]=ke&255):Gt(this,ke,$e,!1),$e+4};function tn(Oe,ke,$e,Ge,rt,ut){if($e+Ge>Oe.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("Index out of range")}function Qt(Oe,ke,$e,Ge,rt){return rt||tn(Oe,ke,$e,4),U.write(Oe,ke,$e,Ge,23,4),$e+4}J.prototype.writeFloatLE=function(ke,$e,Ge){return Qt(this,ke,$e,!0,Ge)},J.prototype.writeFloatBE=function(ke,$e,Ge){return Qt(this,ke,$e,!1,Ge)};function En(Oe,ke,$e,Ge,rt){return rt||tn(Oe,ke,$e,8),U.write(Oe,ke,$e,Ge,52,8),$e+8}J.prototype.writeDoubleLE=function(ke,$e,Ge){return En(this,ke,$e,!0,Ge)},J.prototype.writeDoubleBE=function(ke,$e,Ge){return En(this,ke,$e,!1,Ge)},J.prototype.copy=function(ke,$e,Ge,rt){if(Ge||(Ge=0),!rt&&rt!==0&&(rt=this.length),$e>=ke.length&&($e=ke.length),$e||($e=0),rt>0&&rt<Ge&&(rt=Ge),rt===Ge||ke.length===0||this.length===0)return 0;if($e<0)throw new RangeError("targetStart out of bounds");if(Ge<0||Ge>=this.length)throw new RangeError("sourceStart out of bounds");if(rt<0)throw new RangeError("sourceEnd out of bounds");rt>this.length&&(rt=this.length),ke.length-$e<rt-Ge&&(rt=ke.length-$e+Ge);var ut=rt-Ge,ct;if(this===ke&&Ge<$e&&$e<rt)for(ct=ut-1;ct>=0;--ct)ke[ct+$e]=this[ct+Ge];else if(ut<1e3||!J.TYPED_ARRAY_SUPPORT)for(ct=0;ct<ut;++ct)ke[ct+$e]=this[ct+Ge];else Uint8Array.prototype.set.call(ke,this.subarray(Ge,Ge+ut),$e);return ut},J.prototype.fill=function(ke,$e,Ge,rt){if(typeof ke=="string"){if(typeof $e=="string"?(rt=$e,$e=0,Ge=this.length):typeof Ge=="string"&&(rt=Ge,Ge=this.length),ke.length===1){var ut=ke.charCodeAt(0);ut<256&&(ke=ut)}if(rt!==void 0&&typeof rt!="string")throw new TypeError("encoding must be a string");if(typeof rt=="string"&&!J.isEncoding(rt))throw new TypeError("Unknown encoding: "+rt)}else typeof ke=="number"&&(ke=ke&255);if($e<0||this.length<$e||this.length<Ge)throw new RangeError("Out of range index");if(Ge<=$e)return this;$e=$e>>>0,Ge=Ge===void 0?this.length:Ge>>>0,ke||(ke=0);var ct;if(typeof ke=="number")for(ct=$e;ct<Ge;++ct)this[ct]=ke;else{var it=J.isBuffer(ke)?ke:Mn(new J(ke,rt).toString()),ot=it.length;for(ct=0;ct<Ge-$e;++ct)this[ct+$e]=it[ct%ot]}return this};var kn=/[^+\/0-9A-Za-z-_]/g;function Gn(Oe){if(Oe=An(Oe).replace(kn,""),Oe.length<2)return"";for(;Oe.length%4!==0;)Oe=Oe+"=";return Oe}function An(Oe){return Oe.trim?Oe.trim():Oe.replace(/^\s+|\s+$/g,"")}function jn(Oe){return Oe<16?"0"+Oe.toString(16):Oe.toString(16)}function Mn(Oe,ke){ke=ke||1/0;for(var $e,Ge=Oe.length,rt=null,ut=[],ct=0;ct<Ge;++ct){if($e=Oe.charCodeAt(ct),$e>55295&&$e<57344){if(!rt){if($e>56319){(ke-=3)>-1&&ut.push(239,191,189);continue}else if(ct+1===Ge){(ke-=3)>-1&&ut.push(239,191,189);continue}rt=$e;continue}if($e<56320){(ke-=3)>-1&&ut.push(239,191,189),rt=$e;continue}$e=(rt-55296<<10|$e-56320)+65536}else rt&&(ke-=3)>-1&&ut.push(239,191,189);if(rt=null,$e<128){if((ke-=1)<0)break;ut.push($e)}else if($e<2048){if((ke-=2)<0)break;ut.push($e>>6|192,$e&63|128)}else if($e<65536){if((ke-=3)<0)break;ut.push($e>>12|224,$e>>6&63|128,$e&63|128)}else if($e<1114112){if((ke-=4)<0)break;ut.push($e>>18|240,$e>>12&63|128,$e>>6&63|128,$e&63|128)}else throw new Error("Invalid code point")}return ut}function Ln(Oe){for(var ke=[],$e=0;$e<Oe.length;++$e)ke.push(Oe.charCodeAt($e)&255);return ke}function Et(Oe,ke){for(var $e,Ge,rt,ut=[],ct=0;ct<Oe.length&&!((ke-=2)<0);++ct)$e=Oe.charCodeAt(ct),Ge=$e>>8,rt=$e%256,ut.push(rt),ut.push(Ge);return ut}function We(Oe){return j.toByteArray(Gn(Oe))}function xt(Oe,ke,$e,Ge){for(var rt=0;rt<Ge&&!(rt+$e>=ke.length||rt>=Oe.length);++rt)ke[rt+$e]=Oe[rt];return rt}function Ue(Oe){return Oe!==Oe}},function(I,N){N.byteLength=J,N.toByteArray=ee,N.fromByteArray=re;for(var B=[],j=[],U=typeof Uint8Array<"u"?Uint8Array:Array,q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=0,K=q.length;Y<K;++Y)B[Y]=q[Y],j[q.charCodeAt(Y)]=Y;j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63;function G(ne){var ce=ne.length;if(ce%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var me=ne.indexOf("=");me===-1&&(me=ce);var ue=me===ce?0:4-me%4;return[me,ue]}function J(ne){var ce=G(ne),me=ce[0],ue=ce[1];return(me+ue)*3/4-ue}function Z(ne,ce,me){return(ce+me)*3/4-me}function ee(ne){for(var ce,me=G(ne),ue=me[0],_e=me[1],fe=new U(Z(ne,ue,_e)),ge=0,ye=_e>0?ue-4:ue,xe=0;xe<ye;xe+=4)ce=j[ne.charCodeAt(xe)]<<18|j[ne.charCodeAt(xe+1)]<<12|j[ne.charCodeAt(xe+2)]<<6|j[ne.charCodeAt(xe+3)],fe[ge++]=ce>>16&255,fe[ge++]=ce>>8&255,fe[ge++]=ce&255;return _e===2&&(ce=j[ne.charCodeAt(xe)]<<2|j[ne.charCodeAt(xe+1)]>>4,fe[ge++]=ce&255),_e===1&&(ce=j[ne.charCodeAt(xe)]<<10|j[ne.charCodeAt(xe+1)]<<4|j[ne.charCodeAt(xe+2)]>>2,fe[ge++]=ce>>8&255,fe[ge++]=ce&255),fe}function te(ne){return B[ne>>18&63]+B[ne>>12&63]+B[ne>>6&63]+B[ne&63]}function se(ne,ce,me){for(var ue,_e=[],fe=ce;fe<me;fe+=3)ue=(ne[fe]<<16&16711680)+(ne[fe+1]<<8&65280)+(ne[fe+2]&255),_e.push(te(ue));return _e.join("")}function re(ne){for(var ce,me=ne.length,ue=me%3,_e=[],fe=16383,ge=0,ye=me-ue;ge<ye;ge+=fe)_e.push(se(ne,ge,ge+fe>ye?ye:ge+fe));return ue===1?(ce=ne[me-1],_e.push(B[ce>>2]+B[ce<<4&63]+"==")):ue===2&&(ce=(ne[me-2]<<8)+ne[me-1],_e.push(B[ce>>10]+B[ce>>4&63]+B[ce<<2&63]+"=")),_e.join("")}},function(I,N){N.read=function(B,j,U,q,Y){var K,G,J=Y*8-q-1,Z=(1<<J)-1,ee=Z>>1,te=-7,se=U?Y-1:0,re=U?-1:1,ne=B[j+se];for(se+=re,K=ne&(1<<-te)-1,ne>>=-te,te+=J;te>0;K=K*256+B[j+se],se+=re,te-=8);for(G=K&(1<<-te)-1,K>>=-te,te+=q;te>0;G=G*256+B[j+se],se+=re,te-=8);if(K===0)K=1-ee;else{if(K===Z)return G?NaN:(ne?-1:1)*(1/0);G=G+Math.pow(2,q),K=K-ee}return(ne?-1:1)*G*Math.pow(2,K-q)},N.write=function(B,j,U,q,Y,K){var G,J,Z,ee=K*8-Y-1,te=(1<<ee)-1,se=te>>1,re=Y===23?Math.pow(2,-24)-Math.pow(2,-77):0,ne=q?0:K-1,ce=q?1:-1,me=j<0||j===0&&1/j<0?1:0;for(j=Math.abs(j),isNaN(j)||j===1/0?(J=isNaN(j)?1:0,G=te):(G=Math.floor(Math.log(j)/Math.LN2),j*(Z=Math.pow(2,-G))<1&&(G--,Z*=2),G+se>=1?j+=re/Z:j+=re*Math.pow(2,1-se),j*Z>=2&&(G++,Z/=2),G+se>=te?(J=0,G=te):G+se>=1?(J=(j*Z-1)*Math.pow(2,Y),G=G+se):(J=j*Math.pow(2,se-1)*Math.pow(2,Y),G=0));Y>=8;B[U+ne]=J&255,ne+=ce,J/=256,Y-=8);for(G=G<<Y|J,ee+=Y;ee>0;B[U+ne]=G&255,ne+=ce,G/=256,ee-=8);B[U+ne-ce]|=me*128}},function(I,N){var B={}.toString;I.exports=Array.isArray||function(j){return B.call(j)=="[object Array]"}},function(I,N,B){var j=this&&this.__extends||function(Z,ee){for(var te in ee)ee.hasOwnProperty(te)&&(Z[te]=ee[te]);function se(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(se.prototype=ee.prototype,new se)},U=B(24),q=B(12),Y=B(8),K=B(9),G=B(2),J=function(Z){j(ee,Z);function ee(te,se){var re=this;Z.call(this),this.key=te,this.options=se||{},this.state="initialized",this.connection=null,this.usingTLS=!!se.useTLS,this.timeline=this.options.timeline,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var ne=G.default.getNetwork();ne.bind("online",function(){re.timeline.info({netinfo:"online"}),(re.state==="connecting"||re.state==="unavailable")&&re.retryIn(0)}),ne.bind("offline",function(){re.timeline.info({netinfo:"offline"}),re.connection&&re.sendActivityCheck()}),this.updateStrategy()}return ee.prototype.connect=function(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}},ee.prototype.send=function(te){return this.connection?this.connection.send(te):!1},ee.prototype.send_event=function(te,se,re){return this.connection?this.connection.send_event(te,se,re):!1},ee.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},ee.prototype.isUsingTLS=function(){return this.usingTLS},ee.prototype.startConnecting=function(){var te=this,se=function(re,ne){re?te.runner=te.strategy.connect(0,se):ne.action==="error"?(te.emit("error",{type:"HandshakeError",error:ne.error}),te.timeline.error({handshakeError:ne.error})):(te.abortConnecting(),te.handshakeCallbacks[ne.action](ne))};this.runner=this.strategy.connect(0,se)},ee.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},ee.prototype.disconnectInternally=function(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var te=this.abandonConnection();te.close()}},ee.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},ee.prototype.retryIn=function(te){var se=this;this.timeline.info({action:"retry",delay:te}),te>0&&this.emit("connecting_in",Math.round(te/1e3)),this.retryTimer=new q.OneOffTimer(te||0,function(){se.disconnectInternally(),se.connect()})},ee.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},ee.prototype.setUnavailableTimer=function(){var te=this;this.unavailableTimer=new q.OneOffTimer(this.options.unavailableTimeout,function(){te.updateState("unavailable")})},ee.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},ee.prototype.sendActivityCheck=function(){var te=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new q.OneOffTimer(this.options.pongTimeout,function(){te.timeline.error({pong_timed_out:te.options.pongTimeout}),te.retryIn(0)})},ee.prototype.resetActivityCheck=function(){var te=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new q.OneOffTimer(this.activityTimeout,function(){te.sendActivityCheck()}))},ee.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},ee.prototype.buildConnectionCallbacks=function(te){var se=this;return K.extend({},te,{message:function(re){se.resetActivityCheck(),se.emit("message",re)},ping:function(){se.send_event("pusher:pong",{})},activity:function(){se.resetActivityCheck()},error:function(re){se.emit("error",{type:"WebSocketError",error:re})},closed:function(){se.abandonConnection(),se.shouldRetry()&&se.retryIn(1e3)}})},ee.prototype.buildHandshakeCallbacks=function(te){var se=this;return K.extend({},te,{connected:function(re){se.activityTimeout=Math.min(se.options.activityTimeout,re.activityTimeout,re.connection.activityTimeout||1/0),se.clearUnavailableTimer(),se.setConnection(re.connection),se.socket_id=se.connection.id,se.updateState("connected",{socket_id:se.socket_id})}})},ee.prototype.buildErrorCallbacks=function(){var te=this,se=function(re){return function(ne){ne.error&&te.emit("error",{type:"WebSocketError",error:ne.error}),re(ne)}};return{tls_only:se(function(){te.usingTLS=!0,te.updateStrategy(),te.retryIn(0)}),refused:se(function(){te.disconnect()}),backoff:se(function(){te.retryIn(1e3)}),retry:se(function(){te.retryIn(0)})}},ee.prototype.setConnection=function(te){this.connection=te;for(var se in this.connectionCallbacks)this.connection.bind(se,this.connectionCallbacks[se]);this.resetActivityCheck()},ee.prototype.abandonConnection=function(){if(this.connection){this.stopActivityCheck();for(var te in this.connectionCallbacks)this.connection.unbind(te,this.connectionCallbacks[te]);var se=this.connection;return this.connection=null,se}},ee.prototype.updateState=function(te,se){var re=this.state;if(this.state=te,re!==te){var ne=te;ne==="connected"&&(ne+=" with new socket ID "+se.socket_id),Y.default.debug("State changed",re+" -> "+ne),this.timeline.info({state:te,params:se}),this.emit("state_change",{previous:re,current:te}),this.emit(te,se)}},ee.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},ee}(U.default);N.__esModule=!0,N.default=J},function(I,N,B){var j=B(9),U=B(43),q=B(31),Y=function(){function G(){this.channels={}}return G.prototype.add=function(J,Z){return this.channels[J]||(this.channels[J]=K(J,Z)),this.channels[J]},G.prototype.all=function(){return j.values(this.channels)},G.prototype.find=function(J){return this.channels[J]},G.prototype.remove=function(J){var Z=this.channels[J];return delete this.channels[J],Z},G.prototype.disconnect=function(){j.objectApply(this.channels,function(J){J.disconnect()})},G}();N.__esModule=!0,N.default=Y;function K(G,J){if(G.indexOf("private-encrypted-")===0){if(navigator.product=="ReactNative"){var Z="Encrypted channels are not yet supported when using React Native builds.";throw new q.UnsupportedFeature(Z)}return U.default.createEncryptedChannel(G,J)}else return G.indexOf("private-")===0?U.default.createPrivateChannel(G,J):G.indexOf("presence-")===0?U.default.createPresenceChannel(G,J):U.default.createChannel(G,J)}},function(I,N,B){var j=B(43),U=B(11),q=B(31),Y=B(9),K=function(){function J(Z,ee,te,se){this.name=Z,this.priority=ee,this.transport=te,this.options=se||{}}return J.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},J.prototype.connect=function(Z,ee){var te=this;if(this.isSupported()){if(this.priority<Z)return G(new q.TransportPriorityTooLow,ee)}else return G(new q.UnsupportedStrategy,ee);var se=!1,re=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),ne=null,ce=function(){re.unbind("initialized",ce),re.connect()},me=function(){ne=j.default.createHandshake(re,function(ge){se=!0,fe(),ee(null,ge)})},ue=function(ge){fe(),ee(ge)},_e=function(){fe();var ge;ge=Y.safeJSONStringify(re),ee(new q.TransportClosed(ge))},fe=function(){re.unbind("initialized",ce),re.unbind("open",me),re.unbind("error",ue),re.unbind("closed",_e)};return re.bind("initialized",ce),re.bind("open",me),re.bind("error",ue),re.bind("closed",_e),re.initialize(),{abort:function(){se||(fe(),ne?ne.close():re.close())},forceMinPriority:function(ge){se||te.priority<ge&&(ne?ne.close():re.close())}}},J}();N.__esModule=!0,N.default=K;function G(J,Z){return U.default.defer(function(){Z(J)}),{abort:function(){},forceMinPriority:function(){}}}},function(I,N,B){var j=B(9),U=B(11),q=B(12),Y=function(){function K(G,J){this.strategies=G,this.loop=!!J.loop,this.failFast=!!J.failFast,this.timeout=J.timeout,this.timeoutLimit=J.timeoutLimit}return K.prototype.isSupported=function(){return j.any(this.strategies,U.default.method("isSupported"))},K.prototype.connect=function(G,J){var Z=this,ee=this.strategies,te=0,se=this.timeout,re=null,ne=function(ce,me){me?J(null,me):(te=te+1,Z.loop&&(te=te%ee.length),te<ee.length?(se&&(se=se*2,Z.timeoutLimit&&(se=Math.min(se,Z.timeoutLimit))),re=Z.tryStrategy(ee[te],G,{timeout:se,failFast:Z.failFast},ne)):J(!0))};return re=this.tryStrategy(ee[te],G,{timeout:se,failFast:this.failFast},ne),{abort:function(){re.abort()},forceMinPriority:function(ce){G=ce,re&&re.forceMinPriority(ce)}}},K.prototype.tryStrategy=function(G,J,Z,ee){var te=null,se=null;return Z.timeout>0&&(te=new q.OneOffTimer(Z.timeout,function(){se.abort(),ee(!0)})),se=G.connect(J,function(re,ne){re&&te&&te.isRunning()&&!Z.failFast||(te&&te.ensureAborted(),ee(re,ne))}),{abort:function(){te&&te.ensureAborted(),se.abort()},forceMinPriority:function(re){se.forceMinPriority(re)}}},K}();N.__esModule=!0,N.default=Y},function(I,N,B){var j=B(9),U=B(11),q=function(){function J(Z){this.strategies=Z}return J.prototype.isSupported=function(){return j.any(this.strategies,U.default.method("isSupported"))},J.prototype.connect=function(Z,ee){return Y(this.strategies,Z,function(te,se){return function(re,ne){if(se[te].error=re,re){K(se)&&ee(!0);return}j.apply(se,function(ce){ce.forceMinPriority(ne.transport.priority)}),ee(null,ne)}})},J}();N.__esModule=!0,N.default=q;function Y(J,Z,ee){var te=j.map(J,function(se,re,ne,ce){return se.connect(Z,ee(re,ce))});return{abort:function(){j.apply(te,G)},forceMinPriority:function(se){j.apply(te,function(re){re.forceMinPriority(se)})}}}function K(J){return j.all(J,function(Z){return!!Z.error})}function G(J){!J.error&&!J.aborted&&(J.abort(),J.aborted=!0)}},function(I,N,B){var j=B(11),U=B(2),q=B(65),Y=B(9),K=function(){function te(se,re,ne){this.strategy=se,this.transports=re,this.ttl=ne.ttl||1800*1e3,this.usingTLS=ne.useTLS,this.timeline=ne.timeline}return te.prototype.isSupported=function(){return this.strategy.isSupported()},te.prototype.connect=function(se,re){var ne=this.usingTLS,ce=J(ne),me=[this.strategy];if(ce&&ce.timestamp+this.ttl>=j.default.now()){var ue=this.transports[ce.transport];ue&&(this.timeline.info({cached:!0,transport:ce.transport,latency:ce.latency}),me.push(new q.default([ue],{timeout:ce.latency*2+1e3,failFast:!0})))}var _e=j.default.now(),fe=me.pop().connect(se,function ge(ye,xe){ye?(ee(ne),me.length>0?(_e=j.default.now(),fe=me.pop().connect(se,ge)):re(ye)):(Z(ne,xe.transport.name,j.default.now()-_e),re(null,xe))});return{abort:function(){fe.abort()},forceMinPriority:function(ge){se=ge,fe&&fe.forceMinPriority(ge)}}},te}();N.__esModule=!0,N.default=K;function G(te){return"pusherTransport"+(te?"TLS":"NonTLS")}function J(te){var se=U.default.getLocalStorage();if(se)try{var re=se[G(te)];if(re)return JSON.parse(re)}catch{ee(te)}return null}function Z(te,se,re){var ne=U.default.getLocalStorage();if(ne)try{ne[G(te)]=Y.safeJSONStringify({timestamp:j.default.now(),transport:se,latency:re})}catch{}}function ee(te){var se=U.default.getLocalStorage();if(se)try{delete se[G(te)]}catch{}}},function(I,N,B){var j=B(12),U=function(){function q(Y,K){var G=K.delay;this.strategy=Y,this.options={delay:G}}return q.prototype.isSupported=function(){return this.strategy.isSupported()},q.prototype.connect=function(Y,K){var G=this.strategy,J,Z=new j.OneOffTimer(this.options.delay,function(){J=G.connect(Y,K)});return{abort:function(){Z.ensureAborted(),J&&J.abort()},forceMinPriority:function(ee){Y=ee,J&&J.forceMinPriority(ee)}}},q}();N.__esModule=!0,N.default=U},function(I,N){var B=function(){function j(U,q,Y){this.test=U,this.trueBranch=q,this.falseBranch=Y}return j.prototype.isSupported=function(){var U=this.test()?this.trueBranch:this.falseBranch;return U.isSupported()},j.prototype.connect=function(U,q){var Y=this.test()?this.trueBranch:this.falseBranch;return Y.connect(U,q)},j}();N.__esModule=!0,N.default=B},function(I,N){var B=function(){function j(U){this.strategy=U}return j.prototype.isSupported=function(){return this.strategy.isSupported()},j.prototype.connect=function(U,q){var Y=this.strategy.connect(U,function(K,G){G&&Y.abort(),q(K,G)});return Y},j}();N.__esModule=!0,N.default=B},function(I,N,B){var j=B(5);N.getGlobalConfig=function(){return{wsHost:j.default.host,wsPort:j.default.ws_port,wssPort:j.default.wss_port,wsPath:j.default.ws_path,httpHost:j.default.sockjs_host,httpPort:j.default.sockjs_http_port,httpsPort:j.default.sockjs_https_port,httpPath:j.default.sockjs_path,statsHost:j.default.stats_host,authEndpoint:j.default.channel_auth_endpoint,authTransport:j.default.channel_auth_transport,activity_timeout:j.default.activity_timeout,pong_timeout:j.default.pong_timeout,unavailable_timeout:j.default.unavailable_timeout}},N.getClusterConfig=function(U){return{wsHost:"ws-"+U+".pusher.com",httpHost:"sockjs-"+U+".pusher.com"}}}])})})(pusher);var pusherExports=pusher.exports;const Pusher$1=getDefaultExportFromCjs$1(pusherExports);window.Pusher=Pusher$1;class Echo{constructor(){this.configCallbacks=[],this.bootedCallbacks=[]}config($){this.configCallbacks.push($)}booted($){this.bootedCallbacks.push($)}start(){let $={...Statamic.$config.get("broadcasting.options"),csrfToken:Statamic.$config.get("csrfToken"),authEndpoint:Statamic.$config.get("broadcasting.endpoint")};this.configCallbacks.forEach(I=>$=I($)),this.echo=new Echo$1($),this.bootedCallbacks.forEach(I=>I(this)),this.bootedCallbacks=[]}}["channel","connect","disconnect","join","leave","leaveChannel","listen","private","socketId","registerInterceptors","registerVueRequestInterceptor","registerAxiosRequestInterceptor","registerjQueryAjaxSetup"].forEach(M=>{Echo.prototype[M]=function(...$){return this.echo[M](...$)}});function OrderedMap(M){this.content=M}OrderedMap.prototype={constructor:OrderedMap,find:function(M){for(var $=0;$<this.content.length;$+=2)if(this.content[$]===M)return $;return-1},get:function(M){var $=this.find(M);return $==-1?void 0:this.content[$+1]},update:function(M,$,I){var N=I&&I!=M?this.remove(I):this,B=N.find(M),j=N.content.slice();return B==-1?j.push(I||M,$):(j[B+1]=$,I&&(j[B]=I)),new OrderedMap(j)},remove:function(M){var $=this.find(M);if($==-1)return this;var I=this.content.slice();return I.splice($,2),new OrderedMap(I)},addToStart:function(M,$){return new OrderedMap([M,$].concat(this.remove(M).content))},addToEnd:function(M,$){var I=this.remove(M).content.slice();return I.push(M,$),new OrderedMap(I)},addBefore:function(M,$,I){var N=this.remove($),B=N.content.slice(),j=N.find(M);return B.splice(j==-1?B.length:j,0,$,I),new OrderedMap(B)},forEach:function(M){for(var $=0;$<this.content.length;$+=2)M(this.content[$],this.content[$+1])},prepend:function(M){return M=OrderedMap.from(M),M.size?new OrderedMap(M.content.concat(this.subtract(M).content)):this},append:function(M){return M=OrderedMap.from(M),M.size?new OrderedMap(this.subtract(M).content.concat(M.content)):this},subtract:function(M){var $=this;M=OrderedMap.from(M);for(var I=0;I<M.content.length;I+=2)$=$.remove(M.content[I]);return $},toObject:function(){var M={};return this.forEach(function($,I){M[$]=I}),M},get size(){return this.content.length>>1}};OrderedMap.from=function(M){if(M instanceof OrderedMap)return M;var $=[];if(M)for(var I in M)$.push(I,M[I]);return new OrderedMap($)};function findDiffStart(M,$,I){for(let N=0;;N++){if(N==M.childCount||N==$.childCount)return M.childCount==$.childCount?null:I;let B=M.child(N),j=$.child(N);if(B==j){I+=B.nodeSize;continue}if(!B.sameMarkup(j))return I;if(B.isText&&B.text!=j.text){for(let U=0;B.text[U]==j.text[U];U++)I++;return I}if(B.content.size||j.content.size){let U=findDiffStart(B.content,j.content,I+1);if(U!=null)return U}I+=B.nodeSize}}function findDiffEnd(M,$,I,N){for(let B=M.childCount,j=$.childCount;;){if(B==0||j==0)return B==j?null:{a:I,b:N};let U=M.child(--B),q=$.child(--j),Y=U.nodeSize;if(U==q){I-=Y,N-=Y;continue}if(!U.sameMarkup(q))return{a:I,b:N};if(U.isText&&U.text!=q.text){let K=0,G=Math.min(U.text.length,q.text.length);for(;K<G&&U.text[U.text.length-K-1]==q.text[q.text.length-K-1];)K++,I--,N--;return{a:I,b:N}}if(U.content.size||q.content.size){let K=findDiffEnd(U.content,q.content,I-1,N-1);if(K)return K}I-=Y,N-=Y}}class Fragment{constructor($,I){if(this.content=$,this.size=I||0,I==null)for(let N=0;N<$.length;N++)this.size+=$[N].nodeSize}nodesBetween($,I,N,B=0,j){for(let U=0,q=0;q<I;U++){let Y=this.content[U],K=q+Y.nodeSize;if(K>$&&N(Y,B+q,j||null,U)!==!1&&Y.content.size){let G=q+1;Y.nodesBetween(Math.max(0,$-G),Math.min(Y.content.size,I-G),N,B+G)}q=K}}descendants($){this.nodesBetween(0,this.size,$)}textBetween($,I,N,B){let j="",U=!0;return this.nodesBetween($,I,(q,Y)=>{let K=q.isText?q.text.slice(Math.max($,Y)-Y,I-Y):q.isLeaf?B?typeof B=="function"?B(q):B:q.type.spec.leafText?q.type.spec.leafText(q):"":"";q.isBlock&&(q.isLeaf&&K||q.isTextblock)&&N&&(U?U=!1:j+=N),j+=K},0),j}append($){if(!$.size)return this;if(!this.size)return $;let I=this.lastChild,N=$.firstChild,B=this.content.slice(),j=0;for(I.isText&&I.sameMarkup(N)&&(B[B.length-1]=I.withText(I.text+N.text),j=1);j<$.content.length;j++)B.push($.content[j]);return new Fragment(B,this.size+$.size)}cut($,I=this.size){if($==0&&I==this.size)return this;let N=[],B=0;if(I>$)for(let j=0,U=0;U<I;j++){let q=this.content[j],Y=U+q.nodeSize;Y>$&&((U<$||Y>I)&&(q.isText?q=q.cut(Math.max(0,$-U),Math.min(q.text.length,I-U)):q=q.cut(Math.max(0,$-U-1),Math.min(q.content.size,I-U-1))),N.push(q),B+=q.nodeSize),U=Y}return new Fragment(N,B)}cutByIndex($,I){return $==I?Fragment.empty:$==0&&I==this.content.length?this:new Fragment(this.content.slice($,I))}replaceChild($,I){let N=this.content[$];if(N==I)return this;let B=this.content.slice(),j=this.size+I.nodeSize-N.nodeSize;return B[$]=I,new Fragment(B,j)}addToStart($){return new Fragment([$].concat(this.content),this.size+$.nodeSize)}addToEnd($){return new Fragment(this.content.concat($),this.size+$.nodeSize)}eq($){if(this.content.length!=$.content.length)return!1;for(let I=0;I<this.content.length;I++)if(!this.content[I].eq($.content[I]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child($){let I=this.content[$];if(!I)throw new RangeError("Index "+$+" out of range for "+this);return I}maybeChild($){return this.content[$]||null}forEach($){for(let I=0,N=0;I<this.content.length;I++){let B=this.content[I];$(B,N,I),N+=B.nodeSize}}findDiffStart($,I=0){return findDiffStart(this,$,I)}findDiffEnd($,I=this.size,N=$.size){return findDiffEnd(this,$,I,N)}findIndex($,I=-1){if($==0)return retIndex(0,$);if($==this.size)return retIndex(this.content.length,$);if($>this.size||$<0)throw new RangeError(`Position ${$} outside of fragment (${this})`);for(let N=0,B=0;;N++){let j=this.child(N),U=B+j.nodeSize;if(U>=$)return U==$||I>0?retIndex(N+1,U):retIndex(N,B);B=U}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map($=>$.toJSON()):null}static fromJSON($,I){if(!I)return Fragment.empty;if(!Array.isArray(I))throw new RangeError("Invalid input for Fragment.fromJSON");return new Fragment(I.map($.nodeFromJSON))}static fromArray($){if(!$.length)return Fragment.empty;let I,N=0;for(let B=0;B<$.length;B++){let j=$[B];N+=j.nodeSize,B&&j.isText&&$[B-1].sameMarkup(j)?(I||(I=$.slice(0,B)),I[I.length-1]=j.withText(I[I.length-1].text+j.text)):I&&I.push(j)}return new Fragment(I||$,N)}static from($){if(!$)return Fragment.empty;if($ instanceof Fragment)return $;if(Array.isArray($))return this.fromArray($);if($.attrs)return new Fragment([$],$.nodeSize);throw new RangeError("Can not convert "+$+" to a Fragment"+($.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Fragment.empty=new Fragment([],0);const found={index:0,offset:0};function retIndex(M,$){return found.index=M,found.offset=$,found}function compareDeep(M,$){if(M===$)return!0;if(!(M&&typeof M=="object")||!($&&typeof $=="object"))return!1;let I=Array.isArray(M);if(Array.isArray($)!=I)return!1;if(I){if(M.length!=$.length)return!1;for(let N=0;N<M.length;N++)if(!compareDeep(M[N],$[N]))return!1}else{for(let N in M)if(!(N in $)||!compareDeep(M[N],$[N]))return!1;for(let N in $)if(!(N in M))return!1}return!0}let Mark$1=class yc{constructor($,I){this.type=$,this.attrs=I}addToSet($){let I,N=!1;for(let B=0;B<$.length;B++){let j=$[B];if(this.eq(j))return $;if(this.type.excludes(j.type))I||(I=$.slice(0,B));else{if(j.type.excludes(this.type))return $;!N&&j.type.rank>this.type.rank&&(I||(I=$.slice(0,B)),I.push(this),N=!0),I&&I.push(j)}}return I||(I=$.slice()),N||I.push(this),I}removeFromSet($){for(let I=0;I<$.length;I++)if(this.eq($[I]))return $.slice(0,I).concat($.slice(I+1));return $}isInSet($){for(let I=0;I<$.length;I++)if(this.eq($[I]))return!0;return!1}eq($){return this==$||this.type==$.type&&compareDeep(this.attrs,$.attrs)}toJSON(){let $={type:this.type.name};for(let I in this.attrs){$.attrs=this.attrs;break}return $}static fromJSON($,I){if(!I)throw new RangeError("Invalid input for Mark.fromJSON");let N=$.marks[I.type];if(!N)throw new RangeError(`There is no mark type ${I.type} in this schema`);let B=N.create(I.attrs);return N.checkAttrs(B.attrs),B}static sameSet($,I){if($==I)return!0;if($.length!=I.length)return!1;for(let N=0;N<$.length;N++)if(!$[N].eq(I[N]))return!1;return!0}static setFrom($){if(!$||Array.isArray($)&&$.length==0)return yc.none;if($ instanceof yc)return[$];let I=$.slice();return I.sort((N,B)=>N.type.rank-B.type.rank),I}};Mark$1.none=[];class ReplaceError extends Error{}class Slice{constructor($,I,N){this.content=$,this.openStart=I,this.openEnd=N}get size(){return this.content.size-this.openStart-this.openEnd}insertAt($,I){let N=insertInto(this.content,$+this.openStart,I);return N&&new Slice(N,this.openStart,this.openEnd)}removeBetween($,I){return new Slice(removeRange(this.content,$+this.openStart,I+this.openStart),this.openStart,this.openEnd)}eq($){return this.content.eq($.content)&&this.openStart==$.openStart&&this.openEnd==$.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let $={content:this.content.toJSON()};return this.openStart>0&&($.openStart=this.openStart),this.openEnd>0&&($.openEnd=this.openEnd),$}static fromJSON($,I){if(!I)return Slice.empty;let N=I.openStart||0,B=I.openEnd||0;if(typeof N!="number"||typeof B!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Slice(Fragment.fromJSON($,I.content),N,B)}static maxOpen($,I=!0){let N=0,B=0;for(let j=$.firstChild;j&&!j.isLeaf&&(I||!j.type.spec.isolating);j=j.firstChild)N++;for(let j=$.lastChild;j&&!j.isLeaf&&(I||!j.type.spec.isolating);j=j.lastChild)B++;return new Slice($,N,B)}}Slice.empty=new Slice(Fragment.empty,0,0);function removeRange(M,$,I){let{index:N,offset:B}=M.findIndex($),j=M.maybeChild(N),{index:U,offset:q}=M.findIndex(I);if(B==$||j.isText){if(q!=I&&!M.child(U).isText)throw new RangeError("Removing non-flat range");return M.cut(0,$).append(M.cut(I))}if(N!=U)throw new RangeError("Removing non-flat range");return M.replaceChild(N,j.copy(removeRange(j.content,$-B-1,I-B-1)))}function insertInto(M,$,I,N){let{index:B,offset:j}=M.findIndex($),U=M.maybeChild(B);if(j==$||U.isText)return N&&!N.canReplace(B,B,I)?null:M.cut(0,$).append(I).append(M.cut($));let q=insertInto(U.content,$-j-1,I);return q&&M.replaceChild(B,U.copy(q))}function replace$1(M,$,I){if(I.openStart>M.depth)throw new ReplaceError("Inserted content deeper than insertion position");if(M.depth-I.openStart!=$.depth-I.openEnd)throw new ReplaceError("Inconsistent open depths");return replaceOuter(M,$,I,0)}function replaceOuter(M,$,I,N){let B=M.index(N),j=M.node(N);if(B==$.index(N)&&N<M.depth-I.openStart){let U=replaceOuter(M,$,I,N+1);return j.copy(j.content.replaceChild(B,U))}else if(I.content.size)if(!I.openStart&&!I.openEnd&&M.depth==N&&$.depth==N){let U=M.parent,q=U.content;return close(U,q.cut(0,M.parentOffset).append(I.content).append(q.cut($.parentOffset)))}else{let{start:U,end:q}=prepareSliceForReplace(I,M);return close(j,replaceThreeWay(M,U,q,$,N))}else return close(j,replaceTwoWay(M,$,N))}function checkJoin(M,$){if(!$.type.compatibleContent(M.type))throw new ReplaceError("Cannot join "+$.type.name+" onto "+M.type.name)}function joinable$1(M,$,I){let N=M.node(I);return checkJoin(N,$.node(I)),N}function addNode(M,$){let I=$.length-1;I>=0&&M.isText&&M.sameMarkup($[I])?$[I]=M.withText($[I].text+M.text):$.push(M)}function addRange(M,$,I,N){let B=($||M).node(I),j=0,U=$?$.index(I):B.childCount;M&&(j=M.index(I),M.depth>I?j++:M.textOffset&&(addNode(M.nodeAfter,N),j++));for(let q=j;q<U;q++)addNode(B.child(q),N);$&&$.depth==I&&$.textOffset&&addNode($.nodeBefore,N)}function close(M,$){return M.type.checkContent($),M.copy($)}function replaceThreeWay(M,$,I,N,B){let j=M.depth>B&&joinable$1(M,$,B+1),U=N.depth>B&&joinable$1(I,N,B+1),q=[];return addRange(null,M,B,q),j&&U&&$.index(B)==I.index(B)?(checkJoin(j,U),addNode(close(j,replaceThreeWay(M,$,I,N,B+1)),q)):(j&&addNode(close(j,replaceTwoWay(M,$,B+1)),q),addRange($,I,B,q),U&&addNode(close(U,replaceTwoWay(I,N,B+1)),q)),addRange(N,null,B,q),new Fragment(q)}function replaceTwoWay(M,$,I){let N=[];if(addRange(null,M,I,N),M.depth>I){let B=joinable$1(M,$,I+1);addNode(close(B,replaceTwoWay(M,$,I+1)),N)}return addRange($,null,I,N),new Fragment(N)}function prepareSliceForReplace(M,$){let I=$.depth-M.openStart,B=$.node(I).copy(M.content);for(let j=I-1;j>=0;j--)B=$.node(j).copy(Fragment.from(B));return{start:B.resolveNoCache(M.openStart+I),end:B.resolveNoCache(B.content.size-M.openEnd-I)}}class ResolvedPos{constructor($,I,N){this.pos=$,this.path=I,this.parentOffset=N,this.depth=I.length/3-1}resolveDepth($){return $==null?this.depth:$<0?this.depth+$:$}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node($){return this.path[this.resolveDepth($)*3]}index($){return this.path[this.resolveDepth($)*3+1]}indexAfter($){return $=this.resolveDepth($),this.index($)+($==this.depth&&!this.textOffset?0:1)}start($){return $=this.resolveDepth($),$==0?0:this.path[$*3-1]+1}end($){return $=this.resolveDepth($),this.start($)+this.node($).content.size}before($){if($=this.resolveDepth($),!$)throw new RangeError("There is no position before the top-level node");return $==this.depth+1?this.pos:this.path[$*3-1]}after($){if($=this.resolveDepth($),!$)throw new RangeError("There is no position after the top-level node");return $==this.depth+1?this.pos:this.path[$*3-1]+this.path[$*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let $=this.parent,I=this.index(this.depth);if(I==$.childCount)return null;let N=this.pos-this.path[this.path.length-1],B=$.child(I);return N?$.child(I).cut(N):B}get nodeBefore(){let $=this.index(this.depth),I=this.pos-this.path[this.path.length-1];return I?this.parent.child($).cut(0,I):$==0?null:this.parent.child($-1)}posAtIndex($,I){I=this.resolveDepth(I);let N=this.path[I*3],B=I==0?0:this.path[I*3-1]+1;for(let j=0;j<$;j++)B+=N.child(j).nodeSize;return B}marks(){let $=this.parent,I=this.index();if($.content.size==0)return Mark$1.none;if(this.textOffset)return $.child(I).marks;let N=$.maybeChild(I-1),B=$.maybeChild(I);if(!N){let q=N;N=B,B=q}let j=N.marks;for(var U=0;U<j.length;U++)j[U].type.spec.inclusive===!1&&(!B||!j[U].isInSet(B.marks))&&(j=j[U--].removeFromSet(j));return j}marksAcross($){let I=this.parent.maybeChild(this.index());if(!I||!I.isInline)return null;let N=I.marks,B=$.parent.maybeChild($.index());for(var j=0;j<N.length;j++)N[j].type.spec.inclusive===!1&&(!B||!N[j].isInSet(B.marks))&&(N=N[j--].removeFromSet(N));return N}sharedDepth($){for(let I=this.depth;I>0;I--)if(this.start(I)<=$&&this.end(I)>=$)return I;return 0}blockRange($=this,I){if($.pos<this.pos)return $.blockRange(this);for(let N=this.depth-(this.parent.inlineContent||this.pos==$.pos?1:0);N>=0;N--)if($.pos<=this.end(N)&&(!I||I(this.node(N))))return new NodeRange(this,$,N);return null}sameParent($){return this.pos-this.parentOffset==$.pos-$.parentOffset}max($){return $.pos>this.pos?$:this}min($){return $.pos<this.pos?$:this}toString(){let $="";for(let I=1;I<=this.depth;I++)$+=($?"/":"")+this.node(I).type.name+"_"+this.index(I-1);return $+":"+this.parentOffset}static resolve($,I){if(!(I>=0&&I<=$.content.size))throw new RangeError("Position "+I+" out of range");let N=[],B=0,j=I;for(let U=$;;){let{index:q,offset:Y}=U.content.findIndex(j),K=j-Y;if(N.push(U,q,B+Y),!K||(U=U.child(q),U.isText))break;j=K-1,B+=Y+1}return new ResolvedPos(I,N,j)}static resolveCached($,I){let N=resolveCache.get($);if(N)for(let j=0;j<N.elts.length;j++){let U=N.elts[j];if(U.pos==I)return U}else resolveCache.set($,N=new ResolveCache);let B=N.elts[N.i]=ResolvedPos.resolve($,I);return N.i=(N.i+1)%resolveCacheSize,B}}class ResolveCache{constructor(){this.elts=[],this.i=0}}const resolveCacheSize=12,resolveCache=new WeakMap;class NodeRange{constructor($,I,N){this.$from=$,this.$to=I,this.depth=N}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const emptyAttrs=Object.create(null);let Node$2=class xc{constructor($,I,N,B=Mark$1.none){this.type=$,this.attrs=I,this.marks=B,this.content=N||Fragment.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child($){return this.content.child($)}maybeChild($){return this.content.maybeChild($)}forEach($){this.content.forEach($)}nodesBetween($,I,N,B=0){this.content.nodesBetween($,I,N,B,this)}descendants($){this.nodesBetween(0,this.content.size,$)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween($,I,N,B){return this.content.textBetween($,I,N,B)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq($){return this==$||this.sameMarkup($)&&this.content.eq($.content)}sameMarkup($){return this.hasMarkup($.type,$.attrs,$.marks)}hasMarkup($,I,N){return this.type==$&&compareDeep(this.attrs,I||$.defaultAttrs||emptyAttrs)&&Mark$1.sameSet(this.marks,N||Mark$1.none)}copy($=null){return $==this.content?this:new xc(this.type,this.attrs,$,this.marks)}mark($){return $==this.marks?this:new xc(this.type,this.attrs,this.content,$)}cut($,I=this.content.size){return $==0&&I==this.content.size?this:this.copy(this.content.cut($,I))}slice($,I=this.content.size,N=!1){if($==I)return Slice.empty;let B=this.resolve($),j=this.resolve(I),U=N?0:B.sharedDepth(I),q=B.start(U),K=B.node(U).content.cut(B.pos-q,j.pos-q);return new Slice(K,B.depth-U,j.depth-U)}replace($,I,N){return replace$1(this.resolve($),this.resolve(I),N)}nodeAt($){for(let I=this;;){let{index:N,offset:B}=I.content.findIndex($);if(I=I.maybeChild(N),!I)return null;if(B==$||I.isText)return I;$-=B+1}}childAfter($){let{index:I,offset:N}=this.content.findIndex($);return{node:this.content.maybeChild(I),index:I,offset:N}}childBefore($){if($==0)return{node:null,index:0,offset:0};let{index:I,offset:N}=this.content.findIndex($);if(N<$)return{node:this.content.child(I),index:I,offset:N};let B=this.content.child(I-1);return{node:B,index:I-1,offset:N-B.nodeSize}}resolve($){return ResolvedPos.resolveCached(this,$)}resolveNoCache($){return ResolvedPos.resolve(this,$)}rangeHasMark($,I,N){let B=!1;return I>$&&this.nodesBetween($,I,j=>(N.isInSet(j.marks)&&(B=!0),!B)),B}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let $=this.type.name;return this.content.size&&($+="("+this.content.toStringInner()+")"),wrapMarks(this.marks,$)}contentMatchAt($){let I=this.type.contentMatch.matchFragment(this.content,0,$);if(!I)throw new Error("Called contentMatchAt on a node with invalid content");return I}canReplace($,I,N=Fragment.empty,B=0,j=N.childCount){let U=this.contentMatchAt($).matchFragment(N,B,j),q=U&&U.matchFragment(this.content,I);if(!q||!q.validEnd)return!1;for(let Y=B;Y<j;Y++)if(!this.type.allowsMarks(N.child(Y).marks))return!1;return!0}canReplaceWith($,I,N,B){if(B&&!this.type.allowsMarks(B))return!1;let j=this.contentMatchAt($).matchType(N),U=j&&j.matchFragment(this.content,I);return U?U.validEnd:!1}canAppend($){return $.content.size?this.canReplace(this.childCount,this.childCount,$.content):this.type.compatibleContent($.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let $=Mark$1.none;for(let I=0;I<this.marks.length;I++){let N=this.marks[I];N.type.checkAttrs(N.attrs),$=N.addToSet($)}if(!Mark$1.sameSet($,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(I=>I.type.name)}`);this.content.forEach(I=>I.check())}toJSON(){let $={type:this.type.name};for(let I in this.attrs){$.attrs=this.attrs;break}return this.content.size&&($.content=this.content.toJSON()),this.marks.length&&($.marks=this.marks.map(I=>I.toJSON())),$}static fromJSON($,I){if(!I)throw new RangeError("Invalid input for Node.fromJSON");let N;if(I.marks){if(!Array.isArray(I.marks))throw new RangeError("Invalid mark data for Node.fromJSON");N=I.marks.map($.markFromJSON)}if(I.type=="text"){if(typeof I.text!="string")throw new RangeError("Invalid text node in JSON");return $.text(I.text,N)}let B=Fragment.fromJSON($,I.content),j=$.nodeType(I.type).create(I.attrs,B,N);return j.type.checkAttrs(j.attrs),j}};Node$2.prototype.text=void 0;class TextNode extends Node$2{constructor($,I,N,B){if(super($,I,null,B),!N)throw new RangeError("Empty text nodes are not allowed");this.text=N}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):wrapMarks(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween($,I){return this.text.slice($,I)}get nodeSize(){return this.text.length}mark($){return $==this.marks?this:new TextNode(this.type,this.attrs,this.text,$)}withText($){return $==this.text?this:new TextNode(this.type,this.attrs,$,this.marks)}cut($=0,I=this.text.length){return $==0&&I==this.text.length?this:this.withText(this.text.slice($,I))}eq($){return this.sameMarkup($)&&this.text==$.text}toJSON(){let $=super.toJSON();return $.text=this.text,$}}function wrapMarks(M,$){for(let I=M.length-1;I>=0;I--)$=M[I].type.name+"("+$+")";return $}class ContentMatch{constructor($){this.validEnd=$,this.next=[],this.wrapCache=[]}static parse($,I){let N=new TokenStream($,I);if(N.next==null)return ContentMatch.empty;let B=parseExpr(N);N.next&&N.err("Unexpected trailing text");let j=dfa(nfa(B));return checkForDeadEnds(j,N),j}matchType($){for(let I=0;I<this.next.length;I++)if(this.next[I].type==$)return this.next[I].next;return null}matchFragment($,I=0,N=$.childCount){let B=this;for(let j=I;B&&j<N;j++)B=B.matchType($.child(j).type);return B}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let $=0;$<this.next.length;$++){let{type:I}=this.next[$];if(!(I.isText||I.hasRequiredAttrs()))return I}return null}compatible($){for(let I=0;I<this.next.length;I++)for(let N=0;N<$.next.length;N++)if(this.next[I].type==$.next[N].type)return!0;return!1}fillBefore($,I=!1,N=0){let B=[this];function j(U,q){let Y=U.matchFragment($,N);if(Y&&(!I||Y.validEnd))return Fragment.from(q.map(K=>K.createAndFill()));for(let K=0;K<U.next.length;K++){let{type:G,next:J}=U.next[K];if(!(G.isText||G.hasRequiredAttrs())&&B.indexOf(J)==-1){B.push(J);let Z=j(J,q.concat(G));if(Z)return Z}}return null}return j(this,[])}findWrapping($){for(let N=0;N<this.wrapCache.length;N+=2)if(this.wrapCache[N]==$)return this.wrapCache[N+1];let I=this.computeWrapping($);return this.wrapCache.push($,I),I}computeWrapping($){let I=Object.create(null),N=[{match:this,type:null,via:null}];for(;N.length;){let B=N.shift(),j=B.match;if(j.matchType($)){let U=[];for(let q=B;q.type;q=q.via)U.push(q.type);return U.reverse()}for(let U=0;U<j.next.length;U++){let{type:q,next:Y}=j.next[U];!q.isLeaf&&!q.hasRequiredAttrs()&&!(q.name in I)&&(!B.type||Y.validEnd)&&(N.push({match:q.contentMatch,type:q,via:B}),I[q.name]=!0)}}return null}get edgeCount(){return this.next.length}edge($){if($>=this.next.length)throw new RangeError(`There's no ${$}th edge in this content match`);return this.next[$]}toString(){let $=[];function I(N){$.push(N);for(let B=0;B<N.next.length;B++)$.indexOf(N.next[B].next)==-1&&I(N.next[B].next)}return I(this),$.map((N,B)=>{let j=B+(N.validEnd?"*":" ")+" ";for(let U=0;U<N.next.length;U++)j+=(U?", ":"")+N.next[U].type.name+"->"+$.indexOf(N.next[U].next);return j}).join(` `)}}ContentMatch.empty=new ContentMatch(!0);class TokenStream{constructor($,I){this.string=$,this.nodeTypes=I,this.inline=null,this.pos=0,this.tokens=$.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat($){return this.next==$&&(this.pos++||!0)}err($){throw new SyntaxError($+" (in content expression '"+this.string+"')")}}function parseExpr(M){let $=[];do $.push(parseExprSeq(M));while(M.eat("|"));return $.length==1?$[0]:{type:"choice",exprs:$}}function parseExprSeq(M){let $=[];do $.push(parseExprSubscript(M));while(M.next&&M.next!=")"&&M.next!="|");return $.length==1?$[0]:{type:"seq",exprs:$}}function parseExprSubscript(M){let $=parseExprAtom(M);for(;;)if(M.eat("+"))$={type:"plus",expr:$};else if(M.eat("*"))$={type:"star",expr:$};else if(M.eat("?"))$={type:"opt",expr:$};else if(M.eat("{"))$=parseExprRange(M,$);else break;return $}function parseNum(M){/\D/.test(M.next)&&M.err("Expected number, got '"+M.next+"'");let $=Number(M.next);return M.pos++,$}function parseExprRange(M,$){let I=parseNum(M),N=I;return M.eat(",")&&(M.next!="}"?N=parseNum(M):N=-1),M.eat("}")||M.err("Unclosed braced range"),{type:"range",min:I,max:N,expr:$}}function resolveName(M,$){let I=M.nodeTypes,N=I[$];if(N)return[N];let B=[];for(let j in I){let U=I[j];U.groups.indexOf($)>-1&&B.push(U)}return B.length==0&&M.err("No node type or group '"+$+"' found"),B}function parseExprAtom(M){if(M.eat("(")){let $=parseExpr(M);return M.eat(")")||M.err("Missing closing paren"),$}else if(/\W/.test(M.next))M.err("Unexpected token '"+M.next+"'");else{let $=resolveName(M,M.next).map(I=>(M.inline==null?M.inline=I.isInline:M.inline!=I.isInline&&M.err("Mixing inline and block content"),{type:"name",value:I}));return M.pos++,$.length==1?$[0]:{type:"choice",exprs:$}}}function nfa(M){let $=[[]];return B(j(M,0),I()),$;function I(){return $.push([])-1}function N(U,q,Y){let K={term:Y,to:q};return $[U].push(K),K}function B(U,q){U.forEach(Y=>Y.to=q)}function j(U,q){if(U.type=="choice")return U.exprs.reduce((Y,K)=>Y.concat(j(K,q)),[]);if(U.type=="seq")for(let Y=0;;Y++){let K=j(U.exprs[Y],q);if(Y==U.exprs.length-1)return K;B(K,q=I())}else if(U.type=="star"){let Y=I();return N(q,Y),B(j(U.expr,Y),Y),[N(Y)]}else if(U.type=="plus"){let Y=I();return B(j(U.expr,q),Y),B(j(U.expr,Y),Y),[N(Y)]}else{if(U.type=="opt")return[N(q)].concat(j(U.expr,q));if(U.type=="range"){let Y=q;for(let K=0;K<U.min;K++){let G=I();B(j(U.expr,Y),G),Y=G}if(U.max==-1)B(j(U.expr,Y),Y);else for(let K=U.min;K<U.max;K++){let G=I();N(Y,G),B(j(U.expr,Y),G),Y=G}return[N(Y)]}else{if(U.type=="name")return[N(q,void 0,U.value)];throw new Error("Unknown expr type")}}}}function cmp(M,$){return $-M}function nullFrom(M,$){let I=[];return N($),I.sort(cmp);function N(B){let j=M[B];if(j.length==1&&!j[0].term)return N(j[0].to);I.push(B);for(let U=0;U<j.length;U++){let{term:q,to:Y}=j[U];!q&&I.indexOf(Y)==-1&&N(Y)}}}function dfa(M){let $=Object.create(null);return I(nullFrom(M,0));function I(N){let B=[];N.forEach(U=>{M[U].forEach(({term:q,to:Y})=>{if(!q)return;let K;for(let G=0;G<B.length;G++)B[G][0]==q&&(K=B[G][1]);nullFrom(M,Y).forEach(G=>{K||B.push([q,K=[]]),K.indexOf(G)==-1&&K.push(G)})})});let j=$[N.join(",")]=new ContentMatch(N.indexOf(M.length-1)>-1);for(let U=0;U<B.length;U++){let q=B[U][1].sort(cmp);j.next.push({type:B[U][0],next:$[q.join(",")]||I(q)})}return j}}function checkForDeadEnds(M,$){for(let I=0,N=[M];I<N.length;I++){let B=N[I],j=!B.validEnd,U=[];for(let q=0;q<B.next.length;q++){let{type:Y,next:K}=B.next[q];U.push(Y.name),j&&!(Y.isText||Y.hasRequiredAttrs())&&(j=!1),N.indexOf(K)==-1&&N.push(K)}j&&$.err("Only non-generatable nodes ("+U.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function defaultAttrs(M){let $=Object.create(null);for(let I in M){let N=M[I];if(!N.hasDefault)return null;$[I]=N.default}return $}function computeAttrs(M,$){let I=Object.create(null);for(let N in M){let B=$&&$[N];if(B===void 0){let j=M[N];if(j.hasDefault)B=j.default;else throw new RangeError("No value supplied for attribute "+N)}I[N]=B}return I}function checkAttrs(M,$,I,N){for(let B in $)if(!(B in M))throw new RangeError(`Unsupported attribute ${B} for ${I} of type ${B}`);for(let B in M){let j=M[B];j.validate&&j.validate($[B])}}function initAttrs(M,$){let I=Object.create(null);if($)for(let N in $)I[N]=new Attribute(M,N,$[N]);return I}let NodeType$1=class Zc{constructor($,I,N){this.name=$,this.schema=I,this.spec=N,this.markSet=null,this.groups=N.group?N.group.split(" "):[],this.attrs=initAttrs($,N.attrs),this.defaultAttrs=defaultAttrs(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(N.inline||$=="text"),this.isText=$=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ContentMatch.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let $ in this.attrs)if(this.attrs[$].isRequired)return!0;return!1}compatibleContent($){return this==$||this.contentMatch.compatible($.contentMatch)}computeAttrs($){return!$&&this.defaultAttrs?this.defaultAttrs:computeAttrs(this.attrs,$)}create($=null,I,N){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Node$2(this,this.computeAttrs($),Fragment.from(I),Mark$1.setFrom(N))}createChecked($=null,I,N){return I=Fragment.from(I),this.checkContent(I),new Node$2(this,this.computeAttrs($),I,Mark$1.setFrom(N))}createAndFill($=null,I,N){if($=this.computeAttrs($),I=Fragment.from(I),I.size){let U=this.contentMatch.fillBefore(I);if(!U)return null;I=U.append(I)}let B=this.contentMatch.matchFragment(I),j=B&&B.fillBefore(Fragment.empty,!0);return j?new Node$2(this,$,I.append(j),Mark$1.setFrom(N)):null}validContent($){let I=this.contentMatch.matchFragment($);if(!I||!I.validEnd)return!1;for(let N=0;N<$.childCount;N++)if(!this.allowsMarks($.child(N).marks))return!1;return!0}checkContent($){if(!this.validContent($))throw new RangeError(`Invalid content for node ${this.name}: ${$.toString().slice(0,50)}`)}checkAttrs($){checkAttrs(this.attrs,$,"node",this.name)}allowsMarkType($){return this.markSet==null||this.markSet.indexOf($)>-1}allowsMarks($){if(this.markSet==null)return!0;for(let I=0;I<$.length;I++)if(!this.allowsMarkType($[I].type))return!1;return!0}allowedMarks($){if(this.markSet==null)return $;let I;for(let N=0;N<$.length;N++)this.allowsMarkType($[N].type)?I&&I.push($[N]):I||(I=$.slice(0,N));return I?I.length?I:Mark$1.none:$}static compile($,I){let N=Object.create(null);$.forEach((j,U)=>N[j]=new Zc(j,I,U));let B=I.spec.topNode||"doc";if(!N[B])throw new RangeError("Schema is missing its top node type ('"+B+"')");if(!N.text)throw new RangeError("Every schema needs a 'text' type");for(let j in N.text.attrs)throw new RangeError("The text node type should not have attributes");return N}};function validateType(M,$,I){let N=I.split("|");return B=>{let j=B===null?"null":typeof B;if(N.indexOf(j)<0)throw new RangeError(`Expected value of type ${N} for attribute ${$} on type ${M}, got ${j}`)}}class Attribute{constructor($,I,N){this.hasDefault=Object.prototype.hasOwnProperty.call(N,"default"),this.default=N.default,this.validate=typeof N.validate=="string"?validateType($,I,N.validate):N.validate}get isRequired(){return!this.hasDefault}}class MarkType{constructor($,I,N,B){this.name=$,this.rank=I,this.schema=N,this.spec=B,this.attrs=initAttrs($,B.attrs),this.excluded=null;let j=defaultAttrs(this.attrs);this.instance=j?new Mark$1(this,j):null}create($=null){return!$&&this.instance?this.instance:new Mark$1(this,computeAttrs(this.attrs,$))}static compile($,I){let N=Object.create(null),B=0;return $.forEach((j,U)=>N[j]=new MarkType(j,B++,I,U)),N}removeFromSet($){for(var I=0;I<$.length;I++)$[I].type==this&&($=$.slice(0,I).concat($.slice(I+1)),I--);return $}isInSet($){for(let I=0;I<$.length;I++)if($[I].type==this)return $[I]}checkAttrs($){checkAttrs(this.attrs,$,"mark",this.name)}excludes($){return this.excluded.indexOf($)>-1}}class Schema{constructor($){this.linebreakReplacement=null,this.cached=Object.create(null);let I=this.spec={};for(let B in $)I[B]=$[B];I.nodes=OrderedMap.from($.nodes),I.marks=OrderedMap.from($.marks||{}),this.nodes=NodeType$1.compile(this.spec.nodes,this),this.marks=MarkType.compile(this.spec.marks,this);let N=Object.create(null);for(let B in this.nodes){if(B in this.marks)throw new RangeError(B+" can not be both a node and a mark");let j=this.nodes[B],U=j.spec.content||"",q=j.spec.marks;if(j.contentMatch=N[U]||(N[U]=ContentMatch.parse(U,this.nodes)),j.inlineContent=j.contentMatch.inlineContent,j.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!j.isInline||!j.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=j}j.markSet=q=="_"?null:q?gatherMarks(this,q.split(" ")):q==""||!j.inlineContent?[]:null}for(let B in this.marks){let j=this.marks[B],U=j.spec.excludes;j.excluded=U==null?[j]:U==""?[]:gatherMarks(this,U.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node($,I=null,N,B){if(typeof $=="string")$=this.nodeType($);else if($ instanceof NodeType$1){if($.schema!=this)throw new RangeError("Node type from different schema used ("+$.name+")")}else throw new RangeError("Invalid node type: "+$);return $.createChecked(I,N,B)}text($,I){let N=this.nodes.text;return new TextNode(N,N.defaultAttrs,$,Mark$1.setFrom(I))}mark($,I){return typeof $=="string"&&($=this.marks[$]),$.create(I)}nodeFromJSON($){return Node$2.fromJSON(this,$)}markFromJSON($){return Mark$1.fromJSON(this,$)}nodeType($){let I=this.nodes[$];if(!I)throw new RangeError("Unknown node type: "+$);return I}}function gatherMarks(M,$){let I=[];for(let N=0;N<$.length;N++){let B=$[N],j=M.marks[B],U=j;if(j)I.push(j);else for(let q in M.marks){let Y=M.marks[q];(B=="_"||Y.spec.group&&Y.spec.group.split(" ").indexOf(B)>-1)&&I.push(U=Y)}if(!U)throw new SyntaxError("Unknown mark type: '"+$[N]+"'")}return I}function isTagRule(M){return M.tag!=null}function isStyleRule(M){return M.style!=null}class DOMParser{constructor($,I){this.schema=$,this.rules=I,this.tags=[],this.styles=[];let N=this.matchedStyles=[];I.forEach(B=>{if(isTagRule(B))this.tags.push(B);else if(isStyleRule(B)){let j=/[^=]*/.exec(B.style)[0];N.indexOf(j)<0&&N.push(j),this.styles.push(B)}}),this.normalizeLists=!this.tags.some(B=>{if(!/^(ul|ol)\b/.test(B.tag)||!B.node)return!1;let j=$.nodes[B.node];return j.contentMatch.matchType(j)})}parse($,I={}){let N=new ParseContext(this,I,!1);return N.addAll($,Mark$1.none,I.from,I.to),N.finish()}parseSlice($,I={}){let N=new ParseContext(this,I,!0);return N.addAll($,Mark$1.none,I.from,I.to),Slice.maxOpen(N.finish())}matchTag($,I,N){for(let B=N?this.tags.indexOf(N)+1:0;B<this.tags.length;B++){let j=this.tags[B];if(matches($,j.tag)&&(j.namespace===void 0||$.namespaceURI==j.namespace)&&(!j.context||I.matchesContext(j.context))){if(j.getAttrs){let U=j.getAttrs($);if(U===!1)continue;j.attrs=U||void 0}return j}}}matchStyle($,I,N,B){for(let j=B?this.styles.indexOf(B)+1:0;j<this.styles.length;j++){let U=this.styles[j],q=U.style;if(!(q.indexOf($)!=0||U.context&&!N.matchesContext(U.context)||q.length>$.length&&(q.charCodeAt($.length)!=61||q.slice($.length+1)!=I))){if(U.getAttrs){let Y=U.getAttrs(I);if(Y===!1)continue;U.attrs=Y||void 0}return U}}}static schemaRules($){let I=[];function N(B){let j=B.priority==null?50:B.priority,U=0;for(;U<I.length;U++){let q=I[U];if((q.priority==null?50:q.priority)<j)break}I.splice(U,0,B)}for(let B in $.marks){let j=$.marks[B].spec.parseDOM;j&&j.forEach(U=>{N(U=copy(U)),U.mark||U.ignore||U.clearMark||(U.mark=B)})}for(let B in $.nodes){let j=$.nodes[B].spec.parseDOM;j&&j.forEach(U=>{N(U=copy(U)),U.node||U.ignore||U.mark||(U.node=B)})}return I}static fromSchema($){return $.cached.domParser||($.cached.domParser=new DOMParser($,DOMParser.schemaRules($)))}}const blockTags={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ignoreTags={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},listTags={ol:!0,ul:!0},OPT_PRESERVE_WS=1,OPT_PRESERVE_WS_FULL=2,OPT_OPEN_LEFT=4;function wsOptionsFor(M,$,I){return $!=null?($?OPT_PRESERVE_WS:0)|($==="full"?OPT_PRESERVE_WS_FULL:0):M&&M.whitespace=="pre"?OPT_PRESERVE_WS|OPT_PRESERVE_WS_FULL:I&~OPT_OPEN_LEFT}class NodeContext{constructor($,I,N,B,j,U){this.type=$,this.attrs=I,this.marks=N,this.solid=B,this.options=U,this.content=[],this.activeMarks=Mark$1.none,this.match=j||(U&OPT_OPEN_LEFT?null:$.contentMatch)}findWrapping($){if(!this.match){if(!this.type)return[];let I=this.type.contentMatch.fillBefore(Fragment.from($));if(I)this.match=this.type.contentMatch.matchFragment(I);else{let N=this.type.contentMatch,B;return(B=N.findWrapping($.type))?(this.match=N,B):null}}return this.match.findWrapping($.type)}finish($){if(!(this.options&OPT_PRESERVE_WS)){let N=this.content[this.content.length-1],B;if(N&&N.isText&&(B=/[ \t\r\n\u000c]+$/.exec(N.text))){let j=N;N.text.length==B[0].length?this.content.pop():this.content[this.content.length-1]=j.withText(j.text.slice(0,j.text.length-B[0].length))}}let I=Fragment.from(this.content);return!$&&this.match&&(I=I.append(this.match.fillBefore(Fragment.empty,!0))),this.type?this.type.create(this.attrs,I,this.marks):I}inlineContext($){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:$.parentNode&&!blockTags.hasOwnProperty($.parentNode.nodeName.toLowerCase())}}class ParseContext{constructor($,I,N){this.parser=$,this.options=I,this.isOpen=N,this.open=0;let B=I.topNode,j,U=wsOptionsFor(null,I.preserveWhitespace,0)|(N?OPT_OPEN_LEFT:0);B?j=new NodeContext(B.type,B.attrs,Mark$1.none,!0,I.topMatch||B.type.contentMatch,U):N?j=new NodeContext(null,null,Mark$1.none,!0,null,U):j=new NodeContext($.schema.topNodeType,null,Mark$1.none,!0,null,U),this.nodes=[j],this.find=I.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM($,I){$.nodeType==3?this.addTextNode($,I):$.nodeType==1&&this.addElement($,I)}addTextNode($,I){let N=$.nodeValue,B=this.top;if(B.options&OPT_PRESERVE_WS_FULL||B.inlineContext($)||/[^ \t\r\n\u000c]/.test(N)){if(B.options&OPT_PRESERVE_WS)B.options&OPT_PRESERVE_WS_FULL?N=N.replace(/\r\n?/g,` `):N=N.replace(/\r?\n|\r/g," ");else if(N=N.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(N)&&this.open==this.nodes.length-1){let j=B.content[B.content.length-1],U=$.previousSibling;(!j||U&&U.nodeName=="BR"||j.isText&&/[ \t\r\n\u000c]$/.test(j.text))&&(N=N.slice(1))}N&&this.insertNode(this.parser.schema.text(N),I),this.findInText($)}else this.findInside($)}addElement($,I,N){let B=$.nodeName.toLowerCase(),j;listTags.hasOwnProperty(B)&&this.parser.normalizeLists&&normalizeList($);let U=this.options.ruleFromNode&&this.options.ruleFromNode($)||(j=this.parser.matchTag($,this,N));if(U?U.ignore:ignoreTags.hasOwnProperty(B))this.findInside($),this.ignoreFallback($,I);else if(!U||U.skip||U.closeParent){U&&U.closeParent?this.open=Math.max(0,this.open-1):U&&U.skip.nodeType&&($=U.skip);let q,Y=this.top,K=this.needsBlock;if(blockTags.hasOwnProperty(B))Y.content.length&&Y.content[0].isInline&&this.open&&(this.open--,Y=this.top),q=!0,Y.type||(this.needsBlock=!0);else if(!$.firstChild){this.leafFallback($,I);return}let G=U&&U.skip?I:this.readStyles($,I);G&&this.addAll($,G),q&&this.sync(Y),this.needsBlock=K}else{let q=this.readStyles($,I);q&&this.addElementByRule($,U,q,U.consuming===!1?j:void 0)}}leafFallback($,I){$.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode($.ownerDocument.createTextNode(` `),I)}ignoreFallback($,I){$.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),I)}readStyles($,I){let N=$.style;if(N&&N.length)for(let B=0;B<this.parser.matchedStyles.length;B++){let j=this.parser.matchedStyles[B],U=N.getPropertyValue(j);if(U)for(let q=void 0;;){let Y=this.parser.matchStyle(j,U,this,q);if(!Y)break;if(Y.ignore)return null;if(Y.clearMark?I=I.filter(K=>!Y.clearMark(K)):I=I.concat(this.parser.schema.marks[Y.mark].create(Y.attrs)),Y.consuming===!1)q=Y;else break}}return I}addElementByRule($,I,N,B){let j,U;if(I.node)if(U=this.parser.schema.nodes[I.node],U.isLeaf)this.insertNode(U.create(I.attrs),N)||this.leafFallback($,N);else{let Y=this.enter(U,I.attrs||null,N,I.preserveWhitespace);Y&&(j=!0,N=Y)}else{let Y=this.parser.schema.marks[I.mark];N=N.concat(Y.create(I.attrs))}let q=this.top;if(U&&U.isLeaf)this.findInside($);else if(B)this.addElement($,N,B);else if(I.getContent)this.findInside($),I.getContent($,this.parser.schema).forEach(Y=>this.insertNode(Y,N));else{let Y=$;typeof I.contentElement=="string"?Y=$.querySelector(I.contentElement):typeof I.contentElement=="function"?Y=I.contentElement($):I.contentElement&&(Y=I.contentElement),this.findAround($,Y,!0),this.addAll(Y,N)}j&&this.sync(q)&&this.open--}addAll($,I,N,B){let j=N||0;for(let U=N?$.childNodes[N]:$.firstChild,q=B==null?null:$.childNodes[B];U!=q;U=U.nextSibling,++j)this.findAtPoint($,j),this.addDOM(U,I);this.findAtPoint($,j)}findPlace($,I){let N,B;for(let j=this.open;j>=0;j--){let U=this.nodes[j],q=U.findWrapping($);if(q&&(!N||N.length>q.length)&&(N=q,B=U,!q.length)||U.solid)break}if(!N)return null;this.sync(B);for(let j=0;j<N.length;j++)I=this.enterInner(N[j],null,I,!1);return I}insertNode($,I){if($.isInline&&this.needsBlock&&!this.top.type){let B=this.textblockFromContext();B&&(I=this.enterInner(B,null,I))}let N=this.findPlace($,I);if(N){this.closeExtra();let B=this.top;B.match&&(B.match=B.match.matchType($.type));let j=Mark$1.none;for(let U of N.concat($.marks))(B.type?B.type.allowsMarkType(U.type):markMayApply(U.type,$.type))&&(j=U.addToSet(j));return B.content.push($.mark(j)),!0}return!1}enter($,I,N,B){let j=this.findPlace($.create(I),N);return j&&(j=this.enterInner($,I,N,!0,B)),j}enterInner($,I,N,B=!1,j){this.closeExtra();let U=this.top;U.match=U.match&&U.match.matchType($);let q=wsOptionsFor($,j,U.options);U.options&OPT_OPEN_LEFT&&U.content.length==0&&(q|=OPT_OPEN_LEFT);let Y=Mark$1.none;return N=N.filter(K=>(U.type?U.type.allowsMarkType(K.type):markMayApply(K.type,$))?(Y=K.addToSet(Y),!1):!0),this.nodes.push(new NodeContext($,I,Y,B,null,q)),this.open++,N}closeExtra($=!1){let I=this.nodes.length-1;if(I>this.open){for(;I>this.open;I--)this.nodes[I-1].content.push(this.nodes[I].finish($));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync($){for(let I=this.open;I>=0;I--)if(this.nodes[I]==$)return this.open=I,!0;return!1}get currentPos(){this.closeExtra();let $=0;for(let I=this.open;I>=0;I--){let N=this.nodes[I].content;for(let B=N.length-1;B>=0;B--)$+=N[B].nodeSize;I&&$++}return $}findAtPoint($,I){if(this.find)for(let N=0;N<this.find.length;N++)this.find[N].node==$&&this.find[N].offset==I&&(this.find[N].pos=this.currentPos)}findInside($){if(this.find)for(let I=0;I<this.find.length;I++)this.find[I].pos==null&&$.nodeType==1&&$.contains(this.find[I].node)&&(this.find[I].pos=this.currentPos)}findAround($,I,N){if($!=I&&this.find)for(let B=0;B<this.find.length;B++)this.find[B].pos==null&&$.nodeType==1&&$.contains(this.find[B].node)&&I.compareDocumentPosition(this.find[B].node)&(N?2:4)&&(this.find[B].pos=this.currentPos)}findInText($){if(this.find)for(let I=0;I<this.find.length;I++)this.find[I].node==$&&(this.find[I].pos=this.currentPos-($.nodeValue.length-this.find[I].offset))}matchesContext($){if($.indexOf("|")>-1)return $.split(/\s*\|\s*/).some(this.matchesContext,this);let I=$.split("/"),N=this.options.context,B=!this.isOpen&&(!N||N.parent.type==this.nodes[0].type),j=-(N?N.depth+1:0)+(B?0:1),U=(q,Y)=>{for(;q>=0;q--){let K=I[q];if(K==""){if(q==I.length-1||q==0)continue;for(;Y>=j;Y--)if(U(q-1,Y))return!0;return!1}else{let G=Y>0||Y==0&&B?this.nodes[Y].type:N&&Y>=j?N.node(Y-j).type:null;if(!G||G.name!=K&&G.groups.indexOf(K)==-1)return!1;Y--}}return!0};return U(I.length-1,this.open)}textblockFromContext(){let $=this.options.context;if($)for(let I=$.depth;I>=0;I--){let N=$.node(I).contentMatchAt($.indexAfter(I)).defaultType;if(N&&N.isTextblock&&N.defaultAttrs)return N}for(let I in this.parser.schema.nodes){let N=this.parser.schema.nodes[I];if(N.isTextblock&&N.defaultAttrs)return N}}}function normalizeList(M){for(let $=M.firstChild,I=null;$;$=$.nextSibling){let N=$.nodeType==1?$.nodeName.toLowerCase():null;N&&listTags.hasOwnProperty(N)&&I?(I.appendChild($),$=I):N=="li"?I=$:N&&(I=null)}}function matches(M,$){return(M.matches||M.msMatchesSelector||M.webkitMatchesSelector||M.mozMatchesSelector).call(M,$)}function copy(M){let $={};for(let I in M)$[I]=M[I];return $}function markMayApply(M,$){let I=$.schema.nodes;for(let N in I){let B=I[N];if(!B.allowsMarkType(M))continue;let j=[],U=q=>{j.push(q);for(let Y=0;Y<q.edgeCount;Y++){let{type:K,next:G}=q.edge(Y);if(K==$||j.indexOf(G)<0&&U(G))return!0}};if(U(B.contentMatch))return!0}}class DOMSerializer{constructor($,I){this.nodes=$,this.marks=I}serializeFragment($,I={},N){N||(N=doc$1(I).createDocumentFragment());let B=N,j=[];return $.forEach(U=>{if(j.length||U.marks.length){let q=0,Y=0;for(;q<j.length&&Y<U.marks.length;){let K=U.marks[Y];if(!this.marks[K.type.name]){Y++;continue}if(!K.eq(j[q][0])||K.type.spec.spanning===!1)break;q++,Y++}for(;q<j.length;)B=j.pop()[1];for(;Y<U.marks.length;){let K=U.marks[Y++],G=this.serializeMark(K,U.isInline,I);G&&(j.push([K,B]),B.appendChild(G.dom),B=G.contentDOM||G.dom)}}B.appendChild(this.serializeNodeInner(U,I))}),N}serializeNodeInner($,I){let{dom:N,contentDOM:B}=renderSpec(doc$1(I),this.nodes[$.type.name]($),null,$.attrs);if(B){if($.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment($.content,I,B)}return N}serializeNode($,I={}){let N=this.serializeNodeInner($,I);for(let B=$.marks.length-1;B>=0;B--){let j=this.serializeMark($.marks[B],$.isInline,I);j&&((j.contentDOM||j.dom).appendChild(N),N=j.dom)}return N}serializeMark($,I,N={}){let B=this.marks[$.type.name];return B&&renderSpec(doc$1(N),B($,I),null,$.attrs)}static renderSpec($,I,N=null,B){return renderSpec($,I,N,B)}static fromSchema($){return $.cached.domSerializer||($.cached.domSerializer=new DOMSerializer(this.nodesFromSchema($),this.marksFromSchema($)))}static nodesFromSchema($){let I=gatherToDOM($.nodes);return I.text||(I.text=N=>N.text),I}static marksFromSchema($){return gatherToDOM($.marks)}}function gatherToDOM(M){let $={};for(let I in M){let N=M[I].spec.toDOM;N&&($[I]=N)}return $}function doc$1(M){return M.document||window.document}const suspiciousAttributeCache=new WeakMap;function suspiciousAttributes(M){let $=suspiciousAttributeCache.get(M);return $===void 0&&suspiciousAttributeCache.set(M,$=suspiciousAttributesInner(M)),$}function suspiciousAttributesInner(M){let $=null;function I(N){if(N&&typeof N=="object")if(Array.isArray(N))if(typeof N[0]=="string")$||($=[]),$.push(N);else for(let B=0;B<N.length;B++)I(N[B]);else for(let B in N)I(N[B])}return I(M),$}function renderSpec(M,$,I,N){if(typeof $=="string")return{dom:M.createTextNode($)};if($.nodeType!=null)return{dom:$};if($.dom&&$.dom.nodeType!=null)return $;let B=$[0],j;if(typeof B!="string")throw new RangeError("Invalid array passed to renderSpec");if(N&&(j=suspiciousAttributes(N))&&j.indexOf($)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let U=B.indexOf(" ");U>0&&(I=B.slice(0,U),B=B.slice(U+1));let q,Y=I?M.createElementNS(I,B):M.createElement(B),K=$[1],G=1;if(K&&typeof K=="object"&&K.nodeType==null&&!Array.isArray(K)){G=2;for(let J in K)if(K[J]!=null){let Z=J.indexOf(" ");Z>0?Y.setAttributeNS(J.slice(0,Z),J.slice(Z+1),K[J]):Y.setAttribute(J,K[J])}}for(let J=G;J<$.length;J++){let Z=$[J];if(Z===0){if(J<$.length-1||J>G)throw new RangeError("Content hole must be the only child of its parent node");return{dom:Y,contentDOM:Y}}else{let{dom:ee,contentDOM:te}=renderSpec(M,Z,I,N);if(Y.appendChild(ee),te){if(q)throw new RangeError("Multiple content holes");q=te}}}return{dom:Y,contentDOM:q}}const lower16=65535,factor16=Math.pow(2,16);function makeRecover(M,$){return M+$*factor16}function recoverIndex(M){return M&lower16}function recoverOffset(M){return(M-(M&lower16))/factor16}const DEL_BEFORE=1,DEL_AFTER=2,DEL_ACROSS=4,DEL_SIDE=8;class MapResult{constructor($,I,N){this.pos=$,this.delInfo=I,this.recover=N}get deleted(){return(this.delInfo&DEL_SIDE)>0}get deletedBefore(){return(this.delInfo&(DEL_BEFORE|DEL_ACROSS))>0}get deletedAfter(){return(this.delInfo&(DEL_AFTER|DEL_ACROSS))>0}get deletedAcross(){return(this.delInfo&DEL_ACROSS)>0}}class StepMap{constructor($,I=!1){if(this.ranges=$,this.inverted=I,!$.length&&StepMap.empty)return StepMap.empty}recover($){let I=0,N=recoverIndex($);if(!this.inverted)for(let B=0;B<N;B++)I+=this.ranges[B*3+2]-this.ranges[B*3+1];return this.ranges[N*3]+I+recoverOffset($)}mapResult($,I=1){return this._map($,I,!1)}map($,I=1){return this._map($,I,!0)}_map($,I,N){let B=0,j=this.inverted?2:1,U=this.inverted?1:2;for(let q=0;q<this.ranges.length;q+=3){let Y=this.ranges[q]-(this.inverted?B:0);if(Y>$)break;let K=this.ranges[q+j],G=this.ranges[q+U],J=Y+K;if($<=J){let Z=K?$==Y?-1:$==J?1:I:I,ee=Y+B+(Z<0?0:G);if(N)return ee;let te=$==(I<0?Y:J)?null:makeRecover(q/3,$-Y),se=$==Y?DEL_AFTER:$==J?DEL_BEFORE:DEL_ACROSS;return(I<0?$!=Y:$!=J)&&(se|=DEL_SIDE),new MapResult(ee,se,te)}B+=G-K}return N?$+B:new MapResult($+B,0,null)}touches($,I){let N=0,B=recoverIndex(I),j=this.inverted?2:1,U=this.inverted?1:2;for(let q=0;q<this.ranges.length;q+=3){let Y=this.ranges[q]-(this.inverted?N:0);if(Y>$)break;let K=this.ranges[q+j],G=Y+K;if($<=G&&q==B*3)return!0;N+=this.ranges[q+U]-K}return!1}forEach($){let I=this.inverted?2:1,N=this.inverted?1:2;for(let B=0,j=0;B<this.ranges.length;B+=3){let U=this.ranges[B],q=U-(this.inverted?j:0),Y=U+(this.inverted?0:j),K=this.ranges[B+I],G=this.ranges[B+N];$(q,q+K,Y,Y+G),j+=G-K}}invert(){return new StepMap(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset($){return $==0?StepMap.empty:new StepMap($<0?[0,-$,0]:[0,0,$])}}StepMap.empty=new StepMap([]);class Mapping{constructor($=[],I,N=0,B=$.length){this.maps=$,this.mirror=I,this.from=N,this.to=B}slice($=0,I=this.maps.length){return new Mapping(this.maps,this.mirror,$,I)}copy(){return new Mapping(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap($,I){this.to=this.maps.push($),I!=null&&this.setMirror(this.maps.length-1,I)}appendMapping($){for(let I=0,N=this.maps.length;I<$.maps.length;I++){let B=$.getMirror(I);this.appendMap($.maps[I],B!=null&&B<I?N+B:void 0)}}getMirror($){if(this.mirror){for(let I=0;I<this.mirror.length;I++)if(this.mirror[I]==$)return this.mirror[I+(I%2?-1:1)]}}setMirror($,I){this.mirror||(this.mirror=[]),this.mirror.push($,I)}appendMappingInverted($){for(let I=$.maps.length-1,N=this.maps.length+$.maps.length;I>=0;I--){let B=$.getMirror(I);this.appendMap($.maps[I].invert(),B!=null&&B>I?N-B-1:void 0)}}invert(){let $=new Mapping;return $.appendMappingInverted(this),$}map($,I=1){if(this.mirror)return this._map($,I,!0);for(let N=this.from;N<this.to;N++)$=this.maps[N].map($,I);return $}mapResult($,I=1){return this._map($,I,!1)}_map($,I,N){let B=0;for(let j=this.from;j<this.to;j++){let U=this.maps[j],q=U.mapResult($,I);if(q.recover!=null){let Y=this.getMirror(j);if(Y!=null&&Y>j&&Y<this.to){j=Y,$=this.maps[Y].recover(q.recover);continue}}B|=q.delInfo,$=q.pos}return N?$:new MapResult($,B,null)}}const stepsByID=Object.create(null);class Step{getMap(){return StepMap.empty}merge($){return null}static fromJSON($,I){if(!I||!I.stepType)throw new RangeError("Invalid input for Step.fromJSON");let N=stepsByID[I.stepType];if(!N)throw new RangeError(`No step type ${I.stepType} defined`);return N.fromJSON($,I)}static jsonID($,I){if($ in stepsByID)throw new RangeError("Duplicate use of step JSON ID "+$);return stepsByID[$]=I,I.prototype.jsonID=$,I}}class StepResult{constructor($,I){this.doc=$,this.failed=I}static ok($){return new StepResult($,null)}static fail($){return new StepResult(null,$)}static fromReplace($,I,N,B){try{return StepResult.ok($.replace(I,N,B))}catch(j){if(j instanceof ReplaceError)return StepResult.fail(j.message);throw j}}}function mapFragment(M,$,I){let N=[];for(let B=0;B<M.childCount;B++){let j=M.child(B);j.content.size&&(j=j.copy(mapFragment(j.content,$,j))),j.isInline&&(j=$(j,I,B)),N.push(j)}return Fragment.fromArray(N)}class AddMarkStep extends Step{constructor($,I,N){super(),this.from=$,this.to=I,this.mark=N}apply($){let I=$.slice(this.from,this.to),N=$.resolve(this.from),B=N.node(N.sharedDepth(this.to)),j=new Slice(mapFragment(I.content,(U,q)=>!U.isAtom||!q.type.allowsMarkType(this.mark.type)?U:U.mark(this.mark.addToSet(U.marks)),B),I.openStart,I.openEnd);return StepResult.fromReplace($,this.from,this.to,j)}invert(){return new RemoveMarkStep(this.from,this.to,this.mark)}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1);return I.deleted&&N.deleted||I.pos>=N.pos?null:new AddMarkStep(I.pos,N.pos,this.mark)}merge($){return $ instanceof AddMarkStep&&$.mark.eq(this.mark)&&this.from<=$.to&&this.to>=$.from?new AddMarkStep(Math.min(this.from,$.from),Math.max(this.to,$.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new AddMarkStep(I.from,I.to,$.markFromJSON(I.mark))}}Step.jsonID("addMark",AddMarkStep);class RemoveMarkStep extends Step{constructor($,I,N){super(),this.from=$,this.to=I,this.mark=N}apply($){let I=$.slice(this.from,this.to),N=new Slice(mapFragment(I.content,B=>B.mark(this.mark.removeFromSet(B.marks)),$),I.openStart,I.openEnd);return StepResult.fromReplace($,this.from,this.to,N)}invert(){return new AddMarkStep(this.from,this.to,this.mark)}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1);return I.deleted&&N.deleted||I.pos>=N.pos?null:new RemoveMarkStep(I.pos,N.pos,this.mark)}merge($){return $ instanceof RemoveMarkStep&&$.mark.eq(this.mark)&&this.from<=$.to&&this.to>=$.from?new RemoveMarkStep(Math.min(this.from,$.from),Math.max(this.to,$.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new RemoveMarkStep(I.from,I.to,$.markFromJSON(I.mark))}}Step.jsonID("removeMark",RemoveMarkStep);class AddNodeMarkStep extends Step{constructor($,I){super(),this.pos=$,this.mark=I}apply($){let I=$.nodeAt(this.pos);if(!I)return StepResult.fail("No node at mark step's position");let N=I.type.create(I.attrs,null,this.mark.addToSet(I.marks));return StepResult.fromReplace($,this.pos,this.pos+1,new Slice(Fragment.from(N),0,I.isLeaf?0:1))}invert($){let I=$.nodeAt(this.pos);if(I){let N=this.mark.addToSet(I.marks);if(N.length==I.marks.length){for(let B=0;B<I.marks.length;B++)if(!I.marks[B].isInSet(N))return new AddNodeMarkStep(this.pos,I.marks[B]);return new AddNodeMarkStep(this.pos,this.mark)}}return new RemoveNodeMarkStep(this.pos,this.mark)}map($){let I=$.mapResult(this.pos,1);return I.deletedAfter?null:new AddNodeMarkStep(I.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON($,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new AddNodeMarkStep(I.pos,$.markFromJSON(I.mark))}}Step.jsonID("addNodeMark",AddNodeMarkStep);class RemoveNodeMarkStep extends Step{constructor($,I){super(),this.pos=$,this.mark=I}apply($){let I=$.nodeAt(this.pos);if(!I)return StepResult.fail("No node at mark step's position");let N=I.type.create(I.attrs,null,this.mark.removeFromSet(I.marks));return StepResult.fromReplace($,this.pos,this.pos+1,new Slice(Fragment.from(N),0,I.isLeaf?0:1))}invert($){let I=$.nodeAt(this.pos);return!I||!this.mark.isInSet(I.marks)?this:new AddNodeMarkStep(this.pos,this.mark)}map($){let I=$.mapResult(this.pos,1);return I.deletedAfter?null:new RemoveNodeMarkStep(I.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON($,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new RemoveNodeMarkStep(I.pos,$.markFromJSON(I.mark))}}Step.jsonID("removeNodeMark",RemoveNodeMarkStep);class ReplaceStep extends Step{constructor($,I,N,B=!1){super(),this.from=$,this.to=I,this.slice=N,this.structure=B}apply($){return this.structure&&contentBetween($,this.from,this.to)?StepResult.fail("Structure replace would overwrite content"):StepResult.fromReplace($,this.from,this.to,this.slice)}getMap(){return new StepMap([this.from,this.to-this.from,this.slice.size])}invert($){return new ReplaceStep(this.from,this.from+this.slice.size,$.slice(this.from,this.to))}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1);return I.deletedAcross&&N.deletedAcross?null:new ReplaceStep(I.pos,Math.max(I.pos,N.pos),this.slice)}merge($){if(!($ instanceof ReplaceStep)||$.structure||this.structure)return null;if(this.from+this.slice.size==$.from&&!this.slice.openEnd&&!$.slice.openStart){let I=this.slice.size+$.slice.size==0?Slice.empty:new Slice(this.slice.content.append($.slice.content),this.slice.openStart,$.slice.openEnd);return new ReplaceStep(this.from,this.to+($.to-$.from),I,this.structure)}else if($.to==this.from&&!this.slice.openStart&&!$.slice.openEnd){let I=this.slice.size+$.slice.size==0?Slice.empty:new Slice($.slice.content.append(this.slice.content),$.slice.openStart,this.slice.openEnd);return new ReplaceStep($.from,this.to,I,this.structure)}else return null}toJSON(){let $={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&($.slice=this.slice.toJSON()),this.structure&&($.structure=!0),$}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ReplaceStep(I.from,I.to,Slice.fromJSON($,I.slice),!!I.structure)}}Step.jsonID("replace",ReplaceStep);class ReplaceAroundStep extends Step{constructor($,I,N,B,j,U,q=!1){super(),this.from=$,this.to=I,this.gapFrom=N,this.gapTo=B,this.slice=j,this.insert=U,this.structure=q}apply($){if(this.structure&&(contentBetween($,this.from,this.gapFrom)||contentBetween($,this.gapTo,this.to)))return StepResult.fail("Structure gap-replace would overwrite content");let I=$.slice(this.gapFrom,this.gapTo);if(I.openStart||I.openEnd)return StepResult.fail("Gap is not a flat range");let N=this.slice.insertAt(this.insert,I.content);return N?StepResult.fromReplace($,this.from,this.to,N):StepResult.fail("Content does not fit in gap")}getMap(){return new StepMap([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert($){let I=this.gapTo-this.gapFrom;return new ReplaceAroundStep(this.from,this.from+this.slice.size+I,this.from+this.insert,this.from+this.insert+I,$.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map($){let I=$.mapResult(this.from,1),N=$.mapResult(this.to,-1),B=this.from==this.gapFrom?I.pos:$.map(this.gapFrom,-1),j=this.to==this.gapTo?N.pos:$.map(this.gapTo,1);return I.deletedAcross&&N.deletedAcross||B<I.pos||j>N.pos?null:new ReplaceAroundStep(I.pos,N.pos,B,j,this.slice,this.insert,this.structure)}toJSON(){let $={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&($.slice=this.slice.toJSON()),this.structure&&($.structure=!0),$}static fromJSON($,I){if(typeof I.from!="number"||typeof I.to!="number"||typeof I.gapFrom!="number"||typeof I.gapTo!="number"||typeof I.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ReplaceAroundStep(I.from,I.to,I.gapFrom,I.gapTo,Slice.fromJSON($,I.slice),I.insert,!!I.structure)}}Step.jsonID("replaceAround",ReplaceAroundStep);function contentBetween(M,$,I){let N=M.resolve($),B=I-$,j=N.depth;for(;B>0&&j>0&&N.indexAfter(j)==N.node(j).childCount;)j--,B--;if(B>0){let U=N.node(j).maybeChild(N.indexAfter(j));for(;B>0;){if(!U||U.isLeaf)return!0;U=U.firstChild,B--}}return!1}function addMark(M,$,I,N){let B=[],j=[],U,q;M.doc.nodesBetween($,I,(Y,K,G)=>{if(!Y.isInline)return;let J=Y.marks;if(!N.isInSet(J)&&G.type.allowsMarkType(N.type)){let Z=Math.max(K,$),ee=Math.min(K+Y.nodeSize,I),te=N.addToSet(J);for(let se=0;se<J.length;se++)J[se].isInSet(te)||(U&&U.to==Z&&U.mark.eq(J[se])?U.to=ee:B.push(U=new RemoveMarkStep(Z,ee,J[se])));q&&q.to==Z?q.to=ee:j.push(q=new AddMarkStep(Z,ee,N))}}),B.forEach(Y=>M.step(Y)),j.forEach(Y=>M.step(Y))}function removeMark(M,$,I,N){let B=[],j=0;M.doc.nodesBetween($,I,(U,q)=>{if(!U.isInline)return;j++;let Y=null;if(N instanceof MarkType){let K=U.marks,G;for(;G=N.isInSet(K);)(Y||(Y=[])).push(G),K=G.removeFromSet(K)}else N?N.isInSet(U.marks)&&(Y=[N]):Y=U.marks;if(Y&&Y.length){let K=Math.min(q+U.nodeSize,I);for(let G=0;G<Y.length;G++){let J=Y[G],Z;for(let ee=0;ee<B.length;ee++){let te=B[ee];te.step==j-1&&J.eq(B[ee].style)&&(Z=te)}Z?(Z.to=K,Z.step=j):B.push({style:J,from:Math.max(q,$),to:K,step:j})}}}),B.forEach(U=>M.step(new RemoveMarkStep(U.from,U.to,U.style)))}function clearIncompatible(M,$,I,N=I.contentMatch,B=!0){let j=M.doc.nodeAt($),U=[],q=$+1;for(let Y=0;Y<j.childCount;Y++){let K=j.child(Y),G=q+K.nodeSize,J=N.matchType(K.type);if(!J)U.push(new ReplaceStep(q,G,Slice.empty));else{N=J;for(let Z=0;Z<K.marks.length;Z++)I.allowsMarkType(K.marks[Z].type)||M.step(new RemoveMarkStep(q,G,K.marks[Z]));if(B&&K.isText&&I.whitespace!="pre"){let Z,ee=/\r?\n|\r/g,te;for(;Z=ee.exec(K.text);)te||(te=new Slice(Fragment.from(I.schema.text(" ",I.allowedMarks(K.marks))),0,0)),U.push(new ReplaceStep(q+Z.index,q+Z.index+Z[0].length,te))}}q=G}if(!N.validEnd){let Y=N.fillBefore(Fragment.empty,!0);M.replace(q,q,new Slice(Y,0,0))}for(let Y=U.length-1;Y>=0;Y--)M.step(U[Y])}function canCut(M,$,I){return($==0||M.canReplace($,M.childCount))&&(I==M.childCount||M.canReplace(0,I))}function liftTarget(M){let I=M.parent.content.cutByIndex(M.startIndex,M.endIndex);for(let N=M.depth;;--N){let B=M.$from.node(N),j=M.$from.index(N),U=M.$to.indexAfter(N);if(N<M.depth&&B.canReplace(j,U,I))return N;if(N==0||B.type.spec.isolating||!canCut(B,j,U))break}return null}function lift$2(M,$,I){let{$from:N,$to:B,depth:j}=$,U=N.before(j+1),q=B.after(j+1),Y=U,K=q,G=Fragment.empty,J=0;for(let te=j,se=!1;te>I;te--)se||N.index(te)>0?(se=!0,G=Fragment.from(N.node(te).copy(G)),J++):Y--;let Z=Fragment.empty,ee=0;for(let te=j,se=!1;te>I;te--)se||B.after(te+1)<B.end(te)?(se=!0,Z=Fragment.from(B.node(te).copy(Z)),ee++):K++;M.step(new ReplaceAroundStep(Y,K,U,q,new Slice(G.append(Z),J,ee),G.size-J,!0))}function findWrapping(M,$,I=null,N=M){let B=findWrappingOutside(M,$),j=B&&findWrappingInside(N,$);return j?B.map(withAttrs).concat({type:$,attrs:I}).concat(j.map(withAttrs)):null}function withAttrs(M){return{type:M,attrs:null}}function findWrappingOutside(M,$){let{parent:I,startIndex:N,endIndex:B}=M,j=I.contentMatchAt(N).findWrapping($);if(!j)return null;let U=j.length?j[0]:$;return I.canReplaceWith(N,B,U)?j:null}function findWrappingInside(M,$){let{parent:I,startIndex:N,endIndex:B}=M,j=I.child(N),U=$.contentMatch.findWrapping(j.type);if(!U)return null;let Y=(U.length?U[U.length-1]:$).contentMatch;for(let K=N;Y&&K<B;K++)Y=Y.matchType(I.child(K).type);return!Y||!Y.validEnd?null:U}function wrap$1(M,$,I){let N=Fragment.empty;for(let U=I.length-1;U>=0;U--){if(N.size){let q=I[U].type.contentMatch.matchFragment(N);if(!q||!q.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}N=Fragment.from(I[U].type.create(I[U].attrs,N))}let B=$.start,j=$.end;M.step(new ReplaceAroundStep(B,j,B,j,new Slice(N,0,0),I.length,!0))}function setBlockType$1(M,$,I,N,B){if(!N.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let j=M.steps.length;M.doc.nodesBetween($,I,(U,q)=>{let Y=typeof B=="function"?B(U):B;if(U.isTextblock&&!U.hasMarkup(N,Y)&&canChangeType(M.doc,M.mapping.slice(j).map(q),N)){let K=null;if(N.schema.linebreakReplacement){let ee=N.whitespace=="pre",te=!!N.contentMatch.matchType(N.schema.linebreakReplacement);ee&&!te?K=!1:!ee&&te&&(K=!0)}K===!1&&replaceLinebreaks(M,U,q,j),clearIncompatible(M,M.mapping.slice(j).map(q,1),N,void 0,K===null);let G=M.mapping.slice(j),J=G.map(q,1),Z=G.map(q+U.nodeSize,1);return M.step(new ReplaceAroundStep(J,Z,J+1,Z-1,new Slice(Fragment.from(N.create(Y,null,U.marks)),0,0),1,!0)),K===!0&&replaceNewlines(M,U,q,j),!1}})}function replaceNewlines(M,$,I,N){$.forEach((B,j)=>{if(B.isText){let U,q=/\r?\n|\r/g;for(;U=q.exec(B.text);){let Y=M.mapping.slice(N).map(I+1+j+U.index);M.replaceWith(Y,Y+1,$.type.schema.linebreakReplacement.create())}}})}function replaceLinebreaks(M,$,I,N){$.forEach((B,j)=>{if(B.type==B.type.schema.linebreakReplacement){let U=M.mapping.slice(N).map(I+1+j);M.replaceWith(U,U+1,$.type.schema.text(` `))}})}function canChangeType(M,$,I){let N=M.resolve($),B=N.index();return N.parent.canReplaceWith(B,B+1,I)}function setNodeMarkup(M,$,I,N,B){let j=M.doc.nodeAt($);if(!j)throw new RangeError("No node at given position");I||(I=j.type);let U=I.create(N,null,B||j.marks);if(j.isLeaf)return M.replaceWith($,$+j.nodeSize,U);if(!I.validContent(j.content))throw new RangeError("Invalid content for node type "+I.name);M.step(new ReplaceAroundStep($,$+j.nodeSize,$+1,$+j.nodeSize-1,new Slice(Fragment.from(U),0,0),1,!0))}function canSplit(M,$,I=1,N){let B=M.resolve($),j=B.depth-I,U=N&&N[N.length-1]||B.parent;if(j<0||B.parent.type.spec.isolating||!B.parent.canReplace(B.index(),B.parent.childCount)||!U.type.validContent(B.parent.content.cutByIndex(B.index(),B.parent.childCount)))return!1;for(let K=B.depth-1,G=I-2;K>j;K--,G--){let J=B.node(K),Z=B.index(K);if(J.type.spec.isolating)return!1;let ee=J.content.cutByIndex(Z,J.childCount),te=N&&N[G+1];te&&(ee=ee.replaceChild(0,te.type.create(te.attrs)));let se=N&&N[G]||J;if(!J.canReplace(Z+1,J.childCount)||!se.type.validContent(ee))return!1}let q=B.indexAfter(j),Y=N&&N[0];return B.node(j).canReplaceWith(q,q,Y?Y.type:B.node(j+1).type)}function split(M,$,I=1,N){let B=M.doc.resolve($),j=Fragment.empty,U=Fragment.empty;for(let q=B.depth,Y=B.depth-I,K=I-1;q>Y;q--,K--){j=Fragment.from(B.node(q).copy(j));let G=N&&N[K];U=Fragment.from(G?G.type.create(G.attrs,U):B.node(q).copy(U))}M.step(new ReplaceStep($,$,new Slice(j.append(U),I,I),!0))}function canJoin(M,$){let I=M.resolve($),N=I.index();return joinable(I.nodeBefore,I.nodeAfter)&&I.parent.canReplace(N,N+1)}function joinable(M,$){return!!(M&&$&&!M.isLeaf&&M.canAppend($))}function joinPoint(M,$,I=-1){let N=M.resolve($);for(let B=N.depth;;B--){let j,U,q=N.index(B);if(B==N.depth?(j=N.nodeBefore,U=N.nodeAfter):I>0?(j=N.node(B+1),q++,U=N.node(B).maybeChild(q)):(j=N.node(B).maybeChild(q-1),U=N.node(B+1)),j&&!j.isTextblock&&joinable(j,U)&&N.node(B).canReplace(q,q+1))return $;if(B==0)break;$=I<0?N.before(B):N.after(B)}}function join(M,$,I){let N=new ReplaceStep($-I,$+I,Slice.empty,!0);M.step(N)}function insertPoint(M,$,I){let N=M.resolve($);if(N.parent.canReplaceWith(N.index(),N.index(),I))return $;if(N.parentOffset==0)for(let B=N.depth-1;B>=0;B--){let j=N.index(B);if(N.node(B).canReplaceWith(j,j,I))return N.before(B+1);if(j>0)return null}if(N.parentOffset==N.parent.content.size)for(let B=N.depth-1;B>=0;B--){let j=N.indexAfter(B);if(N.node(B).canReplaceWith(j,j,I))return N.after(B+1);if(j<N.node(B).childCount)return null}return null}function dropPoint(M,$,I){let N=M.resolve($);if(!I.content.size)return $;let B=I.content;for(let j=0;j<I.openStart;j++)B=B.firstChild.content;for(let j=1;j<=(I.openStart==0&&I.size?2:1);j++)for(let U=N.depth;U>=0;U--){let q=U==N.depth?0:N.pos<=(N.start(U+1)+N.end(U+1))/2?-1:1,Y=N.index(U)+(q>0?1:0),K=N.node(U),G=!1;if(j==1)G=K.canReplace(Y,Y,B);else{let J=K.contentMatchAt(Y).findWrapping(B.firstChild.type);G=J&&K.canReplaceWith(Y,Y,J[0])}if(G)return q==0?N.pos:q<0?N.before(U+1):N.after(U+1)}return null}function replaceStep(M,$,I=$,N=Slice.empty){if($==I&&!N.size)return null;let B=M.resolve($),j=M.resolve(I);return fitsTrivially(B,j,N)?new ReplaceStep($,I,N):new Fitter(B,j,N).fit()}function fitsTrivially(M,$,I){return!I.openStart&&!I.openEnd&&M.start()==$.start()&&M.parent.canReplace(M.index(),$.index(),I.content)}class Fitter{constructor($,I,N){this.$from=$,this.$to=I,this.unplaced=N,this.frontier=[],this.placed=Fragment.empty;for(let B=0;B<=$.depth;B++){let j=$.node(B);this.frontier.push({type:j.type,match:j.contentMatchAt($.indexAfter(B))})}for(let B=$.depth;B>0;B--)this.placed=Fragment.from($.node(B).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let K=this.findFittable();K?this.placeNodes(K):this.openMore()||this.dropNode()}let $=this.mustMoveInline(),I=this.placed.size-this.depth-this.$from.depth,N=this.$from,B=this.close($<0?this.$to:N.doc.resolve($));if(!B)return null;let j=this.placed,U=N.depth,q=B.depth;for(;U&&q&&j.childCount==1;)j=j.firstChild.content,U--,q--;let Y=new Slice(j,U,q);return $>-1?new ReplaceAroundStep(N.pos,$,this.$to.pos,this.$to.end(),Y,I):Y.size||N.pos!=this.$to.pos?new ReplaceStep(N.pos,B.pos,Y):null}findFittable(){let $=this.unplaced.openStart;for(let I=this.unplaced.content,N=0,B=this.unplaced.openEnd;N<$;N++){let j=I.firstChild;if(I.childCount>1&&(B=0),j.type.spec.isolating&&B<=N){$=N;break}I=j.content}for(let I=1;I<=2;I++)for(let N=I==1?$:this.unplaced.openStart;N>=0;N--){let B,j=null;N?(j=contentAt(this.unplaced.content,N-1).firstChild,B=j.content):B=this.unplaced.content;let U=B.firstChild;for(let q=this.depth;q>=0;q--){let{type:Y,match:K}=this.frontier[q],G,J=null;if(I==1&&(U?K.matchType(U.type)||(J=K.fillBefore(Fragment.from(U),!1)):j&&Y.compatibleContent(j.type)))return{sliceDepth:N,frontierDepth:q,parent:j,inject:J};if(I==2&&U&&(G=K.findWrapping(U.type)))return{sliceDepth:N,frontierDepth:q,parent:j,wrap:G};if(j&&K.matchType(j.type))break}}}openMore(){let{content:$,openStart:I,openEnd:N}=this.unplaced,B=contentAt($,I);return!B.childCount||B.firstChild.isLeaf?!1:(this.unplaced=new Slice($,I+1,Math.max(N,B.size+I>=$.size-N?I+1:0)),!0)}dropNode(){let{content:$,openStart:I,openEnd:N}=this.unplaced,B=contentAt($,I);if(B.childCount<=1&&I>0){let j=$.size-I<=I+B.size;this.unplaced=new Slice(dropFromFragment($,I-1,1),I-1,j?I-1:N)}else this.unplaced=new Slice(dropFromFragment($,I,1),I,N)}placeNodes({sliceDepth:$,frontierDepth:I,parent:N,inject:B,wrap:j}){for(;this.depth>I;)this.closeFrontierNode();if(j)for(let se=0;se<j.length;se++)this.openFrontierNode(j[se]);let U=this.unplaced,q=N?N.content:U.content,Y=U.openStart-$,K=0,G=[],{match:J,type:Z}=this.frontier[I];if(B){for(let se=0;se<B.childCount;se++)G.push(B.child(se));J=J.matchFragment(B)}let ee=q.size+$-(U.content.size-U.openEnd);for(;K<q.childCount;){let se=q.child(K),re=J.matchType(se.type);if(!re)break;K++,(K>1||Y==0||se.content.size)&&(J=re,G.push(closeNodeStart(se.mark(Z.allowedMarks(se.marks)),K==1?Y:0,K==q.childCount?ee:-1)))}let te=K==q.childCount;te||(ee=-1),this.placed=addToFragment(this.placed,I,Fragment.from(G)),this.frontier[I].match=J,te&&ee<0&&N&&N.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let se=0,re=q;se<ee;se++){let ne=re.lastChild;this.frontier.push({type:ne.type,match:ne.contentMatchAt(ne.childCount)}),re=ne.content}this.unplaced=te?$==0?Slice.empty:new Slice(dropFromFragment(U.content,$-1,1),$-1,ee<0?U.openEnd:$-1):new Slice(dropFromFragment(U.content,$,K),U.openStart,U.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let $=this.frontier[this.depth],I;if(!$.type.isTextblock||!contentAfterFits(this.$to,this.$to.depth,$.type,$.match,!1)||this.$to.depth==this.depth&&(I=this.findCloseLevel(this.$to))&&I.depth==this.depth)return-1;let{depth:N}=this.$to,B=this.$to.after(N);for(;N>1&&B==this.$to.end(--N);)++B;return B}findCloseLevel($){e:for(let I=Math.min(this.depth,$.depth);I>=0;I--){let{match:N,type:B}=this.frontier[I],j=I<$.depth&&$.end(I+1)==$.pos+($.depth-(I+1)),U=contentAfterFits($,I,B,N,j);if(U){for(let q=I-1;q>=0;q--){let{match:Y,type:K}=this.frontier[q],G=contentAfterFits($,q,K,Y,!0);if(!G||G.childCount)continue e}return{depth:I,fit:U,move:j?$.doc.resolve($.after(I+1)):$}}}}close($){let I=this.findCloseLevel($);if(!I)return null;for(;this.depth>I.depth;)this.closeFrontierNode();I.fit.childCount&&(this.placed=addToFragment(this.placed,I.depth,I.fit)),$=I.move;for(let N=I.depth+1;N<=$.depth;N++){let B=$.node(N),j=B.type.contentMatch.fillBefore(B.content,!0,$.index(N));this.openFrontierNode(B.type,B.attrs,j)}return $}openFrontierNode($,I=null,N){let B=this.frontier[this.depth];B.match=B.match.matchType($),this.placed=addToFragment(this.placed,this.depth,Fragment.from($.create(I,N))),this.frontier.push({type:$,match:$.contentMatch})}closeFrontierNode(){let I=this.frontier.pop().match.fillBefore(Fragment.empty,!0);I.childCount&&(this.placed=addToFragment(this.placed,this.frontier.length,I))}}function dropFromFragment(M,$,I){return $==0?M.cutByIndex(I,M.childCount):M.replaceChild(0,M.firstChild.copy(dropFromFragment(M.firstChild.content,$-1,I)))}function addToFragment(M,$,I){return $==0?M.append(I):M.replaceChild(M.childCount-1,M.lastChild.copy(addToFragment(M.lastChild.content,$-1,I)))}function contentAt(M,$){for(let I=0;I<$;I++)M=M.firstChild.content;return M}function closeNodeStart(M,$,I){if($<=0)return M;let N=M.content;return $>1&&(N=N.replaceChild(0,closeNodeStart(N.firstChild,$-1,N.childCount==1?I-1:0))),$>0&&(N=M.type.contentMatch.fillBefore(N).append(N),I<=0&&(N=N.append(M.type.contentMatch.matchFragment(N).fillBefore(Fragment.empty,!0)))),M.copy(N)}function contentAfterFits(M,$,I,N,B){let j=M.node($),U=B?M.indexAfter($):M.index($);if(U==j.childCount&&!I.compatibleContent(j.type))return null;let q=N.fillBefore(j.content,!0,U);return q&&!invalidMarks(I,j.content,U)?q:null}function invalidMarks(M,$,I){for(let N=I;N<$.childCount;N++)if(!M.allowsMarks($.child(N).marks))return!0;return!1}function definesContent(M){return M.spec.defining||M.spec.definingForContent}function replaceRange(M,$,I,N){if(!N.size)return M.deleteRange($,I);let B=M.doc.resolve($),j=M.doc.resolve(I);if(fitsTrivially(B,j,N))return M.step(new ReplaceStep($,I,N));let U=coveredDepths(B,M.doc.resolve(I));U[U.length-1]==0&&U.pop();let q=-(B.depth+1);U.unshift(q);for(let Z=B.depth,ee=B.pos-1;Z>0;Z--,ee--){let te=B.node(Z).type.spec;if(te.defining||te.definingAsContext||te.isolating)break;U.indexOf(Z)>-1?q=Z:B.before(Z)==ee&&U.splice(1,0,-Z)}let Y=U.indexOf(q),K=[],G=N.openStart;for(let Z=N.content,ee=0;;ee++){let te=Z.firstChild;if(K.push(te),ee==N.openStart)break;Z=te.content}for(let Z=G-1;Z>=0;Z--){let ee=K[Z],te=definesContent(ee.type);if(te&&!ee.sameMarkup(B.node(Math.abs(q)-1)))G=Z;else if(te||!ee.type.isTextblock)break}for(let Z=N.openStart;Z>=0;Z--){let ee=(Z+G+1)%(N.openStart+1),te=K[ee];if(te)for(let se=0;se<U.length;se++){let re=U[(se+Y)%U.length],ne=!0;re<0&&(ne=!1,re=-re);let ce=B.node(re-1),me=B.index(re-1);if(ce.canReplaceWith(me,me,te.type,te.marks))return M.replace(B.before(re),ne?j.after(re):I,new Slice(closeFragment(N.content,0,N.openStart,ee),ee,N.openEnd))}}let J=M.steps.length;for(let Z=U.length-1;Z>=0&&(M.replace($,I,N),!(M.steps.length>J));Z--){let ee=U[Z];ee<0||($=B.before(ee),I=j.after(ee))}}function closeFragment(M,$,I,N,B){if($<I){let j=M.firstChild;M=M.replaceChild(0,j.copy(closeFragment(j.content,$+1,I,N,j)))}if($>N){let j=B.contentMatchAt(0),U=j.fillBefore(M).append(M);M=U.append(j.matchFragment(U).fillBefore(Fragment.empty,!0))}return M}function replaceRangeWith(M,$,I,N){if(!N.isInline&&$==I&&M.doc.resolve($).parent.content.size){let B=insertPoint(M.doc,$,N.type);B!=null&&($=I=B)}M.replaceRange($,I,new Slice(Fragment.from(N),0,0))}function deleteRange$1(M,$,I){let N=M.doc.resolve($),B=M.doc.resolve(I),j=coveredDepths(N,B);for(let U=0;U<j.length;U++){let q=j[U],Y=U==j.length-1;if(Y&&q==0||N.node(q).type.contentMatch.validEnd)return M.delete(N.start(q),B.end(q));if(q>0&&(Y||N.node(q-1).canReplace(N.index(q-1),B.indexAfter(q-1))))return M.delete(N.before(q),B.after(q))}for(let U=1;U<=N.depth&&U<=B.depth;U++)if($-N.start(U)==N.depth-U&&I>N.end(U)&&B.end(U)-I!=B.depth-U)return M.delete(N.before(U),I);M.delete($,I)}function coveredDepths(M,$){let I=[],N=Math.min(M.depth,$.depth);for(let B=N;B>=0;B--){let j=M.start(B);if(j<M.pos-(M.depth-B)||$.end(B)>$.pos+($.depth-B)||M.node(B).type.spec.isolating||$.node(B).type.spec.isolating)break;(j==$.start(B)||B==M.depth&&B==$.depth&&M.parent.inlineContent&&$.parent.inlineContent&&B&&$.start(B-1)==j-1)&&I.push(B)}return I}class AttrStep extends Step{constructor($,I,N){super(),this.pos=$,this.attr=I,this.value=N}apply($){let I=$.nodeAt(this.pos);if(!I)return StepResult.fail("No node at attribute step's position");let N=Object.create(null);for(let j in I.attrs)N[j]=I.attrs[j];N[this.attr]=this.value;let B=I.type.create(N,null,I.marks);return StepResult.fromReplace($,this.pos,this.pos+1,new Slice(Fragment.from(B),0,I.isLeaf?0:1))}getMap(){return StepMap.empty}invert($){return new AttrStep(this.pos,this.attr,$.nodeAt(this.pos).attrs[this.attr])}map($){let I=$.mapResult(this.pos,1);return I.deletedAfter?null:new AttrStep(I.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON($,I){if(typeof I.pos!="number"||typeof I.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new AttrStep(I.pos,I.attr,I.value)}}Step.jsonID("attr",AttrStep);class DocAttrStep extends Step{constructor($,I){super(),this.attr=$,this.value=I}apply($){let I=Object.create(null);for(let B in $.attrs)I[B]=$.attrs[B];I[this.attr]=this.value;let N=$.type.create(I,$.content,$.marks);return StepResult.ok(N)}getMap(){return StepMap.empty}invert($){return new DocAttrStep(this.attr,$.attrs[this.attr])}map($){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON($,I){if(typeof I.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new DocAttrStep(I.attr,I.value)}}Step.jsonID("docAttr",DocAttrStep);let TransformError=class extends Error{};TransformError=function M($){let I=Error.call(this,$);return I.__proto__=M.prototype,I};TransformError.prototype=Object.create(Error.prototype);TransformError.prototype.constructor=TransformError;TransformError.prototype.name="TransformError";class Transform{constructor($){this.doc=$,this.steps=[],this.docs=[],this.mapping=new Mapping}get before(){return this.docs.length?this.docs[0]:this.doc}step($){let I=this.maybeStep($);if(I.failed)throw new TransformError(I.failed);return this}maybeStep($){let I=$.apply(this.doc);return I.failed||this.addStep($,I.doc),I}get docChanged(){return this.steps.length>0}addStep($,I){this.docs.push(this.doc),this.steps.push($),this.mapping.appendMap($.getMap()),this.doc=I}replace($,I=$,N=Slice.empty){let B=replaceStep(this.doc,$,I,N);return B&&this.step(B),this}replaceWith($,I,N){return this.replace($,I,new Slice(Fragment.from(N),0,0))}delete($,I){return this.replace($,I,Slice.empty)}insert($,I){return this.replaceWith($,$,I)}replaceRange($,I,N){return replaceRange(this,$,I,N),this}replaceRangeWith($,I,N){return replaceRangeWith(this,$,I,N),this}deleteRange($,I){return deleteRange$1(this,$,I),this}lift($,I){return lift$2(this,$,I),this}join($,I=1){return join(this,$,I),this}wrap($,I){return wrap$1(this,$,I),this}setBlockType($,I=$,N,B=null){return setBlockType$1(this,$,I,N,B),this}setNodeMarkup($,I,N=null,B){return setNodeMarkup(this,$,I,N,B),this}setNodeAttribute($,I,N){return this.step(new AttrStep($,I,N)),this}setDocAttribute($,I){return this.step(new DocAttrStep($,I)),this}addNodeMark($,I){return this.step(new AddNodeMarkStep($,I)),this}removeNodeMark($,I){if(!(I instanceof Mark$1)){let N=this.doc.nodeAt($);if(!N)throw new RangeError("No node at position "+$);if(I=I.isInSet(N.marks),!I)return this}return this.step(new RemoveNodeMarkStep($,I)),this}split($,I=1,N){return split(this,$,I,N),this}addMark($,I,N){return addMark(this,$,I,N),this}removeMark($,I,N){return removeMark(this,$,I,N),this}clearIncompatible($,I,N){return clearIncompatible(this,$,I,N),this}}const classesById=Object.create(null);class Selection{constructor($,I,N){this.$anchor=$,this.$head=I,this.ranges=N||[new SelectionRange($.min(I),$.max(I))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let $=this.ranges;for(let I=0;I<$.length;I++)if($[I].$from.pos!=$[I].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace($,I=Slice.empty){let N=I.content.lastChild,B=null;for(let q=0;q<I.openEnd;q++)B=N,N=N.lastChild;let j=$.steps.length,U=this.ranges;for(let q=0;q<U.length;q++){let{$from:Y,$to:K}=U[q],G=$.mapping.slice(j);$.replaceRange(G.map(Y.pos),G.map(K.pos),q?Slice.empty:I),q==0&&selectionToInsertionEnd$1($,j,(N?N.isInline:B&&B.isTextblock)?-1:1)}}replaceWith($,I){let N=$.steps.length,B=this.ranges;for(let j=0;j<B.length;j++){let{$from:U,$to:q}=B[j],Y=$.mapping.slice(N),K=Y.map(U.pos),G=Y.map(q.pos);j?$.deleteRange(K,G):($.replaceRangeWith(K,G,I),selectionToInsertionEnd$1($,N,I.isInline?-1:1))}}static findFrom($,I,N=!1){let B=$.parent.inlineContent?new TextSelection($):findSelectionIn($.node(0),$.parent,$.pos,$.index(),I,N);if(B)return B;for(let j=$.depth-1;j>=0;j--){let U=I<0?findSelectionIn($.node(0),$.node(j),$.before(j+1),$.index(j),I,N):findSelectionIn($.node(0),$.node(j),$.after(j+1),$.index(j)+1,I,N);if(U)return U}return null}static near($,I=1){return this.findFrom($,I)||this.findFrom($,-I)||new AllSelection($.node(0))}static atStart($){return findSelectionIn($,$,0,0,1)||new AllSelection($)}static atEnd($){return findSelectionIn($,$,$.content.size,$.childCount,-1)||new AllSelection($)}static fromJSON($,I){if(!I||!I.type)throw new RangeError("Invalid input for Selection.fromJSON");let N=classesById[I.type];if(!N)throw new RangeError(`No selection type ${I.type} defined`);return N.fromJSON($,I)}static jsonID($,I){if($ in classesById)throw new RangeError("Duplicate use of selection JSON ID "+$);return classesById[$]=I,I.prototype.jsonID=$,I}getBookmark(){return TextSelection.between(this.$anchor,this.$head).getBookmark()}}Selection.prototype.visible=!0;class SelectionRange{constructor($,I){this.$from=$,this.$to=I}}let warnedAboutTextSelection=!1;function checkTextSelection(M){!warnedAboutTextSelection&&!M.parent.inlineContent&&(warnedAboutTextSelection=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+M.parent.type.name+")"))}class TextSelection extends Selection{constructor($,I=$){checkTextSelection($),checkTextSelection(I),super($,I)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map($,I){let N=$.resolve(I.map(this.head));if(!N.parent.inlineContent)return Selection.near(N);let B=$.resolve(I.map(this.anchor));return new TextSelection(B.parent.inlineContent?B:N,N)}replace($,I=Slice.empty){if(super.replace($,I),I==Slice.empty){let N=this.$from.marksAcross(this.$to);N&&$.ensureMarks(N)}}eq($){return $ instanceof TextSelection&&$.anchor==this.anchor&&$.head==this.head}getBookmark(){return new TextBookmark(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON($,I){if(typeof I.anchor!="number"||typeof I.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new TextSelection($.resolve(I.anchor),$.resolve(I.head))}static create($,I,N=I){let B=$.resolve(I);return new this(B,N==I?B:$.resolve(N))}static between($,I,N){let B=$.pos-I.pos;if((!N||B)&&(N=B>=0?1:-1),!I.parent.inlineContent){let j=Selection.findFrom(I,N,!0)||Selection.findFrom(I,-N,!0);if(j)I=j.$head;else return Selection.near(I,N)}return $.parent.inlineContent||(B==0?$=I:($=(Selection.findFrom($,-N,!0)||Selection.findFrom($,N,!0)).$anchor,$.pos<I.pos!=B<0&&($=I))),new TextSelection($,I)}}Selection.jsonID("text",TextSelection);class TextBookmark{constructor($,I){this.anchor=$,this.head=I}map($){return new TextBookmark($.map(this.anchor),$.map(this.head))}resolve($){return TextSelection.between($.resolve(this.anchor),$.resolve(this.head))}}class NodeSelection extends Selection{constructor($){let I=$.nodeAfter,N=$.node(0).resolve($.pos+I.nodeSize);super($,N),this.node=I}map($,I){let{deleted:N,pos:B}=I.mapResult(this.anchor),j=$.resolve(B);return N?Selection.near(j):new NodeSelection(j)}content(){return new Slice(Fragment.from(this.node),0,0)}eq($){return $ instanceof NodeSelection&&$.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new NodeBookmark(this.anchor)}static fromJSON($,I){if(typeof I.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new NodeSelection($.resolve(I.anchor))}static create($,I){return new NodeSelection($.resolve(I))}static isSelectable($){return!$.isText&&$.type.spec.selectable!==!1}}NodeSelection.prototype.visible=!1;Selection.jsonID("node",NodeSelection);class NodeBookmark{constructor($){this.anchor=$}map($){let{deleted:I,pos:N}=$.mapResult(this.anchor);return I?new TextBookmark(N,N):new NodeBookmark(N)}resolve($){let I=$.resolve(this.anchor),N=I.nodeAfter;return N&&NodeSelection.isSelectable(N)?new NodeSelection(I):Selection.near(I)}}class AllSelection extends Selection{constructor($){super($.resolve(0),$.resolve($.content.size))}replace($,I=Slice.empty){if(I==Slice.empty){$.delete(0,$.doc.content.size);let N=Selection.atStart($.doc);N.eq($.selection)||$.setSelection(N)}else super.replace($,I)}toJSON(){return{type:"all"}}static fromJSON($){return new AllSelection($)}map($){return new AllSelection($)}eq($){return $ instanceof AllSelection}getBookmark(){return AllBookmark}}Selection.jsonID("all",AllSelection);const AllBookmark={map(){return this},resolve(M){return new AllSelection(M)}};function findSelectionIn(M,$,I,N,B,j=!1){if($.inlineContent)return TextSelection.create(M,I);for(let U=N-(B>0?0:1);B>0?U<$.childCount:U>=0;U+=B){let q=$.child(U);if(q.isAtom){if(!j&&NodeSelection.isSelectable(q))return NodeSelection.create(M,I-(B<0?q.nodeSize:0))}else{let Y=findSelectionIn(M,q,I+B,B<0?q.childCount:0,B,j);if(Y)return Y}I+=q.nodeSize*B}return null}function selectionToInsertionEnd$1(M,$,I){let N=M.steps.length-1;if(N<$)return;let B=M.steps[N];if(!(B instanceof ReplaceStep||B instanceof ReplaceAroundStep))return;let j=M.mapping.maps[N],U;j.forEach((q,Y,K,G)=>{U==null&&(U=G)}),M.setSelection(Selection.near(M.doc.resolve(U),I))}const UPDATED_SEL=1,UPDATED_MARKS=2,UPDATED_SCROLL=4;class Transaction extends Transform{constructor($){super($.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=$.selection,this.storedMarks=$.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection($){if($.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=$,this.curSelectionFor=this.steps.length,this.updated=(this.updated|UPDATED_SEL)&~UPDATED_MARKS,this.storedMarks=null,this}get selectionSet(){return(this.updated&UPDATED_SEL)>0}setStoredMarks($){return this.storedMarks=$,this.updated|=UPDATED_MARKS,this}ensureMarks($){return Mark$1.sameSet(this.storedMarks||this.selection.$from.marks(),$)||this.setStoredMarks($),this}addStoredMark($){return this.ensureMarks($.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark($){return this.ensureMarks($.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&UPDATED_MARKS)>0}addStep($,I){super.addStep($,I),this.updated=this.updated&~UPDATED_MARKS,this.storedMarks=null}setTime($){return this.time=$,this}replaceSelection($){return this.selection.replace(this,$),this}replaceSelectionWith($,I=!0){let N=this.selection;return I&&($=$.mark(this.storedMarks||(N.empty?N.$from.marks():N.$from.marksAcross(N.$to)||Mark$1.none))),N.replaceWith(this,$),this}deleteSelection(){return this.selection.replace(this),this}insertText($,I,N){let B=this.doc.type.schema;if(I==null)return $?this.replaceSelectionWith(B.text($),!0):this.deleteSelection();{if(N==null&&(N=I),N=N??I,!$)return this.deleteRange(I,N);let j=this.storedMarks;if(!j){let U=this.doc.resolve(I);j=N==I?U.marks():U.marksAcross(this.doc.resolve(N))}return this.replaceRangeWith(I,N,B.text($,j)),this.selection.empty||this.setSelection(Selection.near(this.selection.$to)),this}}setMeta($,I){return this.meta[typeof $=="string"?$:$.key]=I,this}getMeta($){return this.meta[typeof $=="string"?$:$.key]}get isGeneric(){for(let $ in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=UPDATED_SCROLL,this}get scrolledIntoView(){return(this.updated&UPDATED_SCROLL)>0}}function bind$7(M,$){return!$||!M?M:M.bind($)}class FieldDesc{constructor($,I,N){this.name=$,this.init=bind$7(I.init,N),this.apply=bind$7(I.apply,N)}}const baseFields=[new FieldDesc("doc",{init(M){return M.doc||M.schema.topNodeType.createAndFill()},apply(M){return M.doc}}),new FieldDesc("selection",{init(M,$){return M.selection||Selection.atStart($.doc)},apply(M){return M.selection}}),new FieldDesc("storedMarks",{init(M){return M.storedMarks||null},apply(M,$,I,N){return N.selection.$cursor?M.storedMarks:null}}),new FieldDesc("scrollToSelection",{init(){return 0},apply(M,$){return M.scrolledIntoView?$+1:$}})];class Configuration{constructor($,I){this.schema=$,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=baseFields.slice(),I&&I.forEach(N=>{if(this.pluginsByKey[N.key])throw new RangeError("Adding different instances of a keyed plugin ("+N.key+")");this.plugins.push(N),this.pluginsByKey[N.key]=N,N.spec.state&&this.fields.push(new FieldDesc(N.key,N.spec.state,N))})}}class EditorState{constructor($){this.config=$}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply($){return this.applyTransaction($).state}filterTransaction($,I=-1){for(let N=0;N<this.config.plugins.length;N++)if(N!=I){let B=this.config.plugins[N];if(B.spec.filterTransaction&&!B.spec.filterTransaction.call(B,$,this))return!1}return!0}applyTransaction($){if(!this.filterTransaction($))return{state:this,transactions:[]};let I=[$],N=this.applyInner($),B=null;for(;;){let j=!1;for(let U=0;U<this.config.plugins.length;U++){let q=this.config.plugins[U];if(q.spec.appendTransaction){let Y=B?B[U].n:0,K=B?B[U].state:this,G=Y<I.length&&q.spec.appendTransaction.call(q,Y?I.slice(Y):I,K,N);if(G&&N.filterTransaction(G,U)){if(G.setMeta("appendedTransaction",$),!B){B=[];for(let J=0;J<this.config.plugins.length;J++)B.push(J<U?{state:N,n:I.length}:{state:this,n:0})}I.push(G),N=N.applyInner(G),j=!0}B&&(B[U]={state:N,n:I.length})}}if(!j)return{state:N,transactions:I}}}applyInner($){if(!$.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let I=new EditorState(this.config),N=this.config.fields;for(let B=0;B<N.length;B++){let j=N[B];I[j.name]=j.apply($,this[j.name],this,I)}return I}get tr(){return new Transaction(this)}static create($){let I=new Configuration($.doc?$.doc.type.schema:$.schema,$.plugins),N=new EditorState(I);for(let B=0;B<I.fields.length;B++)N[I.fields[B].name]=I.fields[B].init($,N);return N}reconfigure($){let I=new Configuration(this.schema,$.plugins),N=I.fields,B=new EditorState(I);for(let j=0;j<N.length;j++){let U=N[j].name;B[U]=this.hasOwnProperty(U)?this[U]:N[j].init($,B)}return B}toJSON($){let I={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(I.storedMarks=this.storedMarks.map(N=>N.toJSON())),$&&typeof $=="object")for(let N in $){if(N=="doc"||N=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let B=$[N],j=B.spec.state;j&&j.toJSON&&(I[N]=j.toJSON.call(B,this[B.key]))}return I}static fromJSON($,I,N){if(!I)throw new RangeError("Invalid input for EditorState.fromJSON");if(!$.schema)throw new RangeError("Required config field 'schema' missing");let B=new Configuration($.schema,$.plugins),j=new EditorState(B);return B.fields.forEach(U=>{if(U.name=="doc")j.doc=Node$2.fromJSON($.schema,I.doc);else if(U.name=="selection")j.selection=Selection.fromJSON(j.doc,I.selection);else if(U.name=="storedMarks")I.storedMarks&&(j.storedMarks=I.storedMarks.map($.schema.markFromJSON));else{if(N)for(let q in N){let Y=N[q],K=Y.spec.state;if(Y.key==U.name&&K&&K.fromJSON&&Object.prototype.hasOwnProperty.call(I,q)){j[U.name]=K.fromJSON.call(Y,$,I[q],j);return}}j[U.name]=U.init($,j)}}),j}}function bindProps(M,$,I){for(let N in M){let B=M[N];B instanceof Function?B=B.bind($):N=="handleDOMEvents"&&(B=bindProps(B,$,{})),I[N]=B}return I}class Plugin{constructor($){this.spec=$,this.props={},$.props&&bindProps($.props,this,this.props),this.key=$.key?$.key.key:createKey$1("plugin")}getState($){return $[this.key]}}const keys$3=Object.create(null);function createKey$1(M){return M in keys$3?M+"$"+ ++keys$3[M]:(keys$3[M]=0,M+"$")}class PluginKey{constructor($="key"){this.key=createKey$1($)}get($){return $.config.pluginsByKey[this.key]}getState($){return $[this.key]}}const state=Object.freeze(Object.defineProperty({__proto__:null,AllSelection,EditorState,NodeSelection,Plugin,PluginKey,Selection,SelectionRange,TextSelection,Transaction},Symbol.toStringTag,{value:"Module"})),domIndex=function(M){for(var $=0;;$++)if(M=M.previousSibling,!M)return $},parentNode=function(M){let $=M.assignedSlot||M.parentNode;return $&&$.nodeType==11?$.host:$};let reusedRange=null;const textRange=function(M,$,I){let N=reusedRange||(reusedRange=document.createRange());return N.setEnd(M,I??M.nodeValue.length),N.setStart(M,$||0),N},clearReusedRange=function(){reusedRange=null},isEquivalentPosition=function(M,$,I,N){return I&&(scanFor(M,$,I,N,-1)||scanFor(M,$,I,N,1))},atomElements=/^(img|br|input|textarea|hr)$/i;function scanFor(M,$,I,N,B){for(;;){if(M==I&&$==N)return!0;if($==(B<0?0:nodeSize(M))){let j=M.parentNode;if(!j||j.nodeType!=1||hasBlockDesc(M)||atomElements.test(M.nodeName)||M.contentEditable=="false")return!1;$=domIndex(M)+(B<0?0:1),M=j}else if(M.nodeType==1){if(M=M.childNodes[$+(B<0?-1:0)],M.contentEditable=="false")return!1;$=B<0?nodeSize(M):0}else return!1}}function nodeSize(M){return M.nodeType==3?M.nodeValue.length:M.childNodes.length}function textNodeBefore$1(M,$){for(;;){if(M.nodeType==3&&$)return M;if(M.nodeType==1&&$>0){if(M.contentEditable=="false")return null;M=M.childNodes[$-1],$=nodeSize(M)}else if(M.parentNode&&!hasBlockDesc(M))$=domIndex(M),M=M.parentNode;else return null}}function textNodeAfter$1(M,$){for(;;){if(M.nodeType==3&&$<M.nodeValue.length)return M;if(M.nodeType==1&&$<M.childNodes.length){if(M.contentEditable=="false")return null;M=M.childNodes[$],$=0}else if(M.parentNode&&!hasBlockDesc(M))$=domIndex(M)+1,M=M.parentNode;else return null}}function isOnEdge(M,$,I){for(let N=$==0,B=$==nodeSize(M);N||B;){if(M==I)return!0;let j=domIndex(M);if(M=M.parentNode,!M)return!1;N=N&&j==0,B=B&&j==nodeSize(M)}}function hasBlockDesc(M){let $;for(let I=M;I&&!($=I.pmViewDesc);I=I.parentNode);return $&&$.node&&$.node.isBlock&&($.dom==M||$.contentDOM==M)}const selectionCollapsed=function(M){return M.focusNode&&isEquivalentPosition(M.focusNode,M.focusOffset,M.anchorNode,M.anchorOffset)};function keyEvent(M,$){let I=document.createEvent("Event");return I.initEvent("keydown",!0,!0),I.keyCode=M,I.key=I.code=$,I}function deepActiveElement(M){let $=M.activeElement;for(;$&&$.shadowRoot;)$=$.shadowRoot.activeElement;return $}function caretFromPoint(M,$,I){if(M.caretPositionFromPoint)try{let N=M.caretPositionFromPoint($,I);if(N)return{node:N.offsetNode,offset:Math.min(nodeSize(N.offsetNode),N.offset)}}catch{}if(M.caretRangeFromPoint){let N=M.caretRangeFromPoint($,I);if(N)return{node:N.startContainer,offset:Math.min(nodeSize(N.startContainer),N.startOffset)}}}const nav=typeof navigator<"u"?navigator:null,doc=typeof document<"u"?document:null,agent=nav&&nav.userAgent||"",ie_edge=/Edge\/(\d+)/.exec(agent),ie_upto10=/MSIE \d/.exec(agent),ie_11up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(agent),ie$1=!!(ie_upto10||ie_11up||ie_edge),ie_version=ie_upto10?document.documentMode:ie_11up?+ie_11up[1]:ie_edge?+ie_edge[1]:0,gecko=!ie$1&&/gecko\/(\d+)/i.test(agent);gecko&&+(/Firefox\/(\d+)/.exec(agent)||[0,0])[1];const _chrome=!ie$1&&/Chrome\/(\d+)/.exec(agent),chrome=!!_chrome,chrome_version=_chrome?+_chrome[1]:0,safari=!ie$1&&!!nav&&/Apple Computer/.test(nav.vendor),ios=safari&&(/Mobile\/\w+/.test(agent)||!!nav&&nav.maxTouchPoints>2),mac$3=ios||(nav?/Mac/.test(nav.platform):!1),windows=nav?/Win/.test(nav.platform):!1,android=/Android \d/.test(agent),webkit=!!doc&&"webkitFontSmoothing"in doc.documentElement.style,webkit_version=webkit?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function windowRect(M){let $=M.defaultView&&M.defaultView.visualViewport;return $?{left:0,right:$.width,top:0,bottom:$.height}:{left:0,right:M.documentElement.clientWidth,top:0,bottom:M.documentElement.clientHeight}}function getSide(M,$){return typeof M=="number"?M:M[$]}function clientRect(M){let $=M.getBoundingClientRect(),I=$.width/M.offsetWidth||1,N=$.height/M.offsetHeight||1;return{left:$.left,right:$.left+M.clientWidth*I,top:$.top,bottom:$.top+M.clientHeight*N}}function scrollRectIntoView(M,$,I){let N=M.someProp("scrollThreshold")||0,B=M.someProp("scrollMargin")||5,j=M.dom.ownerDocument;for(let U=I||M.dom;U;U=parentNode(U)){if(U.nodeType!=1)continue;let q=U,Y=q==j.body,K=Y?windowRect(j):clientRect(q),G=0,J=0;if($.top<K.top+getSide(N,"top")?J=-(K.top-$.top+getSide(B,"top")):$.bottom>K.bottom-getSide(N,"bottom")&&(J=$.bottom-$.top>K.bottom-K.top?$.top+getSide(B,"top")-K.top:$.bottom-K.bottom+getSide(B,"bottom")),$.left<K.left+getSide(N,"left")?G=-(K.left-$.left+getSide(B,"left")):$.right>K.right-getSide(N,"right")&&(G=$.right-K.right+getSide(B,"right")),G||J)if(Y)j.defaultView.scrollBy(G,J);else{let Z=q.scrollLeft,ee=q.scrollTop;J&&(q.scrollTop+=J),G&&(q.scrollLeft+=G);let te=q.scrollLeft-Z,se=q.scrollTop-ee;$={left:$.left-te,top:$.top-se,right:$.right-te,bottom:$.bottom-se}}if(Y||/^(fixed|sticky)$/.test(getComputedStyle(U).position))break}}function storeScrollPos(M){let $=M.dom.getBoundingClientRect(),I=Math.max(0,$.top),N,B;for(let j=($.left+$.right)/2,U=I+1;U<Math.min(innerHeight,$.bottom);U+=5){let q=M.root.elementFromPoint(j,U);if(!q||q==M.dom||!M.dom.contains(q))continue;let Y=q.getBoundingClientRect();if(Y.top>=I-20){N=q,B=Y.top;break}}return{refDOM:N,refTop:B,stack:scrollStack(M.dom)}}function scrollStack(M){let $=[],I=M.ownerDocument;for(let N=M;N&&($.push({dom:N,top:N.scrollTop,left:N.scrollLeft}),M!=I);N=parentNode(N));return $}function resetScrollPos({refDOM:M,refTop:$,stack:I}){let N=M?M.getBoundingClientRect().top:0;restoreScrollStack(I,N==0?0:N-$)}function restoreScrollStack(M,$){for(let I=0;I<M.length;I++){let{dom:N,top:B,left:j}=M[I];N.scrollTop!=B+$&&(N.scrollTop=B+$),N.scrollLeft!=j&&(N.scrollLeft=j)}}let preventScrollSupported=null;function focusPreventScroll(M){if(M.setActive)return M.setActive();if(preventScrollSupported)return M.focus(preventScrollSupported);let $=scrollStack(M);M.focus(preventScrollSupported==null?{get preventScroll(){return preventScrollSupported={preventScroll:!0},!0}}:void 0),preventScrollSupported||(preventScrollSupported=!1,restoreScrollStack($,0))}function findOffsetInNode(M,$){let I,N=2e8,B,j=0,U=$.top,q=$.top,Y,K;for(let G=M.firstChild,J=0;G;G=G.nextSibling,J++){let Z;if(G.nodeType==1)Z=G.getClientRects();else if(G.nodeType==3)Z=textRange(G).getClientRects();else continue;for(let ee=0;ee<Z.length;ee++){let te=Z[ee];if(te.top<=U&&te.bottom>=q){U=Math.max(te.bottom,U),q=Math.min(te.top,q);let se=te.left>$.left?te.left-$.left:te.right<$.left?$.left-te.right:0;if(se<N){I=G,N=se,B=se&&I.nodeType==3?{left:te.right<$.left?te.right:te.left,top:$.top}:$,G.nodeType==1&&se&&(j=J+($.left>=(te.left+te.right)/2?1:0));continue}}else te.top>$.top&&!Y&&te.left<=$.left&&te.right>=$.left&&(Y=G,K={left:Math.max(te.left,Math.min(te.right,$.left)),top:te.top});!I&&($.left>=te.right&&$.top>=te.top||$.left>=te.left&&$.top>=te.bottom)&&(j=J+1)}}return!I&&Y&&(I=Y,B=K,N=0),I&&I.nodeType==3?findOffsetInText(I,B):!I||N&&I.nodeType==1?{node:M,offset:j}:findOffsetInNode(I,B)}function findOffsetInText(M,$){let I=M.nodeValue.length,N=document.createRange();for(let B=0;B<I;B++){N.setEnd(M,B+1),N.setStart(M,B);let j=singleRect(N,1);if(j.top!=j.bottom&&inRect($,j))return{node:M,offset:B+($.left>=(j.left+j.right)/2?1:0)}}return{node:M,offset:0}}function inRect(M,$){return M.left>=$.left-1&&M.left<=$.right+1&&M.top>=$.top-1&&M.top<=$.bottom+1}function targetKludge(M,$){let I=M.parentNode;return I&&/^li$/i.test(I.nodeName)&&$.left<M.getBoundingClientRect().left?I:M}function posFromElement(M,$,I){let{node:N,offset:B}=findOffsetInNode($,I),j=-1;if(N.nodeType==1&&!N.firstChild){let U=N.getBoundingClientRect();j=U.left!=U.right&&I.left>(U.left+U.right)/2?1:-1}return M.docView.posFromDOM(N,B,j)}function posFromCaret(M,$,I,N){let B=-1;for(let j=$,U=!1;j!=M.dom;){let q=M.docView.nearestDesc(j,!0);if(!q)return null;if(q.dom.nodeType==1&&(q.node.isBlock&&q.parent||!q.contentDOM)){let Y=q.dom.getBoundingClientRect();if(q.node.isBlock&&q.parent&&(!U&&Y.left>N.left||Y.top>N.top?B=q.posBefore:(!U&&Y.right<N.left||Y.bottom<N.top)&&(B=q.posAfter),U=!0),!q.contentDOM&&B<0&&!q.node.isText)return(q.node.isBlock?N.top<(Y.top+Y.bottom)/2:N.left<(Y.left+Y.right)/2)?q.posBefore:q.posAfter}j=q.dom.parentNode}return B>-1?B:M.docView.posFromDOM($,I,-1)}function elementFromPoint(M,$,I){let N=M.childNodes.length;if(N&&I.top<I.bottom)for(let B=Math.max(0,Math.min(N-1,Math.floor(N*($.top-I.top)/(I.bottom-I.top))-2)),j=B;;){let U=M.childNodes[j];if(U.nodeType==1){let q=U.getClientRects();for(let Y=0;Y<q.length;Y++){let K=q[Y];if(inRect($,K))return elementFromPoint(U,$,K)}}if((j=(j+1)%N)==B)break}return M}function posAtCoords(M,$){let I=M.dom.ownerDocument,N,B=0,j=caretFromPoint(I,$.left,$.top);j&&({node:N,offset:B}=j);let U=(M.root.elementFromPoint?M.root:I).elementFromPoint($.left,$.top),q;if(!U||!M.dom.contains(U.nodeType!=1?U.parentNode:U)){let K=M.dom.getBoundingClientRect();if(!inRect($,K)||(U=elementFromPoint(M.dom,$,K),!U))return null}if(safari)for(let K=U;N&&K;K=parentNode(K))K.draggable&&(N=void 0);if(U=targetKludge(U,$),N){if(gecko&&N.nodeType==1&&(B=Math.min(B,N.childNodes.length),B<N.childNodes.length)){let G=N.childNodes[B],J;G.nodeName=="IMG"&&(J=G.getBoundingClientRect()).right<=$.left&&J.bottom>$.top&&B++}let K;webkit&&B&&N.nodeType==1&&(K=N.childNodes[B-1]).nodeType==1&&K.contentEditable=="false"&&K.getBoundingClientRect().top>=$.top&&B--,N==M.dom&&B==N.childNodes.length-1&&N.lastChild.nodeType==1&&$.top>N.lastChild.getBoundingClientRect().bottom?q=M.state.doc.content.size:(B==0||N.nodeType!=1||N.childNodes[B-1].nodeName!="BR")&&(q=posFromCaret(M,N,B,$))}q==null&&(q=posFromElement(M,U,$));let Y=M.docView.nearestDesc(U,!0);return{pos:q,inside:Y?Y.posAtStart-Y.border:-1}}function nonZero(M){return M.top<M.bottom||M.left<M.right}function singleRect(M,$){let I=M.getClientRects();if(I.length){let N=I[$<0?0:I.length-1];if(nonZero(N))return N}return Array.prototype.find.call(I,nonZero)||M.getBoundingClientRect()}const BIDI=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function coordsAtPos(M,$,I){let{node:N,offset:B,atom:j}=M.docView.domFromPos($,I<0?-1:1),U=webkit||gecko;if(N.nodeType==3)if(U&&(BIDI.test(N.nodeValue)||(I<0?!B:B==N.nodeValue.length))){let Y=singleRect(textRange(N,B,B),I);if(gecko&&B&&/\s/.test(N.nodeValue[B-1])&&B<N.nodeValue.length){let K=singleRect(textRange(N,B-1,B-1),-1);if(K.top==Y.top){let G=singleRect(textRange(N,B,B+1),-1);if(G.top!=Y.top)return flattenV(G,G.left<K.left)}}return Y}else{let Y=B,K=B,G=I<0?1:-1;return I<0&&!B?(K++,G=-1):I>=0&&B==N.nodeValue.length?(Y--,G=1):I<0?Y--:K++,flattenV(singleRect(textRange(N,Y,K),G),G<0)}if(!M.state.doc.resolve($-(j||0)).parent.inlineContent){if(j==null&&B&&(I<0||B==nodeSize(N))){let Y=N.childNodes[B-1];if(Y.nodeType==1)return flattenH(Y.getBoundingClientRect(),!1)}if(j==null&&B<nodeSize(N)){let Y=N.childNodes[B];if(Y.nodeType==1)return flattenH(Y.getBoundingClientRect(),!0)}return flattenH(N.getBoundingClientRect(),I>=0)}if(j==null&&B&&(I<0||B==nodeSize(N))){let Y=N.childNodes[B-1],K=Y.nodeType==3?textRange(Y,nodeSize(Y)-(U?0:1)):Y.nodeType==1&&(Y.nodeName!="BR"||!Y.nextSibling)?Y:null;if(K)return flattenV(singleRect(K,1),!1)}if(j==null&&B<nodeSize(N)){let Y=N.childNodes[B];for(;Y.pmViewDesc&&Y.pmViewDesc.ignoreForCoords;)Y=Y.nextSibling;let K=Y?Y.nodeType==3?textRange(Y,0,U?0:1):Y.nodeType==1?Y:null:null;if(K)return flattenV(singleRect(K,-1),!0)}return flattenV(singleRect(N.nodeType==3?textRange(N):N,-I),I>=0)}function flattenV(M,$){if(M.width==0)return M;let I=$?M.left:M.right;return{top:M.top,bottom:M.bottom,left:I,right:I}}function flattenH(M,$){if(M.height==0)return M;let I=$?M.top:M.bottom;return{top:I,bottom:I,left:M.left,right:M.right}}function withFlushedState(M,$,I){let N=M.state,B=M.root.activeElement;N!=$&&M.updateState($),B!=M.dom&&M.focus();try{return I()}finally{N!=$&&M.updateState(N),B!=M.dom&&B&&B.focus()}}function endOfTextblockVertical(M,$,I){let N=$.selection,B=I=="up"?N.$from:N.$to;return withFlushedState(M,$,()=>{let{node:j}=M.docView.domFromPos(B.pos,I=="up"?-1:1);for(;;){let q=M.docView.nearestDesc(j,!0);if(!q)break;if(q.node.isBlock){j=q.contentDOM||q.dom;break}j=q.dom.parentNode}let U=coordsAtPos(M,B.pos,1);for(let q=j.firstChild;q;q=q.nextSibling){let Y;if(q.nodeType==1)Y=q.getClientRects();else if(q.nodeType==3)Y=textRange(q,0,q.nodeValue.length).getClientRects();else continue;for(let K=0;K<Y.length;K++){let G=Y[K];if(G.bottom>G.top+1&&(I=="up"?U.top-G.top>(G.bottom-U.top)*2:G.bottom-U.bottom>(U.bottom-G.top)*2))return!1}}return!0})}const maybeRTL=/[\u0590-\u08ac]/;function endOfTextblockHorizontal(M,$,I){let{$head:N}=$.selection;if(!N.parent.isTextblock)return!1;let B=N.parentOffset,j=!B,U=B==N.parent.content.size,q=M.domSelection();return q?!maybeRTL.test(N.parent.textContent)||!q.modify?I=="left"||I=="backward"?j:U:withFlushedState(M,$,()=>{let{focusNode:Y,focusOffset:K,anchorNode:G,anchorOffset:J}=M.domSelectionRange(),Z=q.caretBidiLevel;q.modify("move",I,"character");let ee=N.depth?M.docView.domAfterPos(N.before()):M.dom,{focusNode:te,focusOffset:se}=M.domSelectionRange(),re=te&&!ee.contains(te.nodeType==1?te:te.parentNode)||Y==te&&K==se;try{q.collapse(G,J),Y&&(Y!=G||K!=J)&&q.extend&&q.extend(Y,K)}catch{}return Z!=null&&(q.caretBidiLevel=Z),re}):N.pos==N.start()||N.pos==N.end()}let cachedState=null,cachedDir=null,cachedResult=!1;function endOfTextblock(M,$,I){return cachedState==$&&cachedDir==I?cachedResult:(cachedState=$,cachedDir=I,cachedResult=I=="up"||I=="down"?endOfTextblockVertical(M,$,I):endOfTextblockHorizontal(M,$,I))}const NOT_DIRTY=0,CHILD_DIRTY=1,CONTENT_DIRTY=2,NODE_DIRTY=3;class ViewDesc{constructor($,I,N,B){this.parent=$,this.children=I,this.dom=N,this.contentDOM=B,this.dirty=NOT_DIRTY,N.pmViewDesc=this}matchesWidget($){return!1}matchesMark($){return!1}matchesNode($,I,N){return!1}matchesHack($){return!1}parseRule(){return null}stopEvent($){return!1}get size(){let $=0;for(let I=0;I<this.children.length;I++)$+=this.children[I].size;return $}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let $=0;$<this.children.length;$++)this.children[$].destroy()}posBeforeChild($){for(let I=0,N=this.posAtStart;;I++){let B=this.children[I];if(B==$)return N;N+=B.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM($,I,N){if(this.contentDOM&&this.contentDOM.contains($.nodeType==1?$:$.parentNode))if(N<0){let j,U;if($==this.contentDOM)j=$.childNodes[I-1];else{for(;$.parentNode!=this.contentDOM;)$=$.parentNode;j=$.previousSibling}for(;j&&!((U=j.pmViewDesc)&&U.parent==this);)j=j.previousSibling;return j?this.posBeforeChild(U)+U.size:this.posAtStart}else{let j,U;if($==this.contentDOM)j=$.childNodes[I];else{for(;$.parentNode!=this.contentDOM;)$=$.parentNode;j=$.nextSibling}for(;j&&!((U=j.pmViewDesc)&&U.parent==this);)j=j.nextSibling;return j?this.posBeforeChild(U):this.posAtEnd}let B;if($==this.dom&&this.contentDOM)B=I>domIndex(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))B=$.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(I==0)for(let j=$;;j=j.parentNode){if(j==this.dom){B=!1;break}if(j.previousSibling)break}if(B==null&&I==$.childNodes.length)for(let j=$;;j=j.parentNode){if(j==this.dom){B=!0;break}if(j.nextSibling)break}}return B??N>0?this.posAtEnd:this.posAtStart}nearestDesc($,I=!1){for(let N=!0,B=$;B;B=B.parentNode){let j=this.getDesc(B),U;if(j&&(!I||j.node))if(N&&(U=j.nodeDOM)&&!(U.nodeType==1?U.contains($.nodeType==1?$:$.parentNode):U==$))N=!1;else return j}}getDesc($){let I=$.pmViewDesc;for(let N=I;N;N=N.parent)if(N==this)return I}posFromDOM($,I,N){for(let B=$;B;B=B.parentNode){let j=this.getDesc(B);if(j)return j.localPosFromDOM($,I,N)}return-1}descAt($){for(let I=0,N=0;I<this.children.length;I++){let B=this.children[I],j=N+B.size;if(N==$&&j!=N){for(;!B.border&&B.children.length;)B=B.children[0];return B}if($<j)return B.descAt($-N-B.border);N=j}}domFromPos($,I){if(!this.contentDOM)return{node:this.dom,offset:0,atom:$+1};let N=0,B=0;for(let j=0;N<this.children.length;N++){let U=this.children[N],q=j+U.size;if(q>$||U instanceof TrailingHackViewDesc){B=$-j;break}j=q}if(B)return this.children[N].domFromPos(B-this.children[N].border,I);for(let j;N&&!(j=this.children[N-1]).size&&j instanceof WidgetViewDesc&&j.side>=0;N--);if(I<=0){let j,U=!0;for(;j=N?this.children[N-1]:null,!(!j||j.dom.parentNode==this.contentDOM);N--,U=!1);return j&&I&&U&&!j.border&&!j.domAtom?j.domFromPos(j.size,I):{node:this.contentDOM,offset:j?domIndex(j.dom)+1:0}}else{let j,U=!0;for(;j=N<this.children.length?this.children[N]:null,!(!j||j.dom.parentNode==this.contentDOM);N++,U=!1);return j&&U&&!j.border&&!j.domAtom?j.domFromPos(0,I):{node:this.contentDOM,offset:j?domIndex(j.dom):this.contentDOM.childNodes.length}}}parseRange($,I,N=0){if(this.children.length==0)return{node:this.contentDOM,from:$,to:I,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let B=-1,j=-1;for(let U=N,q=0;;q++){let Y=this.children[q],K=U+Y.size;if(B==-1&&$<=K){let G=U+Y.border;if($>=G&&I<=K-Y.border&&Y.node&&Y.contentDOM&&this.contentDOM.contains(Y.contentDOM))return Y.parseRange($,I,G);$=U;for(let J=q;J>0;J--){let Z=this.children[J-1];if(Z.size&&Z.dom.parentNode==this.contentDOM&&!Z.emptyChildAt(1)){B=domIndex(Z.dom)+1;break}$-=Z.size}B==-1&&(B=0)}if(B>-1&&(K>I||q==this.children.length-1)){I=K;for(let G=q+1;G<this.children.length;G++){let J=this.children[G];if(J.size&&J.dom.parentNode==this.contentDOM&&!J.emptyChildAt(-1)){j=domIndex(J.dom);break}I+=J.size}j==-1&&(j=this.contentDOM.childNodes.length);break}U=K}return{node:this.contentDOM,from:$,to:I,fromOffset:B,toOffset:j}}emptyChildAt($){if(this.border||!this.contentDOM||!this.children.length)return!1;let I=this.children[$<0?0:this.children.length-1];return I.size==0||I.emptyChildAt($)}domAfterPos($){let{node:I,offset:N}=this.domFromPos($,0);if(I.nodeType!=1||N==I.childNodes.length)throw new RangeError("No node after pos "+$);return I.childNodes[N]}setSelection($,I,N,B=!1){let j=Math.min($,I),U=Math.max($,I);for(let Z=0,ee=0;Z<this.children.length;Z++){let te=this.children[Z],se=ee+te.size;if(j>ee&&U<se)return te.setSelection($-ee-te.border,I-ee-te.border,N,B);ee=se}let q=this.domFromPos($,$?-1:1),Y=I==$?q:this.domFromPos(I,I?-1:1),K=N.getSelection(),G=!1;if((gecko||safari)&&$==I){let{node:Z,offset:ee}=q;if(Z.nodeType==3){if(G=!!(ee&&Z.nodeValue[ee-1]==` `),G&&ee==Z.nodeValue.length)for(let te=Z,se;te;te=te.parentNode){if(se=te.nextSibling){se.nodeName=="BR"&&(q=Y={node:se.parentNode,offset:domIndex(se)+1});break}let re=te.pmViewDesc;if(re&&re.node&&re.node.isBlock)break}}else{let te=Z.childNodes[ee-1];G=te&&(te.nodeName=="BR"||te.contentEditable=="false")}}if(gecko&&K.focusNode&&K.focusNode!=Y.node&&K.focusNode.nodeType==1){let Z=K.focusNode.childNodes[K.focusOffset];Z&&Z.contentEditable=="false"&&(B=!0)}if(!(B||G&&safari)&&isEquivalentPosition(q.node,q.offset,K.anchorNode,K.anchorOffset)&&isEquivalentPosition(Y.node,Y.offset,K.focusNode,K.focusOffset))return;let J=!1;if((K.extend||$==I)&&!G){K.collapse(q.node,q.offset);try{$!=I&&K.extend(Y.node,Y.offset),J=!0}catch{}}if(!J){if($>I){let ee=q;q=Y,Y=ee}let Z=document.createRange();Z.setEnd(Y.node,Y.offset),Z.setStart(q.node,q.offset),K.removeAllRanges(),K.addRange(Z)}}ignoreMutation($){return!this.contentDOM&&$.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty($,I){for(let N=0,B=0;B<this.children.length;B++){let j=this.children[B],U=N+j.size;if(N==U?$<=U&&I>=N:$<U&&I>N){let q=N+j.border,Y=U-j.border;if($>=q&&I<=Y){this.dirty=$==N||I==U?CONTENT_DIRTY:CHILD_DIRTY,$==q&&I==Y&&(j.contentLost||j.dom.parentNode!=this.contentDOM)?j.dirty=NODE_DIRTY:j.markDirty($-q,I-q);return}else j.dirty=j.dom==j.contentDOM&&j.dom.parentNode==this.contentDOM&&!j.children.length?CONTENT_DIRTY:NODE_DIRTY}N=U}this.dirty=CONTENT_DIRTY}markParentsDirty(){let $=1;for(let I=this.parent;I;I=I.parent,$++){let N=$==1?CONTENT_DIRTY:CHILD_DIRTY;I.dirty<N&&(I.dirty=N)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText($){return!1}}class WidgetViewDesc extends ViewDesc{constructor($,I,N,B){let j,U=I.type.toDOM;if(typeof U=="function"&&(U=U(N,()=>{if(!j)return B;if(j.parent)return j.parent.posBeforeChild(j)})),!I.type.spec.raw){if(U.nodeType!=1){let q=document.createElement("span");q.appendChild(U),U=q}U.contentEditable="false",U.classList.add("ProseMirror-widget")}super($,[],U,null),this.widget=I,this.widget=I,j=this}matchesWidget($){return this.dirty==NOT_DIRTY&&$.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent($){let I=this.widget.spec.stopEvent;return I?I($):!1}ignoreMutation($){return $.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class CompositionViewDesc extends ViewDesc{constructor($,I,N,B){super($,[],I,null),this.textDOM=N,this.text=B}get size(){return this.text.length}localPosFromDOM($,I){return $!=this.textDOM?this.posAtStart+(I?this.size:0):this.posAtStart+I}domFromPos($){return{node:this.textDOM,offset:$}}ignoreMutation($){return $.type==="characterData"&&$.target.nodeValue==$.oldValue}}class MarkViewDesc extends ViewDesc{constructor($,I,N,B){super($,[],N,B),this.mark=I}static create($,I,N,B){let j=B.nodeViews[I.type.name],U=j&&j(I,B,N);return(!U||!U.dom)&&(U=DOMSerializer.renderSpec(document,I.type.spec.toDOM(I,N),null,I.attrs)),new MarkViewDesc($,I,U.dom,U.contentDOM||U.dom)}parseRule(){return this.dirty&NODE_DIRTY||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark($){return this.dirty!=NODE_DIRTY&&this.mark.eq($)}markDirty($,I){if(super.markDirty($,I),this.dirty!=NOT_DIRTY){let N=this.parent;for(;!N.node;)N=N.parent;N.dirty<this.dirty&&(N.dirty=this.dirty),this.dirty=NOT_DIRTY}}slice($,I,N){let B=MarkViewDesc.create(this.parent,this.mark,!0,N),j=this.children,U=this.size;I<U&&(j=replaceNodes(j,I,U,N)),$>0&&(j=replaceNodes(j,0,$,N));for(let q=0;q<j.length;q++)j[q].parent=B;return B.children=j,B}}class NodeViewDesc extends ViewDesc{constructor($,I,N,B,j,U,q,Y,K){super($,[],j,U),this.node=I,this.outerDeco=N,this.innerDeco=B,this.nodeDOM=q}static create($,I,N,B,j,U){let q=j.nodeViews[I.type.name],Y,K=q&&q(I,j,()=>{if(!Y)return U;if(Y.parent)return Y.parent.posBeforeChild(Y)},N,B),G=K&&K.dom,J=K&&K.contentDOM;if(I.isText){if(!G)G=document.createTextNode(I.text);else if(G.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else G||({dom:G,contentDOM:J}=DOMSerializer.renderSpec(document,I.type.spec.toDOM(I),null,I.attrs));!J&&!I.isText&&G.nodeName!="BR"&&(G.hasAttribute("contenteditable")||(G.contentEditable="false"),I.type.spec.draggable&&(G.draggable=!0));let Z=G;return G=applyOuterDeco(G,N,I),K?Y=new CustomNodeViewDesc($,I,N,B,G,J||null,Z,K,j,U+1):I.isText?new TextViewDesc($,I,N,B,G,Z,j):new NodeViewDesc($,I,N,B,G,J||null,Z,j,U+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let $={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&($.preserveWhitespace="full"),!this.contentDOM)$.getContent=()=>this.node.content;else if(!this.contentLost)$.contentElement=this.contentDOM;else{for(let I=this.children.length-1;I>=0;I--){let N=this.children[I];if(this.dom.contains(N.dom.parentNode)){$.contentElement=N.dom.parentNode;break}}$.contentElement||($.getContent=()=>Fragment.empty)}return $}matchesNode($,I,N){return this.dirty==NOT_DIRTY&&$.eq(this.node)&&sameOuterDeco(I,this.outerDeco)&&N.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren($,I){let N=this.node.inlineContent,B=I,j=$.composing?this.localCompositionInfo($,I):null,U=j&&j.pos>-1?j:null,q=j&&j.pos<0,Y=new ViewTreeUpdater(this,U&&U.node,$);iterDeco(this.node,this.innerDeco,(K,G,J)=>{K.spec.marks?Y.syncToMarks(K.spec.marks,N,$):K.type.side>=0&&!J&&Y.syncToMarks(G==this.node.childCount?Mark$1.none:this.node.child(G).marks,N,$),Y.placeWidget(K,$,B)},(K,G,J,Z)=>{Y.syncToMarks(K.marks,N,$);let ee;Y.findNodeMatch(K,G,J,Z)||q&&$.state.selection.from>B&&$.state.selection.to<B+K.nodeSize&&(ee=Y.findIndexWithChild(j.node))>-1&&Y.updateNodeAt(K,G,J,ee,$)||Y.updateNextNode(K,G,J,$,Z,B)||Y.addNode(K,G,J,$,B),B+=K.nodeSize}),Y.syncToMarks([],N,$),this.node.isTextblock&&Y.addTextblockHacks(),Y.destroyRest(),(Y.changed||this.dirty==CONTENT_DIRTY)&&(U&&this.protectLocalComposition($,U),renderDescs(this.contentDOM,this.children,$),ios&&iosHacks(this.dom))}localCompositionInfo($,I){let{from:N,to:B}=$.state.selection;if(!($.state.selection instanceof TextSelection)||N<I||B>I+this.node.content.size)return null;let j=$.input.compositionNode;if(!j||!this.dom.contains(j.parentNode))return null;if(this.node.inlineContent){let U=j.nodeValue,q=findTextInFragment(this.node.content,U,N-I,B-I);return q<0?null:{node:j,pos:q,text:U}}else return{node:j,pos:-1,text:""}}protectLocalComposition($,{node:I,pos:N,text:B}){if(this.getDesc(I))return;let j=I;for(;j.parentNode!=this.contentDOM;j=j.parentNode){for(;j.previousSibling;)j.parentNode.removeChild(j.previousSibling);for(;j.nextSibling;)j.parentNode.removeChild(j.nextSibling);j.pmViewDesc&&(j.pmViewDesc=void 0)}let U=new CompositionViewDesc(this,j,I,B);$.input.compositionNodes.push(U),this.children=replaceNodes(this.children,N,N+B.length,$,U)}update($,I,N,B){return this.dirty==NODE_DIRTY||!$.sameMarkup(this.node)?!1:(this.updateInner($,I,N,B),!0)}updateInner($,I,N,B){this.updateOuterDeco(I),this.node=$,this.innerDeco=N,this.contentDOM&&this.updateChildren(B,this.posAtStart),this.dirty=NOT_DIRTY}updateOuterDeco($){if(sameOuterDeco($,this.outerDeco))return;let I=this.nodeDOM.nodeType!=1,N=this.dom;this.dom=patchOuterDeco(this.dom,this.nodeDOM,computeOuterDeco(this.outerDeco,this.node,I),computeOuterDeco($,this.node,I)),this.dom!=N&&(N.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=$}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function docViewDesc(M,$,I,N,B){applyOuterDeco(N,$,M);let j=new NodeViewDesc(void 0,M,$,I,N,N,N,B,0);return j.contentDOM&&j.updateChildren(B,0),j}class TextViewDesc extends NodeViewDesc{constructor($,I,N,B,j,U,q){super($,I,N,B,j,null,U,q,0)}parseRule(){let $=this.nodeDOM.parentNode;for(;$&&$!=this.dom&&!$.pmIsDeco;)$=$.parentNode;return{skip:$||!0}}update($,I,N,B){return this.dirty==NODE_DIRTY||this.dirty!=NOT_DIRTY&&!this.inParent()||!$.sameMarkup(this.node)?!1:(this.updateOuterDeco(I),(this.dirty!=NOT_DIRTY||$.text!=this.node.text)&&$.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=$.text,B.trackWrites==this.nodeDOM&&(B.trackWrites=null)),this.node=$,this.dirty=NOT_DIRTY,!0)}inParent(){let $=this.parent.contentDOM;for(let I=this.nodeDOM;I;I=I.parentNode)if(I==$)return!0;return!1}domFromPos($){return{node:this.nodeDOM,offset:$}}localPosFromDOM($,I,N){return $==this.nodeDOM?this.posAtStart+Math.min(I,this.node.text.length):super.localPosFromDOM($,I,N)}ignoreMutation($){return $.type!="characterData"&&$.type!="selection"}slice($,I,N){let B=this.node.cut($,I),j=document.createTextNode(B.text);return new TextViewDesc(this.parent,B,this.outerDeco,this.innerDeco,j,j,N)}markDirty($,I){super.markDirty($,I),this.dom!=this.nodeDOM&&($==0||I==this.nodeDOM.nodeValue.length)&&(this.dirty=NODE_DIRTY)}get domAtom(){return!1}isText($){return this.node.text==$}}class TrailingHackViewDesc extends ViewDesc{parseRule(){return{ignore:!0}}matchesHack($){return this.dirty==NOT_DIRTY&&this.dom.nodeName==$}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class CustomNodeViewDesc extends NodeViewDesc{constructor($,I,N,B,j,U,q,Y,K,G){super($,I,N,B,j,U,q,K,G),this.spec=Y}update($,I,N,B){if(this.dirty==NODE_DIRTY)return!1;if(this.spec.update){let j=this.spec.update($,I,N);return j&&this.updateInner($,I,N,B),j}else return!this.contentDOM&&!$.isLeaf?!1:super.update($,I,N,B)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection($,I,N,B){this.spec.setSelection?this.spec.setSelection($,I,N):super.setSelection($,I,N,B)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent($){return this.spec.stopEvent?this.spec.stopEvent($):!1}ignoreMutation($){return this.spec.ignoreMutation?this.spec.ignoreMutation($):super.ignoreMutation($)}}function renderDescs(M,$,I){let N=M.firstChild,B=!1;for(let j=0;j<$.length;j++){let U=$[j],q=U.dom;if(q.parentNode==M){for(;q!=N;)N=rm(N),B=!0;N=N.nextSibling}else B=!0,M.insertBefore(q,N);if(U instanceof MarkViewDesc){let Y=N?N.previousSibling:M.lastChild;renderDescs(U.contentDOM,U.children,I),N=Y?Y.nextSibling:M.firstChild}}for(;N;)N=rm(N),B=!0;B&&I.trackWrites==M&&(I.trackWrites=null)}const OuterDecoLevel=function(M){M&&(this.nodeName=M)};OuterDecoLevel.prototype=Object.create(null);const noDeco=[new OuterDecoLevel];function computeOuterDeco(M,$,I){if(M.length==0)return noDeco;let N=I?noDeco[0]:new OuterDecoLevel,B=[N];for(let j=0;j<M.length;j++){let U=M[j].type.attrs;if(U){U.nodeName&&B.push(N=new OuterDecoLevel(U.nodeName));for(let q in U){let Y=U[q];Y!=null&&(I&&B.length==1&&B.push(N=new OuterDecoLevel($.isInline?"span":"div")),q=="class"?N.class=(N.class?N.class+" ":"")+Y:q=="style"?N.style=(N.style?N.style+";":"")+Y:q!="nodeName"&&(N[q]=Y))}}}return B}function patchOuterDeco(M,$,I,N){if(I==noDeco&&N==noDeco)return $;let B=$;for(let j=0;j<N.length;j++){let U=N[j],q=I[j];if(j){let Y;q&&q.nodeName==U.nodeName&&B!=M&&(Y=B.parentNode)&&Y.nodeName.toLowerCase()==U.nodeName||(Y=document.createElement(U.nodeName),Y.pmIsDeco=!0,Y.appendChild(B),q=noDeco[0]),B=Y}patchAttributes(B,q||noDeco[0],U)}return B}function patchAttributes(M,$,I){for(let N in $)N!="class"&&N!="style"&&N!="nodeName"&&!(N in I)&&M.removeAttribute(N);for(let N in I)N!="class"&&N!="style"&&N!="nodeName"&&I[N]!=$[N]&&M.setAttribute(N,I[N]);if($.class!=I.class){let N=$.class?$.class.split(" ").filter(Boolean):[],B=I.class?I.class.split(" ").filter(Boolean):[];for(let j=0;j<N.length;j++)B.indexOf(N[j])==-1&&M.classList.remove(N[j]);for(let j=0;j<B.length;j++)N.indexOf(B[j])==-1&&M.classList.add(B[j]);M.classList.length==0&&M.removeAttribute("class")}if($.style!=I.style){if($.style){let N=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,B;for(;B=N.exec($.style);)M.style.removeProperty(B[1])}I.style&&(M.style.cssText+=I.style)}}function applyOuterDeco(M,$,I){return patchOuterDeco(M,M,noDeco,computeOuterDeco($,I,M.nodeType!=1))}function sameOuterDeco(M,$){if(M.length!=$.length)return!1;for(let I=0;I<M.length;I++)if(!M[I].type.eq($[I].type))return!1;return!0}function rm(M){let $=M.nextSibling;return M.parentNode.removeChild(M),$}class ViewTreeUpdater{constructor($,I,N){this.lock=I,this.view=N,this.index=0,this.stack=[],this.changed=!1,this.top=$,this.preMatch=preMatch($.node.content,$)}destroyBetween($,I){if($!=I){for(let N=$;N<I;N++)this.top.children[N].destroy();this.top.children.splice($,I-$),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks($,I,N){let B=0,j=this.stack.length>>1,U=Math.min(j,$.length);for(;B<U&&(B==j-1?this.top:this.stack[B+1<<1]).matchesMark($[B])&&$[B].type.spec.spanning!==!1;)B++;for(;B<j;)this.destroyRest(),this.top.dirty=NOT_DIRTY,this.index=this.stack.pop(),this.top=this.stack.pop(),j--;for(;j<$.length;){this.stack.push(this.top,this.index+1);let q=-1;for(let Y=this.index;Y<Math.min(this.index+3,this.top.children.length);Y++){let K=this.top.children[Y];if(K.matchesMark($[j])&&!this.isLocked(K.dom)){q=Y;break}}if(q>-1)q>this.index&&(this.changed=!0,this.destroyBetween(this.index,q)),this.top=this.top.children[this.index];else{let Y=MarkViewDesc.create(this.top,$[j],I,N);this.top.children.splice(this.index,0,Y),this.top=Y,this.changed=!0}this.index=0,j++}}findNodeMatch($,I,N,B){let j=-1,U;if(B>=this.preMatch.index&&(U=this.preMatch.matches[B-this.preMatch.index]).parent==this.top&&U.matchesNode($,I,N))j=this.top.children.indexOf(U,this.index);else for(let q=this.index,Y=Math.min(this.top.children.length,q+5);q<Y;q++){let K=this.top.children[q];if(K.matchesNode($,I,N)&&!this.preMatch.matched.has(K)){j=q;break}}return j<0?!1:(this.destroyBetween(this.index,j),this.index++,!0)}updateNodeAt($,I,N,B,j){let U=this.top.children[B];return U.dirty==NODE_DIRTY&&U.dom==U.contentDOM&&(U.dirty=CONTENT_DIRTY),U.update($,I,N,j)?(this.destroyBetween(this.index,B),this.index++,!0):!1}findIndexWithChild($){for(;;){let I=$.parentNode;if(!I)return-1;if(I==this.top.contentDOM){let N=$.pmViewDesc;if(N){for(let B=this.index;B<this.top.children.length;B++)if(this.top.children[B]==N)return B}return-1}$=I}}updateNextNode($,I,N,B,j,U){for(let q=this.index;q<this.top.children.length;q++){let Y=this.top.children[q];if(Y instanceof NodeViewDesc){let K=this.preMatch.matched.get(Y);if(K!=null&&K!=j)return!1;let G=Y.dom,J,Z=this.isLocked(G)&&!($.isText&&Y.node&&Y.node.isText&&Y.nodeDOM.nodeValue==$.text&&Y.dirty!=NODE_DIRTY&&sameOuterDeco(I,Y.outerDeco));if(!Z&&Y.update($,I,N,B))return this.destroyBetween(this.index,q),Y.dom!=G&&(this.changed=!0),this.index++,!0;if(!Z&&(J=this.recreateWrapper(Y,$,I,N,B,U)))return this.destroyBetween(this.index,q),this.top.children[this.index]=J,J.contentDOM&&(J.dirty=CONTENT_DIRTY,J.updateChildren(B,U+1),J.dirty=NOT_DIRTY),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper($,I,N,B,j,U){if($.dirty||I.isAtom||!$.children.length||!$.node.content.eq(I.content)||!sameOuterDeco(N,$.outerDeco)||!B.eq($.innerDeco))return null;let q=NodeViewDesc.create(this.top,I,N,B,j,U);if(q.contentDOM){q.children=$.children,$.children=[];for(let Y of q.children)Y.parent=q}return $.destroy(),q}addNode($,I,N,B,j){let U=NodeViewDesc.create(this.top,$,I,N,B,j);U.contentDOM&&U.updateChildren(B,j+1),this.top.children.splice(this.index++,0,U),this.changed=!0}placeWidget($,I,N){let B=this.index<this.top.children.length?this.top.children[this.index]:null;if(B&&B.matchesWidget($)&&($==B.widget||!B.widget.type.toDOM.parentNode))this.index++;else{let j=new WidgetViewDesc(this.top,$,I,N);this.top.children.splice(this.index++,0,j),this.changed=!0}}addTextblockHacks(){let $=this.top.children[this.index-1],I=this.top;for(;$ instanceof MarkViewDesc;)I=$,$=I.children[I.children.length-1];(!$||!($ instanceof TextViewDesc)||/\n$/.test($.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test($.node.text))&&((safari||chrome)&&$&&$.dom.contentEditable=="false"&&this.addHackNode("IMG",I),this.addHackNode("BR",this.top))}addHackNode($,I){if(I==this.top&&this.index<I.children.length&&I.children[this.index].matchesHack($))this.index++;else{let N=document.createElement($);$=="IMG"&&(N.className="ProseMirror-separator",N.alt=""),$=="BR"&&(N.className="ProseMirror-trailingBreak");let B=new TrailingHackViewDesc(this.top,[],N,null);I!=this.top?I.children.push(B):I.children.splice(this.index++,0,B),this.changed=!0}}isLocked($){return this.lock&&($==this.lock||$.nodeType==1&&$.contains(this.lock.parentNode))}}function preMatch(M,$){let I=$,N=I.children.length,B=M.childCount,j=new Map,U=[];e:for(;B>0;){let q;for(;;)if(N){let K=I.children[N-1];if(K instanceof MarkViewDesc)I=K,N=K.children.length;else{q=K,N--;break}}else{if(I==$)break e;N=I.parent.children.indexOf(I),I=I.parent}let Y=q.node;if(Y){if(Y!=M.child(B-1))break;--B,j.set(q,B),U.push(q)}}return{index:B,matched:j,matches:U.reverse()}}function compareSide(M,$){return M.type.side-$.type.side}function iterDeco(M,$,I,N){let B=$.locals(M),j=0;if(B.length==0){for(let K=0;K<M.childCount;K++){let G=M.child(K);N(G,B,$.forChild(j,G),K),j+=G.nodeSize}return}let U=0,q=[],Y=null;for(let K=0;;){let G,J;for(;U<B.length&&B[U].to==j;){let re=B[U++];re.widget&&(G?(J||(J=[G])).push(re):G=re)}if(G)if(J){J.sort(compareSide);for(let re=0;re<J.length;re++)I(J[re],K,!!Y)}else I(G,K,!!Y);let Z,ee;if(Y)ee=-1,Z=Y,Y=null;else if(K<M.childCount)ee=K,Z=M.child(K++);else break;for(let re=0;re<q.length;re++)q[re].to<=j&&q.splice(re--,1);for(;U<B.length&&B[U].from<=j&&B[U].to>j;)q.push(B[U++]);let te=j+Z.nodeSize;if(Z.isText){let re=te;U<B.length&&B[U].from<re&&(re=B[U].from);for(let ne=0;ne<q.length;ne++)q[ne].to<re&&(re=q[ne].to);re<te&&(Y=Z.cut(re-j),Z=Z.cut(0,re-j),te=re,ee=-1)}else for(;U<B.length&&B[U].to<te;)U++;let se=Z.isInline&&!Z.isLeaf?q.filter(re=>!re.inline):q.slice();N(Z,se,$.forChild(j,Z),ee),j=te}}function iosHacks(M){if(M.nodeName=="UL"||M.nodeName=="OL"){let $=M.style.cssText;M.style.cssText=$+"; list-style: square !important",window.getComputedStyle(M).listStyle,M.style.cssText=$}}function findTextInFragment(M,$,I,N){for(let B=0,j=0;B<M.childCount&&j<=N;){let U=M.child(B++),q=j;if(j+=U.nodeSize,!U.isText)continue;let Y=U.text;for(;B<M.childCount;){let K=M.child(B++);if(j+=K.nodeSize,!K.isText)break;Y+=K.text}if(j>=I){if(j>=N&&Y.slice(N-$.length-q,N-q)==$)return N-$.length;let K=q<N?Y.lastIndexOf($,N-q-1):-1;if(K>=0&&K+$.length+q>=I)return q+K;if(I==N&&Y.length>=N+$.length-q&&Y.slice(N-q,N-q+$.length)==$)return N}}return-1}function replaceNodes(M,$,I,N,B){let j=[];for(let U=0,q=0;U<M.length;U++){let Y=M[U],K=q,G=q+=Y.size;K>=I||G<=$?j.push(Y):(K<$&&j.push(Y.slice(0,$-K,N)),B&&(j.push(B),B=void 0),G>I&&j.push(Y.slice(I-K,Y.size,N)))}return j}function selectionFromDOM(M,$=null){let I=M.domSelectionRange(),N=M.state.doc;if(!I.focusNode)return null;let B=M.docView.nearestDesc(I.focusNode),j=B&&B.size==0,U=M.docView.posFromDOM(I.focusNode,I.focusOffset,1);if(U<0)return null;let q=N.resolve(U),Y,K;if(selectionCollapsed(I)){for(Y=U;B&&!B.node;)B=B.parent;let J=B.node;if(B&&J.isAtom&&NodeSelection.isSelectable(J)&&B.parent&&!(J.isInline&&isOnEdge(I.focusNode,I.focusOffset,B.dom))){let Z=B.posBefore;K=new NodeSelection(U==Z?q:N.resolve(Z))}}else{if(I instanceof M.dom.ownerDocument.defaultView.Selection&&I.rangeCount>1){let J=U,Z=U;for(let ee=0;ee<I.rangeCount;ee++){let te=I.getRangeAt(ee);J=Math.min(J,M.docView.posFromDOM(te.startContainer,te.startOffset,1)),Z=Math.max(Z,M.docView.posFromDOM(te.endContainer,te.endOffset,-1))}if(J<0)return null;[Y,U]=Z==M.state.selection.anchor?[Z,J]:[J,Z],q=N.resolve(U)}else Y=M.docView.posFromDOM(I.anchorNode,I.anchorOffset,1);if(Y<0)return null}let G=N.resolve(Y);if(!K){let J=$=="pointer"||M.state.selection.head<q.pos&&!j?1:-1;K=selectionBetween(M,G,q,J)}return K}function editorOwnsSelection(M){return M.editable?M.hasFocus():hasSelection(M)&&document.activeElement&&document.activeElement.contains(M.dom)}function selectionToDOM(M,$=!1){let I=M.state.selection;if(syncNodeSelection(M,I),!!editorOwnsSelection(M)){if(!$&&M.input.mouseDown&&M.input.mouseDown.allowDefault&&chrome){let N=M.domSelectionRange(),B=M.domObserver.currentSelection;if(N.anchorNode&&B.anchorNode&&isEquivalentPosition(N.anchorNode,N.anchorOffset,B.anchorNode,B.anchorOffset)){M.input.mouseDown.delayedSelectionSync=!0,M.domObserver.setCurSelection();return}}if(M.domObserver.disconnectSelection(),M.cursorWrapper)selectCursorWrapper(M);else{let{anchor:N,head:B}=I,j,U;brokenSelectBetweenUneditable&&!(I instanceof TextSelection)&&(I.$from.parent.inlineContent||(j=temporarilyEditableNear(M,I.from)),!I.empty&&!I.$from.parent.inlineContent&&(U=temporarilyEditableNear(M,I.to))),M.docView.setSelection(N,B,M.root,$),brokenSelectBetweenUneditable&&(j&&resetEditable(j),U&&resetEditable(U)),I.visible?M.dom.classList.remove("ProseMirror-hideselection"):(M.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&removeClassOnSelectionChange(M))}M.domObserver.setCurSelection(),M.domObserver.connectSelection()}}const brokenSelectBetweenUneditable=safari||chrome&&chrome_version<63;function temporarilyEditableNear(M,$){let{node:I,offset:N}=M.docView.domFromPos($,0),B=N<I.childNodes.length?I.childNodes[N]:null,j=N?I.childNodes[N-1]:null;if(safari&&B&&B.contentEditable=="false")return setEditable(B);if((!B||B.contentEditable=="false")&&(!j||j.contentEditable=="false")){if(B)return setEditable(B);if(j)return setEditable(j)}}function setEditable(M){return M.contentEditable="true",safari&&M.draggable&&(M.draggable=!1,M.wasDraggable=!0),M}function resetEditable(M){M.contentEditable="false",M.wasDraggable&&(M.draggable=!0,M.wasDraggable=null)}function removeClassOnSelectionChange(M){let $=M.dom.ownerDocument;$.removeEventListener("selectionchange",M.input.hideSelectionGuard);let I=M.domSelectionRange(),N=I.anchorNode,B=I.anchorOffset;$.addEventListener("selectionchange",M.input.hideSelectionGuard=()=>{(I.anchorNode!=N||I.anchorOffset!=B)&&($.removeEventListener("selectionchange",M.input.hideSelectionGuard),setTimeout(()=>{(!editorOwnsSelection(M)||M.state.selection.visible)&&M.dom.classList.remove("ProseMirror-hideselection")},20))})}function selectCursorWrapper(M){let $=M.domSelection(),I=document.createRange();if(!$)return;let N=M.cursorWrapper.dom,B=N.nodeName=="IMG";B?I.setStart(N.parentNode,domIndex(N)+1):I.setStart(N,0),I.collapse(!0),$.removeAllRanges(),$.addRange(I),!B&&!M.state.selection.visible&&ie$1&&ie_version<=11&&(N.disabled=!0,N.disabled=!1)}function syncNodeSelection(M,$){if($ instanceof NodeSelection){let I=M.docView.descAt($.from);I!=M.lastSelectedViewDesc&&(clearNodeSelection(M),I&&I.selectNode(),M.lastSelectedViewDesc=I)}else clearNodeSelection(M)}function clearNodeSelection(M){M.lastSelectedViewDesc&&(M.lastSelectedViewDesc.parent&&M.lastSelectedViewDesc.deselectNode(),M.lastSelectedViewDesc=void 0)}function selectionBetween(M,$,I,N){return M.someProp("createSelectionBetween",B=>B(M,$,I))||TextSelection.between($,I,N)}function hasFocusAndSelection(M){return M.editable&&!M.hasFocus()?!1:hasSelection(M)}function hasSelection(M){let $=M.domSelectionRange();if(!$.anchorNode)return!1;try{return M.dom.contains($.anchorNode.nodeType==3?$.anchorNode.parentNode:$.anchorNode)&&(M.editable||M.dom.contains($.focusNode.nodeType==3?$.focusNode.parentNode:$.focusNode))}catch{return!1}}function anchorInRightPlace(M){let $=M.docView.domFromPos(M.state.selection.anchor,0),I=M.domSelectionRange();return isEquivalentPosition($.node,$.offset,I.anchorNode,I.anchorOffset)}function moveSelectionBlock(M,$){let{$anchor:I,$head:N}=M.selection,B=$>0?I.max(N):I.min(N),j=B.parent.inlineContent?B.depth?M.doc.resolve($>0?B.after():B.before()):null:B;return j&&Selection.findFrom(j,$)}function apply(M,$){return M.dispatch(M.state.tr.setSelection($).scrollIntoView()),!0}function selectHorizontally(M,$,I){let N=M.state.selection;if(N instanceof TextSelection)if(I.indexOf("s")>-1){let{$head:B}=N,j=B.textOffset?null:$<0?B.nodeBefore:B.nodeAfter;if(!j||j.isText||!j.isLeaf)return!1;let U=M.state.doc.resolve(B.pos+j.nodeSize*($<0?-1:1));return apply(M,new TextSelection(N.$anchor,U))}else if(N.empty){if(M.endOfTextblock($>0?"forward":"backward")){let B=moveSelectionBlock(M.state,$);return B&&B instanceof NodeSelection?apply(M,B):!1}else if(!(mac$3&&I.indexOf("m")>-1)){let B=N.$head,j=B.textOffset?null:$<0?B.nodeBefore:B.nodeAfter,U;if(!j||j.isText)return!1;let q=$<0?B.pos-j.nodeSize:B.pos;return j.isAtom||(U=M.docView.descAt(q))&&!U.contentDOM?NodeSelection.isSelectable(j)?apply(M,new NodeSelection($<0?M.state.doc.resolve(B.pos-j.nodeSize):B)):webkit?apply(M,new TextSelection(M.state.doc.resolve($<0?q:q+j.nodeSize))):!1:!1}}else return!1;else{if(N instanceof NodeSelection&&N.node.isInline)return apply(M,new TextSelection($>0?N.$to:N.$from));{let B=moveSelectionBlock(M.state,$);return B?apply(M,B):!1}}}function nodeLen(M){return M.nodeType==3?M.nodeValue.length:M.childNodes.length}function isIgnorable(M,$){let I=M.pmViewDesc;return I&&I.size==0&&($<0||M.nextSibling||M.nodeName!="BR")}function skipIgnoredNodes(M,$){return $<0?skipIgnoredNodesBefore(M):skipIgnoredNodesAfter(M)}function skipIgnoredNodesBefore(M){let $=M.domSelectionRange(),I=$.focusNode,N=$.focusOffset;if(!I)return;let B,j,U=!1;for(gecko&&I.nodeType==1&&N<nodeLen(I)&&isIgnorable(I.childNodes[N],-1)&&(U=!0);;)if(N>0){if(I.nodeType!=1)break;{let q=I.childNodes[N-1];if(isIgnorable(q,-1))B=I,j=--N;else if(q.nodeType==3)I=q,N=I.nodeValue.length;else break}}else{if(isBlockNode(I))break;{let q=I.previousSibling;for(;q&&isIgnorable(q,-1);)B=I.parentNode,j=domIndex(q),q=q.previousSibling;if(q)I=q,N=nodeLen(I);else{if(I=I.parentNode,I==M.dom)break;N=0}}}U?setSelFocus(M,I,N):B&&setSelFocus(M,B,j)}function skipIgnoredNodesAfter(M){let $=M.domSelectionRange(),I=$.focusNode,N=$.focusOffset;if(!I)return;let B=nodeLen(I),j,U;for(;;)if(N<B){if(I.nodeType!=1)break;let q=I.childNodes[N];if(isIgnorable(q,1))j=I,U=++N;else break}else{if(isBlockNode(I))break;{let q=I.nextSibling;for(;q&&isIgnorable(q,1);)j=q.parentNode,U=domIndex(q)+1,q=q.nextSibling;if(q)I=q,N=0,B=nodeLen(I);else{if(I=I.parentNode,I==M.dom)break;N=B=0}}}j&&setSelFocus(M,j,U)}function isBlockNode(M){let $=M.pmViewDesc;return $&&$.node&&$.node.isBlock}function textNodeAfter(M,$){for(;M&&$==M.childNodes.length&&!hasBlockDesc(M);)$=domIndex(M)+1,M=M.parentNode;for(;M&&$<M.childNodes.length;){let I=M.childNodes[$];if(I.nodeType==3)return I;if(I.nodeType==1&&I.contentEditable=="false")break;M=I,$=0}}function textNodeBefore(M,$){for(;M&&!$&&!hasBlockDesc(M);)$=domIndex(M),M=M.parentNode;for(;M&&$;){let I=M.childNodes[$-1];if(I.nodeType==3)return I;if(I.nodeType==1&&I.contentEditable=="false")break;M=I,$=M.childNodes.length}}function setSelFocus(M,$,I){if($.nodeType!=3){let j,U;(U=textNodeAfter($,I))?($=U,I=0):(j=textNodeBefore($,I))&&($=j,I=j.nodeValue.length)}let N=M.domSelection();if(!N)return;if(selectionCollapsed(N)){let j=document.createRange();j.setEnd($,I),j.setStart($,I),N.removeAllRanges(),N.addRange(j)}else N.extend&&N.extend($,I);M.domObserver.setCurSelection();let{state:B}=M;setTimeout(()=>{M.state==B&&selectionToDOM(M)},50)}function findDirection(M,$){let I=M.state.doc.resolve($);if(!(chrome||windows)&&I.parent.inlineContent){let B=M.coordsAtPos($);if($>I.start()){let j=M.coordsAtPos($-1),U=(j.top+j.bottom)/2;if(U>B.top&&U<B.bottom&&Math.abs(j.left-B.left)>1)return j.left<B.left?"ltr":"rtl"}if($<I.end()){let j=M.coordsAtPos($+1),U=(j.top+j.bottom)/2;if(U>B.top&&U<B.bottom&&Math.abs(j.left-B.left)>1)return j.left>B.left?"ltr":"rtl"}}return getComputedStyle(M.dom).direction=="rtl"?"rtl":"ltr"}function selectVertically(M,$,I){let N=M.state.selection;if(N instanceof TextSelection&&!N.empty||I.indexOf("s")>-1||mac$3&&I.indexOf("m")>-1)return!1;let{$from:B,$to:j}=N;if(!B.parent.inlineContent||M.endOfTextblock($<0?"up":"down")){let U=moveSelectionBlock(M.state,$);if(U&&U instanceof NodeSelection)return apply(M,U)}if(!B.parent.inlineContent){let U=$<0?B:j,q=N instanceof AllSelection?Selection.near(U,$):Selection.findFrom(U,$);return q?apply(M,q):!1}return!1}function stopNativeHorizontalDelete(M,$){if(!(M.state.selection instanceof TextSelection))return!0;let{$head:I,$anchor:N,empty:B}=M.state.selection;if(!I.sameParent(N))return!0;if(!B)return!1;if(M.endOfTextblock($>0?"forward":"backward"))return!0;let j=!I.textOffset&&($<0?I.nodeBefore:I.nodeAfter);if(j&&!j.isText){let U=M.state.tr;return $<0?U.delete(I.pos-j.nodeSize,I.pos):U.delete(I.pos,I.pos+j.nodeSize),M.dispatch(U),!0}return!1}function switchEditable(M,$,I){M.domObserver.stop(),$.contentEditable=I,M.domObserver.start()}function safariDownArrowBug(M){if(!safari||M.state.selection.$head.parentOffset>0)return!1;let{focusNode:$,focusOffset:I}=M.domSelectionRange();if($&&$.nodeType==1&&I==0&&$.firstChild&&$.firstChild.contentEditable=="false"){let N=$.firstChild;switchEditable(M,N,"true"),setTimeout(()=>switchEditable(M,N,"false"),20)}return!1}function getMods(M){let $="";return M.ctrlKey&&($+="c"),M.metaKey&&($+="m"),M.altKey&&($+="a"),M.shiftKey&&($+="s"),$}function captureKeyDown(M,$){let I=$.keyCode,N=getMods($);if(I==8||mac$3&&I==72&&N=="c")return stopNativeHorizontalDelete(M,-1)||skipIgnoredNodes(M,-1);if(I==46&&!$.shiftKey||mac$3&&I==68&&N=="c")return stopNativeHorizontalDelete(M,1)||skipIgnoredNodes(M,1);if(I==13||I==27)return!0;if(I==37||mac$3&&I==66&&N=="c"){let B=I==37?findDirection(M,M.state.selection.from)=="ltr"?-1:1:-1;return selectHorizontally(M,B,N)||skipIgnoredNodes(M,B)}else if(I==39||mac$3&&I==70&&N=="c"){let B=I==39?findDirection(M,M.state.selection.from)=="ltr"?1:-1:1;return selectHorizontally(M,B,N)||skipIgnoredNodes(M,B)}else{if(I==38||mac$3&&I==80&&N=="c")return selectVertically(M,-1,N)||skipIgnoredNodes(M,-1);if(I==40||mac$3&&I==78&&N=="c")return safariDownArrowBug(M)||selectVertically(M,1,N)||skipIgnoredNodes(M,1);if(N==(mac$3?"m":"c")&&(I==66||I==73||I==89||I==90))return!0}return!1}function serializeForClipboard(M,$){M.someProp("transformCopied",ee=>{$=ee($,M)});let I=[],{content:N,openStart:B,openEnd:j}=$;for(;B>1&&j>1&&N.childCount==1&&N.firstChild.childCount==1;){B--,j--;let ee=N.firstChild;I.push(ee.type.name,ee.attrs!=ee.type.defaultAttrs?ee.attrs:null),N=ee.content}let U=M.someProp("clipboardSerializer")||DOMSerializer.fromSchema(M.state.schema),q=detachedDoc(),Y=q.createElement("div");Y.appendChild(U.serializeFragment(N,{document:q}));let K=Y.firstChild,G,J=0;for(;K&&K.nodeType==1&&(G=wrapMap[K.nodeName.toLowerCase()]);){for(let ee=G.length-1;ee>=0;ee--){let te=q.createElement(G[ee]);for(;Y.firstChild;)te.appendChild(Y.firstChild);Y.appendChild(te),J++}K=Y.firstChild}K&&K.nodeType==1&&K.setAttribute("data-pm-slice",`${B} ${j}${J?` -${J}`:""} ${JSON.stringify(I)}`);let Z=M.someProp("clipboardTextSerializer",ee=>ee($,M))||$.content.textBetween(0,$.content.size,` `);return{dom:Y,text:Z,slice:$}}function parseFromClipboard(M,$,I,N,B){let j=B.parent.type.spec.code,U,q;if(!I&&!$)return null;let Y=$&&(N||j||!I);if(Y){if(M.someProp("transformPastedText",Z=>{$=Z($,j||N,M)}),j)return $?new Slice(Fragment.from(M.state.schema.text($.replace(/\r\n?/g,` `))),0,0):Slice.empty;let J=M.someProp("clipboardTextParser",Z=>Z($,B,N,M));if(J)q=J;else{let Z=B.marks(),{schema:ee}=M.state,te=DOMSerializer.fromSchema(ee);U=document.createElement("div"),$.split(/(?:\r\n?|\n)+/).forEach(se=>{let re=U.appendChild(document.createElement("p"));se&&re.appendChild(te.serializeNode(ee.text(se,Z)))})}}else M.someProp("transformPastedHTML",J=>{I=J(I,M)}),U=readHTML(I),webkit&&restoreReplacedSpaces(U);let K=U&&U.querySelector("[data-pm-slice]"),G=K&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(K.getAttribute("data-pm-slice")||"");if(G&&G[3])for(let J=+G[3];J>0;J--){let Z=U.firstChild;for(;Z&&Z.nodeType!=1;)Z=Z.nextSibling;if(!Z)break;U=Z}if(q||(q=(M.someProp("clipboardParser")||M.someProp("domParser")||DOMParser.fromSchema(M.state.schema)).parseSlice(U,{preserveWhitespace:!!(Y||G),context:B,ruleFromNode(Z){return Z.nodeName=="BR"&&!Z.nextSibling&&Z.parentNode&&!inlineParents.test(Z.parentNode.nodeName)?{ignore:!0}:null}})),G)q=addContext(closeSlice(q,+G[1],+G[2]),G[4]);else if(q=Slice.maxOpen(normalizeSiblings(q.content,B),!0),q.openStart||q.openEnd){let J=0,Z=0;for(let ee=q.content.firstChild;J<q.openStart&&!ee.type.spec.isolating;J++,ee=ee.firstChild);for(let ee=q.content.lastChild;Z<q.openEnd&&!ee.type.spec.isolating;Z++,ee=ee.lastChild);q=closeSlice(q,J,Z)}return M.someProp("transformPasted",J=>{q=J(q,M)}),q}const inlineParents=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function normalizeSiblings(M,$){if(M.childCount<2)return M;for(let I=$.depth;I>=0;I--){let B=$.node(I).contentMatchAt($.index(I)),j,U=[];if(M.forEach(q=>{if(!U)return;let Y=B.findWrapping(q.type),K;if(!Y)return U=null;if(K=U.length&&j.length&&addToSibling(Y,j,q,U[U.length-1],0))U[U.length-1]=K;else{U.length&&(U[U.length-1]=closeRight(U[U.length-1],j.length));let G=withWrappers(q,Y);U.push(G),B=B.matchType(G.type),j=Y}}),U)return Fragment.from(U)}return M}function withWrappers(M,$,I=0){for(let N=$.length-1;N>=I;N--)M=$[N].create(null,Fragment.from(M));return M}function addToSibling(M,$,I,N,B){if(B<M.length&&B<$.length&&M[B]==$[B]){let j=addToSibling(M,$,I,N.lastChild,B+1);if(j)return N.copy(N.content.replaceChild(N.childCount-1,j));if(N.contentMatchAt(N.childCount).matchType(B==M.length-1?I.type:M[B+1]))return N.copy(N.content.append(Fragment.from(withWrappers(I,M,B+1))))}}function closeRight(M,$){if($==0)return M;let I=M.content.replaceChild(M.childCount-1,closeRight(M.lastChild,$-1)),N=M.contentMatchAt(M.childCount).fillBefore(Fragment.empty,!0);return M.copy(I.append(N))}function closeRange(M,$,I,N,B,j){let U=$<0?M.firstChild:M.lastChild,q=U.content;return M.childCount>1&&(j=0),B<N-1&&(q=closeRange(q,$,I,N,B+1,j)),B>=I&&(q=$<0?U.contentMatchAt(0).fillBefore(q,j<=B).append(q):q.append(U.contentMatchAt(U.childCount).fillBefore(Fragment.empty,!0))),M.replaceChild($<0?0:M.childCount-1,U.copy(q))}function closeSlice(M,$,I){return $<M.openStart&&(M=new Slice(closeRange(M.content,-1,$,M.openStart,0,M.openEnd),$,M.openEnd)),I<M.openEnd&&(M=new Slice(closeRange(M.content,1,I,M.openEnd,0,0),M.openStart,I)),M}const wrapMap={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let _detachedDoc=null;function detachedDoc(){return _detachedDoc||(_detachedDoc=document.implementation.createHTMLDocument("title"))}function maybeWrapTrusted(M){let $=window.trustedTypes;return $?$.createPolicy("detachedDocument",{createHTML:I=>I}).createHTML(M):M}function readHTML(M){let $=/^(\s*<meta [^>]*>)*/.exec(M);$&&(M=M.slice($[0].length));let I=detachedDoc().createElement("div"),N=/<([a-z][^>\s]+)/i.exec(M),B;if((B=N&&wrapMap[N[1].toLowerCase()])&&(M=B.map(j=>"<"+j+">").join("")+M+B.map(j=>"</"+j+">").reverse().join("")),I.innerHTML=maybeWrapTrusted(M),B)for(let j=0;j<B.length;j++)I=I.querySelector(B[j])||I;return I}function restoreReplacedSpaces(M){let $=M.querySelectorAll(chrome?"span:not([class]):not([style])":"span.Apple-converted-space");for(let I=0;I<$.length;I++){let N=$[I];N.childNodes.length==1&&N.textContent==" "&&N.parentNode&&N.parentNode.replaceChild(M.ownerDocument.createTextNode(" "),N)}}function addContext(M,$){if(!M.size)return M;let I=M.content.firstChild.type.schema,N;try{N=JSON.parse($)}catch{return M}let{content:B,openStart:j,openEnd:U}=M;for(let q=N.length-2;q>=0;q-=2){let Y=I.nodes[N[q]];if(!Y||Y.hasRequiredAttrs())break;B=Fragment.from(Y.create(N[q+1],B)),j++,U++}return new Slice(B,j,U)}const handlers={},editHandlers={},passiveHandlers={touchstart:!0,touchmove:!0};class InputState{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function initInput(M){for(let $ in handlers){let I=handlers[$];M.dom.addEventListener($,M.input.eventHandlers[$]=N=>{eventBelongsToView(M,N)&&!runCustomHandler(M,N)&&(M.editable||!(N.type in editHandlers))&&I(M,N)},passiveHandlers[$]?{passive:!0}:void 0)}safari&&M.dom.addEventListener("input",()=>null),ensureListeners(M)}function setSelectionOrigin(M,$){M.input.lastSelectionOrigin=$,M.input.lastSelectionTime=Date.now()}function destroyInput(M){M.domObserver.stop();for(let $ in M.input.eventHandlers)M.dom.removeEventListener($,M.input.eventHandlers[$]);clearTimeout(M.input.composingTimeout),clearTimeout(M.input.lastIOSEnterFallbackTimeout)}function ensureListeners(M){M.someProp("handleDOMEvents",$=>{for(let I in $)M.input.eventHandlers[I]||M.dom.addEventListener(I,M.input.eventHandlers[I]=N=>runCustomHandler(M,N))})}function runCustomHandler(M,$){return M.someProp("handleDOMEvents",I=>{let N=I[$.type];return N?N(M,$)||$.defaultPrevented:!1})}function eventBelongsToView(M,$){if(!$.bubbles)return!0;if($.defaultPrevented)return!1;for(let I=$.target;I!=M.dom;I=I.parentNode)if(!I||I.nodeType==11||I.pmViewDesc&&I.pmViewDesc.stopEvent($))return!1;return!0}function dispatchEvent(M,$){!runCustomHandler(M,$)&&handlers[$.type]&&(M.editable||!($.type in editHandlers))&&handlers[$.type](M,$)}editHandlers.keydown=(M,$)=>{let I=$;if(M.input.shiftKey=I.keyCode==16||I.shiftKey,!inOrNearComposition(M,I)&&(M.input.lastKeyCode=I.keyCode,M.input.lastKeyCodeTime=Date.now(),!(android&&chrome&&I.keyCode==13)))if(M.domObserver.selectionChanged(M.domSelectionRange())?M.domObserver.flush():I.keyCode!=229&&M.domObserver.forceFlush(),ios&&I.keyCode==13&&!I.ctrlKey&&!I.altKey&&!I.metaKey){let N=Date.now();M.input.lastIOSEnter=N,M.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{M.input.lastIOSEnter==N&&(M.someProp("handleKeyDown",B=>B(M,keyEvent(13,"Enter"))),M.input.lastIOSEnter=0)},200)}else M.someProp("handleKeyDown",N=>N(M,I))||captureKeyDown(M,I)?I.preventDefault():setSelectionOrigin(M,"key")};editHandlers.keyup=(M,$)=>{$.keyCode==16&&(M.input.shiftKey=!1)};editHandlers.keypress=(M,$)=>{let I=$;if(inOrNearComposition(M,I)||!I.charCode||I.ctrlKey&&!I.altKey||mac$3&&I.metaKey)return;if(M.someProp("handleKeyPress",B=>B(M,I))){I.preventDefault();return}let N=M.state.selection;if(!(N instanceof TextSelection)||!N.$from.sameParent(N.$to)){let B=String.fromCharCode(I.charCode);!/[\r\n]/.test(B)&&!M.someProp("handleTextInput",j=>j(M,N.$from.pos,N.$to.pos,B))&&M.dispatch(M.state.tr.insertText(B).scrollIntoView()),I.preventDefault()}};function eventCoords(M){return{left:M.clientX,top:M.clientY}}function isNear(M,$){let I=$.x-M.clientX,N=$.y-M.clientY;return I*I+N*N<100}function runHandlerOnContext(M,$,I,N,B){if(N==-1)return!1;let j=M.state.doc.resolve(N);for(let U=j.depth+1;U>0;U--)if(M.someProp($,q=>U>j.depth?q(M,I,j.nodeAfter,j.before(U),B,!0):q(M,I,j.node(U),j.before(U),B,!1)))return!0;return!1}function updateSelection(M,$,I){if(M.focused||M.focus(),M.state.selection.eq($))return;let N=M.state.tr.setSelection($);I=="pointer"&&N.setMeta("pointer",!0),M.dispatch(N)}function selectClickedLeaf(M,$){if($==-1)return!1;let I=M.state.doc.resolve($),N=I.nodeAfter;return N&&N.isAtom&&NodeSelection.isSelectable(N)?(updateSelection(M,new NodeSelection(I),"pointer"),!0):!1}function selectClickedNode(M,$){if($==-1)return!1;let I=M.state.selection,N,B;I instanceof NodeSelection&&(N=I.node);let j=M.state.doc.resolve($);for(let U=j.depth+1;U>0;U--){let q=U>j.depth?j.nodeAfter:j.node(U);if(NodeSelection.isSelectable(q)){N&&I.$from.depth>0&&U>=I.$from.depth&&j.before(I.$from.depth+1)==I.$from.pos?B=j.before(I.$from.depth):B=j.before(U);break}}return B!=null?(updateSelection(M,NodeSelection.create(M.state.doc,B),"pointer"),!0):!1}function handleSingleClick(M,$,I,N,B){return runHandlerOnContext(M,"handleClickOn",$,I,N)||M.someProp("handleClick",j=>j(M,$,N))||(B?selectClickedNode(M,I):selectClickedLeaf(M,I))}function handleDoubleClick(M,$,I,N){return runHandlerOnContext(M,"handleDoubleClickOn",$,I,N)||M.someProp("handleDoubleClick",B=>B(M,$,N))}function handleTripleClick$1(M,$,I,N){return runHandlerOnContext(M,"handleTripleClickOn",$,I,N)||M.someProp("handleTripleClick",B=>B(M,$,N))||defaultTripleClick(M,I,N)}function defaultTripleClick(M,$,I){if(I.button!=0)return!1;let N=M.state.doc;if($==-1)return N.inlineContent?(updateSelection(M,TextSelection.create(N,0,N.content.size),"pointer"),!0):!1;let B=N.resolve($);for(let j=B.depth+1;j>0;j--){let U=j>B.depth?B.nodeAfter:B.node(j),q=B.before(j);if(U.inlineContent)updateSelection(M,TextSelection.create(N,q+1,q+1+U.content.size),"pointer");else if(NodeSelection.isSelectable(U))updateSelection(M,NodeSelection.create(N,q),"pointer");else continue;return!0}}function forceDOMFlush(M){return endComposition(M)}const selectNodeModifier=mac$3?"metaKey":"ctrlKey";handlers.mousedown=(M,$)=>{let I=$;M.input.shiftKey=I.shiftKey;let N=forceDOMFlush(M),B=Date.now(),j="singleClick";B-M.input.lastClick.time<500&&isNear(I,M.input.lastClick)&&!I[selectNodeModifier]&&(M.input.lastClick.type=="singleClick"?j="doubleClick":M.input.lastClick.type=="doubleClick"&&(j="tripleClick")),M.input.lastClick={time:B,x:I.clientX,y:I.clientY,type:j};let U=M.posAtCoords(eventCoords(I));U&&(j=="singleClick"?(M.input.mouseDown&&M.input.mouseDown.done(),M.input.mouseDown=new MouseDown(M,U,I,!!N)):(j=="doubleClick"?handleDoubleClick:handleTripleClick$1)(M,U.pos,U.inside,I)?I.preventDefault():setSelectionOrigin(M,"pointer"))};class MouseDown{constructor($,I,N,B){this.view=$,this.pos=I,this.event=N,this.flushed=B,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=$.state.doc,this.selectNode=!!N[selectNodeModifier],this.allowDefault=N.shiftKey;let j,U;if(I.inside>-1)j=$.state.doc.nodeAt(I.inside),U=I.inside;else{let G=$.state.doc.resolve(I.pos);j=G.parent,U=G.depth?G.before():0}const q=B?null:N.target,Y=q?$.docView.nearestDesc(q,!0):null;this.target=Y&&Y.dom.nodeType==1?Y.dom:null;let{selection:K}=$.state;(N.button==0&&j.type.spec.draggable&&j.type.spec.selectable!==!1||K instanceof NodeSelection&&K.from<=U&&K.to>U)&&(this.mightDrag={node:j,pos:U,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&gecko&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),$.root.addEventListener("mouseup",this.up=this.up.bind(this)),$.root.addEventListener("mousemove",this.move=this.move.bind(this)),setSelectionOrigin($,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>selectionToDOM(this.view)),this.view.input.mouseDown=null}up($){if(this.done(),!this.view.dom.contains($.target))return;let I=this.pos;this.view.state.doc!=this.startDoc&&(I=this.view.posAtCoords(eventCoords($))),this.updateAllowDefault($),this.allowDefault||!I?setSelectionOrigin(this.view,"pointer"):handleSingleClick(this.view,I.pos,I.inside,$,this.selectNode)?$.preventDefault():$.button==0&&(this.flushed||safari&&this.mightDrag&&!this.mightDrag.node.isAtom||chrome&&!this.view.state.selection.visible&&Math.min(Math.abs(I.pos-this.view.state.selection.from),Math.abs(I.pos-this.view.state.selection.to))<=2)?(updateSelection(this.view,Selection.near(this.view.state.doc.resolve(I.pos)),"pointer"),$.preventDefault()):setSelectionOrigin(this.view,"pointer")}move($){this.updateAllowDefault($),setSelectionOrigin(this.view,"pointer"),$.buttons==0&&this.done()}updateAllowDefault($){!this.allowDefault&&(Math.abs(this.event.x-$.clientX)>4||Math.abs(this.event.y-$.clientY)>4)&&(this.allowDefault=!0)}}handlers.touchstart=M=>{M.input.lastTouch=Date.now(),forceDOMFlush(M),setSelectionOrigin(M,"pointer")};handlers.touchmove=M=>{M.input.lastTouch=Date.now(),setSelectionOrigin(M,"pointer")};handlers.contextmenu=M=>forceDOMFlush(M);function inOrNearComposition(M,$){return M.composing?!0:safari&&Math.abs($.timeStamp-M.input.compositionEndedAt)<500?(M.input.compositionEndedAt=-2e8,!0):!1}const timeoutComposition=android?5e3:-1;editHandlers.compositionstart=editHandlers.compositionupdate=M=>{if(!M.composing){M.domObserver.flush();let{state:$}=M,I=$.selection.$to;if($.selection instanceof TextSelection&&($.storedMarks||!I.textOffset&&I.parentOffset&&I.nodeBefore.marks.some(N=>N.type.spec.inclusive===!1)))M.markCursor=M.state.storedMarks||I.marks(),endComposition(M,!0),M.markCursor=null;else if(endComposition(M,!$.selection.empty),gecko&&$.selection.empty&&I.parentOffset&&!I.textOffset&&I.nodeBefore.marks.length){let N=M.domSelectionRange();for(let B=N.focusNode,j=N.focusOffset;B&&B.nodeType==1&&j!=0;){let U=j<0?B.lastChild:B.childNodes[j-1];if(!U)break;if(U.nodeType==3){let q=M.domSelection();q&&q.collapse(U,U.nodeValue.length);break}else B=U,j=-1}}M.input.composing=!0}scheduleComposeEnd(M,timeoutComposition)};editHandlers.compositionend=(M,$)=>{M.composing&&(M.input.composing=!1,M.input.compositionEndedAt=$.timeStamp,M.input.compositionPendingChanges=M.domObserver.pendingRecords().length?M.input.compositionID:0,M.input.compositionNode=null,M.input.compositionPendingChanges&&Promise.resolve().then(()=>M.domObserver.flush()),M.input.compositionID++,scheduleComposeEnd(M,20))};function scheduleComposeEnd(M,$){clearTimeout(M.input.composingTimeout),$>-1&&(M.input.composingTimeout=setTimeout(()=>endComposition(M),$))}function clearComposition(M){for(M.composing&&(M.input.composing=!1,M.input.compositionEndedAt=timestampFromCustomEvent());M.input.compositionNodes.length>0;)M.input.compositionNodes.pop().markParentsDirty()}function findCompositionNode(M){let $=M.domSelectionRange();if(!$.focusNode)return null;let I=textNodeBefore$1($.focusNode,$.focusOffset),N=textNodeAfter$1($.focusNode,$.focusOffset);if(I&&N&&I!=N){let B=N.pmViewDesc,j=M.domObserver.lastChangedTextNode;if(I==j||N==j)return j;if(!B||!B.isText(N.nodeValue))return N;if(M.input.compositionNode==N){let U=I.pmViewDesc;if(!(!U||!U.isText(I.nodeValue)))return N}}return I||N}function timestampFromCustomEvent(){let M=document.createEvent("Event");return M.initEvent("event",!0,!0),M.timeStamp}function endComposition(M,$=!1){if(!(android&&M.domObserver.flushingSoon>=0)){if(M.domObserver.forceFlush(),clearComposition(M),$||M.docView&&M.docView.dirty){let I=selectionFromDOM(M);return I&&!I.eq(M.state.selection)?M.dispatch(M.state.tr.setSelection(I)):(M.markCursor||$)&&!M.state.selection.empty?M.dispatch(M.state.tr.deleteSelection()):M.updateState(M.state),!0}return!1}}function captureCopy(M,$){if(!M.dom.parentNode)return;let I=M.dom.parentNode.appendChild(document.createElement("div"));I.appendChild($),I.style.cssText="position: fixed; left: -10000px; top: 10px";let N=getSelection(),B=document.createRange();B.selectNodeContents($),M.dom.blur(),N.removeAllRanges(),N.addRange(B),setTimeout(()=>{I.parentNode&&I.parentNode.removeChild(I),M.focus()},50)}const brokenClipboardAPI=ie$1&&ie_version<15||ios&&webkit_version<604;handlers.copy=editHandlers.cut=(M,$)=>{let I=$,N=M.state.selection,B=I.type=="cut";if(N.empty)return;let j=brokenClipboardAPI?null:I.clipboardData,U=N.content(),{dom:q,text:Y}=serializeForClipboard(M,U);j?(I.preventDefault(),j.clearData(),j.setData("text/html",q.innerHTML),j.setData("text/plain",Y)):captureCopy(M,q),B&&M.dispatch(M.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function sliceSingleNode(M){return M.openStart==0&&M.openEnd==0&&M.content.childCount==1?M.content.firstChild:null}function capturePaste(M,$){if(!M.dom.parentNode)return;let I=M.input.shiftKey||M.state.selection.$from.parent.type.spec.code,N=M.dom.parentNode.appendChild(document.createElement(I?"textarea":"div"));I||(N.contentEditable="true"),N.style.cssText="position: fixed; left: -10000px; top: 10px",N.focus();let B=M.input.shiftKey&&M.input.lastKeyCode!=45;setTimeout(()=>{M.focus(),N.parentNode&&N.parentNode.removeChild(N),I?doPaste(M,N.value,null,B,$):doPaste(M,N.textContent,N.innerHTML,B,$)},50)}function doPaste(M,$,I,N,B){let j=parseFromClipboard(M,$,I,N,M.state.selection.$from);if(M.someProp("handlePaste",Y=>Y(M,B,j||Slice.empty)))return!0;if(!j)return!1;let U=sliceSingleNode(j),q=U?M.state.tr.replaceSelectionWith(U,N):M.state.tr.replaceSelection(j);return M.dispatch(q.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function getText$1(M){let $=M.getData("text/plain")||M.getData("Text");if($)return $;let I=M.getData("text/uri-list");return I?I.replace(/\r?\n/g," "):""}editHandlers.paste=(M,$)=>{let I=$;if(M.composing&&!android)return;let N=brokenClipboardAPI?null:I.clipboardData,B=M.input.shiftKey&&M.input.lastKeyCode!=45;N&&doPaste(M,getText$1(N),N.getData("text/html"),B,I)?I.preventDefault():capturePaste(M,I)};class Dragging{constructor($,I,N){this.slice=$,this.move=I,this.node=N}}const dragCopyModifier=mac$3?"altKey":"ctrlKey";handlers.dragstart=(M,$)=>{let I=$,N=M.input.mouseDown;if(N&&N.done(),!I.dataTransfer)return;let B=M.state.selection,j=B.empty?null:M.posAtCoords(eventCoords(I)),U;if(!(j&&j.pos>=B.from&&j.pos<=(B instanceof NodeSelection?B.to-1:B.to))){if(N&&N.mightDrag)U=NodeSelection.create(M.state.doc,N.mightDrag.pos);else if(I.target&&I.target.nodeType==1){let J=M.docView.nearestDesc(I.target,!0);J&&J.node.type.spec.draggable&&J!=M.docView&&(U=NodeSelection.create(M.state.doc,J.posBefore))}}let q=(U||M.state.selection).content(),{dom:Y,text:K,slice:G}=serializeForClipboard(M,q);(!I.dataTransfer.files.length||!chrome||chrome_version>120)&&I.dataTransfer.clearData(),I.dataTransfer.setData(brokenClipboardAPI?"Text":"text/html",Y.innerHTML),I.dataTransfer.effectAllowed="copyMove",brokenClipboardAPI||I.dataTransfer.setData("text/plain",K),M.dragging=new Dragging(G,!I[dragCopyModifier],U)};handlers.dragend=M=>{let $=M.dragging;window.setTimeout(()=>{M.dragging==$&&(M.dragging=null)},50)};editHandlers.dragover=editHandlers.dragenter=(M,$)=>$.preventDefault();editHandlers.drop=(M,$)=>{let I=$,N=M.dragging;if(M.dragging=null,!I.dataTransfer)return;let B=M.posAtCoords(eventCoords(I));if(!B)return;let j=M.state.doc.resolve(B.pos),U=N&&N.slice;U?M.someProp("transformPasted",te=>{U=te(U,M)}):U=parseFromClipboard(M,getText$1(I.dataTransfer),brokenClipboardAPI?null:I.dataTransfer.getData("text/html"),!1,j);let q=!!(N&&!I[dragCopyModifier]);if(M.someProp("handleDrop",te=>te(M,I,U||Slice.empty,q))){I.preventDefault();return}if(!U)return;I.preventDefault();let Y=U?dropPoint(M.state.doc,j.pos,U):j.pos;Y==null&&(Y=j.pos);let K=M.state.tr;if(q){let{node:te}=N;te?te.replace(K):K.deleteSelection()}let G=K.mapping.map(Y),J=U.openStart==0&&U.openEnd==0&&U.content.childCount==1,Z=K.doc;if(J?K.replaceRangeWith(G,G,U.content.firstChild):K.replaceRange(G,G,U),K.doc.eq(Z))return;let ee=K.doc.resolve(G);if(J&&NodeSelection.isSelectable(U.content.firstChild)&&ee.nodeAfter&&ee.nodeAfter.sameMarkup(U.content.firstChild))K.setSelection(new NodeSelection(ee));else{let te=K.mapping.map(Y);K.mapping.maps[K.mapping.maps.length-1].forEach((se,re,ne,ce)=>te=ce),K.setSelection(selectionBetween(M,ee,K.doc.resolve(te)))}M.focus(),M.dispatch(K.setMeta("uiEvent","drop"))};handlers.focus=M=>{M.input.lastFocus=Date.now(),M.focused||(M.domObserver.stop(),M.dom.classList.add("ProseMirror-focused"),M.domObserver.start(),M.focused=!0,setTimeout(()=>{M.docView&&M.hasFocus()&&!M.domObserver.currentSelection.eq(M.domSelectionRange())&&selectionToDOM(M)},20))};handlers.blur=(M,$)=>{let I=$;M.focused&&(M.domObserver.stop(),M.dom.classList.remove("ProseMirror-focused"),M.domObserver.start(),I.relatedTarget&&M.dom.contains(I.relatedTarget)&&M.domObserver.currentSelection.clear(),M.focused=!1)};handlers.beforeinput=(M,$)=>{if(chrome&&android&&$.inputType=="deleteContentBackward"){M.domObserver.flushSoon();let{domChangeCount:N}=M.input;setTimeout(()=>{if(M.input.domChangeCount!=N||(M.dom.blur(),M.focus(),M.someProp("handleKeyDown",j=>j(M,keyEvent(8,"Backspace")))))return;let{$cursor:B}=M.state.selection;B&&B.pos>0&&M.dispatch(M.state.tr.delete(B.pos-1,B.pos).scrollIntoView())},50)}};for(let M in editHandlers)handlers[M]=editHandlers[M];function compareObjs(M,$){if(M==$)return!0;for(let I in M)if(M[I]!==$[I])return!1;for(let I in $)if(!(I in M))return!1;return!0}class WidgetType{constructor($,I){this.toDOM=$,this.spec=I||noSpec,this.side=this.spec.side||0}map($,I,N,B){let{pos:j,deleted:U}=$.mapResult(I.from+B,this.side<0?-1:1);return U?null:new Decoration(j-N,j-N,this)}valid(){return!0}eq($){return this==$||$ instanceof WidgetType&&(this.spec.key&&this.spec.key==$.spec.key||this.toDOM==$.toDOM&&compareObjs(this.spec,$.spec))}destroy($){this.spec.destroy&&this.spec.destroy($)}}class InlineType{constructor($,I){this.attrs=$,this.spec=I||noSpec}map($,I,N,B){let j=$.map(I.from+B,this.spec.inclusiveStart?-1:1)-N,U=$.map(I.to+B,this.spec.inclusiveEnd?1:-1)-N;return j>=U?null:new Decoration(j,U,this)}valid($,I){return I.from<I.to}eq($){return this==$||$ instanceof InlineType&&compareObjs(this.attrs,$.attrs)&&compareObjs(this.spec,$.spec)}static is($){return $.type instanceof InlineType}destroy(){}}class NodeType{constructor($,I){this.attrs=$,this.spec=I||noSpec}map($,I,N,B){let j=$.mapResult(I.from+B,1);if(j.deleted)return null;let U=$.mapResult(I.to+B,-1);return U.deleted||U.pos<=j.pos?null:new Decoration(j.pos-N,U.pos-N,this)}valid($,I){let{index:N,offset:B}=$.content.findIndex(I.from),j;return B==I.from&&!(j=$.child(N)).isText&&B+j.nodeSize==I.to}eq($){return this==$||$ instanceof NodeType&&compareObjs(this.attrs,$.attrs)&&compareObjs(this.spec,$.spec)}destroy(){}}class Decoration{constructor($,I,N){this.from=$,this.to=I,this.type=N}copy($,I){return new Decoration($,I,this.type)}eq($,I=0){return this.type.eq($.type)&&this.from+I==$.from&&this.to+I==$.to}map($,I,N){return this.type.map($,this,I,N)}static widget($,I,N){return new Decoration($,$,new WidgetType(I,N))}static inline($,I,N,B){return new Decoration($,I,new InlineType(N,B))}static node($,I,N,B){return new Decoration($,I,new NodeType(N,B))}get spec(){return this.type.spec}get inline(){return this.type instanceof InlineType}get widget(){return this.type instanceof WidgetType}}const none=[],noSpec={};class DecorationSet{constructor($,I){this.local=$.length?$:none,this.children=I.length?I:none}static create($,I){return I.length?buildTree(I,$,0,noSpec):empty}find($,I,N){let B=[];return this.findInner($??0,I??1e9,B,0,N),B}findInner($,I,N,B,j){for(let U=0;U<this.local.length;U++){let q=this.local[U];q.from<=I&&q.to>=$&&(!j||j(q.spec))&&N.push(q.copy(q.from+B,q.to+B))}for(let U=0;U<this.children.length;U+=3)if(this.children[U]<I&&this.children[U+1]>$){let q=this.children[U]+1;this.children[U+2].findInner($-q,I-q,N,B+q,j)}}map($,I,N){return this==empty||$.maps.length==0?this:this.mapInner($,I,0,0,N||noSpec)}mapInner($,I,N,B,j){let U;for(let q=0;q<this.local.length;q++){let Y=this.local[q].map($,N,B);Y&&Y.type.valid(I,Y)?(U||(U=[])).push(Y):j.onRemove&&j.onRemove(this.local[q].spec)}return this.children.length?mapChildren(this.children,U||[],$,I,N,B,j):U?new DecorationSet(U.sort(byPos),none):empty}add($,I){return I.length?this==empty?DecorationSet.create($,I):this.addInner($,I,0):this}addInner($,I,N){let B,j=0;$.forEach((q,Y)=>{let K=Y+N,G;if(G=takeSpansForNode(I,q,K)){for(B||(B=this.children.slice());j<B.length&&B[j]<Y;)j+=3;B[j]==Y?B[j+2]=B[j+2].addInner(q,G,K+1):B.splice(j,0,Y,Y+q.nodeSize,buildTree(G,q,K+1,noSpec)),j+=3}});let U=moveSpans(j?withoutNulls(I):I,-N);for(let q=0;q<U.length;q++)U[q].type.valid($,U[q])||U.splice(q--,1);return new DecorationSet(U.length?this.local.concat(U).sort(byPos):this.local,B||this.children)}remove($){return $.length==0||this==empty?this:this.removeInner($,0)}removeInner($,I){let N=this.children,B=this.local;for(let j=0;j<N.length;j+=3){let U,q=N[j]+I,Y=N[j+1]+I;for(let G=0,J;G<$.length;G++)(J=$[G])&&J.from>q&&J.to<Y&&($[G]=null,(U||(U=[])).push(J));if(!U)continue;N==this.children&&(N=this.children.slice());let K=N[j+2].removeInner(U,q+1);K!=empty?N[j+2]=K:(N.splice(j,3),j-=3)}if(B.length){for(let j=0,U;j<$.length;j++)if(U=$[j])for(let q=0;q<B.length;q++)B[q].eq(U,I)&&(B==this.local&&(B=this.local.slice()),B.splice(q--,1))}return N==this.children&&B==this.local?this:B.length||N.length?new DecorationSet(B,N):empty}forChild($,I){if(this==empty)return this;if(I.isLeaf)return DecorationSet.empty;let N,B;for(let q=0;q<this.children.length;q+=3)if(this.children[q]>=$){this.children[q]==$&&(N=this.children[q+2]);break}let j=$+1,U=j+I.content.size;for(let q=0;q<this.local.length;q++){let Y=this.local[q];if(Y.from<U&&Y.to>j&&Y.type instanceof InlineType){let K=Math.max(j,Y.from)-j,G=Math.min(U,Y.to)-j;K<G&&(B||(B=[])).push(Y.copy(K,G))}}if(B){let q=new DecorationSet(B.sort(byPos),none);return N?new DecorationGroup([q,N]):q}return N||empty}eq($){if(this==$)return!0;if(!($ instanceof DecorationSet)||this.local.length!=$.local.length||this.children.length!=$.children.length)return!1;for(let I=0;I<this.local.length;I++)if(!this.local[I].eq($.local[I]))return!1;for(let I=0;I<this.children.length;I+=3)if(this.children[I]!=$.children[I]||this.children[I+1]!=$.children[I+1]||!this.children[I+2].eq($.children[I+2]))return!1;return!0}locals($){return removeOverlap(this.localsInner($))}localsInner($){if(this==empty)return none;if($.inlineContent||!this.local.some(InlineType.is))return this.local;let I=[];for(let N=0;N<this.local.length;N++)this.local[N].type instanceof InlineType||I.push(this.local[N]);return I}forEachSet($){$(this)}}DecorationSet.empty=new DecorationSet([],[]);DecorationSet.removeOverlap=removeOverlap;const empty=DecorationSet.empty;class DecorationGroup{constructor($){this.members=$}map($,I){const N=this.members.map(B=>B.map($,I,noSpec));return DecorationGroup.from(N)}forChild($,I){if(I.isLeaf)return DecorationSet.empty;let N=[];for(let B=0;B<this.members.length;B++){let j=this.members[B].forChild($,I);j!=empty&&(j instanceof DecorationGroup?N=N.concat(j.members):N.push(j))}return DecorationGroup.from(N)}eq($){if(!($ instanceof DecorationGroup)||$.members.length!=this.members.length)return!1;for(let I=0;I<this.members.length;I++)if(!this.members[I].eq($.members[I]))return!1;return!0}locals($){let I,N=!0;for(let B=0;B<this.members.length;B++){let j=this.members[B].localsInner($);if(j.length)if(!I)I=j;else{N&&(I=I.slice(),N=!1);for(let U=0;U<j.length;U++)I.push(j[U])}}return I?removeOverlap(N?I:I.sort(byPos)):none}static from($){switch($.length){case 0:return empty;case 1:return $[0];default:return new DecorationGroup($.every(I=>I instanceof DecorationSet)?$:$.reduce((I,N)=>I.concat(N instanceof DecorationSet?N:N.members),[]))}}forEachSet($){for(let I=0;I<this.members.length;I++)this.members[I].forEachSet($)}}function mapChildren(M,$,I,N,B,j,U){let q=M.slice();for(let K=0,G=j;K<I.maps.length;K++){let J=0;I.maps[K].forEach((Z,ee,te,se)=>{let re=se-te-(ee-Z);for(let ne=0;ne<q.length;ne+=3){let ce=q[ne+1];if(ce<0||Z>ce+G-J)continue;let me=q[ne]+G-J;ee>=me?q[ne+1]=Z<=me?-2:-1:Z>=G&&re&&(q[ne]+=re,q[ne+1]+=re)}J+=re}),G=I.maps[K].map(G,-1)}let Y=!1;for(let K=0;K<q.length;K+=3)if(q[K+1]<0){if(q[K+1]==-2){Y=!0,q[K+1]=-1;continue}let G=I.map(M[K]+j),J=G-B;if(J<0||J>=N.content.size){Y=!0;continue}let Z=I.map(M[K+1]+j,-1),ee=Z-B,{index:te,offset:se}=N.content.findIndex(J),re=N.maybeChild(te);if(re&&se==J&&se+re.nodeSize==ee){let ne=q[K+2].mapInner(I,re,G+1,M[K]+j+1,U);ne!=empty?(q[K]=J,q[K+1]=ee,q[K+2]=ne):(q[K+1]=-2,Y=!0)}else Y=!0}if(Y){let K=mapAndGatherRemainingDecorations(q,M,$,I,B,j,U),G=buildTree(K,N,0,U);$=G.local;for(let J=0;J<q.length;J+=3)q[J+1]<0&&(q.splice(J,3),J-=3);for(let J=0,Z=0;J<G.children.length;J+=3){let ee=G.children[J];for(;Z<q.length&&q[Z]<ee;)Z+=3;q.splice(Z,0,G.children[J],G.children[J+1],G.children[J+2])}}return new DecorationSet($.sort(byPos),q)}function moveSpans(M,$){if(!$||!M.length)return M;let I=[];for(let N=0;N<M.length;N++){let B=M[N];I.push(new Decoration(B.from+$,B.to+$,B.type))}return I}function mapAndGatherRemainingDecorations(M,$,I,N,B,j,U){function q(Y,K){for(let G=0;G<Y.local.length;G++){let J=Y.local[G].map(N,B,K);J?I.push(J):U.onRemove&&U.onRemove(Y.local[G].spec)}for(let G=0;G<Y.children.length;G+=3)q(Y.children[G+2],Y.children[G]+K+1)}for(let Y=0;Y<M.length;Y+=3)M[Y+1]==-1&&q(M[Y+2],$[Y]+j+1);return I}function takeSpansForNode(M,$,I){if($.isLeaf)return null;let N=I+$.nodeSize,B=null;for(let j=0,U;j<M.length;j++)(U=M[j])&&U.from>I&&U.to<N&&((B||(B=[])).push(U),M[j]=null);return B}function withoutNulls(M){let $=[];for(let I=0;I<M.length;I++)M[I]!=null&&$.push(M[I]);return $}function buildTree(M,$,I,N){let B=[],j=!1;$.forEach((q,Y)=>{let K=takeSpansForNode(M,q,Y+I);if(K){j=!0;let G=buildTree(K,q,I+Y+1,N);G!=empty&&B.push(Y,Y+q.nodeSize,G)}});let U=moveSpans(j?withoutNulls(M):M,-I).sort(byPos);for(let q=0;q<U.length;q++)U[q].type.valid($,U[q])||(N.onRemove&&N.onRemove(U[q].spec),U.splice(q--,1));return U.length||B.length?new DecorationSet(U,B):empty}function byPos(M,$){return M.from-$.from||M.to-$.to}function removeOverlap(M){let $=M;for(let I=0;I<$.length-1;I++){let N=$[I];if(N.from!=N.to)for(let B=I+1;B<$.length;B++){let j=$[B];if(j.from==N.from){j.to!=N.to&&($==M&&($=M.slice()),$[B]=j.copy(j.from,N.to),insertAhead($,B+1,j.copy(N.to,j.to)));continue}else{j.from<N.to&&($==M&&($=M.slice()),$[I]=N.copy(N.from,j.from),insertAhead($,B,N.copy(j.from,N.to)));break}}}return $}function insertAhead(M,$,I){for(;$<M.length&&byPos(I,M[$])>0;)$++;M.splice($,0,I)}function viewDecorations(M){let $=[];return M.someProp("decorations",I=>{let N=I(M.state);N&&N!=empty&&$.push(N)}),M.cursorWrapper&&$.push(DecorationSet.create(M.state.doc,[M.cursorWrapper.deco])),DecorationGroup.from($)}const observeOptions={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},useCharData=ie$1&&ie_version<=11;class SelectionState{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set($){this.anchorNode=$.anchorNode,this.anchorOffset=$.anchorOffset,this.focusNode=$.focusNode,this.focusOffset=$.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq($){return $.anchorNode==this.anchorNode&&$.anchorOffset==this.anchorOffset&&$.focusNode==this.focusNode&&$.focusOffset==this.focusOffset}}class DOMObserver{constructor($,I){this.view=$,this.handleDOMChange=I,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new SelectionState,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(N=>{for(let B=0;B<N.length;B++)this.queue.push(N[B]);ie$1&&ie_version<=11&&N.some(B=>B.type=="childList"&&B.removedNodes.length||B.type=="characterData"&&B.oldValue.length>B.target.nodeValue.length)?this.flushSoon():this.flush()}),useCharData&&(this.onCharData=N=>{this.queue.push({target:N.target,type:"characterData",oldValue:N.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,observeOptions)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let $=this.observer.takeRecords();if($.length){for(let I=0;I<$.length;I++)this.queue.push($[I]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(hasFocusAndSelection(this.view)){if(this.suppressingSelectionUpdates)return selectionToDOM(this.view);if(ie$1&&ie_version<=11&&!this.view.state.selection.empty){let $=this.view.domSelectionRange();if($.focusNode&&isEquivalentPosition($.focusNode,$.focusOffset,$.anchorNode,$.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange($){if(!$.focusNode)return!0;let I=new Set,N;for(let j=$.focusNode;j;j=parentNode(j))I.add(j);for(let j=$.anchorNode;j;j=parentNode(j))if(I.has(j)){N=j;break}let B=N&&this.view.docView.nearestDesc(N);if(B&&B.ignoreMutation({type:"selection",target:N.nodeType==3?N.parentNode:N}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let $ of this.observer.takeRecords())this.queue.push($);return this.queue}selectionChanged($){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq($)&&hasFocusAndSelection(this.view)&&!this.ignoreSelectionChange($)}flush(){let{view:$}=this;if(!$.docView||this.flushingSoon>-1)return;let I=this.pendingRecords();I.length&&(this.queue=[]);let N=$.domSelectionRange(),B=this.selectionChanged(N),j=-1,U=-1,q=!1,Y=[];if($.editable)for(let G=0;G<I.length;G++){let J=this.registerMutation(I[G],Y);J&&(j=j<0?J.from:Math.min(J.from,j),U=U<0?J.to:Math.max(J.to,U),J.typeOver&&(q=!0))}if(gecko&&Y.length){let G=Y.filter(J=>J.nodeName=="BR");if(G.length==2){let[J,Z]=G;J.parentNode&&J.parentNode.parentNode==Z.parentNode?Z.remove():J.remove()}else{let{focusNode:J}=this.currentSelection;for(let Z of G){let ee=Z.parentNode;ee&&ee.nodeName=="LI"&&(!J||blockParent($,J)!=ee)&&Z.remove()}}}let K=null;j<0&&B&&$.input.lastFocus>Date.now()-200&&Math.max($.input.lastTouch,$.input.lastClick.time)<Date.now()-300&&selectionCollapsed(N)&&(K=selectionFromDOM($))&&K.eq(Selection.near($.state.doc.resolve(0),1))?($.input.lastFocus=0,selectionToDOM($),this.currentSelection.set(N),$.scrollToSelection()):(j>-1||B)&&(j>-1&&($.docView.markDirty(j,U),checkCSS($)),this.handleDOMChange(j,U,q,Y),$.docView&&$.docView.dirty?$.updateState($.state):this.currentSelection.eq(N)||selectionToDOM($),this.currentSelection.set(N))}registerMutation($,I){if(I.indexOf($.target)>-1)return null;let N=this.view.docView.nearestDesc($.target);if($.type=="attributes"&&(N==this.view.docView||$.attributeName=="contenteditable"||$.attributeName=="style"&&!$.oldValue&&!$.target.getAttribute("style"))||!N||N.ignoreMutation($))return null;if($.type=="childList"){for(let G=0;G<$.addedNodes.length;G++){let J=$.addedNodes[G];I.push(J),J.nodeType==3&&(this.lastChangedTextNode=J)}if(N.contentDOM&&N.contentDOM!=N.dom&&!N.contentDOM.contains($.target))return{from:N.posBefore,to:N.posAfter};let B=$.previousSibling,j=$.nextSibling;if(ie$1&&ie_version<=11&&$.addedNodes.length)for(let G=0;G<$.addedNodes.length;G++){let{previousSibling:J,nextSibling:Z}=$.addedNodes[G];(!J||Array.prototype.indexOf.call($.addedNodes,J)<0)&&(B=J),(!Z||Array.prototype.indexOf.call($.addedNodes,Z)<0)&&(j=Z)}let U=B&&B.parentNode==$.target?domIndex(B)+1:0,q=N.localPosFromDOM($.target,U,-1),Y=j&&j.parentNode==$.target?domIndex(j):$.target.childNodes.length,K=N.localPosFromDOM($.target,Y,1);return{from:q,to:K}}else return $.type=="attributes"?{from:N.posAtStart-N.border,to:N.posAtEnd+N.border}:(this.lastChangedTextNode=$.target,{from:N.posAtStart,to:N.posAtEnd,typeOver:$.target.nodeValue==$.oldValue})}}let cssChecked=new WeakMap,cssCheckWarned=!1;function checkCSS(M){if(!cssChecked.has(M)&&(cssChecked.set(M,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(M.dom).whiteSpace)!==-1)){if(M.requiresGeckoHackNode=gecko,cssCheckWarned)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),cssCheckWarned=!0}}function rangeToSelectionRange(M,$){let I=$.startContainer,N=$.startOffset,B=$.endContainer,j=$.endOffset,U=M.domAtPos(M.state.selection.anchor);return isEquivalentPosition(U.node,U.offset,B,j)&&([I,N,B,j]=[B,j,I,N]),{anchorNode:I,anchorOffset:N,focusNode:B,focusOffset:j}}function safariShadowSelectionRange(M,$){if($.getComposedRanges){let B=$.getComposedRanges(M.root)[0];if(B)return rangeToSelectionRange(M,B)}let I;function N(B){B.preventDefault(),B.stopImmediatePropagation(),I=B.getTargetRanges()[0]}return M.dom.addEventListener("beforeinput",N,!0),document.execCommand("indent"),M.dom.removeEventListener("beforeinput",N,!0),I?rangeToSelectionRange(M,I):null}function blockParent(M,$){for(let I=$.parentNode;I&&I!=M.dom;I=I.parentNode){let N=M.docView.nearestDesc(I,!0);if(N&&N.node.isBlock)return I}return null}function parseBetween(M,$,I){let{node:N,fromOffset:B,toOffset:j,from:U,to:q}=M.docView.parseRange($,I),Y=M.domSelectionRange(),K,G=Y.anchorNode;if(G&&M.dom.contains(G.nodeType==1?G:G.parentNode)&&(K=[{node:G,offset:Y.anchorOffset}],selectionCollapsed(Y)||K.push({node:Y.focusNode,offset:Y.focusOffset})),chrome&&M.input.lastKeyCode===8)for(let re=j;re>B;re--){let ne=N.childNodes[re-1],ce=ne.pmViewDesc;if(ne.nodeName=="BR"&&!ce){j=re;break}if(!ce||ce.size)break}let J=M.state.doc,Z=M.someProp("domParser")||DOMParser.fromSchema(M.state.schema),ee=J.resolve(U),te=null,se=Z.parse(N,{topNode:ee.parent,topMatch:ee.parent.contentMatchAt(ee.index()),topOpen:!0,from:B,to:j,preserveWhitespace:ee.parent.type.whitespace=="pre"?"full":!0,findPositions:K,ruleFromNode,context:ee});if(K&&K[0].pos!=null){let re=K[0].pos,ne=K[1]&&K[1].pos;ne==null&&(ne=re),te={anchor:re+U,head:ne+U}}return{doc:se,sel:te,from:U,to:q}}function ruleFromNode(M){let $=M.pmViewDesc;if($)return $.parseRule();if(M.nodeName=="BR"&&M.parentNode){if(safari&&/^(ul|ol)$/i.test(M.parentNode.nodeName)){let I=document.createElement("div");return I.appendChild(document.createElement("li")),{skip:I}}else if(M.parentNode.lastChild==M||safari&&/^(tr|table)$/i.test(M.parentNode.nodeName))return{ignore:!0}}else if(M.nodeName=="IMG"&&M.getAttribute("mark-placeholder"))return{ignore:!0};return null}const isInline=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function readDOMChange(M,$,I,N,B){let j=M.input.compositionPendingChanges||(M.composing?M.input.compositionID:0);if(M.input.compositionPendingChanges=0,$<0){let xe=M.input.lastSelectionTime>Date.now()-50?M.input.lastSelectionOrigin:null,le=selectionFromDOM(M,xe);if(le&&!M.state.selection.eq(le)){if(chrome&&android&&M.input.lastKeyCode===13&&Date.now()-100<M.input.lastKeyCodeTime&&M.someProp("handleKeyDown",ve=>ve(M,keyEvent(13,"Enter"))))return;let be=M.state.tr.setSelection(le);xe=="pointer"?be.setMeta("pointer",!0):xe=="key"&&be.scrollIntoView(),j&&be.setMeta("composition",j),M.dispatch(be)}return}let U=M.state.doc.resolve($),q=U.sharedDepth(I);$=U.before(q+1),I=M.state.doc.resolve(I).after(q+1);let Y=M.state.selection,K=parseBetween(M,$,I),G=M.state.doc,J=G.slice(K.from,K.to),Z,ee;M.input.lastKeyCode===8&&Date.now()-100<M.input.lastKeyCodeTime?(Z=M.state.selection.to,ee="end"):(Z=M.state.selection.from,ee="start"),M.input.lastKeyCode=null;let te=findDiff(J.content,K.doc.content,K.from,Z,ee);if(te&&M.input.domChangeCount++,(ios&&M.input.lastIOSEnter>Date.now()-225||android)&&B.some(xe=>xe.nodeType==1&&!isInline.test(xe.nodeName))&&(!te||te.endA>=te.endB)&&M.someProp("handleKeyDown",xe=>xe(M,keyEvent(13,"Enter")))){M.input.lastIOSEnter=0;return}if(!te)if(N&&Y instanceof TextSelection&&!Y.empty&&Y.$head.sameParent(Y.$anchor)&&!M.composing&&!(K.sel&&K.sel.anchor!=K.sel.head))te={start:Y.from,endA:Y.to,endB:Y.to};else{if(K.sel){let xe=resolveSelection(M,M.state.doc,K.sel);if(xe&&!xe.eq(M.state.selection)){let le=M.state.tr.setSelection(xe);j&&le.setMeta("composition",j),M.dispatch(le)}}return}M.state.selection.from<M.state.selection.to&&te.start==te.endB&&M.state.selection instanceof TextSelection&&(te.start>M.state.selection.from&&te.start<=M.state.selection.from+2&&M.state.selection.from>=K.from?te.start=M.state.selection.from:te.endA<M.state.selection.to&&te.endA>=M.state.selection.to-2&&M.state.selection.to<=K.to&&(te.endB+=M.state.selection.to-te.endA,te.endA=M.state.selection.to)),ie$1&&ie_version<=11&&te.endB==te.start+1&&te.endA==te.start&&te.start>K.from&&K.doc.textBetween(te.start-K.from-1,te.start-K.from+1)==" "&&(te.start--,te.endA--,te.endB--);let se=K.doc.resolveNoCache(te.start-K.from),re=K.doc.resolveNoCache(te.endB-K.from),ne=G.resolve(te.start),ce=se.sameParent(re)&&se.parent.inlineContent&&ne.end()>=te.endA,me;if((ios&&M.input.lastIOSEnter>Date.now()-225&&(!ce||B.some(xe=>xe.nodeName=="DIV"||xe.nodeName=="P"))||!ce&&se.pos<K.doc.content.size&&!se.sameParent(re)&&(me=Selection.findFrom(K.doc.resolve(se.pos+1),1,!0))&&me.head==re.pos)&&M.someProp("handleKeyDown",xe=>xe(M,keyEvent(13,"Enter")))){M.input.lastIOSEnter=0;return}if(M.state.selection.anchor>te.start&&looksLikeBackspace(G,te.start,te.endA,se,re)&&M.someProp("handleKeyDown",xe=>xe(M,keyEvent(8,"Backspace")))){android&&chrome&&M.domObserver.suppressSelectionUpdates();return}chrome&&android&&te.endB==te.start&&(M.input.lastAndroidDelete=Date.now()),android&&!ce&&se.start()!=re.start()&&re.parentOffset==0&&se.depth==re.depth&&K.sel&&K.sel.anchor==K.sel.head&&K.sel.head==te.endA&&(te.endB-=2,re=K.doc.resolveNoCache(te.endB-K.from),setTimeout(()=>{M.someProp("handleKeyDown",function(xe){return xe(M,keyEvent(13,"Enter"))})},20));let ue=te.start,_e=te.endA,fe,ge,ye;if(ce){if(se.pos==re.pos)ie$1&&ie_version<=11&&se.parentOffset==0&&(M.domObserver.suppressSelectionUpdates(),setTimeout(()=>selectionToDOM(M),20)),fe=M.state.tr.delete(ue,_e),ge=G.resolve(te.start).marksAcross(G.resolve(te.endA));else if(te.endA==te.endB&&(ye=isMarkChange(se.parent.content.cut(se.parentOffset,re.parentOffset),ne.parent.content.cut(ne.parentOffset,te.endA-ne.start()))))fe=M.state.tr,ye.type=="add"?fe.addMark(ue,_e,ye.mark):fe.removeMark(ue,_e,ye.mark);else if(se.parent.child(se.index()).isText&&se.index()==re.index()-(re.textOffset?0:1)){let xe=se.parent.textBetween(se.parentOffset,re.parentOffset);if(M.someProp("handleTextInput",le=>le(M,ue,_e,xe)))return;fe=M.state.tr.insertText(xe,ue,_e)}}if(fe||(fe=M.state.tr.replace(ue,_e,K.doc.slice(te.start-K.from,te.endB-K.from))),K.sel){let xe=resolveSelection(M,fe.doc,K.sel);xe&&!(chrome&&android&&M.composing&&xe.empty&&(te.start!=te.endB||M.input.lastAndroidDelete<Date.now()-100)&&(xe.head==ue||xe.head==fe.mapping.map(_e)-1)||ie$1&&xe.empty&&xe.head==ue)&&fe.setSelection(xe)}ge&&fe.ensureMarks(ge),j&&fe.setMeta("composition",j),M.dispatch(fe.scrollIntoView())}function resolveSelection(M,$,I){return Math.max(I.anchor,I.head)>$.content.size?null:selectionBetween(M,$.resolve(I.anchor),$.resolve(I.head))}function isMarkChange(M,$){let I=M.firstChild.marks,N=$.firstChild.marks,B=I,j=N,U,q,Y;for(let G=0;G<N.length;G++)B=N[G].removeFromSet(B);for(let G=0;G<I.length;G++)j=I[G].removeFromSet(j);if(B.length==1&&j.length==0)q=B[0],U="add",Y=G=>G.mark(q.addToSet(G.marks));else if(B.length==0&&j.length==1)q=j[0],U="remove",Y=G=>G.mark(q.removeFromSet(G.marks));else return null;let K=[];for(let G=0;G<$.childCount;G++)K.push(Y($.child(G)));if(Fragment.from(K).eq(M))return{mark:q,type:U}}function looksLikeBackspace(M,$,I,N,B){if(I-$<=B.pos-N.pos||skipClosingAndOpening(N,!0,!1)<B.pos)return!1;let j=M.resolve($);if(!N.parent.isTextblock){let q=j.nodeAfter;return q!=null&&I==$+q.nodeSize}if(j.parentOffset<j.parent.content.size||!j.parent.isTextblock)return!1;let U=M.resolve(skipClosingAndOpening(j,!0,!0));return!U.parent.isTextblock||U.pos>I||skipClosingAndOpening(U,!0,!1)<I?!1:N.parent.content.cut(N.parentOffset).eq(U.parent.content)}function skipClosingAndOpening(M,$,I){let N=M.depth,B=$?M.end():M.pos;for(;N>0&&($||M.indexAfter(N)==M.node(N).childCount);)N--,B++,$=!1;if(I){let j=M.node(N).maybeChild(M.indexAfter(N));for(;j&&!j.isLeaf;)j=j.firstChild,B++}return B}function findDiff(M,$,I,N,B){let j=M.findDiffStart($,I);if(j==null)return null;let{a:U,b:q}=M.findDiffEnd($,I+M.size,I+$.size);if(B=="end"){let Y=Math.max(0,j-Math.min(U,q));N-=U+Y-j}if(U<j&&M.size<$.size){let Y=N<=j&&N>=U?j-N:0;j-=Y,j&&j<$.size&&isSurrogatePair($.textBetween(j-1,j+1))&&(j+=Y?1:-1),q=j+(q-U),U=j}else if(q<j){let Y=N<=j&&N>=q?j-N:0;j-=Y,j&&j<M.size&&isSurrogatePair(M.textBetween(j-1,j+1))&&(j+=Y?1:-1),U=j+(U-q),q=j}return{start:j,endA:U,endB:q}}function isSurrogatePair(M){if(M.length!=2)return!1;let $=M.charCodeAt(0),I=M.charCodeAt(1);return $>=56320&&$<=57343&&I>=55296&&I<=56319}const __serializeForClipboard=serializeForClipboard,__parseFromClipboard=parseFromClipboard,__endComposition=endComposition;class EditorView{constructor($,I){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new InputState,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=I,this.state=I.state,this.directPlugins=I.plugins||[],this.directPlugins.forEach(checkStateComponent),this.dispatch=this.dispatch.bind(this),this.dom=$&&$.mount||document.createElement("div"),$&&($.appendChild?$.appendChild(this.dom):typeof $=="function"?$(this.dom):$.mount&&(this.mounted=!0)),this.editable=getEditable(this),updateCursorWrapper(this),this.nodeViews=buildNodeViews(this),this.docView=docViewDesc(this.state.doc,computeDocDeco(this),viewDecorations(this),this.dom,this),this.domObserver=new DOMObserver(this,(N,B,j,U)=>readDOMChange(this,N,B,j,U)),this.domObserver.start(),initInput(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let $=this._props;this._props={};for(let I in $)this._props[I]=$[I];this._props.state=this.state}return this._props}update($){$.handleDOMEvents!=this._props.handleDOMEvents&&ensureListeners(this);let I=this._props;this._props=$,$.plugins&&($.plugins.forEach(checkStateComponent),this.directPlugins=$.plugins),this.updateStateInner($.state,I)}setProps($){let I={};for(let N in this._props)I[N]=this._props[N];I.state=this.state;for(let N in $)I[N]=$[N];this.update(I)}updateState($){this.updateStateInner($,this._props)}updateStateInner($,I){var N;let B=this.state,j=!1,U=!1;$.storedMarks&&this.composing&&(clearComposition(this),U=!0),this.state=$;let q=B.plugins!=$.plugins||this._props.plugins!=I.plugins;if(q||this._props.plugins!=I.plugins||this._props.nodeViews!=I.nodeViews){let ee=buildNodeViews(this);changedNodeViews(ee,this.nodeViews)&&(this.nodeViews=ee,j=!0)}(q||I.handleDOMEvents!=this._props.handleDOMEvents)&&ensureListeners(this),this.editable=getEditable(this),updateCursorWrapper(this);let Y=viewDecorations(this),K=computeDocDeco(this),G=B.plugins!=$.plugins&&!B.doc.eq($.doc)?"reset":$.scrollToSelection>B.scrollToSelection?"to selection":"preserve",J=j||!this.docView.matchesNode($.doc,K,Y);(J||!$.selection.eq(B.selection))&&(U=!0);let Z=G=="preserve"&&U&&this.dom.style.overflowAnchor==null&&storeScrollPos(this);if(U){this.domObserver.stop();let ee=J&&(ie$1||chrome)&&!this.composing&&!B.selection.empty&&!$.selection.empty&&selectionContextChanged(B.selection,$.selection);if(J){let te=chrome?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=findCompositionNode(this)),(j||!this.docView.update($.doc,K,Y,this))&&(this.docView.updateOuterDeco(K),this.docView.destroy(),this.docView=docViewDesc($.doc,K,Y,this.dom,this)),te&&!this.trackWrites&&(ee=!0)}ee||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&anchorInRightPlace(this))?selectionToDOM(this,ee):(syncNodeSelection(this,$.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(B),!((N=this.dragging)===null||N===void 0)&&N.node&&!B.doc.eq($.doc)&&this.updateDraggedNode(this.dragging,B),G=="reset"?this.dom.scrollTop=0:G=="to selection"?this.scrollToSelection():Z&&resetScrollPos(Z)}scrollToSelection(){let $=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",I=>I(this)))if(this.state.selection instanceof NodeSelection){let I=this.docView.domAfterPos(this.state.selection.from);I.nodeType==1&&scrollRectIntoView(this,I.getBoundingClientRect(),$)}else scrollRectIntoView(this,this.coordsAtPos(this.state.selection.head,1),$)}destroyPluginViews(){let $;for(;$=this.pluginViews.pop();)$.destroy&&$.destroy()}updatePluginViews($){if(!$||$.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let I=0;I<this.directPlugins.length;I++){let N=this.directPlugins[I];N.spec.view&&this.pluginViews.push(N.spec.view(this))}for(let I=0;I<this.state.plugins.length;I++){let N=this.state.plugins[I];N.spec.view&&this.pluginViews.push(N.spec.view(this))}}else for(let I=0;I<this.pluginViews.length;I++){let N=this.pluginViews[I];N.update&&N.update(this,$)}}updateDraggedNode($,I){let N=$.node,B=-1;if(this.state.doc.nodeAt(N.from)==N.node)B=N.from;else{let j=N.from+(this.state.doc.content.size-I.doc.content.size);(j>0&&this.state.doc.nodeAt(j))==N.node&&(B=j)}this.dragging=new Dragging($.slice,$.move,B<0?void 0:NodeSelection.create(this.state.doc,B))}someProp($,I){let N=this._props&&this._props[$],B;if(N!=null&&(B=I?I(N):N))return B;for(let U=0;U<this.directPlugins.length;U++){let q=this.directPlugins[U].props[$];if(q!=null&&(B=I?I(q):q))return B}let j=this.state.plugins;if(j)for(let U=0;U<j.length;U++){let q=j[U].props[$];if(q!=null&&(B=I?I(q):q))return B}}hasFocus(){if(ie$1){let $=this.root.activeElement;if($==this.dom)return!0;if(!$||!this.dom.contains($))return!1;for(;$&&this.dom!=$&&this.dom.contains($);){if($.contentEditable=="false")return!1;$=$.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&focusPreventScroll(this.dom),selectionToDOM(this),this.domObserver.start()}get root(){let $=this._root;if($==null){for(let I=this.dom.parentNode;I;I=I.parentNode)if(I.nodeType==9||I.nodeType==11&&I.host)return I.getSelection||(Object.getPrototypeOf(I).getSelection=()=>I.ownerDocument.getSelection()),this._root=I}return $||document}updateRoot(){this._root=null}posAtCoords($){return posAtCoords(this,$)}coordsAtPos($,I=1){return coordsAtPos(this,$,I)}domAtPos($,I=0){return this.docView.domFromPos($,I)}nodeDOM($){let I=this.docView.descAt($);return I?I.nodeDOM:null}posAtDOM($,I,N=-1){let B=this.docView.posFromDOM($,I,N);if(B==null)throw new RangeError("DOM position not inside the editor");return B}endOfTextblock($,I){return endOfTextblock(this,I||this.state,$)}pasteHTML($,I){return doPaste(this,"",$,!1,I||new ClipboardEvent("paste"))}pasteText($,I){return doPaste(this,$,null,!0,I||new ClipboardEvent("paste"))}destroy(){this.docView&&(destroyInput(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],viewDecorations(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,clearReusedRange())}get isDestroyed(){return this.docView==null}dispatchEvent($){return dispatchEvent(this,$)}dispatch($){let I=this._props.dispatchTransaction;I?I.call(this,$):this.updateState(this.state.apply($))}domSelectionRange(){let $=this.domSelection();return $?safari&&this.root.nodeType===11&&deepActiveElement(this.dom.ownerDocument)==this.dom&&safariShadowSelectionRange(this,$)||$:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function computeDocDeco(M){let $=Object.create(null);return $.class="ProseMirror",$.contenteditable=String(M.editable),M.someProp("attributes",I=>{if(typeof I=="function"&&(I=I(M.state)),I)for(let N in I)N=="class"?$.class+=" "+I[N]:N=="style"?$.style=($.style?$.style+";":"")+I[N]:!$[N]&&N!="contenteditable"&&N!="nodeName"&&($[N]=String(I[N]))}),$.translate||($.translate="no"),[Decoration.node(0,M.state.doc.content.size,$)]}function updateCursorWrapper(M){if(M.markCursor){let $=document.createElement("img");$.className="ProseMirror-separator",$.setAttribute("mark-placeholder","true"),$.setAttribute("alt",""),M.cursorWrapper={dom:$,deco:Decoration.widget(M.state.selection.from,$,{raw:!0,marks:M.markCursor})}}else M.cursorWrapper=null}function getEditable(M){return!M.someProp("editable",$=>$(M.state)===!1)}function selectionContextChanged(M,$){let I=Math.min(M.$anchor.sharedDepth(M.head),$.$anchor.sharedDepth($.head));return M.$anchor.start(I)!=$.$anchor.start(I)}function buildNodeViews(M){let $=Object.create(null);function I(N){for(let B in N)Object.prototype.hasOwnProperty.call($,B)||($[B]=N[B])}return M.someProp("nodeViews",I),M.someProp("markViews",I),$}function changedNodeViews(M,$){let I=0,N=0;for(let B in M){if(M[B]!=$[B])return!0;I++}for(let B in $)N++;return I!=N}function checkStateComponent(M){if(M.spec.state||M.spec.filterTransaction||M.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}const view=Object.freeze(Object.defineProperty({__proto__:null,Decoration,DecorationSet,EditorView,__endComposition,__parseFromClipboard,__serializeForClipboard},Symbol.toStringTag,{value:"Module"}));var base={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},shift$1={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},mac$2=typeof navigator<"u"&&/Mac/.test(navigator.platform),ie=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var i$3=0;i$3<10;i$3++)base[48+i$3]=base[96+i$3]=String(i$3);for(var i$3=1;i$3<=24;i$3++)base[i$3+111]="F"+i$3;for(var i$3=65;i$3<=90;i$3++)base[i$3]=String.fromCharCode(i$3+32),shift$1[i$3]=String.fromCharCode(i$3);for(var code in base)shift$1.hasOwnProperty(code)||(shift$1[code]=base[code]);function keyName(M){var $=mac$2&&M.metaKey&&M.shiftKey&&!M.ctrlKey&&!M.altKey||ie&&M.shiftKey&&M.key&&M.key.length==1||M.key=="Unidentified",I=!$&&M.key||(M.shiftKey?shift$1:base)[M.keyCode]||M.key||"Unidentified";return I=="Esc"&&(I="Escape"),I=="Del"&&(I="Delete"),I=="Left"&&(I="ArrowLeft"),I=="Up"&&(I="ArrowUp"),I=="Right"&&(I="ArrowRight"),I=="Down"&&(I="ArrowDown"),I}const mac$1=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function normalizeKeyName$1(M){let $=M.split(/-(?!$)/),I=$[$.length-1];I=="Space"&&(I=" ");let N,B,j,U;for(let q=0;q<$.length-1;q++){let Y=$[q];if(/^(cmd|meta|m)$/i.test(Y))U=!0;else if(/^a(lt)?$/i.test(Y))N=!0;else if(/^(c|ctrl|control)$/i.test(Y))B=!0;else if(/^s(hift)?$/i.test(Y))j=!0;else if(/^mod$/i.test(Y))mac$1?U=!0:B=!0;else throw new Error("Unrecognized modifier name: "+Y)}return N&&(I="Alt-"+I),B&&(I="Ctrl-"+I),U&&(I="Meta-"+I),j&&(I="Shift-"+I),I}function normalize(M){let $=Object.create(null);for(let I in M)$[normalizeKeyName$1(I)]=M[I];return $}function modifiers(M,$,I=!0){return $.altKey&&(M="Alt-"+M),$.ctrlKey&&(M="Ctrl-"+M),$.metaKey&&(M="Meta-"+M),I&&$.shiftKey&&(M="Shift-"+M),M}function keymap(M){return new Plugin({props:{handleKeyDown:keydownHandler(M)}})}function keydownHandler(M){let $=normalize(M);return function(I,N){let B=keyName(N),j,U=$[modifiers(B,N)];if(U&&U(I.state,I.dispatch,I))return!0;if(B.length==1&&B!=" "){if(N.shiftKey){let q=$[modifiers(B,N,!1)];if(q&&q(I.state,I.dispatch,I))return!0}if((N.shiftKey||N.altKey||N.metaKey||B.charCodeAt(0)>127)&&(j=base[N.keyCode])&&j!=B){let q=$[modifiers(j,N)];if(q&&q(I.state,I.dispatch,I))return!0}}return!1}}const model=Object.freeze(Object.defineProperty({__proto__:null,ContentMatch,DOMParser,DOMSerializer,Fragment,Mark:Mark$1,MarkType,Node:Node$2,NodeRange,NodeType:NodeType$1,ReplaceError,ResolvedPos,Schema,Slice},Symbol.toStringTag,{value:"Module"})),deleteSelection$1=(M,$)=>M.selection.empty?!1:($&&$(M.tr.deleteSelection().scrollIntoView()),!0);function atBlockStart(M,$){let{$cursor:I}=M.selection;return!I||($?!$.endOfTextblock("backward",M):I.parentOffset>0)?null:I}const joinBackward$1=(M,$,I)=>{let N=atBlockStart(M,I);if(!N)return!1;let B=findCutBefore(N);if(!B){let U=N.blockRange(),q=U&&liftTarget(U);return q==null?!1:($&&$(M.tr.lift(U,q).scrollIntoView()),!0)}let j=B.nodeBefore;if(deleteBarrier(M,B,$,-1))return!0;if(N.parent.content.size==0&&(textblockAt(j,"end")||NodeSelection.isSelectable(j)))for(let U=N.depth;;U--){let q=replaceStep(M.doc,N.before(U),N.after(U),Slice.empty);if(q&&q.slice.size<q.to-q.from){if($){let Y=M.tr.step(q);Y.setSelection(textblockAt(j,"end")?Selection.findFrom(Y.doc.resolve(Y.mapping.map(B.pos,-1)),-1):NodeSelection.create(Y.doc,B.pos-j.nodeSize)),$(Y.scrollIntoView())}return!0}if(U==1||N.node(U-1).childCount>1)break}return j.isAtom&&B.depth==N.depth-1?($&&$(M.tr.delete(B.pos-j.nodeSize,B.pos).scrollIntoView()),!0):!1},joinTextblockBackward$1=(M,$,I)=>{let N=atBlockStart(M,I);if(!N)return!1;let B=findCutBefore(N);return B?joinTextblocksAround(M,B,$):!1},joinTextblockForward$1=(M,$,I)=>{let N=atBlockEnd(M,I);if(!N)return!1;let B=findCutAfter(N);return B?joinTextblocksAround(M,B,$):!1};function joinTextblocksAround(M,$,I){let N=$.nodeBefore,B=N,j=$.pos-1;for(;!B.isTextblock;j--){if(B.type.spec.isolating)return!1;let G=B.lastChild;if(!G)return!1;B=G}let U=$.nodeAfter,q=U,Y=$.pos+1;for(;!q.isTextblock;Y++){if(q.type.spec.isolating)return!1;let G=q.firstChild;if(!G)return!1;q=G}let K=replaceStep(M.doc,j,Y,Slice.empty);if(!K||K.from!=j||K instanceof ReplaceStep&&K.slice.size>=Y-j)return!1;if(I){let G=M.tr.step(K);G.setSelection(TextSelection.create(G.doc,j)),I(G.scrollIntoView())}return!0}function textblockAt(M,$,I=!1){for(let N=M;N;N=$=="start"?N.firstChild:N.lastChild){if(N.isTextblock)return!0;if(I&&N.childCount!=1)return!1}return!1}const selectNodeBackward$1=(M,$,I)=>{let{$head:N,empty:B}=M.selection,j=N;if(!B)return!1;if(N.parent.isTextblock){if(I?!I.endOfTextblock("backward",M):N.parentOffset>0)return!1;j=findCutBefore(N)}let U=j&&j.nodeBefore;return!U||!NodeSelection.isSelectable(U)?!1:($&&$(M.tr.setSelection(NodeSelection.create(M.doc,j.pos-U.nodeSize)).scrollIntoView()),!0)};function findCutBefore(M){if(!M.parent.type.spec.isolating)for(let $=M.depth-1;$>=0;$--){if(M.index($)>0)return M.doc.resolve(M.before($+1));if(M.node($).type.spec.isolating)break}return null}function atBlockEnd(M,$){let{$cursor:I}=M.selection;return!I||($?!$.endOfTextblock("forward",M):I.parentOffset<I.parent.content.size)?null:I}const joinForward$1=(M,$,I)=>{let N=atBlockEnd(M,I);if(!N)return!1;let B=findCutAfter(N);if(!B)return!1;let j=B.nodeAfter;if(deleteBarrier(M,B,$,1))return!0;if(N.parent.content.size==0&&(textblockAt(j,"start")||NodeSelection.isSelectable(j))){let U=replaceStep(M.doc,N.before(),N.after(),Slice.empty);if(U&&U.slice.size<U.to-U.from){if($){let q=M.tr.step(U);q.setSelection(textblockAt(j,"start")?Selection.findFrom(q.doc.resolve(q.mapping.map(B.pos)),1):NodeSelection.create(q.doc,q.mapping.map(B.pos))),$(q.scrollIntoView())}return!0}}return j.isAtom&&B.depth==N.depth-1?($&&$(M.tr.delete(B.pos,B.pos+j.nodeSize).scrollIntoView()),!0):!1},selectNodeForward$1=(M,$,I)=>{let{$head:N,empty:B}=M.selection,j=N;if(!B)return!1;if(N.parent.isTextblock){if(I?!I.endOfTextblock("forward",M):N.parentOffset<N.parent.content.size)return!1;j=findCutAfter(N)}let U=j&&j.nodeAfter;return!U||!NodeSelection.isSelectable(U)?!1:($&&$(M.tr.setSelection(NodeSelection.create(M.doc,j.pos)).scrollIntoView()),!0)};function findCutAfter(M){if(!M.parent.type.spec.isolating)for(let $=M.depth-1;$>=0;$--){let I=M.node($);if(M.index($)+1<I.childCount)return M.doc.resolve(M.after($+1));if(I.type.spec.isolating)break}return null}const joinUp$1=(M,$)=>{let I=M.selection,N=I instanceof NodeSelection,B;if(N){if(I.node.isTextblock||!canJoin(M.doc,I.from))return!1;B=I.from}else if(B=joinPoint(M.doc,I.from,-1),B==null)return!1;if($){let j=M.tr.join(B);N&&j.setSelection(NodeSelection.create(j.doc,B-M.doc.resolve(B).nodeBefore.nodeSize)),$(j.scrollIntoView())}return!0},joinDown$1=(M,$)=>{let I=M.selection,N;if(I instanceof NodeSelection){if(I.node.isTextblock||!canJoin(M.doc,I.to))return!1;N=I.to}else if(N=joinPoint(M.doc,I.to,1),N==null)return!1;return $&&$(M.tr.join(N).scrollIntoView()),!0},lift$1=(M,$)=>{let{$from:I,$to:N}=M.selection,B=I.blockRange(N),j=B&&liftTarget(B);return j==null?!1:($&&$(M.tr.lift(B,j).scrollIntoView()),!0)},newlineInCode$1=(M,$)=>{let{$head:I,$anchor:N}=M.selection;return!I.parent.type.spec.code||!I.sameParent(N)?!1:($&&$(M.tr.insertText(` `).scrollIntoView()),!0)};function defaultBlockAt$1(M){for(let $=0;$<M.edgeCount;$++){let{type:I}=M.edge($);if(I.isTextblock&&!I.hasRequiredAttrs())return I}return null}const exitCode$1=(M,$)=>{let{$head:I,$anchor:N}=M.selection;if(!I.parent.type.spec.code||!I.sameParent(N))return!1;let B=I.node(-1),j=I.indexAfter(-1),U=defaultBlockAt$1(B.contentMatchAt(j));if(!U||!B.canReplaceWith(j,j,U))return!1;if($){let q=I.after(),Y=M.tr.replaceWith(q,q,U.createAndFill());Y.setSelection(Selection.near(Y.doc.resolve(q),1)),$(Y.scrollIntoView())}return!0},createParagraphNear$1=(M,$)=>{let I=M.selection,{$from:N,$to:B}=I;if(I instanceof AllSelection||N.parent.inlineContent||B.parent.inlineContent)return!1;let j=defaultBlockAt$1(B.parent.contentMatchAt(B.indexAfter()));if(!j||!j.isTextblock)return!1;if($){let U=(!N.parentOffset&&B.index()<B.parent.childCount?N:B).pos,q=M.tr.insert(U,j.createAndFill());q.setSelection(TextSelection.create(q.doc,U+1)),$(q.scrollIntoView())}return!0},liftEmptyBlock$1=(M,$)=>{let{$cursor:I}=M.selection;if(!I||I.parent.content.size)return!1;if(I.depth>1&&I.after()!=I.end(-1)){let j=I.before();if(canSplit(M.doc,j))return $&&$(M.tr.split(j).scrollIntoView()),!0}let N=I.blockRange(),B=N&&liftTarget(N);return B==null?!1:($&&$(M.tr.lift(N,B).scrollIntoView()),!0)},selectParentNode$1=(M,$)=>{let{$from:I,to:N}=M.selection,B,j=I.sharedDepth(N);return j==0?!1:(B=I.before(j),$&&$(M.tr.setSelection(NodeSelection.create(M.doc,B))),!0)};function joinMaybeClear(M,$,I){let N=$.nodeBefore,B=$.nodeAfter,j=$.index();return!N||!B||!N.type.compatibleContent(B.type)?!1:!N.content.size&&$.parent.canReplace(j-1,j)?(I&&I(M.tr.delete($.pos-N.nodeSize,$.pos).scrollIntoView()),!0):!$.parent.canReplace(j,j+1)||!(B.isTextblock||canJoin(M.doc,$.pos))?!1:(I&&I(M.tr.clearIncompatible($.pos,N.type,N.contentMatchAt(N.childCount)).join($.pos).scrollIntoView()),!0)}function deleteBarrier(M,$,I,N){let B=$.nodeBefore,j=$.nodeAfter,U,q,Y=B.type.spec.isolating||j.type.spec.isolating;if(!Y&&joinMaybeClear(M,$,I))return!0;let K=!Y&&$.parent.canReplace($.index(),$.index()+1);if(K&&(U=(q=B.contentMatchAt(B.childCount)).findWrapping(j.type))&&q.matchType(U[0]||j.type).validEnd){if(I){let ee=$.pos+j.nodeSize,te=Fragment.empty;for(let ne=U.length-1;ne>=0;ne--)te=Fragment.from(U[ne].create(null,te));te=Fragment.from(B.copy(te));let se=M.tr.step(new ReplaceAroundStep($.pos-1,ee,$.pos,ee,new Slice(te,1,0),U.length,!0)),re=ee+2*U.length;canJoin(se.doc,re)&&se.join(re),I(se.scrollIntoView())}return!0}let G=j.type.spec.isolating||N>0&&Y?null:Selection.findFrom($,1),J=G&&G.$from.blockRange(G.$to),Z=J&&liftTarget(J);if(Z!=null&&Z>=$.depth)return I&&I(M.tr.lift(J,Z).scrollIntoView()),!0;if(K&&textblockAt(j,"start",!0)&&textblockAt(B,"end")){let ee=B,te=[];for(;te.push(ee),!ee.isTextblock;)ee=ee.lastChild;let se=j,re=1;for(;!se.isTextblock;se=se.firstChild)re++;if(ee.canReplace(ee.childCount,ee.childCount,se.content)){if(I){let ne=Fragment.empty;for(let me=te.length-1;me>=0;me--)ne=Fragment.from(te[me].copy(ne));let ce=M.tr.step(new ReplaceAroundStep($.pos-te.length,$.pos+j.nodeSize,$.pos+re,$.pos+j.nodeSize-re,new Slice(ne,te.length,0),0,!0));I(ce.scrollIntoView())}return!0}}return!1}function selectTextblockSide(M){return function($,I){let N=$.selection,B=M<0?N.$from:N.$to,j=B.depth;for(;B.node(j).isInline;){if(!j)return!1;j--}return B.node(j).isTextblock?(I&&I($.tr.setSelection(TextSelection.create($.doc,M<0?B.start(j):B.end(j)))),!0):!1}}const selectTextblockStart$1=selectTextblockSide(-1),selectTextblockEnd$1=selectTextblockSide(1);function wrapIn$1(M,$=null){return function(I,N){let{$from:B,$to:j}=I.selection,U=B.blockRange(j),q=U&&findWrapping(U,M,$);return q?(N&&N(I.tr.wrap(U,q).scrollIntoView()),!0):!1}}function setBlockType(M,$=null){return function(I,N){let B=!1;for(let j=0;j<I.selection.ranges.length&&!B;j++){let{$from:{pos:U},$to:{pos:q}}=I.selection.ranges[j];I.doc.nodesBetween(U,q,(Y,K)=>{if(B)return!1;if(!(!Y.isTextblock||Y.hasMarkup(M,$)))if(Y.type==M)B=!0;else{let G=I.doc.resolve(K),J=G.index();B=G.parent.canReplaceWith(J,J+1,M)}})}if(!B)return!1;if(N){let j=I.tr;for(let U=0;U<I.selection.ranges.length;U++){let{$from:{pos:q},$to:{pos:Y}}=I.selection.ranges[U];j.setBlockType(q,Y,M,$)}N(j.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function wrapInList$1(M,$=null){return function(I,N){let{$from:B,$to:j}=I.selection,U=B.blockRange(j),q=!1,Y=U;if(!U)return!1;if(U.depth>=2&&B.node(U.depth-1).type.compatibleContent(M)&&U.startIndex==0){if(B.index(U.depth-1)==0)return!1;let G=I.doc.resolve(U.start-2);Y=new NodeRange(G,G,U.depth),U.endIndex<U.parent.childCount&&(U=new NodeRange(B,I.doc.resolve(j.end(U.depth)),U.depth)),q=!0}let K=findWrapping(Y,M,$,U);return K?(N&&N(doWrapInList(I.tr,U,K,q,M).scrollIntoView()),!0):!1}}function doWrapInList(M,$,I,N,B){let j=Fragment.empty;for(let G=I.length-1;G>=0;G--)j=Fragment.from(I[G].type.create(I[G].attrs,j));M.step(new ReplaceAroundStep($.start-(N?2:0),$.end,$.start,$.end,new Slice(j,0,0),I.length,!0));let U=0;for(let G=0;G<I.length;G++)I[G].type==B&&(U=G+1);let q=I.length-U,Y=$.start+I.length-(N?2:0),K=$.parent;for(let G=$.startIndex,J=$.endIndex,Z=!0;G<J;G++,Z=!1)!Z&&canSplit(M.doc,Y,q)&&(M.split(Y,q),Y+=2*q),Y+=K.child(G).nodeSize;return M}function liftListItem$1(M){return function($,I){let{$from:N,$to:B}=$.selection,j=N.blockRange(B,U=>U.childCount>0&&U.firstChild.type==M);return j?I?N.node(j.depth-1).type==M?liftToOuterList($,I,M,j):liftOutOfList($,I,j):!0:!1}}function liftToOuterList(M,$,I,N){let B=M.tr,j=N.end,U=N.$to.end(N.depth);j<U&&(B.step(new ReplaceAroundStep(j-1,U,j,U,new Slice(Fragment.from(I.create(null,N.parent.copy())),1,0),1,!0)),N=new NodeRange(B.doc.resolve(N.$from.pos),B.doc.resolve(U),N.depth));const q=liftTarget(N);if(q==null)return!1;B.lift(N,q);let Y=B.mapping.map(j,-1)-1;return canJoin(B.doc,Y)&&B.join(Y),$(B.scrollIntoView()),!0}function liftOutOfList(M,$,I){let N=M.tr,B=I.parent;for(let ee=I.end,te=I.endIndex-1,se=I.startIndex;te>se;te--)ee-=B.child(te).nodeSize,N.delete(ee-1,ee+1);let j=N.doc.resolve(I.start),U=j.nodeAfter;if(N.mapping.map(I.end)!=I.start+j.nodeAfter.nodeSize)return!1;let q=I.startIndex==0,Y=I.endIndex==B.childCount,K=j.node(-1),G=j.index(-1);if(!K.canReplace(G+(q?0:1),G+1,U.content.append(Y?Fragment.empty:Fragment.from(B))))return!1;let J=j.pos,Z=J+U.nodeSize;return N.step(new ReplaceAroundStep(J-(q?1:0),Z+(Y?1:0),J+1,Z-1,new Slice((q?Fragment.empty:Fragment.from(B.copy(Fragment.empty))).append(Y?Fragment.empty:Fragment.from(B.copy(Fragment.empty))),q?0:1,Y?0:1),q?0:1)),$(N.scrollIntoView()),!0}function sinkListItem$1(M){return function($,I){let{$from:N,$to:B}=$.selection,j=N.blockRange(B,K=>K.childCount>0&&K.firstChild.type==M);if(!j)return!1;let U=j.startIndex;if(U==0)return!1;let q=j.parent,Y=q.child(U-1);if(Y.type!=M)return!1;if(I){let K=Y.lastChild&&Y.lastChild.type==q.type,G=Fragment.from(K?M.create():null),J=new Slice(Fragment.from(M.create(null,Fragment.from(q.type.create(null,G)))),K?3:1,0),Z=j.start,ee=j.end;I($.tr.step(new ReplaceAroundStep(Z-(K?3:1),ee,Z,ee,J,1,!0)).scrollIntoView())}return!0}}function createChainableState(M){const{state:$,transaction:I}=M;let{selection:N}=I,{doc:B}=I,{storedMarks:j}=I;return{...$,apply:$.apply.bind($),applyTransaction:$.applyTransaction.bind($),plugins:$.plugins,schema:$.schema,reconfigure:$.reconfigure.bind($),toJSON:$.toJSON.bind($),get storedMarks(){return j},get selection(){return N},get doc(){return B},get tr(){return N=I.selection,B=I.doc,j=I.storedMarks,I}}}class CommandManager{constructor($){this.editor=$.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=$.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:$,editor:I,state:N}=this,{view:B}=I,{tr:j}=N,U=this.buildProps(j);return Object.fromEntries(Object.entries($).map(([q,Y])=>[q,(...G)=>{const J=Y(...G)(U);return!j.getMeta("preventDispatch")&&!this.hasCustomState&&B.dispatch(j),J}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain($,I=!0){const{rawCommands:N,editor:B,state:j}=this,{view:U}=B,q=[],Y=!!$,K=$||j.tr,G=()=>(!Y&&I&&!K.getMeta("preventDispatch")&&!this.hasCustomState&&U.dispatch(K),q.every(Z=>Z===!0)),J={...Object.fromEntries(Object.entries(N).map(([Z,ee])=>[Z,(...se)=>{const re=this.buildProps(K,I),ne=ee(...se)(re);return q.push(ne),J}])),run:G};return J}createCan($){const{rawCommands:I,state:N}=this,B=!1,j=$||N.tr,U=this.buildProps(j,B);return{...Object.fromEntries(Object.entries(I).map(([Y,K])=>[Y,(...G)=>K(...G)({...U,dispatch:void 0})])),chain:()=>this.createChain(j,B)}}buildProps($,I=!0){const{rawCommands:N,editor:B,state:j}=this,{view:U}=B,q={tr:$,editor:B,view:U,state:createChainableState({state:j,transaction:$}),dispatch:I?()=>{}:void 0,chain:()=>this.createChain($,I),can:()=>this.createCan($),get commands(){return Object.fromEntries(Object.entries(N).map(([Y,K])=>[Y,(...G)=>K(...G)(q)]))}};return q}}class EventEmitter{constructor(){this.callbacks={}}on($,I){return this.callbacks[$]||(this.callbacks[$]=[]),this.callbacks[$].push(I),this}emit($,...I){const N=this.callbacks[$];return N&&N.forEach(B=>B.apply(this,I)),this}off($,I){const N=this.callbacks[$];return N&&(I?this.callbacks[$]=N.filter(B=>B!==I):delete this.callbacks[$]),this}removeAllListeners(){this.callbacks={}}}function getExtensionField(M,$,I){return M.config[$]===void 0&&M.parent?getExtensionField(M.parent,$,I):typeof M.config[$]=="function"?M.config[$].bind({...I,parent:M.parent?getExtensionField(M.parent,$,I):null}):M.config[$]}function splitExtensions(M){const $=M.filter(B=>B.type==="extension"),I=M.filter(B=>B.type==="node"),N=M.filter(B=>B.type==="mark");return{baseExtensions:$,nodeExtensions:I,markExtensions:N}}function getAttributesFromExtensions(M){const $=[],{nodeExtensions:I,markExtensions:N}=splitExtensions(M),B=[...I,...N],j={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return M.forEach(U=>{const q={name:U.name,options:U.options,storage:U.storage,extensions:B},Y=getExtensionField(U,"addGlobalAttributes",q);if(!Y)return;Y().forEach(G=>{G.types.forEach(J=>{Object.entries(G.attributes).forEach(([Z,ee])=>{$.push({type:J,name:Z,attribute:{...j,...ee}})})})})}),B.forEach(U=>{const q={name:U.name,options:U.options,storage:U.storage},Y=getExtensionField(U,"addAttributes",q);if(!Y)return;const K=Y();Object.entries(K).forEach(([G,J])=>{const Z={...j,...J};typeof(Z==null?void 0:Z.default)=="function"&&(Z.default=Z.default()),Z!=null&&Z.isRequired&&(Z==null?void 0:Z.default)===void 0&&delete Z.default,$.push({type:U.name,name:G,attribute:Z})})}),$}function getNodeType(M,$){if(typeof M=="string"){if(!$.nodes[M])throw Error(`There is no node type named '${M}'. Maybe you forgot to add the extension?`);return $.nodes[M]}return M}function mergeAttributes(...M){return M.filter($=>!!$).reduce(($,I)=>{const N={...$};return Object.entries(I).forEach(([B,j])=>{if(!N[B]){N[B]=j;return}if(B==="class"){const q=j?j.split(" "):[],Y=N[B]?N[B].split(" "):[],K=q.filter(G=>!Y.includes(G));N[B]=[...Y,...K].join(" ")}else if(B==="style"){const q=j?j.split(";").map(G=>G.trim()).filter(Boolean):[],Y=N[B]?N[B].split(";").map(G=>G.trim()).filter(Boolean):[],K=new Map;Y.forEach(G=>{const[J,Z]=G.split(":").map(ee=>ee.trim());K.set(J,Z)}),q.forEach(G=>{const[J,Z]=G.split(":").map(ee=>ee.trim());K.set(J,Z)}),N[B]=Array.from(K.entries()).map(([G,J])=>`${G}: ${J}`).join("; ")}else N[B]=j}),N},{})}function getRenderedAttributes(M,$){return $.filter(I=>I.type===M.type.name).filter(I=>I.attribute.rendered).map(I=>I.attribute.renderHTML?I.attribute.renderHTML(M.attrs)||{}:{[I.name]:M.attrs[I.name]}).reduce((I,N)=>mergeAttributes(I,N),{})}function isFunction$5(M){return typeof M=="function"}function callOrReturn(M,$=void 0,...I){return isFunction$5(M)?$?M.bind($)(...I):M(...I):M}function isEmptyObject(M={}){return Object.keys(M).length===0&&M.constructor===Object}function fromString(M){return typeof M!="string"?M:M.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(M):M==="true"?!0:M==="false"?!1:M}function injectExtensionAttributesToParseRule(M,$){return"style"in M?M:{...M,getAttrs:I=>{const N=M.getAttrs?M.getAttrs(I):M.attrs;if(N===!1)return!1;const B=$.reduce((j,U)=>{const q=U.attribute.parseHTML?U.attribute.parseHTML(I):fromString(I.getAttribute(U.name));return q==null?j:{...j,[U.name]:q}},{});return{...N,...B}}}}function cleanUpSchemaItem(M){return Object.fromEntries(Object.entries(M).filter(([$,I])=>$==="attrs"&&isEmptyObject(I)?!1:I!=null))}function getSchemaByResolvedExtensions(M,$){var I;const N=getAttributesFromExtensions(M),{nodeExtensions:B,markExtensions:j}=splitExtensions(M),U=(I=B.find(K=>getExtensionField(K,"topNode")))===null||I===void 0?void 0:I.name,q=Object.fromEntries(B.map(K=>{const G=N.filter(ne=>ne.type===K.name),J={name:K.name,options:K.options,storage:K.storage,editor:$},Z=M.reduce((ne,ce)=>{const me=getExtensionField(ce,"extendNodeSchema",J);return{...ne,...me?me(K):{}}},{}),ee=cleanUpSchemaItem({...Z,content:callOrReturn(getExtensionField(K,"content",J)),marks:callOrReturn(getExtensionField(K,"marks",J)),group:callOrReturn(getExtensionField(K,"group",J)),inline:callOrReturn(getExtensionField(K,"inline",J)),atom:callOrReturn(getExtensionField(K,"atom",J)),selectable:callOrReturn(getExtensionField(K,"selectable",J)),draggable:callOrReturn(getExtensionField(K,"draggable",J)),code:callOrReturn(getExtensionField(K,"code",J)),whitespace:callOrReturn(getExtensionField(K,"whitespace",J)),defining:callOrReturn(getExtensionField(K,"defining",J)),isolating:callOrReturn(getExtensionField(K,"isolating",J)),attrs:Object.fromEntries(G.map(ne=>{var ce;return[ne.name,{default:(ce=ne==null?void 0:ne.attribute)===null||ce===void 0?void 0:ce.default}]}))}),te=callOrReturn(getExtensionField(K,"parseHTML",J));te&&(ee.parseDOM=te.map(ne=>injectExtensionAttributesToParseRule(ne,G)));const se=getExtensionField(K,"renderHTML",J);se&&(ee.toDOM=ne=>se({node:ne,HTMLAttributes:getRenderedAttributes(ne,G)}));const re=getExtensionField(K,"renderText",J);return re&&(ee.toText=re),[K.name,ee]})),Y=Object.fromEntries(j.map(K=>{const G=N.filter(re=>re.type===K.name),J={name:K.name,options:K.options,storage:K.storage,editor:$},Z=M.reduce((re,ne)=>{const ce=getExtensionField(ne,"extendMarkSchema",J);return{...re,...ce?ce(K):{}}},{}),ee=cleanUpSchemaItem({...Z,inclusive:callOrReturn(getExtensionField(K,"inclusive",J)),excludes:callOrReturn(getExtensionField(K,"excludes",J)),group:callOrReturn(getExtensionField(K,"group",J)),spanning:callOrReturn(getExtensionField(K,"spanning",J)),code:callOrReturn(getExtensionField(K,"code",J)),attrs:Object.fromEntries(G.map(re=>{var ne;return[re.name,{default:(ne=re==null?void 0:re.attribute)===null||ne===void 0?void 0:ne.default}]}))}),te=callOrReturn(getExtensionField(K,"parseHTML",J));te&&(ee.parseDOM=te.map(re=>injectExtensionAttributesToParseRule(re,G)));const se=getExtensionField(K,"renderHTML",J);return se&&(ee.toDOM=re=>se({mark:re,HTMLAttributes:getRenderedAttributes(re,G)})),[K.name,ee]}));return new Schema({topNode:U,nodes:q,marks:Y})}function getSchemaTypeByName(M,$){return $.nodes[M]||$.marks[M]||null}function isExtensionRulesEnabled(M,$){return Array.isArray($)?$.some(I=>(typeof I=="string"?I:I.name)===M.name):$}const getTextContentFromNodes=(M,$=500)=>{let I="";const N=M.parentOffset;return M.parent.nodesBetween(Math.max(0,N-$),N,(B,j,U,q)=>{var Y,K;const G=((K=(Y=B.type.spec).toText)===null||K===void 0?void 0:K.call(Y,{node:B,pos:j,parent:U,index:q}))||B.textContent||"%leaf%";I+=B.isAtom&&!B.isText?G:G.slice(0,Math.max(0,N-j))}),I};function isRegExp$4(M){return Object.prototype.toString.call(M)==="[object RegExp]"}class InputRule{constructor($){this.find=$.find,this.handler=$.handler}}const inputRuleMatcherHandler=(M,$)=>{if(isRegExp$4($))return $.exec(M);const I=$(M);if(!I)return null;const N=[I.text];return N.index=I.index,N.input=M,N.data=I.data,I.replaceWith&&(I.text.includes(I.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),N.push(I.replaceWith)),N};function run$1(M){var $;const{editor:I,from:N,to:B,text:j,rules:U,plugin:q}=M,{view:Y}=I;if(Y.composing)return!1;const K=Y.state.doc.resolve(N);if(K.parent.type.spec.code||!(($=K.nodeBefore||K.nodeAfter)===null||$===void 0)&&$.marks.find(Z=>Z.type.spec.code))return!1;let G=!1;const J=getTextContentFromNodes(K)+j;return U.forEach(Z=>{if(G)return;const ee=inputRuleMatcherHandler(J,Z.find);if(!ee)return;const te=Y.state.tr,se=createChainableState({state:Y.state,transaction:te}),re={from:N-(ee[0].length-j.length),to:B},{commands:ne,chain:ce,can:me}=new CommandManager({editor:I,state:se});Z.handler({state:se,range:re,match:ee,commands:ne,chain:ce,can:me})===null||!te.steps.length||(te.setMeta(q,{transform:te,from:N,to:B,text:j}),Y.dispatch(te),G=!0)}),G}function inputRulesPlugin(M){const{editor:$,rules:I}=M,N=new Plugin({state:{init(){return null},apply(B,j){const U=B.getMeta(N);if(U)return U;const q=B.getMeta("applyInputRules");return!!q&&setTimeout(()=>{const{from:K,text:G}=q,J=K+G.length;run$1({editor:$,from:K,to:J,text:G,rules:I,plugin:N})}),B.selectionSet||B.docChanged?null:j}},props:{handleTextInput(B,j,U,q){return run$1({editor:$,from:j,to:U,text:q,rules:I,plugin:N})},handleDOMEvents:{compositionend:B=>(setTimeout(()=>{const{$cursor:j}=B.state.selection;j&&run$1({editor:$,from:j.pos,to:j.pos,text:"",rules:I,plugin:N})}),!1)},handleKeyDown(B,j){if(j.key!=="Enter")return!1;const{$cursor:U}=B.state.selection;return U?run$1({editor:$,from:U.pos,to:U.pos,text:` `,rules:I,plugin:N}):!1}},isInputRules:!0});return N}function getType(M){return Object.prototype.toString.call(M).slice(8,-1)}function isPlainObject$1(M){return getType(M)!=="Object"?!1:M.constructor===Object&&Object.getPrototypeOf(M)===Object.prototype}function mergeDeep(M,$){const I={...M};return isPlainObject$1(M)&&isPlainObject$1($)&&Object.keys($).forEach(N=>{isPlainObject$1($[N])&&isPlainObject$1(M[N])?I[N]=mergeDeep(M[N],$[N]):I[N]=$[N]}),I}class Mark{constructor($={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...$},this.name=this.config.name,$.defaultOptions&&Object.keys($.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=callOrReturn(getExtensionField(this,"addOptions",{name:this.name}))),this.storage=callOrReturn(getExtensionField(this,"addStorage",{name:this.name,options:this.options}))||{}}static create($={}){return new Mark($)}configure($={}){const I=this.extend({...this.config,addOptions:()=>mergeDeep(this.options,$)});return I.name=this.name,I.parent=this.parent,I}extend($={}){const I=new Mark($);return I.parent=this,this.child=I,I.name=$.name?$.name:I.parent.name,$.defaultOptions&&Object.keys($.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${I.name}".`),I.options=callOrReturn(getExtensionField(I,"addOptions",{name:I.name})),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}static handleExit({editor:$,mark:I}){const{tr:N}=$.state,B=$.state.selection.$from;if(B.pos===B.end()){const U=B.marks();if(!!!U.find(K=>(K==null?void 0:K.type.name)===I.name))return!1;const Y=U.find(K=>(K==null?void 0:K.type.name)===I.name);return Y&&N.removeStoredMark(Y),N.insertText(" ",B.pos),$.view.dispatch(N),!0}return!1}}function isNumber$5(M){return typeof M=="number"}class PasteRule{constructor($){this.find=$.find,this.handler=$.handler}}const pasteRuleMatcherHandler=(M,$,I)=>{if(isRegExp$4($))return[...M.matchAll($)];const N=$(M,I);return N?N.map(B=>{const j=[B.text];return j.index=B.index,j.input=M,j.data=B.data,B.replaceWith&&(B.text.includes(B.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),j.push(B.replaceWith)),j}):[]};function run(M){const{editor:$,state:I,from:N,to:B,rule:j,pasteEvent:U,dropEvent:q}=M,{commands:Y,chain:K,can:G}=new CommandManager({editor:$,state:I}),J=[];return I.doc.nodesBetween(N,B,(ee,te)=>{if(!ee.isTextblock||ee.type.spec.code)return;const se=Math.max(N,te),re=Math.min(B,te+ee.content.size),ne=ee.textBetween(se-te,re-te,void 0,"");pasteRuleMatcherHandler(ne,j.find,U).forEach(me=>{if(me.index===void 0)return;const ue=se+me.index+1,_e=ue+me[0].length,fe={from:I.tr.mapping.map(ue),to:I.tr.mapping.map(_e)},ge=j.handler({state:I,range:fe,match:me,commands:Y,chain:K,can:G,pasteEvent:U,dropEvent:q});J.push(ge)})}),J.every(ee=>ee!==null)}const createClipboardPasteEvent=M=>{var $;const I=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return($=I.clipboardData)===null||$===void 0||$.setData("text/html",M),I};function pasteRulesPlugin(M){const{editor:$,rules:I}=M;let N=null,B=!1,j=!1,U=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,q=typeof DragEvent<"u"?new DragEvent("drop"):null;const Y=({state:G,from:J,to:Z,rule:ee,pasteEvt:te})=>{const se=G.tr,re=createChainableState({state:G,transaction:se});if(!(!run({editor:$,state:re,from:Math.max(J-1,0),to:Z.b-1,rule:ee,pasteEvent:te,dropEvent:q})||!se.steps.length))return q=typeof DragEvent<"u"?new DragEvent("drop"):null,U=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,se};return I.map(G=>new Plugin({view(J){const Z=ee=>{var te;N=!((te=J.dom.parentElement)===null||te===void 0)&&te.contains(ee.target)?J.dom.parentElement:null};return window.addEventListener("dragstart",Z),{destroy(){window.removeEventListener("dragstart",Z)}}},props:{handleDOMEvents:{drop:(J,Z)=>(j=N===J.dom.parentElement,q=Z,!1),paste:(J,Z)=>{var ee;const te=(ee=Z.clipboardData)===null||ee===void 0?void 0:ee.getData("text/html");return U=Z,B=!!(te!=null&&te.includes("data-pm-slice")),!1}}},appendTransaction:(J,Z,ee)=>{const te=J[0],se=te.getMeta("uiEvent")==="paste"&&!B,re=te.getMeta("uiEvent")==="drop"&&!j,ne=te.getMeta("applyPasteRules"),ce=!!ne;if(!se&&!re&&!ce)return;if(ce){const{from:_e,text:fe}=ne,ge=_e+fe.length,ye=createClipboardPasteEvent(fe);return Y({rule:G,state:ee,from:_e,to:{b:ge},pasteEvt:ye})}const me=Z.doc.content.findDiffStart(ee.doc.content),ue=Z.doc.content.findDiffEnd(ee.doc.content);if(!(!isNumber$5(me)||!ue||me===ue.b))return Y({rule:G,state:ee,from:me,to:ue,pasteEvt:U})}}))}function findDuplicates(M){const $=M.filter((I,N)=>M.indexOf(I)!==N);return Array.from(new Set($))}class ExtensionManager{constructor($,I){this.splittableMarks=[],this.editor=I,this.extensions=ExtensionManager.resolve($),this.schema=getSchemaByResolvedExtensions(this.extensions,I),this.setupExtensions()}static resolve($){const I=ExtensionManager.sort(ExtensionManager.flatten($)),N=findDuplicates(I.map(B=>B.name));return N.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${N.map(B=>`'${B}'`).join(", ")}]. This can lead to issues.`),I}static flatten($){return $.map(I=>{const N={name:I.name,options:I.options,storage:I.storage},B=getExtensionField(I,"addExtensions",N);return B?[I,...this.flatten(B())]:I}).flat(10)}static sort($){return $.sort((N,B)=>{const j=getExtensionField(N,"priority")||100,U=getExtensionField(B,"priority")||100;return j>U?-1:j<U?1:0})}get commands(){return this.extensions.reduce(($,I)=>{const N={name:I.name,options:I.options,storage:I.storage,editor:this.editor,type:getSchemaTypeByName(I.name,this.schema)},B=getExtensionField(I,"addCommands",N);return B?{...$,...B()}:$},{})}get plugins(){const{editor:$}=this,I=ExtensionManager.sort([...this.extensions].reverse()),N=[],B=[],j=I.map(U=>{const q={name:U.name,options:U.options,storage:U.storage,editor:$,type:getSchemaTypeByName(U.name,this.schema)},Y=[],K=getExtensionField(U,"addKeyboardShortcuts",q);let G={};if(U.type==="mark"&&getExtensionField(U,"exitable",q)&&(G.ArrowRight=()=>Mark.handleExit({editor:$,mark:U})),K){const se=Object.fromEntries(Object.entries(K()).map(([re,ne])=>[re,()=>ne({editor:$})]));G={...G,...se}}const J=keymap(G);Y.push(J);const Z=getExtensionField(U,"addInputRules",q);isExtensionRulesEnabled(U,$.options.enableInputRules)&&Z&&N.push(...Z());const ee=getExtensionField(U,"addPasteRules",q);isExtensionRulesEnabled(U,$.options.enablePasteRules)&&ee&&B.push(...ee());const te=getExtensionField(U,"addProseMirrorPlugins",q);if(te){const se=te();Y.push(...se)}return Y}).flat();return[inputRulesPlugin({editor:$,rules:N}),...pasteRulesPlugin({editor:$,rules:B}),...j]}get attributes(){return getAttributesFromExtensions(this.extensions)}get nodeViews(){const{editor:$}=this,{nodeExtensions:I}=splitExtensions(this.extensions);return Object.fromEntries(I.filter(N=>!!getExtensionField(N,"addNodeView")).map(N=>{const B=this.attributes.filter(Y=>Y.type===N.name),j={name:N.name,options:N.options,storage:N.storage,editor:$,type:getNodeType(N.name,this.schema)},U=getExtensionField(N,"addNodeView",j);if(!U)return[];const q=(Y,K,G,J,Z)=>{const ee=getRenderedAttributes(Y,B);return U()({node:Y,view:K,getPos:G,decorations:J,innerDecorations:Z,editor:$,extension:N,HTMLAttributes:ee})};return[N.name,q]}))}setupExtensions(){this.extensions.forEach($=>{var I;this.editor.extensionStorage[$.name]=$.storage;const N={name:$.name,options:$.options,storage:$.storage,editor:this.editor,type:getSchemaTypeByName($.name,this.schema)};$.type==="mark"&&(!((I=callOrReturn(getExtensionField($,"keepOnSplit",N)))!==null&&I!==void 0)||I)&&this.splittableMarks.push($.name);const B=getExtensionField($,"onBeforeCreate",N),j=getExtensionField($,"onCreate",N),U=getExtensionField($,"onUpdate",N),q=getExtensionField($,"onSelectionUpdate",N),Y=getExtensionField($,"onTransaction",N),K=getExtensionField($,"onFocus",N),G=getExtensionField($,"onBlur",N),J=getExtensionField($,"onDestroy",N);B&&this.editor.on("beforeCreate",B),j&&this.editor.on("create",j),U&&this.editor.on("update",U),q&&this.editor.on("selectionUpdate",q),Y&&this.editor.on("transaction",Y),K&&this.editor.on("focus",K),G&&this.editor.on("blur",G),J&&this.editor.on("destroy",J)})}}class Extension{constructor($={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...$},this.name=this.config.name,$.defaultOptions&&Object.keys($.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=callOrReturn(getExtensionField(this,"addOptions",{name:this.name}))),this.storage=callOrReturn(getExtensionField(this,"addStorage",{name:this.name,options:this.options}))||{}}static create($={}){return new Extension($)}configure($={}){const I=this.extend({...this.config,addOptions:()=>mergeDeep(this.options,$)});return I.name=this.name,I.parent=this.parent,I}extend($={}){const I=new Extension({...this.config,...$});return I.parent=this,this.child=I,I.name=$.name?$.name:I.parent.name,$.defaultOptions&&Object.keys($.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${I.name}".`),I.options=callOrReturn(getExtensionField(I,"addOptions",{name:I.name})),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}}function getTextBetween(M,$,I){const{from:N,to:B}=$,{blockSeparator:j=` `,textSerializers:U={}}=I||{};let q="";return M.nodesBetween(N,B,(Y,K,G,J)=>{var Z;Y.isBlock&&K>N&&(q+=j);const ee=U==null?void 0:U[Y.type.name];if(ee)return G&&(q+=ee({node:Y,pos:K,parent:G,index:J,range:$})),!1;Y.isText&&(q+=(Z=Y==null?void 0:Y.text)===null||Z===void 0?void 0:Z.slice(Math.max(N,K)-K,B-K))}),q}function getTextSerializersFromSchema(M){return Object.fromEntries(Object.entries(M.nodes).filter(([,$])=>$.spec.toText).map(([$,I])=>[$,I.spec.toText]))}const ClipboardTextSerializer=Extension.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:M}=this,{state:$,schema:I}=M,{doc:N,selection:B}=$,{ranges:j}=B,U=Math.min(...j.map(G=>G.$from.pos)),q=Math.max(...j.map(G=>G.$to.pos)),Y=getTextSerializersFromSchema(I);return getTextBetween(N,{from:U,to:q},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:Y})}}})]}}),blur=()=>({editor:M,view:$})=>(requestAnimationFrame(()=>{var I;M.isDestroyed||($.dom.blur(),(I=window==null?void 0:window.getSelection())===null||I===void 0||I.removeAllRanges())}),!0),clearContent=(M=!1)=>({commands:$})=>$.setContent("",M),clearNodes=()=>({state:M,tr:$,dispatch:I})=>{const{selection:N}=$,{ranges:B}=N;return I&&B.forEach(({$from:j,$to:U})=>{M.doc.nodesBetween(j.pos,U.pos,(q,Y)=>{if(q.type.isText)return;const{doc:K,mapping:G}=$,J=K.resolve(G.map(Y)),Z=K.resolve(G.map(Y+q.nodeSize)),ee=J.blockRange(Z);if(!ee)return;const te=liftTarget(ee);if(q.type.isTextblock){const{defaultType:se}=J.parent.contentMatchAt(J.index());$.setNodeMarkup(ee.start,se)}(te||te===0)&&$.lift(ee,te)})}),!0},command=M=>$=>M($),createParagraphNear=()=>({state:M,dispatch:$})=>createParagraphNear$1(M,$),cut=(M,$)=>({editor:I,tr:N})=>{const{state:B}=I,j=B.doc.slice(M.from,M.to);N.deleteRange(M.from,M.to);const U=N.mapping.map($);return N.insert(U,j.content),N.setSelection(new TextSelection(N.doc.resolve(U-1))),!0},deleteCurrentNode=()=>({tr:M,dispatch:$})=>{const{selection:I}=M,N=I.$anchor.node();if(N.content.size>0)return!1;const B=M.selection.$anchor;for(let j=B.depth;j>0;j-=1)if(B.node(j).type===N.type){if($){const q=B.before(j),Y=B.after(j);M.delete(q,Y).scrollIntoView()}return!0}return!1},deleteNode=M=>({tr:$,state:I,dispatch:N})=>{const B=getNodeType(M,I.schema),j=$.selection.$anchor;for(let U=j.depth;U>0;U-=1)if(j.node(U).type===B){if(N){const Y=j.before(U),K=j.after(U);$.delete(Y,K).scrollIntoView()}return!0}return!1},deleteRange=M=>({tr:$,dispatch:I})=>{const{from:N,to:B}=M;return I&&$.delete(N,B),!0},deleteSelection=()=>({state:M,dispatch:$})=>deleteSelection$1(M,$),enter=()=>({commands:M})=>M.keyboardShortcut("Enter"),exitCode=()=>({state:M,dispatch:$})=>exitCode$1(M,$);function objectIncludes$1(M,$,I={strict:!0}){const N=Object.keys($);return N.length?N.every(B=>I.strict?$[B]===M[B]:isRegExp$4($[B])?$[B].test(M[B]):$[B]===M[B]):!0}function findMarkInSet(M,$,I={}){return M.find(N=>N.type===$&&objectIncludes$1(N.attrs,I))}function isMarkInSet(M,$,I={}){return!!findMarkInSet(M,$,I)}function getMarkRange(M,$,I={}){if(!M||!$)return;let N=M.parent.childAfter(M.parentOffset);if(M.parentOffset===N.offset&&N.offset!==0&&(N=M.parent.childBefore(M.parentOffset)),!N.node)return;const B=findMarkInSet([...N.node.marks],$,I);if(!B)return;let j=N.index,U=M.start()+N.offset,q=j+1,Y=U+N.node.nodeSize;for(findMarkInSet([...N.node.marks],$,I);j>0&&B.isInSet(M.parent.child(j-1).marks);)j-=1,U-=M.parent.child(j).nodeSize;for(;q<M.parent.childCount&&isMarkInSet([...M.parent.child(q).marks],$,I);)Y+=M.parent.child(q).nodeSize,q+=1;return{from:U,to:Y}}function getMarkType(M,$){if(typeof M=="string"){if(!$.marks[M])throw Error(`There is no mark type named '${M}'. Maybe you forgot to add the extension?`);return $.marks[M]}return M}const extendMarkRange=(M,$={})=>({tr:I,state:N,dispatch:B})=>{const j=getMarkType(M,N.schema),{doc:U,selection:q}=I,{$from:Y,from:K,to:G}=q;if(B){const J=getMarkRange(Y,j,$);if(J&&J.from<=K&&J.to>=G){const Z=TextSelection.create(U,J.from,J.to);I.setSelection(Z)}}return!0},first$1=M=>$=>{const I=typeof M=="function"?M($):M;for(let N=0;N<I.length;N+=1)if(I[N]($))return!0;return!1};function isTextSelection(M){return M instanceof TextSelection}function minMax(M=0,$=0,I=0){return Math.min(Math.max(M,$),I)}function resolveFocusPosition(M,$=null){if(!$)return null;const I=Selection.atStart(M),N=Selection.atEnd(M);if($==="start"||$===!0)return I;if($==="end")return N;const B=I.from,j=N.to;return $==="all"?TextSelection.create(M,minMax(0,B,j),minMax(M.content.size,B,j)):TextSelection.create(M,minMax($,B,j),minMax($,B,j))}function isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const focus=(M=null,$={})=>({editor:I,view:N,tr:B,dispatch:j})=>{$={scrollIntoView:!0,...$};const U=()=>{isiOS()&&N.dom.focus(),requestAnimationFrame(()=>{I.isDestroyed||(N.focus(),$!=null&&$.scrollIntoView&&I.commands.scrollIntoView())})};if(N.hasFocus()&&M===null||M===!1)return!0;if(j&&M===null&&!isTextSelection(I.state.selection))return U(),!0;const q=resolveFocusPosition(B.doc,M)||I.state.selection,Y=I.state.selection.eq(q);return j&&(Y||B.setSelection(q),Y&&B.storedMarks&&B.setStoredMarks(B.storedMarks),U()),!0},forEach$1=(M,$)=>I=>M.every((N,B)=>$(N,{...I,index:B})),insertContent=(M,$)=>({tr:I,commands:N})=>N.insertContentAt({from:I.selection.from,to:I.selection.to},M,$),removeWhitespaces=M=>{const $=M.childNodes;for(let I=$.length-1;I>=0;I-=1){const N=$[I];N.nodeType===3&&N.nodeValue&&/^(\n\s\s|\n)$/.test(N.nodeValue)?M.removeChild(N):N.nodeType===1&&removeWhitespaces(N)}return M};function elementFromString(M){const $=`<body>${M}</body>`,I=new window.DOMParser().parseFromString($,"text/html").body;return removeWhitespaces(I)}function createNodeFromContent(M,$,I){I={slice:!0,parseOptions:{},...I};const N=typeof M=="object"&&M!==null,B=typeof M=="string";if(N)try{if(Array.isArray(M)&&M.length>0)return Fragment.fromArray(M.map(q=>$.nodeFromJSON(q)));const U=$.nodeFromJSON(M);return I.errorOnInvalidContent&&U.check(),U}catch(j){if(I.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:j});return console.warn("[tiptap warn]: Invalid content.","Passed value:",M,"Error:",j),createNodeFromContent("",$,I)}if(B){if(I.errorOnInvalidContent){let U=!1,q="";const Y=new Schema({topNode:$.spec.topNode,marks:$.spec.marks,nodes:$.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:K=>(U=!0,q=typeof K=="string"?K:K.outerHTML,null)}]}})});if(I.slice?DOMParser.fromSchema(Y).parseSlice(elementFromString(M),I.parseOptions):DOMParser.fromSchema(Y).parse(elementFromString(M),I.parseOptions),I.errorOnInvalidContent&&U)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${q}`)})}const j=DOMParser.fromSchema($);return I.slice?j.parseSlice(elementFromString(M),I.parseOptions).content:j.parse(elementFromString(M),I.parseOptions)}return createNodeFromContent("",$,I)}function selectionToInsertionEnd(M,$,I){const N=M.steps.length-1;if(N<$)return;const B=M.steps[N];if(!(B instanceof ReplaceStep||B instanceof ReplaceAroundStep))return;const j=M.mapping.maps[N];let U=0;j.forEach((q,Y,K,G)=>{U===0&&(U=G)}),M.setSelection(Selection.near(M.doc.resolve(U),I))}const isFragment=M=>!("type"in M),insertContentAt=(M,$,I)=>({tr:N,dispatch:B,editor:j})=>{var U;if(B){I={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...I};let q;try{q=createNodeFromContent($,j.schema,{parseOptions:{preserveWhitespace:"full",...I.parseOptions},errorOnInvalidContent:(U=I.errorOnInvalidContent)!==null&&U!==void 0?U:j.options.enableContentCheck})}catch(te){return j.emit("contentError",{editor:j,error:te,disableCollaboration:()=>{console.error("[tiptap error]: Unable to disable collaboration at this point in time")}}),!1}let{from:Y,to:K}=typeof M=="number"?{from:M,to:M}:{from:M.from,to:M.to},G=!0,J=!0;if((isFragment(q)?q:[q]).forEach(te=>{te.check(),G=G?te.isText&&te.marks.length===0:!1,J=J?te.isBlock:!1}),Y===K&&J){const{parent:te}=N.doc.resolve(Y);te.isTextblock&&!te.type.spec.code&&!te.childCount&&(Y-=1,K+=1)}let ee;G?(Array.isArray($)?ee=$.map(te=>te.text||"").join(""):typeof $=="object"&&$&&$.text?ee=$.text:ee=$,N.insertText(ee,Y,K)):(ee=q,N.replaceWith(Y,K,ee)),I.updateSelection&&selectionToInsertionEnd(N,N.steps.length-1,-1),I.applyInputRules&&N.setMeta("applyInputRules",{from:Y,text:ee}),I.applyPasteRules&&N.setMeta("applyPasteRules",{from:Y,text:ee})}return!0},joinUp=()=>({state:M,dispatch:$})=>joinUp$1(M,$),joinDown=()=>({state:M,dispatch:$})=>joinDown$1(M,$),joinBackward=()=>({state:M,dispatch:$})=>joinBackward$1(M,$),joinForward=()=>({state:M,dispatch:$})=>joinForward$1(M,$),joinItemBackward=()=>({state:M,dispatch:$,tr:I})=>{try{const N=joinPoint(M.doc,M.selection.$from.pos,-1);return N==null?!1:(I.join(N,2),$&&$(I),!0)}catch{return!1}},joinItemForward=()=>({state:M,dispatch:$,tr:I})=>{try{const N=joinPoint(M.doc,M.selection.$from.pos,1);return N==null?!1:(I.join(N,2),$&&$(I),!0)}catch{return!1}},joinTextblockBackward=()=>({state:M,dispatch:$})=>joinTextblockBackward$1(M,$),joinTextblockForward=()=>({state:M,dispatch:$})=>joinTextblockForward$1(M,$);function isMacOS(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function normalizeKeyName(M){const $=M.split(/-(?!$)/);let I=$[$.length-1];I==="Space"&&(I=" ");let N,B,j,U;for(let q=0;q<$.length-1;q+=1){const Y=$[q];if(/^(cmd|meta|m)$/i.test(Y))U=!0;else if(/^a(lt)?$/i.test(Y))N=!0;else if(/^(c|ctrl|control)$/i.test(Y))B=!0;else if(/^s(hift)?$/i.test(Y))j=!0;else if(/^mod$/i.test(Y))isiOS()||isMacOS()?U=!0:B=!0;else throw new Error(`Unrecognized modifier name: ${Y}`)}return N&&(I=`Alt-${I}`),B&&(I=`Ctrl-${I}`),U&&(I=`Meta-${I}`),j&&(I=`Shift-${I}`),I}const keyboardShortcut=M=>({editor:$,view:I,tr:N,dispatch:B})=>{const j=normalizeKeyName(M).split(/-(?!$)/),U=j.find(K=>!["Alt","Ctrl","Meta","Shift"].includes(K)),q=new KeyboardEvent("keydown",{key:U==="Space"?" ":U,altKey:j.includes("Alt"),ctrlKey:j.includes("Ctrl"),metaKey:j.includes("Meta"),shiftKey:j.includes("Shift"),bubbles:!0,cancelable:!0}),Y=$.captureTransaction(()=>{I.someProp("handleKeyDown",K=>K(I,q))});return Y==null||Y.steps.forEach(K=>{const G=K.map(N.mapping);G&&B&&N.maybeStep(G)}),!0};function isNodeActive(M,$,I={}){const{from:N,to:B,empty:j}=M.selection,U=$?getNodeType($,M.schema):null,q=[];M.doc.nodesBetween(N,B,(J,Z)=>{if(J.isText)return;const ee=Math.max(N,Z),te=Math.min(B,Z+J.nodeSize);q.push({node:J,from:ee,to:te})});const Y=B-N,K=q.filter(J=>U?U.name===J.node.type.name:!0).filter(J=>objectIncludes$1(J.node.attrs,I,{strict:!1}));return j?!!K.length:K.reduce((J,Z)=>J+Z.to-Z.from,0)>=Y}const lift=(M,$={})=>({state:I,dispatch:N})=>{const B=getNodeType(M,I.schema);return isNodeActive(I,B,$)?lift$1(I,N):!1},liftEmptyBlock=()=>({state:M,dispatch:$})=>liftEmptyBlock$1(M,$),liftListItem=M=>({state:$,dispatch:I})=>{const N=getNodeType(M,$.schema);return liftListItem$1(N)($,I)},newlineInCode=()=>({state:M,dispatch:$})=>newlineInCode$1(M,$);function getSchemaTypeNameByName(M,$){return $.nodes[M]?"node":$.marks[M]?"mark":null}function deleteProps(M,$){const I=typeof $=="string"?[$]:$;return Object.keys(M).reduce((N,B)=>(I.includes(B)||(N[B]=M[B]),N),{})}const resetAttributes=(M,$)=>({tr:I,state:N,dispatch:B})=>{let j=null,U=null;const q=getSchemaTypeNameByName(typeof M=="string"?M:M.name,N.schema);return q?(q==="node"&&(j=getNodeType(M,N.schema)),q==="mark"&&(U=getMarkType(M,N.schema)),B&&I.selection.ranges.forEach(Y=>{N.doc.nodesBetween(Y.$from.pos,Y.$to.pos,(K,G)=>{j&&j===K.type&&I.setNodeMarkup(G,void 0,deleteProps(K.attrs,$)),U&&K.marks.length&&K.marks.forEach(J=>{U===J.type&&I.addMark(G,G+K.nodeSize,U.create(deleteProps(J.attrs,$)))})})}),!0):!1},scrollIntoView=()=>({tr:M,dispatch:$})=>($&&M.scrollIntoView(),!0),selectAll=()=>({tr:M,commands:$})=>$.setTextSelection({from:0,to:M.doc.content.size}),selectNodeBackward=()=>({state:M,dispatch:$})=>selectNodeBackward$1(M,$),selectNodeForward=()=>({state:M,dispatch:$})=>selectNodeForward$1(M,$),selectParentNode=()=>({state:M,dispatch:$})=>selectParentNode$1(M,$),selectTextblockEnd=()=>({state:M,dispatch:$})=>selectTextblockEnd$1(M,$),selectTextblockStart=()=>({state:M,dispatch:$})=>selectTextblockStart$1(M,$);function createDocument(M,$,I={},N={}){return createNodeFromContent(M,$,{slice:!1,parseOptions:I,errorOnInvalidContent:N.errorOnInvalidContent})}const setContent$1=(M,$=!1,I={},N={})=>({editor:B,tr:j,dispatch:U,commands:q})=>{var Y,K;const{doc:G}=j;if(I.preserveWhitespace!=="full"){const J=createDocument(M,B.schema,I,{errorOnInvalidContent:(Y=N.errorOnInvalidContent)!==null&&Y!==void 0?Y:B.options.enableContentCheck});return U&&j.replaceWith(0,G.content.size,J).setMeta("preventUpdate",!$),!0}return U&&j.setMeta("preventUpdate",!$),q.insertContentAt({from:0,to:G.content.size},M,{parseOptions:I,errorOnInvalidContent:(K=N.errorOnInvalidContent)!==null&&K!==void 0?K:B.options.enableContentCheck})};function getMarkAttributes(M,$){const I=getMarkType($,M.schema),{from:N,to:B,empty:j}=M.selection,U=[];j?(M.storedMarks&&U.push(...M.storedMarks),U.push(...M.selection.$head.marks())):M.doc.nodesBetween(N,B,Y=>{U.push(...Y.marks)});const q=U.find(Y=>Y.type.name===I.name);return q?{...q.attrs}:{}}function combineTransactionSteps(M,$){const I=new Transform(M);return $.forEach(N=>{N.steps.forEach(B=>{I.step(B)})}),I}function defaultBlockAt(M){for(let $=0;$<M.edgeCount;$+=1){const{type:I}=M.edge($);if(I.isTextblock&&!I.hasRequiredAttrs())return I}return null}function findChildren(M,$){const I=[];return M.descendants((N,B)=>{$(N)&&I.push({node:N,pos:B})}),I}function findChildrenInRange(M,$,I){const N=[];return M.nodesBetween($.from,$.to,(B,j)=>{I(B)&&N.push({node:B,pos:j})}),N}function findParentNodeClosestToPos(M,$){for(let I=M.depth;I>0;I-=1){const N=M.node(I);if($(N))return{pos:I>0?M.before(I):0,start:M.start(I),depth:I,node:N}}}function findParentNode(M){return $=>findParentNodeClosestToPos($.$from,M)}function getHTMLFromFragment(M,$){const I=DOMSerializer.fromSchema($).serializeFragment(M),B=document.implementation.createHTMLDocument().createElement("div");return B.appendChild(I),B.innerHTML}function getSchema(M,$){const I=ExtensionManager.resolve(M);return getSchemaByResolvedExtensions(I,$)}function generateHTML(M,$){const I=getSchema($),N=Node$2.fromJSON(I,M);return getHTMLFromFragment(N.content,I)}function generateJSON(M,$){const I=getSchema($),N=elementFromString(M);return DOMParser.fromSchema(I).parse(N).toJSON()}function getText(M,$){const I={from:0,to:M.content.size};return getTextBetween(M,I,$)}function generateText(M,$,I){const{blockSeparator:N=` `,textSerializers:B={}}=I||{},j=getSchema($),U=Node$2.fromJSON(j,M);return getText(U,{blockSeparator:N,textSerializers:{...getTextSerializersFromSchema(j),...B}})}function getNodeAttributes(M,$){const I=getNodeType($,M.schema),{from:N,to:B}=M.selection,j=[];M.doc.nodesBetween(N,B,q=>{j.push(q)});const U=j.reverse().find(q=>q.type.name===I.name);return U?{...U.attrs}:{}}function getAttributes(M,$){const I=getSchemaTypeNameByName(typeof $=="string"?$:$.name,M.schema);return I==="node"?getNodeAttributes(M,$):I==="mark"?getMarkAttributes(M,$):{}}function removeDuplicates(M,$=JSON.stringify){const I={};return M.filter(N=>{const B=$(N);return Object.prototype.hasOwnProperty.call(I,B)?!1:I[B]=!0})}function simplifyChangedRanges(M){const $=removeDuplicates(M);return $.length===1?$:$.filter((I,N)=>!$.filter((j,U)=>U!==N).some(j=>I.oldRange.from>=j.oldRange.from&&I.oldRange.to<=j.oldRange.to&&I.newRange.from>=j.newRange.from&&I.newRange.to<=j.newRange.to))}function getChangedRanges(M){const{mapping:$,steps:I}=M,N=[];return $.maps.forEach((B,j)=>{const U=[];if(B.ranges.length)B.forEach((q,Y)=>{U.push({from:q,to:Y})});else{const{from:q,to:Y}=I[j];if(q===void 0||Y===void 0)return;U.push({from:q,to:Y})}U.forEach(({from:q,to:Y})=>{const K=$.slice(j).map(q,-1),G=$.slice(j).map(Y),J=$.invert().map(K,-1),Z=$.invert().map(G);N.push({oldRange:{from:J,to:Z},newRange:{from:K,to:G}})})}),simplifyChangedRanges(N)}function getDebugJSON(M,$=0){const N=M.type===M.type.schema.topNodeType?0:1,B=$,j=B+M.nodeSize,U=M.marks.map(K=>{const G={type:K.type.name};return Object.keys(K.attrs).length&&(G.attrs={...K.attrs}),G}),q={...M.attrs},Y={type:M.type.name,from:B,to:j};return Object.keys(q).length&&(Y.attrs=q),U.length&&(Y.marks=U),M.content.childCount&&(Y.content=[],M.forEach((K,G)=>{var J;(J=Y.content)===null||J===void 0||J.push(getDebugJSON(K,$+G+N))})),M.text&&(Y.text=M.text),Y}function getMarksBetween(M,$,I){const N=[];return M===$?I.resolve(M).marks().forEach(B=>{const j=I.resolve(M),U=getMarkRange(j,B.type);U&&N.push({mark:B,...U})}):I.nodesBetween(M,$,(B,j)=>{!B||(B==null?void 0:B.nodeSize)===void 0||N.push(...B.marks.map(U=>({from:j,to:j+B.nodeSize,mark:U})))}),N}const getNodeAtPosition=(M,$,I,N=20)=>{const B=M.doc.resolve(I);let j=N,U=null;for(;j>0&&U===null;){const q=B.node(j);(q==null?void 0:q.type.name)===$?U=q:j-=1}return[U,j]};function getSplittedAttributes(M,$,I){return Object.fromEntries(Object.entries(I).filter(([N])=>{const B=M.find(j=>j.type===$&&j.name===N);return B?B.attribute.keepOnSplit:!1}))}function isMarkActive(M,$,I={}){const{empty:N,ranges:B}=M.selection,j=$?getMarkType($,M.schema):null;if(N)return!!(M.storedMarks||M.selection.$from.marks()).filter(J=>j?j.name===J.type.name:!0).find(J=>objectIncludes$1(J.attrs,I,{strict:!1}));let U=0;const q=[];if(B.forEach(({$from:J,$to:Z})=>{const ee=J.pos,te=Z.pos;M.doc.nodesBetween(ee,te,(se,re)=>{if(!se.isText&&!se.marks.length)return;const ne=Math.max(ee,re),ce=Math.min(te,re+se.nodeSize),me=ce-ne;U+=me,q.push(...se.marks.map(ue=>({mark:ue,from:ne,to:ce})))})}),U===0)return!1;const Y=q.filter(J=>j?j.name===J.mark.type.name:!0).filter(J=>objectIncludes$1(J.mark.attrs,I,{strict:!1})).reduce((J,Z)=>J+Z.to-Z.from,0),K=q.filter(J=>j?J.mark.type!==j&&J.mark.type.excludes(j):!0).reduce((J,Z)=>J+Z.to-Z.from,0);return(Y>0?Y+K:Y)>=U}function isActive(M,$,I={}){if(!$)return isNodeActive(M,null,I)||isMarkActive(M,null,I);const N=getSchemaTypeNameByName($,M.schema);return N==="node"?isNodeActive(M,$,I):N==="mark"?isMarkActive(M,$,I):!1}const isAtEndOfNode=(M,$)=>{const{$from:I,$to:N,$anchor:B}=M.selection;if($){const j=findParentNode(q=>q.type.name===$)(M.selection);if(!j)return!1;const U=M.doc.resolve(j.pos+1);return B.pos+1===U.end()}return!(N.parentOffset<N.parent.nodeSize-2||I.pos!==N.pos)},isAtStartOfNode=M=>{const{$from:$,$to:I}=M.selection;return!($.parentOffset>0||$.pos!==I.pos)};function isList(M,$){const{nodeExtensions:I}=splitExtensions($),N=I.find(U=>U.name===M);if(!N)return!1;const B={name:N.name,options:N.options,storage:N.storage},j=callOrReturn(getExtensionField(N,"group",B));return typeof j!="string"?!1:j.split(" ").includes("list")}function isNodeEmpty(M,{checkChildren:$=!0,ignoreWhitespace:I=!1}={}){var N;if(I){if(M.type.name==="hardBreak")return!0;if(M.isText)return/^\s*$/m.test((N=M.text)!==null&&N!==void 0?N:"")}if(M.isText)return!M.text;if(M.isAtom||M.isLeaf)return!1;if(M.content.childCount===0)return!0;if($){let B=!0;return M.content.forEach(j=>{B!==!1&&(isNodeEmpty(j,{ignoreWhitespace:I,checkChildren:$})||(B=!1))}),B}return!1}function isNodeSelection(M){return M instanceof NodeSelection}function posToDOMRect(M,$,I){const B=M.state.doc.content.size,j=minMax($,0,B),U=minMax(I,0,B),q=M.coordsAtPos(j),Y=M.coordsAtPos(U,-1),K=Math.min(q.top,Y.top),G=Math.max(q.bottom,Y.bottom),J=Math.min(q.left,Y.left),Z=Math.max(q.right,Y.right),ee=Z-J,te=G-K,ne={top:K,bottom:G,left:J,right:Z,width:ee,height:te,x:J,y:K};return{...ne,toJSON:()=>ne}}function canSetMark(M,$,I){var N;const{selection:B}=$;let j=null;if(isTextSelection(B)&&(j=B.$cursor),j){const q=(N=M.storedMarks)!==null&&N!==void 0?N:j.marks();return!!I.isInSet(q)||!q.some(Y=>Y.type.excludes(I))}const{ranges:U}=B;return U.some(({$from:q,$to:Y})=>{let K=q.depth===0?M.doc.inlineContent&&M.doc.type.allowsMarkType(I):!1;return M.doc.nodesBetween(q.pos,Y.pos,(G,J,Z)=>{if(K)return!1;if(G.isInline){const ee=!Z||Z.type.allowsMarkType(I),te=!!I.isInSet(G.marks)||!G.marks.some(se=>se.type.excludes(I));K=ee&&te}return!K}),K})}const setMark=(M,$={})=>({tr:I,state:N,dispatch:B})=>{const{selection:j}=I,{empty:U,ranges:q}=j,Y=getMarkType(M,N.schema);if(B)if(U){const K=getMarkAttributes(N,Y);I.addStoredMark(Y.create({...K,...$}))}else q.forEach(K=>{const G=K.$from.pos,J=K.$to.pos;N.doc.nodesBetween(G,J,(Z,ee)=>{const te=Math.max(ee,G),se=Math.min(ee+Z.nodeSize,J);Z.marks.find(ne=>ne.type===Y)?Z.marks.forEach(ne=>{Y===ne.type&&I.addMark(te,se,Y.create({...ne.attrs,...$}))}):I.addMark(te,se,Y.create($))})});return canSetMark(N,I,Y)},setMeta=(M,$)=>({tr:I})=>(I.setMeta(M,$),!0),setNode=(M,$={})=>({state:I,dispatch:N,chain:B})=>{const j=getNodeType(M,I.schema);return j.isTextblock?B().command(({commands:U})=>setBlockType(j,$)(I)?!0:U.clearNodes()).command(({state:U})=>setBlockType(j,$)(U,N)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection=M=>({tr:$,dispatch:I})=>{if(I){const{doc:N}=$,B=minMax(M,0,N.content.size),j=NodeSelection.create(N,B);$.setSelection(j)}return!0},setTextSelection=M=>({tr:$,dispatch:I})=>{if(I){const{doc:N}=$,{from:B,to:j}=typeof M=="number"?{from:M,to:M}:M,U=TextSelection.atStart(N).from,q=TextSelection.atEnd(N).to,Y=minMax(B,U,q),K=minMax(j,U,q),G=TextSelection.create(N,Y,K);$.setSelection(G)}return!0},sinkListItem=M=>({state:$,dispatch:I})=>{const N=getNodeType(M,$.schema);return sinkListItem$1(N)($,I)};function ensureMarks(M,$){const I=M.storedMarks||M.selection.$to.parentOffset&&M.selection.$from.marks();if(I){const N=I.filter(B=>$==null?void 0:$.includes(B.type.name));M.tr.ensureMarks(N)}}const splitBlock=({keepMarks:M=!0}={})=>({tr:$,state:I,dispatch:N,editor:B})=>{const{selection:j,doc:U}=$,{$from:q,$to:Y}=j,K=B.extensionManager.attributes,G=getSplittedAttributes(K,q.node().type.name,q.node().attrs);if(j instanceof NodeSelection&&j.node.isBlock)return!q.parentOffset||!canSplit(U,q.pos)?!1:(N&&(M&&ensureMarks(I,B.extensionManager.splittableMarks),$.split(q.pos).scrollIntoView()),!0);if(!q.parent.isBlock)return!1;const J=Y.parentOffset===Y.parent.content.size,Z=q.depth===0?void 0:defaultBlockAt(q.node(-1).contentMatchAt(q.indexAfter(-1)));let ee=J&&Z?[{type:Z,attrs:G}]:void 0,te=canSplit($.doc,$.mapping.map(q.pos),1,ee);if(!ee&&!te&&canSplit($.doc,$.mapping.map(q.pos),1,Z?[{type:Z}]:void 0)&&(te=!0,ee=Z?[{type:Z,attrs:G}]:void 0),N){if(te&&(j instanceof TextSelection&&$.deleteSelection(),$.split($.mapping.map(q.pos),1,ee),Z&&!J&&!q.parentOffset&&q.parent.type!==Z)){const se=$.mapping.map(q.before()),re=$.doc.resolve(se);q.node(-1).canReplaceWith(re.index(),re.index()+1,Z)&&$.setNodeMarkup($.mapping.map(q.before()),Z)}M&&ensureMarks(I,B.extensionManager.splittableMarks),$.scrollIntoView()}return te},splitListItem=(M,$={})=>({tr:I,state:N,dispatch:B,editor:j})=>{var U;const q=getNodeType(M,N.schema),{$from:Y,$to:K}=N.selection,G=N.selection.node;if(G&&G.isBlock||Y.depth<2||!Y.sameParent(K))return!1;const J=Y.node(-1);if(J.type!==q)return!1;const Z=j.extensionManager.attributes;if(Y.parent.content.size===0&&Y.node(-1).childCount===Y.indexAfter(-1)){if(Y.depth===2||Y.node(-3).type!==q||Y.index(-2)!==Y.node(-2).childCount-1)return!1;if(B){let ne=Fragment.empty;const ce=Y.index(-1)?1:Y.index(-2)?2:3;for(let ye=Y.depth-ce;ye>=Y.depth-3;ye-=1)ne=Fragment.from(Y.node(ye).copy(ne));const me=Y.indexAfter(-1)<Y.node(-2).childCount?1:Y.indexAfter(-2)<Y.node(-3).childCount?2:3,ue={...getSplittedAttributes(Z,Y.node().type.name,Y.node().attrs),...$},_e=((U=q.contentMatch.defaultType)===null||U===void 0?void 0:U.createAndFill(ue))||void 0;ne=ne.append(Fragment.from(q.createAndFill(null,_e)||void 0));const fe=Y.before(Y.depth-(ce-1));I.replace(fe,Y.after(-me),new Slice(ne,4-ce,0));let ge=-1;I.doc.nodesBetween(fe,I.doc.content.size,(ye,xe)=>{if(ge>-1)return!1;ye.isTextblock&&ye.content.size===0&&(ge=xe+1)}),ge>-1&&I.setSelection(TextSelection.near(I.doc.resolve(ge))),I.scrollIntoView()}return!0}const ee=K.pos===Y.end()?J.contentMatchAt(0).defaultType:null,te={...getSplittedAttributes(Z,J.type.name,J.attrs),...$},se={...getSplittedAttributes(Z,Y.node().type.name,Y.node().attrs),...$};I.delete(Y.pos,K.pos);const re=ee?[{type:q,attrs:te},{type:ee,attrs:se}]:[{type:q,attrs:te}];if(!canSplit(I.doc,Y.pos,2))return!1;if(B){const{selection:ne,storedMarks:ce}=N,{splittableMarks:me}=j.extensionManager,ue=ce||ne.$to.parentOffset&&ne.$from.marks();if(I.split(Y.pos,2,re).scrollIntoView(),!ue||!B)return!0;const _e=ue.filter(fe=>me.includes(fe.type.name));I.ensureMarks(_e)}return!0},joinListBackwards=(M,$)=>{const I=findParentNode(U=>U.type===$)(M.selection);if(!I)return!0;const N=M.doc.resolve(Math.max(0,I.pos-1)).before(I.depth);if(N===void 0)return!0;const B=M.doc.nodeAt(N);return I.node.type===(B==null?void 0:B.type)&&canJoin(M.doc,I.pos)&&M.join(I.pos),!0},joinListForwards=(M,$)=>{const I=findParentNode(U=>U.type===$)(M.selection);if(!I)return!0;const N=M.doc.resolve(I.start).after(I.depth);if(N===void 0)return!0;const B=M.doc.nodeAt(N);return I.node.type===(B==null?void 0:B.type)&&canJoin(M.doc,N)&&M.join(N),!0},toggleList=(M,$,I,N={})=>({editor:B,tr:j,state:U,dispatch:q,chain:Y,commands:K,can:G})=>{const{extensions:J,splittableMarks:Z}=B.extensionManager,ee=getNodeType(M,U.schema),te=getNodeType($,U.schema),{selection:se,storedMarks:re}=U,{$from:ne,$to:ce}=se,me=ne.blockRange(ce),ue=re||se.$to.parentOffset&&se.$from.marks();if(!me)return!1;const _e=findParentNode(fe=>isList(fe.type.name,J))(se);if(me.depth>=1&&_e&&me.depth-_e.depth<=1){if(_e.node.type===ee)return K.liftListItem(te);if(isList(_e.node.type.name,J)&&ee.validContent(_e.node.content)&&q)return Y().command(()=>(j.setNodeMarkup(_e.pos,ee),!0)).command(()=>joinListBackwards(j,ee)).command(()=>joinListForwards(j,ee)).run()}return!I||!ue||!q?Y().command(()=>G().wrapInList(ee,N)?!0:K.clearNodes()).wrapInList(ee,N).command(()=>joinListBackwards(j,ee)).command(()=>joinListForwards(j,ee)).run():Y().command(()=>{const fe=G().wrapInList(ee,N),ge=ue.filter(ye=>Z.includes(ye.type.name));return j.ensureMarks(ge),fe?!0:K.clearNodes()}).wrapInList(ee,N).command(()=>joinListBackwards(j,ee)).command(()=>joinListForwards(j,ee)).run()},toggleMark=(M,$={},I={})=>({state:N,commands:B})=>{const{extendEmptyMarkRange:j=!1}=I,U=getMarkType(M,N.schema);return isMarkActive(N,U,$)?B.unsetMark(U,{extendEmptyMarkRange:j}):B.setMark(U,$)},toggleNode=(M,$,I={})=>({state:N,commands:B})=>{const j=getNodeType(M,N.schema),U=getNodeType($,N.schema),q=isNodeActive(N,j,I);let Y;return N.selection.$anchor.sameParent(N.selection.$head)&&(Y=N.selection.$anchor.parent.attrs),q?B.setNode(U,Y):B.setNode(j,{...Y,...I})},toggleWrap=(M,$={})=>({state:I,commands:N})=>{const B=getNodeType(M,I.schema);return isNodeActive(I,B,$)?N.lift(B):N.wrapIn(B,$)},undoInputRule=()=>({state:M,dispatch:$})=>{const I=M.plugins;for(let N=0;N<I.length;N+=1){const B=I[N];let j;if(B.spec.isInputRules&&(j=B.getState(M))){if($){const U=M.tr,q=j.transform;for(let Y=q.steps.length-1;Y>=0;Y-=1)U.step(q.steps[Y].invert(q.docs[Y]));if(j.text){const Y=U.doc.resolve(j.from).marks();U.replaceWith(j.from,j.to,M.schema.text(j.text,Y))}else U.delete(j.from,j.to)}return!0}}return!1},unsetAllMarks=()=>({tr:M,dispatch:$})=>{const{selection:I}=M,{empty:N,ranges:B}=I;return N||$&&B.forEach(j=>{M.removeMark(j.$from.pos,j.$to.pos)}),!0},unsetMark=(M,$={})=>({tr:I,state:N,dispatch:B})=>{var j;const{extendEmptyMarkRange:U=!1}=$,{selection:q}=I,Y=getMarkType(M,N.schema),{$from:K,empty:G,ranges:J}=q;if(!B)return!0;if(G&&U){let{from:Z,to:ee}=q;const te=(j=K.marks().find(re=>re.type===Y))===null||j===void 0?void 0:j.attrs,se=getMarkRange(K,Y,te);se&&(Z=se.from,ee=se.to),I.removeMark(Z,ee,Y)}else J.forEach(Z=>{I.removeMark(Z.$from.pos,Z.$to.pos,Y)});return I.removeStoredMark(Y),!0},updateAttributes=(M,$={})=>({tr:I,state:N,dispatch:B})=>{let j=null,U=null;const q=getSchemaTypeNameByName(typeof M=="string"?M:M.name,N.schema);return q?(q==="node"&&(j=getNodeType(M,N.schema)),q==="mark"&&(U=getMarkType(M,N.schema)),B&&I.selection.ranges.forEach(Y=>{const K=Y.$from.pos,G=Y.$to.pos;N.doc.nodesBetween(K,G,(J,Z)=>{j&&j===J.type&&I.setNodeMarkup(Z,void 0,{...J.attrs,...$}),U&&J.marks.length&&J.marks.forEach(ee=>{if(U===ee.type){const te=Math.max(Z,K),se=Math.min(Z+J.nodeSize,G);I.addMark(te,se,U.create({...ee.attrs,...$}))}})})}),!0):!1},wrapIn=(M,$={})=>({state:I,dispatch:N})=>{const B=getNodeType(M,I.schema);return wrapIn$1(B,$)(I,N)},wrapInList=(M,$={})=>({state:I,dispatch:N})=>{const B=getNodeType(M,I.schema);return wrapInList$1(B,$)(I,N)};var commands=Object.freeze({__proto__:null,blur,clearContent,clearNodes,command,createParagraphNear,cut,deleteCurrentNode,deleteNode,deleteRange,deleteSelection,enter,exitCode,extendMarkRange,first:first$1,focus,forEach:forEach$1,insertContent,insertContentAt,joinBackward,joinDown,joinForward,joinItemBackward,joinItemForward,joinTextblockBackward,joinTextblockForward,joinUp,keyboardShortcut,lift,liftEmptyBlock,liftListItem,newlineInCode,resetAttributes,scrollIntoView,selectAll,selectNodeBackward,selectNodeForward,selectParentNode,selectTextblockEnd,selectTextblockStart,setContent:setContent$1,setMark,setMeta,setNode,setNodeSelection,setTextSelection,sinkListItem,splitBlock,splitListItem,toggleList,toggleMark,toggleNode,toggleWrap,undoInputRule,unsetAllMarks,unsetMark,updateAttributes,wrapIn,wrapInList});const Commands=Extension.create({name:"commands",addCommands(){return{...commands}}}),Drop=Extension.create({name:"drop",addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("tiptapDrop"),props:{handleDrop:(M,$,I,N)=>{this.editor.emit("drop",{editor:this.editor,event:$,slice:I,moved:N})}}})]}}),Editable=Extension.create({name:"editable",addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("editable"),props:{editable:()=>this.editor.options.editable}})]}}),FocusEvents=Extension.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:M}=this;return[new Plugin({key:new PluginKey("focusEvents"),props:{handleDOMEvents:{focus:($,I)=>{M.isFocused=!0;const N=M.state.tr.setMeta("focus",{event:I}).setMeta("addToHistory",!1);return $.dispatch(N),!1},blur:($,I)=>{M.isFocused=!1;const N=M.state.tr.setMeta("blur",{event:I}).setMeta("addToHistory",!1);return $.dispatch(N),!1}}}})]}}),Keymap=Extension.create({name:"keymap",addKeyboardShortcuts(){const M=()=>this.editor.commands.first(({commands:U})=>[()=>U.undoInputRule(),()=>U.command(({tr:q})=>{const{selection:Y,doc:K}=q,{empty:G,$anchor:J}=Y,{pos:Z,parent:ee}=J,te=J.parent.isTextblock&&Z>0?q.doc.resolve(Z-1):J,se=te.parent.type.spec.isolating,re=J.pos-J.parentOffset,ne=se&&te.parent.childCount===1?re===J.pos:Selection.atStart(K).from===Z;return!G||!ee.type.isTextblock||ee.textContent.length||!ne||ne&&J.parent.type.name==="paragraph"?!1:U.clearNodes()}),()=>U.deleteSelection(),()=>U.joinBackward(),()=>U.selectNodeBackward()]),$=()=>this.editor.commands.first(({commands:U})=>[()=>U.deleteSelection(),()=>U.deleteCurrentNode(),()=>U.joinForward(),()=>U.selectNodeForward()]),N={Enter:()=>this.editor.commands.first(({commands:U})=>[()=>U.newlineInCode(),()=>U.createParagraphNear(),()=>U.liftEmptyBlock(),()=>U.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:M,"Mod-Backspace":M,"Shift-Backspace":M,Delete:$,"Mod-Delete":$,"Mod-a":()=>this.editor.commands.selectAll()},B={...N},j={...N,"Ctrl-h":M,"Alt-Backspace":M,"Ctrl-d":$,"Ctrl-Alt-Backspace":$,"Alt-Delete":$,"Alt-d":$,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return isiOS()||isMacOS()?j:B},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("clearDocument"),appendTransaction:(M,$,I)=>{const N=M.some(se=>se.docChanged)&&!$.doc.eq(I.doc),B=M.some(se=>se.getMeta("preventClearDocument"));if(!N||B)return;const{empty:j,from:U,to:q}=$.selection,Y=Selection.atStart($.doc).from,K=Selection.atEnd($.doc).to;if(j||!(U===Y&&q===K)||!isNodeEmpty(I.doc))return;const Z=I.tr,ee=createChainableState({state:I,transaction:Z}),{commands:te}=new CommandManager({editor:this.editor,state:ee});if(te.clearNodes(),!!Z.steps.length)return Z}})]}}),Paste=Extension.create({name:"paste",addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("tiptapPaste"),props:{handlePaste:(M,$,I)=>{this.editor.emit("paste",{editor:this.editor,event:$,slice:I})}}})]}}),Tabindex=Extension.create({name:"tabindex",addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});var index$2=Object.freeze({__proto__:null,ClipboardTextSerializer,Commands,Drop,Editable,FocusEvents,Keymap,Paste,Tabindex});class NodePos{get name(){return this.node.type.name}constructor($,I,N=!1,B=null){this.currentNode=null,this.actualDepth=null,this.isBlock=N,this.resolvedPos=$,this.editor=I,this.currentNode=B}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var $;return($=this.actualDepth)!==null&&$!==void 0?$:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content($){let I=this.from,N=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}I=this.from+1,N=this.to-1}this.editor.commands.insertContentAt({from:I,to:N},$)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const $=this.resolvedPos.start(this.resolvedPos.depth-1),I=this.resolvedPos.doc.resolve($);return new NodePos(I,this.editor)}get before(){let $=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return $.depth!==this.depth&&($=this.resolvedPos.doc.resolve(this.from-3)),new NodePos($,this.editor)}get after(){let $=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return $.depth!==this.depth&&($=this.resolvedPos.doc.resolve(this.to+3)),new NodePos($,this.editor)}get children(){const $=[];return this.node.content.forEach((I,N)=>{const B=I.isBlock&&!I.isTextblock,j=this.pos+N+1,U=this.resolvedPos.doc.resolve(j);if(!B&&U.depth<=this.depth)return;const q=new NodePos(U,this.editor,B,B?I:null);B&&(q.actualDepth=this.depth+1),$.push(new NodePos(U,this.editor,B,B?I:null))}),$}get firstChild(){return this.children[0]||null}get lastChild(){const $=this.children;return $[$.length-1]||null}closest($,I={}){let N=null,B=this.parent;for(;B&&!N;){if(B.node.type.name===$)if(Object.keys(I).length>0){const j=B.node.attrs,U=Object.keys(I);for(let q=0;q<U.length;q+=1){const Y=U[q];if(j[Y]!==I[Y])break}}else N=B;B=B.parent}return N}querySelector($,I={}){return this.querySelectorAll($,I,!0)[0]||null}querySelectorAll($,I={},N=!1){let B=[];if(!this.children||this.children.length===0)return B;const j=Object.keys(I);return this.children.forEach(U=>{N&&B.length>0||(U.node.type.name===$&&j.every(Y=>I[Y]===U.node.attrs[Y])&&B.push(U),!(N&&B.length>0)&&(B=B.concat(U.querySelectorAll($,I,N))))}),B}setAttribute($){const I=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,$).setTextSelection(I.from).run()}}const style$1=`.ProseMirror { position: relative; } .ProseMirror { word-wrap: break-word; white-space: pre-wrap; white-space: break-spaces; -webkit-font-variant-ligatures: none; font-variant-ligatures: none; font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ } .ProseMirror [contenteditable="false"] { white-space: normal; } .ProseMirror [contenteditable="false"] [contenteditable="true"] { white-space: pre-wrap; } .ProseMirror pre { white-space: pre-wrap; } img.ProseMirror-separator { display: inline !important; border: none !important; margin: 0 !important; width: 0 !important; height: 0 !important; } .ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; margin: 0; } .ProseMirror-gapcursor:after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid black; animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; } @keyframes ProseMirror-cursor-blink { to { visibility: hidden; } } .ProseMirror-hideselection *::selection { background: transparent; } .ProseMirror-hideselection *::-moz-selection { background: transparent; } .ProseMirror-hideselection * { caret-color: transparent; } .ProseMirror-focused .ProseMirror-gapcursor { display: block; } .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0 }`;function createStyleTag(M,$,I){const N=document.querySelector(`style[data-tiptap-style${I?`-${I}`:""}]`);if(N!==null)return N;const B=document.createElement("style");return $&&B.setAttribute("nonce",$),B.setAttribute(`data-tiptap-style${I?`-${I}`:""}`,""),B.innerHTML=M,document.getElementsByTagName("head")[0].appendChild(B),B}let Editor$1=class extends EventEmitter{constructor($={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:I})=>{throw I},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions($),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:I,slice:N,moved:B})=>this.options.onDrop(I,N,B)),this.on("paste",({event:I,slice:N})=>this.options.onPaste(I,N)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=createStyleTag(style$1,this.options.injectNonce))}setOptions($={}){this.options={...this.options,...$},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable($,I=!0){this.setOptions({editable:$}),I&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin($,I){const N=isFunction$5(I)?I($,[...this.state.plugins]):[...this.state.plugins,$],B=this.state.reconfigure({plugins:N});return this.view.updateState(B),B}unregisterPlugin($){if(this.isDestroyed)return;const I=typeof $=="string"?`${$}$`:$.key,N=this.state.reconfigure({plugins:this.state.plugins.filter(B=>!B.key.startsWith(I))});return this.view.updateState(N),N}createExtensionManager(){var $,I;const B=[...this.options.enableCoreExtensions?[Editable,ClipboardTextSerializer.configure({blockSeparator:(I=($=this.options.coreExtensionOptions)===null||$===void 0?void 0:$.clipboardTextSerializer)===null||I===void 0?void 0:I.blockSeparator}),Commands,FocusEvents,Keymap,Tabindex,Drop,Paste].filter(j=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[j.name]!==!1:!0):[],...this.options.extensions].filter(j=>["extension","node","mark"].includes(j==null?void 0:j.type));this.extensionManager=new ExtensionManager(B,this)}createCommandManager(){this.commandManager=new CommandManager({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let $;try{$=createDocument(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(j){if(!(j instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(j.message))throw j;this.emit("contentError",{editor:this,error:j,disableCollaboration:()=>{this.options.extensions=this.options.extensions.filter(U=>U.name!=="collaboration"),this.createExtensionManager()}}),$=createDocument(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const I=resolveFocusPosition($,this.options.autofocus);this.view=new EditorView(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:EditorState.create({doc:$,selection:I||void 0})});const N=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(N),this.createNodeViews(),this.prependClass();const B=this.view.dom;B.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction($){this.isCapturingTransaction=!0,$(),this.isCapturingTransaction=!1;const I=this.capturedTransaction;return this.capturedTransaction=null,I}dispatchTransaction($){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=$;return}$.steps.forEach(U=>{var q;return(q=this.capturedTransaction)===null||q===void 0?void 0:q.step(U)});return}const I=this.state.apply($),N=!this.state.selection.eq(I.selection);this.emit("beforeTransaction",{editor:this,transaction:$,nextState:I}),this.view.updateState(I),this.emit("transaction",{editor:this,transaction:$}),N&&this.emit("selectionUpdate",{editor:this,transaction:$});const B=$.getMeta("focus"),j=$.getMeta("blur");B&&this.emit("focus",{editor:this,event:B.event,transaction:$}),j&&this.emit("blur",{editor:this,event:j.event,transaction:$}),!(!$.docChanged||$.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:$})}getAttributes($){return getAttributes(this.state,$)}isActive($,I){const N=typeof $=="string"?$:null,B=typeof $=="string"?I:$;return isActive(this.state,N,B)}getJSON(){return this.state.doc.toJSON()}getHTML(){return getHTMLFromFragment(this.state.doc.content,this.schema)}getText($){const{blockSeparator:I=` `,textSerializers:N={}}=$||{};return getText(this.state.doc,{blockSeparator:I,textSerializers:{...getTextSerializersFromSchema(this.schema),...N}})}get isEmpty(){return isNodeEmpty(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const $=this.view.dom;$&&$.editor&&delete $.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var $;return!(!(($=this.view)===null||$===void 0)&&$.docView)}$node($,I){var N;return((N=this.$doc)===null||N===void 0?void 0:N.querySelector($,I))||null}$nodes($,I){var N;return((N=this.$doc)===null||N===void 0?void 0:N.querySelectorAll($,I))||null}$pos($){const I=this.state.doc.resolve($);return new NodePos(I,this)}get $doc(){return this.$pos(0)}};function markInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{const B=callOrReturn(M.getAttributes,void 0,N);if(B===!1||B===null)return null;const{tr:j}=$,U=N[N.length-1],q=N[0];if(U){const Y=q.search(/\S/),K=I.from+q.indexOf(U),G=K+U.length;if(getMarksBetween(I.from,I.to,$.doc).filter(ee=>ee.mark.type.excluded.find(se=>se===M.type&&se!==ee.mark.type)).filter(ee=>ee.to>K).length)return null;G<I.to&&j.delete(G,I.to),K>I.from&&j.delete(I.from+Y,K);const Z=I.from+Y+U.length;j.addMark(I.from+Y,Z,M.type.create(B||{})),j.removeStoredMark(M.type)}}})}function nodeInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{const B=callOrReturn(M.getAttributes,void 0,N)||{},{tr:j}=$,U=I.from;let q=I.to;const Y=M.type.create(B);if(N[1]){const K=N[0].lastIndexOf(N[1]);let G=U+K;G>q?G=q:q=G+N[1].length;const J=N[0][N[0].length-1];j.insertText(J,U+N[0].length-1),j.replaceWith(G,q,Y)}else if(N[0]){const K=M.type.isInline?U:U-1;j.insert(K,M.type.create(B)).delete(j.mapping.map(U),j.mapping.map(q))}j.scrollIntoView()}})}function textblockTypeInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{const B=$.doc.resolve(I.from),j=callOrReturn(M.getAttributes,void 0,N)||{};if(!B.node(-1).canReplaceWith(B.index(-1),B.indexAfter(-1),M.type))return null;$.tr.delete(I.from,I.to).setBlockType(I.from,I.from,M.type,j)}})}function textInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N})=>{let B=M.replace,j=I.from;const U=I.to;if(N[1]){const q=N[0].lastIndexOf(N[1]);B+=N[0].slice(q+N[1].length),j+=q;const Y=j-U;Y>0&&(B=N[0].slice(q-Y,q)+B,j=U)}$.tr.insertText(B,j,U)}})}function wrappingInputRule(M){return new InputRule({find:M.find,handler:({state:$,range:I,match:N,chain:B})=>{const j=callOrReturn(M.getAttributes,void 0,N)||{},U=$.tr.delete(I.from,I.to),Y=U.doc.resolve(I.from).blockRange(),K=Y&&findWrapping(Y,M.type,j);if(!K)return null;if(U.wrap(Y,K),M.keepMarks&&M.editor){const{selection:J,storedMarks:Z}=$,{splittableMarks:ee}=M.editor.extensionManager,te=Z||J.$to.parentOffset&&J.$from.marks();if(te){const se=te.filter(re=>ee.includes(re.type.name));U.ensureMarks(se)}}if(M.keepAttributes){const J=M.type.name==="bulletList"||M.type.name==="orderedList"?"listItem":"taskList";B().updateAttributes(J,j).run()}const G=U.doc.resolve(I.from-1).nodeBefore;G&&G.type===M.type&&canJoin(U.doc,I.from-1)&&(!M.joinPredicate||M.joinPredicate(N,G))&&U.join(I.from-1)}})}let Node$1=class wc{constructor($={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...$},this.name=this.config.name,$.defaultOptions&&Object.keys($.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=callOrReturn(getExtensionField(this,"addOptions",{name:this.name}))),this.storage=callOrReturn(getExtensionField(this,"addStorage",{name:this.name,options:this.options}))||{}}static create($={}){return new wc($)}configure($={}){const I=this.extend({...this.config,addOptions:()=>mergeDeep(this.options,$)});return I.name=this.name,I.parent=this.parent,I}extend($={}){const I=new wc($);return I.parent=this,this.child=I,I.name=$.name?$.name:I.parent.name,$.defaultOptions&&Object.keys($.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${I.name}".`),I.options=callOrReturn(getExtensionField(I,"addOptions",{name:I.name})),I.storage=callOrReturn(getExtensionField(I,"addStorage",{name:I.name,options:I.options})),I}};function isAndroid(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}class NodeView{constructor($,I,N){this.isDragging=!1,this.component=$,this.editor=I.editor,this.options={stopEvent:null,ignoreMutation:null,...N},this.extension=I.extension,this.node=I.node,this.decorations=I.decorations,this.innerDecorations=I.innerDecorations,this.view=I.view,this.HTMLAttributes=I.HTMLAttributes,this.getPos=I.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart($){var I,N,B,j,U,q,Y;const{view:K}=this.editor,G=$.target,J=G.nodeType===3?(I=G.parentElement)===null||I===void 0?void 0:I.closest("[data-drag-handle]"):G.closest("[data-drag-handle]");if(!this.dom||!((N=this.contentDOM)===null||N===void 0)&&N.contains(G)||!J)return;let Z=0,ee=0;if(this.dom!==J){const ne=this.dom.getBoundingClientRect(),ce=J.getBoundingClientRect(),me=(B=$.offsetX)!==null&&B!==void 0?B:(j=$.nativeEvent)===null||j===void 0?void 0:j.offsetX,ue=(U=$.offsetY)!==null&&U!==void 0?U:(q=$.nativeEvent)===null||q===void 0?void 0:q.offsetY;Z=ce.x-ne.x+me,ee=ce.y-ne.y+ue}(Y=$.dataTransfer)===null||Y===void 0||Y.setDragImage(this.dom,Z,ee);const te=this.getPos();if(typeof te!="number")return;const se=NodeSelection.create(K.state.doc,te),re=K.state.tr.setSelection(se);K.dispatch(re)}stopEvent($){var I;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:$});const N=$.target;if(!(this.dom.contains(N)&&!(!((I=this.contentDOM)===null||I===void 0)&&I.contains(N))))return!1;const j=$.type.startsWith("drag"),U=$.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(N.tagName)||N.isContentEditable)&&!U&&!j)return!0;const{isEditable:Y}=this.editor,{isDragging:K}=this,G=!!this.node.type.spec.draggable,J=NodeSelection.isSelectable(this.node),Z=$.type==="copy",ee=$.type==="paste",te=$.type==="cut",se=$.type==="mousedown";if(!G&&J&&j&&$.preventDefault(),G&&j&&!K)return $.preventDefault(),!1;if(G&&Y&&!K&&se){const re=N.closest("[data-drag-handle]");re&&(this.dom===re||this.dom.contains(re))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(K||U||Z||ee||te||se&&J)}ignoreMutation($){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:$}):this.node.isLeaf||this.node.isAtom?!0:$.type==="selection"||this.dom.contains($.target)&&$.type==="childList"&&(isiOS()||isAndroid())&&this.editor.isFocused&&[...Array.from($.addedNodes),...Array.from($.removedNodes)].every(N=>N.isContentEditable)?!1:this.contentDOM===$.target&&$.type==="attributes"?!0:!this.contentDOM.contains($.target)}updateAttributes($){this.editor.commands.command(({tr:I})=>{const N=this.getPos();return typeof N!="number"?!1:(I.setNodeMarkup(N,void 0,{...this.node.attrs,...$}),!0)})}deleteNode(){const $=this.getPos();if(typeof $!="number")return;const I=$+this.node.nodeSize;this.editor.commands.deleteRange({from:$,to:I})}}function markPasteRule(M){return new PasteRule({find:M.find,handler:({state:$,range:I,match:N,pasteEvent:B})=>{const j=callOrReturn(M.getAttributes,void 0,N,B);if(j===!1||j===null)return null;const{tr:U}=$,q=N[N.length-1],Y=N[0];let K=I.to;if(q){const G=Y.search(/\S/),J=I.from+Y.indexOf(q),Z=J+q.length;if(getMarksBetween(I.from,I.to,$.doc).filter(te=>te.mark.type.excluded.find(re=>re===M.type&&re!==te.mark.type)).filter(te=>te.to>J).length)return null;Z<I.to&&U.delete(Z,I.to),J>I.from&&U.delete(I.from+G,J),K=I.from+G+q.length,U.addMark(I.from+G,K,M.type.create(j||{})),U.removeStoredMark(M.type)}}})}function escapeForRegEx(M){return M.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function isString$7(M){return typeof M=="string"}function nodePasteRule(M){return new PasteRule({find:M.find,handler({match:$,chain:I,range:N,pasteEvent:B}){const j=callOrReturn(M.getAttributes,void 0,$,B),U=callOrReturn(M.getContent,void 0,j);if(j===!1||j===null)return null;const q={type:M.type.name,attrs:j};U&&(q.content=U),$.input&&I().deleteRange(N).insertContentAt(N.from,q)}})}function textPasteRule(M){return new PasteRule({find:M.find,handler:({state:$,range:I,match:N})=>{let B=M.replace,j=I.from;const U=I.to;if(N[1]){const q=N[0].lastIndexOf(N[1]);B+=N[0].slice(q+N[1].length),j+=q;const Y=j-U;Y>0&&(B=N[0].slice(q-Y,q)+B,j=U)}$.tr.insertText(B,j,U)}})}class Tracker{constructor($){this.transaction=$,this.currentStep=this.transaction.steps.length}map($){let I=!1;return{position:this.transaction.steps.slice(this.currentStep).reduce((B,j)=>{const U=j.getMap().mapResult(B);return U.deleted&&(I=!0),U.pos},$),deleted:I}}}const core$2=Object.freeze(Object.defineProperty({__proto__:null,CommandManager,Editor:Editor$1,Extension,InputRule,Mark,Node:Node$1,NodePos,NodeView,PasteRule,Tracker,callOrReturn,combineTransactionSteps,createChainableState,createDocument,createNodeFromContent,createStyleTag,defaultBlockAt,deleteProps,elementFromString,escapeForRegEx,extensions:index$2,findChildren,findChildrenInRange,findDuplicates,findParentNode,findParentNodeClosestToPos,fromString,generateHTML,generateJSON,generateText,getAttributes,getAttributesFromExtensions,getChangedRanges,getDebugJSON,getExtensionField,getHTMLFromFragment,getMarkAttributes,getMarkRange,getMarkType,getMarksBetween,getNodeAtPosition,getNodeAttributes,getNodeType,getRenderedAttributes,getSchema,getSchemaByResolvedExtensions,getSchemaTypeByName,getSchemaTypeNameByName,getSplittedAttributes,getText,getTextBetween,getTextContentFromNodes,getTextSerializersFromSchema,injectExtensionAttributesToParseRule,inputRulesPlugin,isActive,isAtEndOfNode,isAtStartOfNode,isEmptyObject,isExtensionRulesEnabled,isFunction:isFunction$5,isList,isMacOS,isMarkActive,isNodeActive,isNodeEmpty,isNodeSelection,isNumber:isNumber$5,isPlainObject:isPlainObject$1,isRegExp:isRegExp$4,isString:isString$7,isTextSelection,isiOS,markInputRule,markPasteRule,mergeAttributes,mergeDeep,minMax,nodeInputRule,nodePasteRule,objectIncludes:objectIncludes$1,pasteRulesPlugin,posToDOMRect,removeDuplicates,resolveFocusPosition,selectionToInsertionEnd,splitExtensions,textInputRule,textPasteRule,textblockTypeInputRule,wrappingInputRule},Symbol.toStringTag,{value:"Module"}));var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements$1=[top,bottom,right,left],start$1="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements$1.reduce(function(M,$){return M.concat([$+"-"+start$1,$+"-"+end])},[]),placements$1=[].concat(basePlacements$1,[auto]).reduce(function(M,$){return M.concat([$,$+"-"+start$1,$+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName$1(M){return M?(M.nodeName||"").toLowerCase():null}function getWindow$1(M){if(M==null)return window;if(M.toString()!=="[object Window]"){var $=M.ownerDocument;return $&&$.defaultView||window}return M}function isElement$4(M){var $=getWindow$1(M).Element;return M instanceof $||M instanceof Element}function isHTMLElement$1(M){var $=getWindow$1(M).HTMLElement;return M instanceof $||M instanceof HTMLElement}function isShadowRoot$1(M){if(typeof ShadowRoot>"u")return!1;var $=getWindow$1(M).ShadowRoot;return M instanceof $||M instanceof ShadowRoot}function applyStyles(M){var $=M.state;Object.keys($.elements).forEach(function(I){var N=$.styles[I]||{},B=$.attributes[I]||{},j=$.elements[I];!isHTMLElement$1(j)||!getNodeName$1(j)||(Object.assign(j.style,N),Object.keys(B).forEach(function(U){var q=B[U];q===!1?j.removeAttribute(U):j.setAttribute(U,q===!0?"":q)}))})}function effect$3(M){var $=M.state,I={popper:{position:$.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign($.elements.popper.style,I.popper),$.styles=I,$.elements.arrow&&Object.assign($.elements.arrow.style,I.arrow),function(){Object.keys($.elements).forEach(function(N){var B=$.elements[N],j=$.attributes[N]||{},U=Object.keys($.styles.hasOwnProperty(N)?$.styles[N]:I[N]),q=U.reduce(function(Y,K){return Y[K]="",Y},{});!isHTMLElement$1(B)||!getNodeName$1(B)||(Object.assign(B.style,q),Object.keys(j).forEach(function(Y){B.removeAttribute(Y)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$3,requires:["computeStyles"]};function getBasePlacement$2(M){return M.split("-")[0]}var max$4=Math.max,min$4=Math.min,round$2=Math.round;function getUAString(){var M=navigator.userAgentData;return M!=null&&M.brands&&Array.isArray(M.brands)?M.brands.map(function($){return $.brand+"/"+$.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect$1(M,$,I){$===void 0&&($=!1),I===void 0&&(I=!1);var N=M.getBoundingClientRect(),B=1,j=1;$&&isHTMLElement$1(M)&&(B=M.offsetWidth>0&&round$2(N.width)/M.offsetWidth||1,j=M.offsetHeight>0&&round$2(N.height)/M.offsetHeight||1);var U=isElement$4(M)?getWindow$1(M):window,q=U.visualViewport,Y=!isLayoutViewport()&&I,K=(N.left+(Y&&q?q.offsetLeft:0))/B,G=(N.top+(Y&&q?q.offsetTop:0))/j,J=N.width/B,Z=N.height/j;return{width:J,height:Z,top:G,right:K+J,bottom:G+Z,left:K,x:K,y:G}}function getLayoutRect(M){var $=getBoundingClientRect$1(M),I=M.offsetWidth,N=M.offsetHeight;return Math.abs($.width-I)<=1&&(I=$.width),Math.abs($.height-N)<=1&&(N=$.height),{x:M.offsetLeft,y:M.offsetTop,width:I,height:N}}function contains$2(M,$){var I=$.getRootNode&&$.getRootNode();if(M.contains($))return!0;if(I&&isShadowRoot$1(I)){var N=$;do{if(N&&M.isSameNode(N))return!0;N=N.parentNode||N.host}while(N)}return!1}function getComputedStyle$2(M){return getWindow$1(M).getComputedStyle(M)}function isTableElement$1(M){return["table","td","th"].indexOf(getNodeName$1(M))>=0}function getDocumentElement$1(M){return((isElement$4(M)?M.ownerDocument:M.document)||window.document).documentElement}function getParentNode$1(M){return getNodeName$1(M)==="html"?M:M.assignedSlot||M.parentNode||(isShadowRoot$1(M)?M.host:null)||getDocumentElement$1(M)}function getTrueOffsetParent$1(M){return!isHTMLElement$1(M)||getComputedStyle$2(M).position==="fixed"?null:M.offsetParent}function getContainingBlock$1(M){var $=/firefox/i.test(getUAString()),I=/Trident/i.test(getUAString());if(I&&isHTMLElement$1(M)){var N=getComputedStyle$2(M);if(N.position==="fixed")return null}var B=getParentNode$1(M);for(isShadowRoot$1(B)&&(B=B.host);isHTMLElement$1(B)&&["html","body"].indexOf(getNodeName$1(B))<0;){var j=getComputedStyle$2(B);if(j.transform!=="none"||j.perspective!=="none"||j.contain==="paint"||["transform","perspective"].indexOf(j.willChange)!==-1||$&&j.willChange==="filter"||$&&j.filter&&j.filter!=="none")return B;B=B.parentNode}return null}function getOffsetParent$1(M){for(var $=getWindow$1(M),I=getTrueOffsetParent$1(M);I&&isTableElement$1(I)&&getComputedStyle$2(I).position==="static";)I=getTrueOffsetParent$1(I);return I&&(getNodeName$1(I)==="html"||getNodeName$1(I)==="body"&&getComputedStyle$2(I).position==="static")?$:I||getContainingBlock$1(M)||$}function getMainAxisFromPlacement$1(M){return["top","bottom"].indexOf(M)>=0?"x":"y"}function within$1(M,$,I){return max$4(M,min$4($,I))}function withinMaxClamp(M,$,I){var N=within$1(M,$,I);return N>I?I:N}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(M){return Object.assign({},getFreshSideObject(),M)}function expandToHashMap(M,$){return $.reduce(function(I,N){return I[N]=M,I},{})}var toPaddingObject=function($,I){return $=typeof $=="function"?$(Object.assign({},I.rects,{placement:I.placement})):$,mergePaddingObject(typeof $!="number"?$:expandToHashMap($,basePlacements$1))};function arrow$3(M){var $,I=M.state,N=M.name,B=M.options,j=I.elements.arrow,U=I.modifiersData.popperOffsets,q=getBasePlacement$2(I.placement),Y=getMainAxisFromPlacement$1(q),K=[left,right].indexOf(q)>=0,G=K?"height":"width";if(!(!j||!U)){var J=toPaddingObject(B.padding,I),Z=getLayoutRect(j),ee=Y==="y"?top:left,te=Y==="y"?bottom:right,se=I.rects.reference[G]+I.rects.reference[Y]-U[Y]-I.rects.popper[G],re=U[Y]-I.rects.reference[Y],ne=getOffsetParent$1(j),ce=ne?Y==="y"?ne.clientHeight||0:ne.clientWidth||0:0,me=se/2-re/2,ue=J[ee],_e=ce-Z[G]-J[te],fe=ce/2-Z[G]/2+me,ge=within$1(ue,fe,_e),ye=Y;I.modifiersData[N]=($={},$[ye]=ge,$.centerOffset=ge-fe,$)}}function effect$2(M){var $=M.state,I=M.options,N=I.element,B=N===void 0?"[data-popper-arrow]":N;B!=null&&(typeof B=="string"&&(B=$.elements.popper.querySelector(B),!B)||contains$2($.elements.popper,B)&&($.elements.arrow=B))}const arrow$4={name:"arrow",enabled:!0,phase:"main",fn:arrow$3,effect:effect$2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(M){return M.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(M,$){var I=M.x,N=M.y,B=$.devicePixelRatio||1;return{x:round$2(I*B)/B||0,y:round$2(N*B)/B||0}}function mapToStyles(M){var $,I=M.popper,N=M.popperRect,B=M.placement,j=M.variation,U=M.offsets,q=M.position,Y=M.gpuAcceleration,K=M.adaptive,G=M.roundOffsets,J=M.isFixed,Z=U.x,ee=Z===void 0?0:Z,te=U.y,se=te===void 0?0:te,re=typeof G=="function"?G({x:ee,y:se}):{x:ee,y:se};ee=re.x,se=re.y;var ne=U.hasOwnProperty("x"),ce=U.hasOwnProperty("y"),me=left,ue=top,_e=window;if(K){var fe=getOffsetParent$1(I),ge="clientHeight",ye="clientWidth";if(fe===getWindow$1(I)&&(fe=getDocumentElement$1(I),getComputedStyle$2(fe).position!=="static"&&q==="absolute"&&(ge="scrollHeight",ye="scrollWidth")),fe=fe,B===top||(B===left||B===right)&&j===end){ue=bottom;var xe=J&&fe===_e&&_e.visualViewport?_e.visualViewport.height:fe[ge];se-=xe-N.height,se*=Y?1:-1}if(B===left||(B===top||B===bottom)&&j===end){me=right;var le=J&&fe===_e&&_e.visualViewport?_e.visualViewport.width:fe[ye];ee-=le-N.width,ee*=Y?1:-1}}var be=Object.assign({position:q},K&&unsetSides),ve=G===!0?roundOffsetsByDPR({x:ee,y:se},getWindow$1(I)):{x:ee,y:se};if(ee=ve.x,se=ve.y,Y){var we;return Object.assign({},be,(we={},we[ue]=ce?"0":"",we[me]=ne?"0":"",we.transform=(_e.devicePixelRatio||1)<=1?"translate("+ee+"px, "+se+"px)":"translate3d("+ee+"px, "+se+"px, 0)",we))}return Object.assign({},be,($={},$[ue]=ce?se+"px":"",$[me]=ne?ee+"px":"",$.transform="",$))}function computeStyles(M){var $=M.state,I=M.options,N=I.gpuAcceleration,B=N===void 0?!0:N,j=I.adaptive,U=j===void 0?!0:j,q=I.roundOffsets,Y=q===void 0?!0:q,K={placement:getBasePlacement$2($.placement),variation:getVariation($.placement),popper:$.elements.popper,popperRect:$.rects.popper,gpuAcceleration:B,isFixed:$.options.strategy==="fixed"};$.modifiersData.popperOffsets!=null&&($.styles.popper=Object.assign({},$.styles.popper,mapToStyles(Object.assign({},K,{offsets:$.modifiersData.popperOffsets,position:$.options.strategy,adaptive:U,roundOffsets:Y})))),$.modifiersData.arrow!=null&&($.styles.arrow=Object.assign({},$.styles.arrow,mapToStyles(Object.assign({},K,{offsets:$.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Y})))),$.attributes.popper=Object.assign({},$.attributes.popper,{"data-popper-placement":$.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect$1(M){var $=M.state,I=M.instance,N=M.options,B=N.scroll,j=B===void 0?!0:B,U=N.resize,q=U===void 0?!0:U,Y=getWindow$1($.elements.popper),K=[].concat($.scrollParents.reference,$.scrollParents.popper);return j&&K.forEach(function(G){G.addEventListener("scroll",I.update,passive)}),q&&Y.addEventListener("resize",I.update,passive),function(){j&&K.forEach(function(G){G.removeEventListener("scroll",I.update,passive)}),q&&Y.removeEventListener("resize",I.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect$1,data:{}};var hash$3={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement$1(M){return M.replace(/left|right|bottom|top/g,function($){return hash$3[$]})}var hash$2={start:"end",end:"start"};function getOppositeVariationPlacement(M){return M.replace(/start|end/g,function($){return hash$2[$]})}function getWindowScroll(M){var $=getWindow$1(M),I=$.pageXOffset,N=$.pageYOffset;return{scrollLeft:I,scrollTop:N}}function getWindowScrollBarX$1(M){return getBoundingClientRect$1(getDocumentElement$1(M)).left+getWindowScroll(M).scrollLeft}function getViewportRect$1(M,$){var I=getWindow$1(M),N=getDocumentElement$1(M),B=I.visualViewport,j=N.clientWidth,U=N.clientHeight,q=0,Y=0;if(B){j=B.width,U=B.height;var K=isLayoutViewport();(K||!K&&$==="fixed")&&(q=B.offsetLeft,Y=B.offsetTop)}return{width:j,height:U,x:q+getWindowScrollBarX$1(M),y:Y}}function getDocumentRect$1(M){var $,I=getDocumentElement$1(M),N=getWindowScroll(M),B=($=M.ownerDocument)==null?void 0:$.body,j=max$4(I.scrollWidth,I.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),U=max$4(I.scrollHeight,I.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),q=-N.scrollLeft+getWindowScrollBarX$1(M),Y=-N.scrollTop;return getComputedStyle$2(B||I).direction==="rtl"&&(q+=max$4(I.clientWidth,B?B.clientWidth:0)-j),{width:j,height:U,x:q,y:Y}}function isScrollParent$1(M){var $=getComputedStyle$2(M),I=$.overflow,N=$.overflowX,B=$.overflowY;return/auto|scroll|overlay|hidden/.test(I+B+N)}function getScrollParent$1(M){return["html","body","#document"].indexOf(getNodeName$1(M))>=0?M.ownerDocument.body:isHTMLElement$1(M)&&isScrollParent$1(M)?M:getScrollParent$1(getParentNode$1(M))}function listScrollParents(M,$){var I;$===void 0&&($=[]);var N=getScrollParent$1(M),B=N===((I=M.ownerDocument)==null?void 0:I.body),j=getWindow$1(N),U=B?[j].concat(j.visualViewport||[],isScrollParent$1(N)?N:[]):N,q=$.concat(U);return B?q:q.concat(listScrollParents(getParentNode$1(U)))}function rectToClientRect$1(M){return Object.assign({},M,{left:M.x,top:M.y,right:M.x+M.width,bottom:M.y+M.height})}function getInnerBoundingClientRect$1(M,$){var I=getBoundingClientRect$1(M,!1,$==="fixed");return I.top=I.top+M.clientTop,I.left=I.left+M.clientLeft,I.bottom=I.top+M.clientHeight,I.right=I.left+M.clientWidth,I.width=M.clientWidth,I.height=M.clientHeight,I.x=I.left,I.y=I.top,I}function getClientRectFromMixedType(M,$,I){return $===viewport?rectToClientRect$1(getViewportRect$1(M,I)):isElement$4($)?getInnerBoundingClientRect$1($,I):rectToClientRect$1(getDocumentRect$1(getDocumentElement$1(M)))}function getClippingParents$1(M){var $=listScrollParents(getParentNode$1(M)),I=["absolute","fixed"].indexOf(getComputedStyle$2(M).position)>=0,N=I&&isHTMLElement$1(M)?getOffsetParent$1(M):M;return isElement$4(N)?$.filter(function(B){return isElement$4(B)&&contains$2(B,N)&&getNodeName$1(B)!=="body"}):[]}function getClippingRect(M,$,I,N){var B=$==="clippingParents"?getClippingParents$1(M):[].concat($),j=[].concat(B,[I]),U=j[0],q=j.reduce(function(Y,K){var G=getClientRectFromMixedType(M,K,N);return Y.top=max$4(G.top,Y.top),Y.right=min$4(G.right,Y.right),Y.bottom=min$4(G.bottom,Y.bottom),Y.left=max$4(G.left,Y.left),Y},getClientRectFromMixedType(M,U,N));return q.width=q.right-q.left,q.height=q.bottom-q.top,q.x=q.left,q.y=q.top,q}function computeOffsets(M){var $=M.reference,I=M.element,N=M.placement,B=N?getBasePlacement$2(N):null,j=N?getVariation(N):null,U=$.x+$.width/2-I.width/2,q=$.y+$.height/2-I.height/2,Y;switch(B){case top:Y={x:U,y:$.y-I.height};break;case bottom:Y={x:U,y:$.y+$.height};break;case right:Y={x:$.x+$.width,y:q};break;case left:Y={x:$.x-I.width,y:q};break;default:Y={x:$.x,y:$.y}}var K=B?getMainAxisFromPlacement$1(B):null;if(K!=null){var G=K==="y"?"height":"width";switch(j){case start$1:Y[K]=Y[K]-($[G]/2-I[G]/2);break;case end:Y[K]=Y[K]+($[G]/2-I[G]/2);break}}return Y}function detectOverflow$1(M,$){$===void 0&&($={});var I=$,N=I.placement,B=N===void 0?M.placement:N,j=I.strategy,U=j===void 0?M.strategy:j,q=I.boundary,Y=q===void 0?clippingParents:q,K=I.rootBoundary,G=K===void 0?viewport:K,J=I.elementContext,Z=J===void 0?popper:J,ee=I.altBoundary,te=ee===void 0?!1:ee,se=I.padding,re=se===void 0?0:se,ne=mergePaddingObject(typeof re!="number"?re:expandToHashMap(re,basePlacements$1)),ce=Z===popper?reference:popper,me=M.rects.popper,ue=M.elements[te?ce:Z],_e=getClippingRect(isElement$4(ue)?ue:ue.contextElement||getDocumentElement$1(M.elements.popper),Y,G,U),fe=getBoundingClientRect$1(M.elements.reference),ge=computeOffsets({reference:fe,element:me,strategy:"absolute",placement:B}),ye=rectToClientRect$1(Object.assign({},me,ge)),xe=Z===popper?ye:fe,le={top:_e.top-xe.top+ne.top,bottom:xe.bottom-_e.bottom+ne.bottom,left:_e.left-xe.left+ne.left,right:xe.right-_e.right+ne.right},be=M.modifiersData.offset;if(Z===popper&&be){var ve=be[B];Object.keys(le).forEach(function(we){var Ae=[right,bottom].indexOf(we)>=0?1:-1,Se=[top,bottom].indexOf(we)>=0?"y":"x";le[we]+=ve[Se]*Ae})}return le}function computeAutoPlacement(M,$){$===void 0&&($={});var I=$,N=I.placement,B=I.boundary,j=I.rootBoundary,U=I.padding,q=I.flipVariations,Y=I.allowedAutoPlacements,K=Y===void 0?placements$1:Y,G=getVariation(N),J=G?q?variationPlacements:variationPlacements.filter(function(te){return getVariation(te)===G}):basePlacements$1,Z=J.filter(function(te){return K.indexOf(te)>=0});Z.length===0&&(Z=J);var ee=Z.reduce(function(te,se){return te[se]=detectOverflow$1(M,{placement:se,boundary:B,rootBoundary:j,padding:U})[getBasePlacement$2(se)],te},{});return Object.keys(ee).sort(function(te,se){return ee[te]-ee[se]})}function getExpandedFallbackPlacements(M){if(getBasePlacement$2(M)===auto)return[];var $=getOppositePlacement$1(M);return[getOppositeVariationPlacement(M),$,getOppositeVariationPlacement($)]}function flip$1(M){var $=M.state,I=M.options,N=M.name;if(!$.modifiersData[N]._skip){for(var B=I.mainAxis,j=B===void 0?!0:B,U=I.altAxis,q=U===void 0?!0:U,Y=I.fallbackPlacements,K=I.padding,G=I.boundary,J=I.rootBoundary,Z=I.altBoundary,ee=I.flipVariations,te=ee===void 0?!0:ee,se=I.allowedAutoPlacements,re=$.options.placement,ne=getBasePlacement$2(re),ce=ne===re,me=Y||(ce||!te?[getOppositePlacement$1(re)]:getExpandedFallbackPlacements(re)),ue=[re].concat(me).reduce(function(Dt,Nt){return Dt.concat(getBasePlacement$2(Nt)===auto?computeAutoPlacement($,{placement:Nt,boundary:G,rootBoundary:J,padding:K,flipVariations:te,allowedAutoPlacements:se}):Nt)},[]),_e=$.rects.reference,fe=$.rects.popper,ge=new Map,ye=!0,xe=ue[0],le=0;le<ue.length;le++){var be=ue[le],ve=getBasePlacement$2(be),we=getVariation(be)===start$1,Ae=[top,bottom].indexOf(ve)>=0,Se=Ae?"width":"height",Pe=detectOverflow$1($,{placement:be,boundary:G,rootBoundary:J,altBoundary:Z,padding:K}),Me=Ae?we?right:left:we?bottom:top;_e[Se]>fe[Se]&&(Me=getOppositePlacement$1(Me));var Be=getOppositePlacement$1(Me),ze=[];if(j&&ze.push(Pe[ve]<=0),q&&ze.push(Pe[Me]<=0,Pe[Be]<=0),ze.every(function(Dt){return Dt})){xe=be,ye=!1;break}ge.set(be,ze)}if(ye)for(var Ze=te?3:1,ft=function(Nt){var Vt=ue.find(function(Wt){var Gt=ge.get(Wt);if(Gt)return Gt.slice(0,Nt).every(function(tn){return tn})});if(Vt)return xe=Vt,"break"},Ye=Ze;Ye>0;Ye--){var Ve=ft(Ye);if(Ve==="break")break}$.placement!==xe&&($.modifiersData[N]._skip=!0,$.placement=xe,$.reset=!0)}}const flip$2={name:"flip",enabled:!0,phase:"main",fn:flip$1,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(M,$,I){return I===void 0&&(I={x:0,y:0}),{top:M.top-$.height-I.y,right:M.right-$.width+I.x,bottom:M.bottom-$.height+I.y,left:M.left-$.width-I.x}}function isAnySideFullyClipped(M){return[top,right,bottom,left].some(function($){return M[$]>=0})}function hide(M){var $=M.state,I=M.name,N=$.rects.reference,B=$.rects.popper,j=$.modifiersData.preventOverflow,U=detectOverflow$1($,{elementContext:"reference"}),q=detectOverflow$1($,{altBoundary:!0}),Y=getSideOffsets(U,N),K=getSideOffsets(q,B,j),G=isAnySideFullyClipped(Y),J=isAnySideFullyClipped(K);$.modifiersData[I]={referenceClippingOffsets:Y,popperEscapeOffsets:K,isReferenceHidden:G,hasPopperEscaped:J},$.attributes.popper=Object.assign({},$.attributes.popper,{"data-popper-reference-hidden":G,"data-popper-escaped":J})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(M,$,I){var N=getBasePlacement$2(M),B=[left,top].indexOf(N)>=0?-1:1,j=typeof I=="function"?I(Object.assign({},$,{placement:M})):I,U=j[0],q=j[1];return U=U||0,q=(q||0)*B,[left,right].indexOf(N)>=0?{x:q,y:U}:{x:U,y:q}}function offset$2(M){var $=M.state,I=M.options,N=M.name,B=I.offset,j=B===void 0?[0,0]:B,U=placements$1.reduce(function(G,J){return G[J]=distanceAndSkiddingToXY(J,$.rects,j),G},{}),q=U[$.placement],Y=q.x,K=q.y;$.modifiersData.popperOffsets!=null&&($.modifiersData.popperOffsets.x+=Y,$.modifiersData.popperOffsets.y+=K),$.modifiersData[N]=U}const offset$3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset$2};function popperOffsets(M){var $=M.state,I=M.name;$.modifiersData[I]=computeOffsets({reference:$.rects.reference,element:$.rects.popper,strategy:"absolute",placement:$.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(M){return M==="x"?"y":"x"}function preventOverflow(M){var $=M.state,I=M.options,N=M.name,B=I.mainAxis,j=B===void 0?!0:B,U=I.altAxis,q=U===void 0?!1:U,Y=I.boundary,K=I.rootBoundary,G=I.altBoundary,J=I.padding,Z=I.tether,ee=Z===void 0?!0:Z,te=I.tetherOffset,se=te===void 0?0:te,re=detectOverflow$1($,{boundary:Y,rootBoundary:K,padding:J,altBoundary:G}),ne=getBasePlacement$2($.placement),ce=getVariation($.placement),me=!ce,ue=getMainAxisFromPlacement$1(ne),_e=getAltAxis(ue),fe=$.modifiersData.popperOffsets,ge=$.rects.reference,ye=$.rects.popper,xe=typeof se=="function"?se(Object.assign({},$.rects,{placement:$.placement})):se,le=typeof xe=="number"?{mainAxis:xe,altAxis:xe}:Object.assign({mainAxis:0,altAxis:0},xe),be=$.modifiersData.offset?$.modifiersData.offset[$.placement]:null,ve={x:0,y:0};if(fe){if(j){var we,Ae=ue==="y"?top:left,Se=ue==="y"?bottom:right,Pe=ue==="y"?"height":"width",Me=fe[ue],Be=Me+re[Ae],ze=Me-re[Se],Ze=ee?-ye[Pe]/2:0,ft=ce===start$1?ge[Pe]:ye[Pe],Ye=ce===start$1?-ye[Pe]:-ge[Pe],Ve=$.elements.arrow,Dt=ee&&Ve?getLayoutRect(Ve):{width:0,height:0},Nt=$.modifiersData["arrow#persistent"]?$.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Vt=Nt[Ae],Wt=Nt[Se],Gt=within$1(0,ge[Pe],Dt[Pe]),tn=me?ge[Pe]/2-Ze-Gt-Vt-le.mainAxis:ft-Gt-Vt-le.mainAxis,Qt=me?-ge[Pe]/2+Ze+Gt+Wt+le.mainAxis:Ye+Gt+Wt+le.mainAxis,En=$.elements.arrow&&getOffsetParent$1($.elements.arrow),kn=En?ue==="y"?En.clientTop||0:En.clientLeft||0:0,Gn=(we=be==null?void 0:be[ue])!=null?we:0,An=Me+tn-Gn-kn,jn=Me+Qt-Gn,Mn=within$1(ee?min$4(Be,An):Be,Me,ee?max$4(ze,jn):ze);fe[ue]=Mn,ve[ue]=Mn-Me}if(q){var Ln,Et=ue==="x"?top:left,We=ue==="x"?bottom:right,xt=fe[_e],Ue=_e==="y"?"height":"width",Oe=xt+re[Et],ke=xt-re[We],$e=[top,left].indexOf(ne)!==-1,Ge=(Ln=be==null?void 0:be[_e])!=null?Ln:0,rt=$e?Oe:xt-ge[Ue]-ye[Ue]-Ge+le.altAxis,ut=$e?xt+ge[Ue]+ye[Ue]-Ge-le.altAxis:ke,ct=ee&&$e?withinMaxClamp(rt,xt,ut):within$1(ee?rt:Oe,xt,ee?ut:ke);fe[_e]=ct,ve[_e]=ct-xt}$.modifiersData[N]=ve}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(M){return{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}}function getNodeScroll$1(M){return M===getWindow$1(M)||!isHTMLElement$1(M)?getWindowScroll(M):getHTMLElementScroll(M)}function isElementScaled(M){var $=M.getBoundingClientRect(),I=round$2($.width)/M.offsetWidth||1,N=round$2($.height)/M.offsetHeight||1;return I!==1||N!==1}function getCompositeRect(M,$,I){I===void 0&&(I=!1);var N=isHTMLElement$1($),B=isHTMLElement$1($)&&isElementScaled($),j=getDocumentElement$1($),U=getBoundingClientRect$1(M,B,I),q={scrollLeft:0,scrollTop:0},Y={x:0,y:0};return(N||!N&&!I)&&((getNodeName$1($)!=="body"||isScrollParent$1(j))&&(q=getNodeScroll$1($)),isHTMLElement$1($)?(Y=getBoundingClientRect$1($,!0),Y.x+=$.clientLeft,Y.y+=$.clientTop):j&&(Y.x=getWindowScrollBarX$1(j))),{x:U.left+q.scrollLeft-Y.x,y:U.top+q.scrollTop-Y.y,width:U.width,height:U.height}}function order(M){var $=new Map,I=new Set,N=[];M.forEach(function(j){$.set(j.name,j)});function B(j){I.add(j.name);var U=[].concat(j.requires||[],j.requiresIfExists||[]);U.forEach(function(q){if(!I.has(q)){var Y=$.get(q);Y&&B(Y)}}),N.push(j)}return M.forEach(function(j){I.has(j.name)||B(j)}),N}function orderModifiers(M){var $=order(M);return modifierPhases.reduce(function(I,N){return I.concat($.filter(function(B){return B.phase===N}))},[])}function debounce$3(M){var $;return function(){return $||($=new Promise(function(I){Promise.resolve().then(function(){$=void 0,I(M())})})),$}}function mergeByName(M){var $=M.reduce(function(I,N){var B=I[N.name];return I[N.name]=B?Object.assign({},B,N,{options:Object.assign({},B.options,N.options),data:Object.assign({},B.data,N.data)}):N,I},{});return Object.keys($).map(function(I){return $[I]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var M=arguments.length,$=new Array(M),I=0;I<M;I++)$[I]=arguments[I];return!$.some(function(N){return!(N&&typeof N.getBoundingClientRect=="function")})}function popperGenerator(M){M===void 0&&(M={});var $=M,I=$.defaultModifiers,N=I===void 0?[]:I,B=$.defaultOptions,j=B===void 0?DEFAULT_OPTIONS:B;return function(q,Y,K){K===void 0&&(K=j);var G={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,j),modifiersData:{},elements:{reference:q,popper:Y},attributes:{},styles:{}},J=[],Z=!1,ee={state:G,setOptions:function(ne){var ce=typeof ne=="function"?ne(G.options):ne;se(),G.options=Object.assign({},j,G.options,ce),G.scrollParents={reference:isElement$4(q)?listScrollParents(q):q.contextElement?listScrollParents(q.contextElement):[],popper:listScrollParents(Y)};var me=orderModifiers(mergeByName([].concat(N,G.options.modifiers)));return G.orderedModifiers=me.filter(function(ue){return ue.enabled}),te(),ee.update()},forceUpdate:function(){if(!Z){var ne=G.elements,ce=ne.reference,me=ne.popper;if(areValidElements(ce,me)){G.rects={reference:getCompositeRect(ce,getOffsetParent$1(me),G.options.strategy==="fixed"),popper:getLayoutRect(me)},G.reset=!1,G.placement=G.options.placement,G.orderedModifiers.forEach(function(le){return G.modifiersData[le.name]=Object.assign({},le.data)});for(var ue=0;ue<G.orderedModifiers.length;ue++){if(G.reset===!0){G.reset=!1,ue=-1;continue}var _e=G.orderedModifiers[ue],fe=_e.fn,ge=_e.options,ye=ge===void 0?{}:ge,xe=_e.name;typeof fe=="function"&&(G=fe({state:G,options:ye,name:xe,instance:ee})||G)}}}},update:debounce$3(function(){return new Promise(function(re){ee.forceUpdate(),re(G)})}),destroy:function(){se(),Z=!0}};if(!areValidElements(q,Y))return ee;ee.setOptions(K).then(function(re){!Z&&K.onFirstUpdate&&K.onFirstUpdate(re)});function te(){G.orderedModifiers.forEach(function(re){var ne=re.name,ce=re.options,me=ce===void 0?{}:ce,ue=re.effect;if(typeof ue=="function"){var _e=ue({state:G,name:ne,instance:ee,options:me}),fe=function(){};J.push(_e||fe)}})}function se(){J.forEach(function(re){return re()}),J=[]}return ee}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$3,flip$2,preventOverflow$1,arrow$4,hide$1],createPopper=popperGenerator({defaultModifiers}),BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function getValueAtIndexOrReturn(M,$,I){if(Array.isArray(M)){var N=M[$];return N??(Array.isArray(I)?I[$]:I)}return M}function isType(M,$){var I={}.toString.call(M);return I.indexOf("[object")===0&&I.indexOf($+"]")>-1}function invokeWithArgsOrReturn(M,$){return typeof M=="function"?M.apply(void 0,$):M}function debounce$2(M,$){if($===0)return M;var I;return function(N){clearTimeout(I),I=setTimeout(function(){M(N)},$)}}function splitBySpaces(M){return M.split(/\s+/).filter(Boolean)}function normalizeToArray(M){return[].concat(M)}function pushIfUnique(M,$){M.indexOf($)===-1&&M.push($)}function unique(M){return M.filter(function($,I){return M.indexOf($)===I})}function getBasePlacement$1(M){return M.split("-")[0]}function arrayFrom(M){return[].slice.call(M)}function removeUndefinedProps(M){return Object.keys(M).reduce(function($,I){return M[I]!==void 0&&($[I]=M[I]),$},{})}function div(){return document.createElement("div")}function isElement$3(M){return["Element","Fragment"].some(function($){return isType(M,$)})}function isNodeList(M){return isType(M,"NodeList")}function isMouseEvent(M){return isType(M,"MouseEvent")}function isReferenceElement(M){return!!(M&&M._tippy&&M._tippy.reference===M)}function getArrayOfElements(M){return isElement$3(M)?[M]:isNodeList(M)?arrayFrom(M):Array.isArray(M)?M:arrayFrom(document.querySelectorAll(M))}function setTransitionDuration(M,$){M.forEach(function(I){I&&(I.style.transitionDuration=$+"ms")})}function setVisibilityState(M,$){M.forEach(function(I){I&&I.setAttribute("data-state",$)})}function getOwnerDocument(M){var $,I=normalizeToArray(M),N=I[0];return N!=null&&($=N.ownerDocument)!=null&&$.body?N.ownerDocument:document}function isCursorOutsideInteractiveBorder(M,$){var I=$.clientX,N=$.clientY;return M.every(function(B){var j=B.popperRect,U=B.popperState,q=B.props,Y=q.interactiveBorder,K=getBasePlacement$1(U.placement),G=U.modifiersData.offset;if(!G)return!0;var J=K==="bottom"?G.top.y:0,Z=K==="top"?G.bottom.y:0,ee=K==="right"?G.left.x:0,te=K==="left"?G.right.x:0,se=j.top-N+J>Y,re=N-j.bottom-Z>Y,ne=j.left-I+ee>Y,ce=I-j.right-te>Y;return se||re||ne||ce})}function updateTransitionEndListener(M,$,I){var N=$+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(B){M[N](B,I)})}function actualContains(M,$){for(var I=$;I;){var N;if(M.contains(I))return!0;I=I.getRootNode==null||(N=I.getRootNode())==null?void 0:N.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var M=performance.now();M-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=M}function onWindowBlur(){var M=document.activeElement;if(isReferenceElement(M)){var $=M._tippy;M.blur&&!$.state.isVisible&&M.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser$1=typeof window<"u"&&typeof document<"u",isIE11$1=isBrowser$1?!!window.msCrypto:!1,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function($){var I=Object.keys($);I.forEach(function(N){defaultProps[N]=$[N]})};function getExtendedPassedProps(M){var $=M.plugins||[],I=$.reduce(function(N,B){var j=B.name,U=B.defaultValue;if(j){var q;N[j]=M[j]!==void 0?M[j]:(q=defaultProps[j])!=null?q:U}return N},{});return Object.assign({},M,I)}function getDataAttributeProps(M,$){var I=$?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:$}))):defaultKeys,N=I.reduce(function(B,j){var U=(M.getAttribute("data-tippy-"+j)||"").trim();if(!U)return B;if(j==="content")B[j]=U;else try{B[j]=JSON.parse(U)}catch{B[j]=U}return B},{});return N}function evaluateProps(M,$){var I=Object.assign({},$,{content:invokeWithArgsOrReturn($.content,[M])},$.ignoreAttributes?{}:getDataAttributeProps(M,$.plugins));return I.aria=Object.assign({},defaultProps.aria,I.aria),I.aria={expanded:I.aria.expanded==="auto"?$.interactive:I.aria.expanded,content:I.aria.content==="auto"?$.interactive?null:"describedby":I.aria.content},I}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(M,$){M[innerHTML()]=$}function createArrowElement(M){var $=div();return M===!0?$.className=ARROW_CLASS:($.className=SVG_ARROW_CLASS,isElement$3(M)?$.appendChild(M):dangerouslySetInnerHTML($,M)),$}function setContent(M,$){isElement$3($.content)?(dangerouslySetInnerHTML(M,""),M.appendChild($.content)):typeof $.content!="function"&&($.allowHTML?dangerouslySetInnerHTML(M,$.content):M.textContent=$.content)}function getChildren(M){var $=M.firstElementChild,I=arrayFrom($.children);return{box:$,content:I.find(function(N){return N.classList.contains(CONTENT_CLASS)}),arrow:I.find(function(N){return N.classList.contains(ARROW_CLASS)||N.classList.contains(SVG_ARROW_CLASS)}),backdrop:I.find(function(N){return N.classList.contains(BACKDROP_CLASS)})}}function render$3(M){var $=div(),I=div();I.className=BOX_CLASS,I.setAttribute("data-state","hidden"),I.setAttribute("tabindex","-1");var N=div();N.className=CONTENT_CLASS,N.setAttribute("data-state","hidden"),setContent(N,M.props),$.appendChild(I),I.appendChild(N),B(M.props,M.props);function B(j,U){var q=getChildren($),Y=q.box,K=q.content,G=q.arrow;U.theme?Y.setAttribute("data-theme",U.theme):Y.removeAttribute("data-theme"),typeof U.animation=="string"?Y.setAttribute("data-animation",U.animation):Y.removeAttribute("data-animation"),U.inertia?Y.setAttribute("data-inertia",""):Y.removeAttribute("data-inertia"),Y.style.maxWidth=typeof U.maxWidth=="number"?U.maxWidth+"px":U.maxWidth,U.role?Y.setAttribute("role",U.role):Y.removeAttribute("role"),(j.content!==U.content||j.allowHTML!==U.allowHTML)&&setContent(K,M.props),U.arrow?G?j.arrow!==U.arrow&&(Y.removeChild(G),Y.appendChild(createArrowElement(U.arrow))):Y.appendChild(createArrowElement(U.arrow)):G&&Y.removeChild(G)}return{popper:$,onUpdate:B}}render$3.$$tippy=!0;var idCounter$1=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(M,$){var I=evaluateProps(M,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps($)))),N,B,j,U=!1,q=!1,Y=!1,K=!1,G,J,Z,ee=[],te=debounce$2(An,I.interactiveDebounce),se,re=idCounter$1++,ne=null,ce=unique(I.plugins),me={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},ue={id:re,reference:M,popper:div(),popperInstance:ne,props:I,state:me,plugins:ce,clearDelayTimeouts:rt,setProps:ut,setContent:ct,show:it,hide:ot,hideWithInteractivity:Ot,enable:$e,disable:Ge,unmount:dn,destroy:Fn};if(!I.render)return ue;var _e=I.render(ue),fe=_e.popper,ge=_e.onUpdate;fe.setAttribute("data-tippy-root",""),fe.id="tippy-"+ue.id,ue.popper=fe,M._tippy=ue,fe._tippy=ue;var ye=ce.map(function(Zt){return Zt.fn(ue)}),xe=M.hasAttribute("aria-expanded");return En(),Ze(),Me(),Be("onCreate",[ue]),I.showOnCreate&&Oe(),fe.addEventListener("mouseenter",function(){ue.props.interactive&&ue.state.isVisible&&ue.clearDelayTimeouts()}),fe.addEventListener("mouseleave",function(){ue.props.interactive&&ue.props.trigger.indexOf("mouseenter")>=0&&Ae().addEventListener("mousemove",te)}),ue;function le(){var Zt=ue.props.touch;return Array.isArray(Zt)?Zt:[Zt,0]}function be(){return le()[0]==="hold"}function ve(){var Zt;return!!((Zt=ue.props.render)!=null&&Zt.$$tippy)}function we(){return se||M}function Ae(){var Zt=we().parentNode;return Zt?getOwnerDocument(Zt):document}function Se(){return getChildren(fe)}function Pe(Zt){return ue.state.isMounted&&!ue.state.isVisible||currentInput.isTouch||G&&G.type==="focus"?0:getValueAtIndexOrReturn(ue.props.delay,Zt?0:1,defaultProps.delay)}function Me(Zt){Zt===void 0&&(Zt=!1),fe.style.pointerEvents=ue.props.interactive&&!Zt?"":"none",fe.style.zIndex=""+ue.props.zIndex}function Be(Zt,vn,lt){if(lt===void 0&&(lt=!0),ye.forEach(function(Pt){Pt[Zt]&&Pt[Zt].apply(Pt,vn)}),lt){var pt;(pt=ue.props)[Zt].apply(pt,vn)}}function ze(){var Zt=ue.props.aria;if(Zt.content){var vn="aria-"+Zt.content,lt=fe.id,pt=normalizeToArray(ue.props.triggerTarget||M);pt.forEach(function(Pt){var qt=Pt.getAttribute(vn);if(ue.state.isVisible)Pt.setAttribute(vn,qt?qt+" "+lt:lt);else{var Ht=qt&&qt.replace(lt,"").trim();Ht?Pt.setAttribute(vn,Ht):Pt.removeAttribute(vn)}})}}function Ze(){if(!(xe||!ue.props.aria.expanded)){var Zt=normalizeToArray(ue.props.triggerTarget||M);Zt.forEach(function(vn){ue.props.interactive?vn.setAttribute("aria-expanded",ue.state.isVisible&&vn===we()?"true":"false"):vn.removeAttribute("aria-expanded")})}}function ft(){Ae().removeEventListener("mousemove",te),mouseMoveListeners=mouseMoveListeners.filter(function(Zt){return Zt!==te})}function Ye(Zt){if(!(currentInput.isTouch&&(Y||Zt.type==="mousedown"))){var vn=Zt.composedPath&&Zt.composedPath()[0]||Zt.target;if(!(ue.props.interactive&&actualContains(fe,vn))){if(normalizeToArray(ue.props.triggerTarget||M).some(function(lt){return actualContains(lt,vn)})){if(currentInput.isTouch||ue.state.isVisible&&ue.props.trigger.indexOf("click")>=0)return}else Be("onClickOutside",[ue,Zt]);ue.props.hideOnClick===!0&&(ue.clearDelayTimeouts(),ue.hide(),q=!0,setTimeout(function(){q=!1}),ue.state.isMounted||Vt())}}}function Ve(){Y=!0}function Dt(){Y=!1}function Nt(){var Zt=Ae();Zt.addEventListener("mousedown",Ye,!0),Zt.addEventListener("touchend",Ye,TOUCH_OPTIONS),Zt.addEventListener("touchstart",Dt,TOUCH_OPTIONS),Zt.addEventListener("touchmove",Ve,TOUCH_OPTIONS)}function Vt(){var Zt=Ae();Zt.removeEventListener("mousedown",Ye,!0),Zt.removeEventListener("touchend",Ye,TOUCH_OPTIONS),Zt.removeEventListener("touchstart",Dt,TOUCH_OPTIONS),Zt.removeEventListener("touchmove",Ve,TOUCH_OPTIONS)}function Wt(Zt,vn){tn(Zt,function(){!ue.state.isVisible&&fe.parentNode&&fe.parentNode.contains(fe)&&vn()})}function Gt(Zt,vn){tn(Zt,vn)}function tn(Zt,vn){var lt=Se().box;function pt(Pt){Pt.target===lt&&(updateTransitionEndListener(lt,"remove",pt),vn())}if(Zt===0)return vn();updateTransitionEndListener(lt,"remove",J),updateTransitionEndListener(lt,"add",pt),J=pt}function Qt(Zt,vn,lt){lt===void 0&&(lt=!1);var pt=normalizeToArray(ue.props.triggerTarget||M);pt.forEach(function(Pt){Pt.addEventListener(Zt,vn,lt),ee.push({node:Pt,eventType:Zt,handler:vn,options:lt})})}function En(){be()&&(Qt("touchstart",Gn,{passive:!0}),Qt("touchend",jn,{passive:!0})),splitBySpaces(ue.props.trigger).forEach(function(Zt){if(Zt!=="manual")switch(Qt(Zt,Gn),Zt){case"mouseenter":Qt("mouseleave",jn);break;case"focus":Qt(isIE11$1?"focusout":"blur",Mn);break;case"focusin":Qt("focusout",Mn);break}})}function kn(){ee.forEach(function(Zt){var vn=Zt.node,lt=Zt.eventType,pt=Zt.handler,Pt=Zt.options;vn.removeEventListener(lt,pt,Pt)}),ee=[]}function Gn(Zt){var vn,lt=!1;if(!(!ue.state.isEnabled||Ln(Zt)||q)){var pt=((vn=G)==null?void 0:vn.type)==="focus";G=Zt,se=Zt.currentTarget,Ze(),!ue.state.isVisible&&isMouseEvent(Zt)&&mouseMoveListeners.forEach(function(Pt){return Pt(Zt)}),Zt.type==="click"&&(ue.props.trigger.indexOf("mouseenter")<0||U)&&ue.props.hideOnClick!==!1&&ue.state.isVisible?lt=!0:Oe(Zt),Zt.type==="click"&&(U=!lt),lt&&!pt&&ke(Zt)}}function An(Zt){var vn=Zt.target,lt=we().contains(vn)||fe.contains(vn);if(!(Zt.type==="mousemove"&<)){var pt=Ue().concat(fe).map(function(Pt){var qt,Ht=Pt._tippy,mn=(qt=Ht.popperInstance)==null?void 0:qt.state;return mn?{popperRect:Pt.getBoundingClientRect(),popperState:mn,props:I}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(pt,Zt)&&(ft(),ke(Zt))}}function jn(Zt){var vn=Ln(Zt)||ue.props.trigger.indexOf("click")>=0&&U;if(!vn){if(ue.props.interactive){ue.hideWithInteractivity(Zt);return}ke(Zt)}}function Mn(Zt){ue.props.trigger.indexOf("focusin")<0&&Zt.target!==we()||ue.props.interactive&&Zt.relatedTarget&&fe.contains(Zt.relatedTarget)||ke(Zt)}function Ln(Zt){return currentInput.isTouch?be()!==Zt.type.indexOf("touch")>=0:!1}function Et(){We();var Zt=ue.props,vn=Zt.popperOptions,lt=Zt.placement,pt=Zt.offset,Pt=Zt.getReferenceClientRect,qt=Zt.moveTransition,Ht=ve()?getChildren(fe).arrow:null,mn=Pt?{getBoundingClientRect:Pt,contextElement:Pt.contextElement||we()}:M,Yn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Tt){var Lt=Tt.state;if(ve()){var fn=Se(),hn=fn.box;["placement","reference-hidden","escaped"].forEach(function(wn){wn==="placement"?hn.setAttribute("data-placement",Lt.placement):Lt.attributes.popper["data-popper-"+wn]?hn.setAttribute("data-"+wn,""):hn.removeAttribute("data-"+wn)}),Lt.attributes.popper={}}}},Ct=[{name:"offset",options:{offset:pt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!qt}},Yn];ve()&&Ht&&Ct.push({name:"arrow",options:{element:Ht,padding:3}}),Ct.push.apply(Ct,(vn==null?void 0:vn.modifiers)||[]),ue.popperInstance=createPopper(mn,fe,Object.assign({},vn,{placement:lt,onFirstUpdate:Z,modifiers:Ct}))}function We(){ue.popperInstance&&(ue.popperInstance.destroy(),ue.popperInstance=null)}function xt(){var Zt=ue.props.appendTo,vn,lt=we();ue.props.interactive&&Zt===TIPPY_DEFAULT_APPEND_TO||Zt==="parent"?vn=lt.parentNode:vn=invokeWithArgsOrReturn(Zt,[lt]),vn.contains(fe)||vn.appendChild(fe),ue.state.isMounted=!0,Et()}function Ue(){return arrayFrom(fe.querySelectorAll("[data-tippy-root]"))}function Oe(Zt){ue.clearDelayTimeouts(),Zt&&Be("onTrigger",[ue,Zt]),Nt();var vn=Pe(!0),lt=le(),pt=lt[0],Pt=lt[1];currentInput.isTouch&&pt==="hold"&&Pt&&(vn=Pt),vn?N=setTimeout(function(){ue.show()},vn):ue.show()}function ke(Zt){if(ue.clearDelayTimeouts(),Be("onUntrigger",[ue,Zt]),!ue.state.isVisible){Vt();return}if(!(ue.props.trigger.indexOf("mouseenter")>=0&&ue.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Zt.type)>=0&&U)){var vn=Pe(!1);vn?B=setTimeout(function(){ue.state.isVisible&&ue.hide()},vn):j=requestAnimationFrame(function(){ue.hide()})}}function $e(){ue.state.isEnabled=!0}function Ge(){ue.hide(),ue.state.isEnabled=!1}function rt(){clearTimeout(N),clearTimeout(B),cancelAnimationFrame(j)}function ut(Zt){if(!ue.state.isDestroyed){Be("onBeforeUpdate",[ue,Zt]),kn();var vn=ue.props,lt=evaluateProps(M,Object.assign({},vn,removeUndefinedProps(Zt),{ignoreAttributes:!0}));ue.props=lt,En(),vn.interactiveDebounce!==lt.interactiveDebounce&&(ft(),te=debounce$2(An,lt.interactiveDebounce)),vn.triggerTarget&&!lt.triggerTarget?normalizeToArray(vn.triggerTarget).forEach(function(pt){pt.removeAttribute("aria-expanded")}):lt.triggerTarget&&M.removeAttribute("aria-expanded"),Ze(),Me(),ge&&ge(vn,lt),ue.popperInstance&&(Et(),Ue().forEach(function(pt){requestAnimationFrame(pt._tippy.popperInstance.forceUpdate)})),Be("onAfterUpdate",[ue,Zt])}}function ct(Zt){ue.setProps({content:Zt})}function it(){var Zt=ue.state.isVisible,vn=ue.state.isDestroyed,lt=!ue.state.isEnabled,pt=currentInput.isTouch&&!ue.props.touch,Pt=getValueAtIndexOrReturn(ue.props.duration,0,defaultProps.duration);if(!(Zt||vn||lt||pt)&&!we().hasAttribute("disabled")&&(Be("onShow",[ue],!1),ue.props.onShow(ue)!==!1)){if(ue.state.isVisible=!0,ve()&&(fe.style.visibility="visible"),Me(),Nt(),ue.state.isMounted||(fe.style.transition="none"),ve()){var qt=Se(),Ht=qt.box,mn=qt.content;setTransitionDuration([Ht,mn],0)}Z=function(){var Ct;if(!(!ue.state.isVisible||K)){if(K=!0,fe.offsetHeight,fe.style.transition=ue.props.moveTransition,ve()&&ue.props.animation){var ht=Se(),Tt=ht.box,Lt=ht.content;setTransitionDuration([Tt,Lt],Pt),setVisibilityState([Tt,Lt],"visible")}ze(),Ze(),pushIfUnique(mountedInstances,ue),(Ct=ue.popperInstance)==null||Ct.forceUpdate(),Be("onMount",[ue]),ue.props.animation&&ve()&&Gt(Pt,function(){ue.state.isShown=!0,Be("onShown",[ue])})}},xt()}}function ot(){var Zt=!ue.state.isVisible,vn=ue.state.isDestroyed,lt=!ue.state.isEnabled,pt=getValueAtIndexOrReturn(ue.props.duration,1,defaultProps.duration);if(!(Zt||vn||lt)&&(Be("onHide",[ue],!1),ue.props.onHide(ue)!==!1)){if(ue.state.isVisible=!1,ue.state.isShown=!1,K=!1,U=!1,ve()&&(fe.style.visibility="hidden"),ft(),Vt(),Me(!0),ve()){var Pt=Se(),qt=Pt.box,Ht=Pt.content;ue.props.animation&&(setTransitionDuration([qt,Ht],pt),setVisibilityState([qt,Ht],"hidden"))}ze(),Ze(),ue.props.animation?ve()&&Wt(pt,ue.unmount):ue.unmount()}}function Ot(Zt){Ae().addEventListener("mousemove",te),pushIfUnique(mouseMoveListeners,te),te(Zt)}function dn(){ue.state.isVisible&&ue.hide(),ue.state.isMounted&&(We(),Ue().forEach(function(Zt){Zt._tippy.unmount()}),fe.parentNode&&fe.parentNode.removeChild(fe),mountedInstances=mountedInstances.filter(function(Zt){return Zt!==ue}),ue.state.isMounted=!1,Be("onHidden",[ue]))}function Fn(){ue.state.isDestroyed||(ue.clearDelayTimeouts(),ue.unmount(),kn(),delete M._tippy,ue.state.isDestroyed=!0,Be("onDestroy",[ue]))}}function tippy(M,$){$===void 0&&($={});var I=defaultProps.plugins.concat($.plugins||[]);bindGlobalEventListeners();var N=Object.assign({},$,{plugins:I}),B=getArrayOfElements(M),j=B.reduce(function(U,q){var Y=q&&createTippy(q,N);return Y&&U.push(Y),U},[]);return isElement$3(M)?j[0]:j}tippy.defaultProps=defaultProps;tippy.setDefaultProps=setDefaultProps;tippy.currentInput=currentInput;Object.assign({},applyStyles$1,{effect:function($){var I=$.state,N={popper:{position:I.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(I.elements.popper.style,N.popper),I.styles=N,I.elements.arrow&&Object.assign(I.elements.arrow.style,N.arrow)}});tippy.setDefaultProps({render:render$3});class BubbleMenuView{constructor({editor:$,element:I,view:N,tippyOptions:B={},updateDelay:j=250,shouldShow:U}){this.preventHide=!1,this.shouldShow=({view:q,state:Y,from:K,to:G})=>{const{doc:J,selection:Z}=Y,{empty:ee}=Z,te=!J.textBetween(K,G).length&&isTextSelection(Y.selection),se=this.element.contains(document.activeElement);return!(!(q.hasFocus()||se)||ee||te||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:q})=>{var Y;if(this.preventHide){this.preventHide=!1;return}q!=null&&q.relatedTarget&&(!((Y=this.element.parentNode)===null||Y===void 0)&&Y.contains(q.relatedTarget))||this.hide()},this.tippyBlurHandler=q=>{this.blurHandler({event:q})},this.handleDebouncedUpdate=(q,Y)=>{const K=!(Y!=null&&Y.selection.eq(q.state.selection)),G=!(Y!=null&&Y.doc.eq(q.state.doc));!K&&!G||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(q,K,G,Y)},this.updateDelay))},this.updateHandler=(q,Y,K,G)=>{var J,Z,ee;const{state:te,composing:se}=q,{selection:re}=te;if(se||!Y&&!K)return;this.createTooltip();const{ranges:ce}=re,me=Math.min(...ce.map(fe=>fe.$from.pos)),ue=Math.max(...ce.map(fe=>fe.$to.pos));if(!((J=this.shouldShow)===null||J===void 0?void 0:J.call(this,{editor:this.editor,view:q,state:te,oldState:G,from:me,to:ue}))){this.hide();return}(Z=this.tippy)===null||Z===void 0||Z.setProps({getReferenceClientRect:((ee=this.tippyOptions)===null||ee===void 0?void 0:ee.getReferenceClientRect)||(()=>{if(isNodeSelection(te.selection)){let fe=q.nodeDOM(me);const ge=fe.dataset.nodeViewWrapper?fe:fe.querySelector("[data-node-view-wrapper]");if(ge&&(fe=ge.firstChild),fe)return fe.getBoundingClientRect()}return posToDOMRect(q,me,ue)})}),this.show()},this.editor=$,this.element=I,this.view=N,this.updateDelay=j,U&&(this.shouldShow=U),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=B,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:$}=this.editor.options,I=!!$.parentElement;this.tippy||!I||(this.tippy=tippy($,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update($,I){const{state:N}=$,B=N.selection.from!==N.selection.to;if(this.updateDelay>0&&B){this.handleDebouncedUpdate($,I);return}const j=!(I!=null&&I.selection.eq($.state.selection)),U=!(I!=null&&I.doc.eq($.state.doc));this.updateHandler($,j,U,I)}show(){var $;($=this.tippy)===null||$===void 0||$.show()}hide(){var $;($=this.tippy)===null||$===void 0||$.hide()}destroy(){var $,I;!(($=this.tippy)===null||$===void 0)&&$.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(I=this.tippy)===null||I===void 0||I.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const BubbleMenuPlugin=M=>new Plugin({key:typeof M.pluginKey=="string"?new PluginKey(M.pluginKey):M.pluginKey,view:$=>new BubbleMenuView({view:$,...M})});Extension.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[BubbleMenuPlugin({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});let FloatingMenuView$1=class{constructor({editor:$,element:I,view:N,tippyOptions:B={},shouldShow:j}){this.preventHide=!1,this.shouldShow=({view:U,state:q})=>{const{selection:Y}=q,{$anchor:K,empty:G}=Y,J=K.depth===1,Z=K.parent.isTextblock&&!K.parent.type.spec.code&&!K.parent.textContent;return!(!U.hasFocus()||!G||!J||!Z||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:U})=>{var q;if(this.preventHide){this.preventHide=!1;return}U!=null&&U.relatedTarget&&(!((q=this.element.parentNode)===null||q===void 0)&&q.contains(U.relatedTarget))||this.hide()},this.tippyBlurHandler=U=>{this.blurHandler({event:U})},this.editor=$,this.element=I,this.view=N,j&&(this.shouldShow=j),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=B,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:$}=this.editor.options,I=!!$.parentElement;this.tippy||!I||(this.tippy=tippy($,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update($,I){var N,B,j;const{state:U}=$,{doc:q,selection:Y}=U,{from:K,to:G}=Y;if(I&&I.doc.eq(q)&&I.selection.eq(Y))return;if(this.createTooltip(),!((N=this.shouldShow)===null||N===void 0?void 0:N.call(this,{editor:this.editor,view:$,state:U,oldState:I}))){this.hide();return}(B=this.tippy)===null||B===void 0||B.setProps({getReferenceClientRect:((j=this.tippyOptions)===null||j===void 0?void 0:j.getReferenceClientRect)||(()=>posToDOMRect($,K,G))}),this.show()}show(){var $;($=this.tippy)===null||$===void 0||$.show()}hide(){var $;($=this.tippy)===null||$===void 0||$.hide()}destroy(){var $,I;!(($=this.tippy)===null||$===void 0)&&$.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(I=this.tippy)===null||I===void 0||I.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}};const FloatingMenuPlugin$1=M=>new Plugin({key:typeof M.pluginKey=="string"?new PluginKey(M.pluginKey):M.pluginKey,view:$=>new FloatingMenuView$1({view:$,...M})});Extension.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[FloatingMenuPlugin$1({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});var dist$1={},string={},util={},validators$2={};const require$$0$1=getAugmentedNamespace(vue_esm);var isInstanceOf$1={};Object.defineProperty(isInstanceOf$1,"__esModule",{value:!0});isInstanceOf$1.isInstanceOf=void 0;const isInstanceOf=M=>$=>{if(!($ instanceof M))return`value should be an instance of ${M.name}`};isInstanceOf$1.isInstanceOf=isInstanceOf;var isInteger$1={};Object.defineProperty(isInteger$1,"__esModule",{value:!0});isInteger$1.isInteger=void 0;const isInteger=M=>{if(typeof M!="number"||!Number.isInteger(M))return"value should be an integer"};isInteger$1.isInteger=isInteger;var isOneOf$1={};Object.defineProperty(isOneOf$1,"__esModule",{value:!0});isOneOf$1.isOneOf=void 0;const isOneOf=M=>$=>{if(!M.includes($))return`value should be one of "${M.join('", "')}"`};isOneOf$1.isOneOf=isOneOf;var isSymbol$4={};Object.defineProperty(isSymbol$4,"__esModule",{value:!0});isSymbol$4.isSymbol=void 0;const isSymbol$3=M=>{if(typeof M!="symbol")return"value should be a symbol"};isSymbol$4.isSymbol=isSymbol$3;(function(M){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(Y){return Y&&Y.__esModule?Y:{default:Y}};Object.defineProperty(M,"__esModule",{value:!0}),M.isSymbol=M.isOneOf=M.isInteger=M.isInstanceOf=M.vuePropValidator=void 0;const I=$(require$$0$1);function N(Y,...K){const G=Y?[...K,Y]:K;if(G.length!==0)return J=>{for(const Z of G){const ee=Z(J);if(ee)return typeof I.default=="object"&&"util"in I.default?I.default.util.warn(`${ee} (received: '${String(J)}')`):console.warn(`${ee} (received: '${String(J)}')`),!1}return!0}}M.vuePropValidator=N;var B=isInstanceOf$1;Object.defineProperty(M,"isInstanceOf",{enumerable:!0,get:function(){return B.isInstanceOf}});var j=isInteger$1;Object.defineProperty(M,"isInteger",{enumerable:!0,get:function(){return j.isInteger}});var U=isOneOf$1;Object.defineProperty(M,"isOneOf",{enumerable:!0,get:function(){return U.isOneOf}});var q=isSymbol$4;Object.defineProperty(M,"isSymbol",{enumerable:!0,get:function(){return q.isSymbol}})})(validators$2);Object.defineProperty(util,"__esModule",{value:!0});util.propOptionsGenerator=void 0;const validators_1$5=validators$2,propOptionsGenerator=(M,$,...I)=>({optional:{type:M,required:!1,default:void 0,validator:(0,validators_1$5.vuePropValidator)($,...I)},nullable:{type:M,required:!1,default:null,validator:(0,validators_1$5.vuePropValidator)($,...I)},withDefault:N=>({type:M,required:!1,default:N,validator:(0,validators_1$5.vuePropValidator)($,...I)}),required:{type:M,required:!0,validator:(0,validators_1$5.vuePropValidator)($,...I)}});util.propOptionsGenerator=propOptionsGenerator;Object.defineProperty(string,"__esModule",{value:!0});string.stringProp=void 0;const util_1$b=util,stringProp=M=>(0,util_1$b.propOptionsGenerator)(String,M);string.stringProp=stringProp;var boolean={};Object.defineProperty(boolean,"__esModule",{value:!0});boolean.booleanProp=void 0;const util_1$a=util,booleanProp=M=>(0,util_1$a.propOptionsGenerator)(Boolean,M);boolean.booleanProp=booleanProp;var number={};Object.defineProperty(number,"__esModule",{value:!0});number.numberProp=void 0;const util_1$9=util,numberProp=M=>(0,util_1$9.propOptionsGenerator)(Number,M);number.numberProp=numberProp;var integer={};Object.defineProperty(integer,"__esModule",{value:!0});integer.integerProp=void 0;const util_1$8=util,validators_1$4=validators$2,integerProp=M=>(0,util_1$8.propOptionsGenerator)(Number,M,validators_1$4.isInteger);integer.integerProp=integerProp;var symbol={};Object.defineProperty(symbol,"__esModule",{value:!0});symbol.symbolProp=void 0;const util_1$7=util,validators_1$3=validators$2,symbolProp=M=>(0,util_1$7.propOptionsGenerator)(void 0,M,validators_1$3.isSymbol);symbol.symbolProp=symbolProp;var vueComponent={};Object.defineProperty(vueComponent,"__esModule",{value:!0});vueComponent.vueComponentProp=void 0;const util_1$6=util,vueComponentProp=M=>(0,util_1$6.propOptionsGenerator)([Object,String],M);vueComponent.vueComponentProp=vueComponentProp;var any={};Object.defineProperty(any,"__esModule",{value:!0});any.anyProp=void 0;const util_1$5=util,anyProp=M=>(0,util_1$5.propOptionsGenerator)(void 0,M);any.anyProp=anyProp;var array={};Object.defineProperty(array,"__esModule",{value:!0});array.arrayProp=void 0;const util_1$4=util,arrayProp=M=>(0,util_1$4.propOptionsGenerator)(Array,M);array.arrayProp=arrayProp;var object$1={};Object.defineProperty(object$1,"__esModule",{value:!0});object$1.objectProp=void 0;const util_1$3=util,objectProp=M=>(0,util_1$3.propOptionsGenerator)(Object,M);object$1.objectProp=objectProp;var _function={};Object.defineProperty(_function,"__esModule",{value:!0});_function.functionProp=void 0;const validators_1$2=validators$2,functionProp=M=>({optional:{type:Function,required:!1,default:void 0,validator:(0,validators_1$2.vuePropValidator)(M)},nullable:{type:Function,required:!1,default:null,validator:(0,validators_1$2.vuePropValidator)(M)},required:{type:Function,required:!0,validator:(0,validators_1$2.vuePropValidator)(M)}});_function.functionProp=functionProp;var oneOf={};Object.defineProperty(oneOf,"__esModule",{value:!0});oneOf.oneOfProp=void 0;const util_1$2=util,validators_1$1=validators$2,getOneOfType=M=>{const $=[...new Set(M.flatMap(I=>{var N;return I==null?[]:(N=I.constructor)!==null&&N!==void 0?N:[]}))];if($.length!==0)return $.length===1?$[0]:$},oneOfProp=(M,$)=>(0,util_1$2.propOptionsGenerator)(getOneOfType(M),$,(0,validators_1$1.isOneOf)(M));oneOf.oneOfProp=oneOfProp;var oneOfObjectKeys={};Object.defineProperty(oneOfObjectKeys,"__esModule",{value:!0});oneOfObjectKeys.oneOfObjectKeysProp=void 0;const oneOf_1=oneOf,oneOfObjectKeysProp=(M,$)=>(0,oneOf_1.oneOfProp)(Object.keys(M),$);oneOfObjectKeys.oneOfObjectKeysProp=oneOfObjectKeysProp;var oneOfTypes={};Object.defineProperty(oneOfTypes,"__esModule",{value:!0});oneOfTypes.oneOfTypesProp=void 0;const util_1$1=util,oneOfTypesProp=(M,$)=>(0,util_1$1.propOptionsGenerator)(M,$);oneOfTypes.oneOfTypesProp=oneOfTypesProp;var instanceOf={};Object.defineProperty(instanceOf,"__esModule",{value:!0});instanceOf.instanceOfProp=void 0;const util_1=util,validators_1=validators$2,instanceOfProp=(M,$)=>(0,util_1.propOptionsGenerator)(M,$,(0,validators_1.isInstanceOf)(M));instanceOf.instanceOfProp=instanceOfProp;var isNegative$1={};Object.defineProperty(isNegative$1,"__esModule",{value:!0});isNegative$1.isNegative=void 0;const isNegative=M=>{if(typeof M!="number"||M>=0||Number.isNaN(M))return"value should be a negative number"};isNegative$1.isNegative=isNegative;var isPositive$1={};Object.defineProperty(isPositive$1,"__esModule",{value:!0});isPositive$1.isPositive=void 0;const isPositive=M=>{if(typeof M!="number"||M<=0||Number.isNaN(M))return"value should be a positive number"};isPositive$1.isPositive=isPositive;var isNonNegative$1={};Object.defineProperty(isNonNegative$1,"__esModule",{value:!0});isNonNegative$1.isNonNegative=void 0;const isNonNegative=M=>{if(typeof M!="number"||M<0||Number.isNaN(M))return"value should be a non-negative number"};isNonNegative$1.isNonNegative=isNonNegative;var isNonPositive$1={};Object.defineProperty(isNonPositive$1,"__esModule",{value:!0});isNonPositive$1.isNonPositive=void 0;const isNonPositive=M=>{if(typeof M!="number"||M>0||Number.isNaN(M))return"value should be a non-positive number"};isNonPositive$1.isNonPositive=isNonPositive;(function(M){Object.defineProperty(M,"__esModule",{value:!0}),M.isNonPositive=M.isNonNegative=M.isPositive=M.isNegative=M.instanceOfProp=M.oneOfTypesProp=M.oneOfObjectKeysProp=M.oneOfProp=M.functionProp=M.objectProp=M.arrayProp=M.anyProp=M.vueComponentProp=M.symbolProp=M.integerProp=M.numberProp=M.booleanProp=M.stringProp=void 0;var $=string;Object.defineProperty(M,"stringProp",{enumerable:!0,get:function(){return $.stringProp}});var I=boolean;Object.defineProperty(M,"booleanProp",{enumerable:!0,get:function(){return I.booleanProp}});var N=number;Object.defineProperty(M,"numberProp",{enumerable:!0,get:function(){return N.numberProp}});var B=integer;Object.defineProperty(M,"integerProp",{enumerable:!0,get:function(){return B.integerProp}});var j=symbol;Object.defineProperty(M,"symbolProp",{enumerable:!0,get:function(){return j.symbolProp}});var U=vueComponent;Object.defineProperty(M,"vueComponentProp",{enumerable:!0,get:function(){return U.vueComponentProp}});var q=any;Object.defineProperty(M,"anyProp",{enumerable:!0,get:function(){return q.anyProp}});var Y=array;Object.defineProperty(M,"arrayProp",{enumerable:!0,get:function(){return Y.arrayProp}});var K=object$1;Object.defineProperty(M,"objectProp",{enumerable:!0,get:function(){return K.objectProp}});var G=_function;Object.defineProperty(M,"functionProp",{enumerable:!0,get:function(){return G.functionProp}});var J=oneOf;Object.defineProperty(M,"oneOfProp",{enumerable:!0,get:function(){return J.oneOfProp}});var Z=oneOfObjectKeys;Object.defineProperty(M,"oneOfObjectKeysProp",{enumerable:!0,get:function(){return Z.oneOfObjectKeysProp}});var ee=oneOfTypes;Object.defineProperty(M,"oneOfTypesProp",{enumerable:!0,get:function(){return ee.oneOfTypesProp}});var te=instanceOf;Object.defineProperty(M,"instanceOfProp",{enumerable:!0,get:function(){return te.instanceOfProp}});var se=isNegative$1;Object.defineProperty(M,"isNegative",{enumerable:!0,get:function(){return se.isNegative}});var re=isPositive$1;Object.defineProperty(M,"isPositive",{enumerable:!0,get:function(){return re.isPositive}});var ne=isNonNegative$1;Object.defineProperty(M,"isNonNegative",{enumerable:!0,get:function(){return ne.isNonNegative}});var ce=isNonPositive$1;Object.defineProperty(M,"isNonPositive",{enumerable:!0,get:function(){return ce.isNonPositive}})})(dist$1);const BubbleMenu={name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},watch:{editor:{immediate:!0,handler(M){M&&this.$nextTick(()=>{M.registerPlugin(BubbleMenuPlugin({updateDelay:this.updateDelay,editor:M,element:this.$el,pluginKey:this.pluginKey,shouldShow:this.shouldShow,tippyOptions:this.tippyOptions}))})}}},render(M){return M("div",{style:{visibility:"hidden"}},this.$slots.default)},beforeDestroy(){this.editor.unregisterPlugin(this.pluginKey)}};class Editor extends Editor$1{constructor(){super(...arguments),this.contentComponent=null}}const EditorContent={name:"EditorContent",props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(M){M&&M.options.element&&this.$nextTick(()=>{const $=this.$el;!$||!M.options.element.firstChild||($.append(...M.options.element.childNodes),M.contentComponent=this,M.setOptions({element:$}),M.createNodeViews())})}}},render(M){return M("div")},beforeDestroy(){const{editor:M}=this;if(!M||(M.isDestroyed||M.view.setProps({nodeViews:{}}),M.contentComponent=null,!M.options.element.firstChild))return;const $=document.createElement("div");$.append(...M.options.element.childNodes),M.setOptions({element:$})}},FloatingMenu$1={name:"FloatingMenu",props:{pluginKey:{type:[String,Object],default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},watch:{editor:{immediate:!0,handler(M){M&&this.$nextTick(()=>{M.registerPlugin(FloatingMenuPlugin$1({pluginKey:this.pluginKey,editor:M,element:this.$el,tippyOptions:this.tippyOptions,shouldShow:this.shouldShow}))})}}},render(M){return M("div",{style:{visibility:"hidden"}},this.$slots.default)},beforeDestroy(){this.editor.unregisterPlugin(this.pluginKey)}},NodeViewContent={props:{as:{type:String,default:"div"}},render(M){return M(this.as,{style:{whiteSpace:"pre-wrap"},attrs:{"data-node-view-content":""}})}},NodeViewWrapper={props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(M){return M(this.as,{class:this.decorationClasses.value,style:{whiteSpace:"normal"},attrs:{"data-node-view-wrapper":""},on:{dragstart:this.onDragStart}},this.$slots.default)}};class VueRenderer{constructor($,I){const N=typeof $=="function"?$:Vue$3.extend($);this.ref=new N(I).$mount()}get element(){return this.ref.$el}updateProps($={}){var I,N,B;if(!this.ref.$props)return;const j=(B=(N=(I=this.ref.$props.editor)===null||I===void 0?void 0:I.contentComponent)===null||N===void 0?void 0:N.$options._base)!==null&&B!==void 0?B:Vue$3,U=j.config.silent;j.config.silent=!0,Object.entries($).forEach(([q,Y])=>{this.ref.$props[q]=Y}),j.config.silent=U}destroy(){this.ref.$destroy()}}const nodeViewProps={editor:dist$1.objectProp().required,node:dist$1.objectProp().required,decorations:dist$1.objectProp().required,selected:dist$1.booleanProp().required,extension:dist$1.objectProp().required,getPos:dist$1.functionProp().required,updateAttributes:dist$1.functionProp().required,deleteNode:dist$1.functionProp().required};class VueNodeView extends NodeView{mount(){var $,I;const N={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(q={})=>this.updateAttributes(q),deleteNode:()=>this.deleteNode()},B=this.onDragStart.bind(this);this.decorationClasses=Vue$3.observable({value:this.getDecorationClasses()});const U=((I=($=this.editor.contentComponent)===null||$===void 0?void 0:$.$options._base)!==null&&I!==void 0?I:Vue$3).extend(this.component).extend({props:Object.keys(N),provide:()=>({onDragStart:B,decorationClasses:this.decorationClasses})});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new VueRenderer(U,{parent:this.editor.contentComponent,propsData:N})}get dom(){if(!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")||this.dom}handleSelectionUpdate(){const{from:$,to:I}=this.editor.state.selection,N=this.getPos();if(typeof N=="number")if($<=N&&I>=N+this.node.nodeSize){if(this.renderer.ref.$props.selected)return;this.selectNode()}else{if(!this.renderer.ref.$props.selected)return;this.deselectNode()}}update($,I,N){const B=j=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(j)};if(typeof this.options.update=="function"){const j=this.node,U=this.decorations,q=this.innerDecorations;return this.node=$,this.decorations=I,this.innerDecorations=N,this.options.update({oldNode:j,oldDecorations:U,newNode:$,newDecorations:I,oldInnerDecorations:q,innerDecorations:N,updateProps:()=>B({node:$,decorations:I,innerDecorations:N})})}return $.type!==this.node.type?!1:($===this.node&&this.decorations===I&&this.innerDecorations===N||(this.node=$,this.decorations=I,this.innerDecorations=N,B({node:$,decorations:I,innerDecorations:N})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map($=>$.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}}function VueNodeViewRenderer(M,$){return I=>I.editor.contentComponent?new VueNodeView(M,I,$):{}}const vue2=Object.freeze(Object.defineProperty({__proto__:null,BubbleMenu,CommandManager,Editor,EditorContent,Extension,FloatingMenu:FloatingMenu$1,InputRule,Mark,Node:Node$1,NodePos,NodeView,NodeViewContent,NodeViewWrapper,PasteRule,Tracker,VueNodeViewRenderer,VueRenderer,callOrReturn,combineTransactionSteps,createChainableState,createDocument,createNodeFromContent,createStyleTag,defaultBlockAt,deleteProps,elementFromString,escapeForRegEx,extensions:index$2,findChildren,findChildrenInRange,findDuplicates,findParentNode,findParentNodeClosestToPos,fromString,generateHTML,generateJSON,generateText,getAttributes,getAttributesFromExtensions,getChangedRanges,getDebugJSON,getExtensionField,getHTMLFromFragment,getMarkAttributes,getMarkRange,getMarkType,getMarksBetween,getNodeAtPosition,getNodeAttributes,getNodeType,getRenderedAttributes,getSchema,getSchemaByResolvedExtensions,getSchemaTypeByName,getSchemaTypeNameByName,getSplittedAttributes,getText,getTextBetween,getTextContentFromNodes,getTextSerializersFromSchema,injectExtensionAttributesToParseRule,inputRulesPlugin,isActive,isAtEndOfNode,isAtStartOfNode,isEmptyObject,isExtensionRulesEnabled,isFunction:isFunction$5,isList,isMacOS,isMarkActive,isNodeActive,isNodeEmpty,isNodeSelection,isNumber:isNumber$5,isPlainObject:isPlainObject$1,isRegExp:isRegExp$4,isString:isString$7,isTextSelection,isiOS,markInputRule,markPasteRule,mergeAttributes,mergeDeep,minMax,nodeInputRule,nodePasteRule,nodeViewProps,objectIncludes:objectIncludes$1,pasteRulesPlugin,posToDOMRect,removeDuplicates,resolveFocusPosition,selectionToInsertionEnd,splitExtensions,textInputRule,textPasteRule,textblockTypeInputRule,wrappingInputRule},Symbol.toStringTag,{value:"Module"}));class Bard{constructor($){this.instance=$,this.extensionCallbacks=[],this.extensionReplacementCallbacks=[],this.buttonCallbacks=[]}addExtension($){this.extensionCallbacks.push($)}replaceExtension($,I){this.extensionReplacementCallbacks.push({name:$,callback:I})}buttons($){this.buttonCallbacks.push($)}get tiptap(){return{core:core$2,vue2,pm:{state,model,view}}}}var mousetrap$1={exports:{}};(function(M){(function($,I,N){for(var B={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},j={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},U={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},q={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Y,K=1;K<20;++K)B[111+K]="f"+K;for(K=0;K<=9;++K)B[K+96]=K;function G(ge,ye,xe){if(ge.addEventListener){ge.addEventListener(ye,xe,!1);return}ge.attachEvent("on"+ye,xe)}function J(ge){if(ge.type=="keypress"){var ye=String.fromCharCode(ge.which);return ge.shiftKey||(ye=ye.toLowerCase()),ye}return B[ge.which]?B[ge.which]:j[ge.which]?j[ge.which]:String.fromCharCode(ge.which).toLowerCase()}function Z(ge,ye){return ge.sort().join(",")===ye.sort().join(",")}function ee(ge){var ye=[];return ge.shiftKey&&ye.push("shift"),ge.altKey&&ye.push("alt"),ge.ctrlKey&&ye.push("ctrl"),ge.metaKey&&ye.push("meta"),ye}function te(ge){if(ge.preventDefault){ge.preventDefault();return}ge.returnValue=!1}function se(ge){if(ge.stopPropagation){ge.stopPropagation();return}ge.cancelBubble=!0}function re(ge){return ge=="shift"||ge=="ctrl"||ge=="alt"||ge=="meta"}function ne(){if(!Y){Y={};for(var ge in B)ge>95&&ge<112||B.hasOwnProperty(ge)&&(Y[B[ge]]=ge)}return Y}function ce(ge,ye,xe){return xe||(xe=ne()[ge]?"keydown":"keypress"),xe=="keypress"&&ye.length&&(xe="keydown"),xe}function me(ge){return ge==="+"?["+"]:(ge=ge.replace(/\+{2}/g,"+plus"),ge.split("+"))}function ue(ge,ye){var xe,le,be,ve=[];for(xe=me(ge),be=0;be<xe.length;++be)le=xe[be],q[le]&&(le=q[le]),ye&&ye!="keypress"&&U[le]&&(le=U[le],ve.push("shift")),re(le)&&ve.push(le);return ye=ce(le,ve,ye),{key:le,modifiers:ve,action:ye}}function _e(ge,ye){return ge===null||ge===I?!1:ge===ye?!0:_e(ge.parentNode,ye)}function fe(ge){var ye=this;if(ge=ge||I,!(ye instanceof fe))return new fe(ge);ye.target=ge,ye._callbacks={},ye._directMap={};var xe={},le,be=!1,ve=!1,we=!1;function Ae(ft){ft=ft||{};var Ye=!1,Ve;for(Ve in xe){if(ft[Ve]){Ye=!0;continue}xe[Ve]=0}Ye||(we=!1)}function Se(ft,Ye,Ve,Dt,Nt,Vt){var Wt,Gt,tn=[],Qt=Ve.type;if(!ye._callbacks[ft])return[];for(Qt=="keyup"&&re(ft)&&(Ye=[ft]),Wt=0;Wt<ye._callbacks[ft].length;++Wt)if(Gt=ye._callbacks[ft][Wt],!(!Dt&&Gt.seq&&xe[Gt.seq]!=Gt.level)&&Qt==Gt.action&&(Qt=="keypress"&&!Ve.metaKey&&!Ve.ctrlKey||Z(Ye,Gt.modifiers))){var En=!Dt&&Gt.combo==Nt,kn=Dt&&Gt.seq==Dt&&Gt.level==Vt;(En||kn)&&ye._callbacks[ft].splice(Wt,1),tn.push(Gt)}return tn}function Pe(ft,Ye,Ve,Dt){ye.stopCallback(Ye,Ye.target||Ye.srcElement,Ve,Dt)||ft(Ye,Ve)===!1&&(te(Ye),se(Ye))}ye._handleKey=function(ft,Ye,Ve){var Dt=Se(ft,Ye,Ve),Nt,Vt={},Wt=0,Gt=!1;for(Nt=0;Nt<Dt.length;++Nt)Dt[Nt].seq&&(Wt=Math.max(Wt,Dt[Nt].level));for(Nt=0;Nt<Dt.length;++Nt){if(Dt[Nt].seq){if(Dt[Nt].level!=Wt)continue;Gt=!0,Vt[Dt[Nt].seq]=1,Pe(Dt[Nt].callback,Ve,Dt[Nt].combo,Dt[Nt].seq);continue}Gt||Pe(Dt[Nt].callback,Ve,Dt[Nt].combo)}var tn=Ve.type=="keypress"&&ve;Ve.type==we&&!re(ft)&&!tn&&Ae(Vt),ve=Gt&&Ve.type=="keydown"};function Me(ft){typeof ft.which!="number"&&(ft.which=ft.keyCode);var Ye=J(ft);if(Ye){if(ft.type=="keyup"&&be===Ye){be=!1;return}ye.handleKey(Ye,ee(ft),ft)}}function Be(){clearTimeout(le),le=setTimeout(Ae,1e3)}function ze(ft,Ye,Ve,Dt){xe[ft]=0;function Nt(Qt){return function(){we=Qt,++xe[ft],Be()}}function Vt(Qt){Pe(Ve,Qt,ft),Dt!=="keyup"&&(be=J(Qt)),setTimeout(Ae,10)}for(var Wt=0;Wt<Ye.length;++Wt){var Gt=Wt+1===Ye.length,tn=Gt?Vt:Nt(Dt||ue(Ye[Wt+1]).action);Ze(Ye[Wt],tn,Dt,ft,Wt)}}function Ze(ft,Ye,Ve,Dt,Nt){ye._directMap[ft+":"+Ve]=Ye,ft=ft.replace(/\s+/g," ");var Vt=ft.split(" "),Wt;if(Vt.length>1){ze(ft,Vt,Ye,Ve);return}Wt=ue(ft,Ve),ye._callbacks[Wt.key]=ye._callbacks[Wt.key]||[],Se(Wt.key,Wt.modifiers,{type:Wt.action},Dt,ft,Nt),ye._callbacks[Wt.key][Dt?"unshift":"push"]({callback:Ye,modifiers:Wt.modifiers,action:Wt.action,seq:Dt,level:Nt,combo:ft})}ye._bindMultiple=function(ft,Ye,Ve){for(var Dt=0;Dt<ft.length;++Dt)Ze(ft[Dt],Ye,Ve)},G(ge,"keypress",Me),G(ge,"keydown",Me),G(ge,"keyup",Me)}fe.prototype.bind=function(ge,ye,xe){var le=this;return ge=ge instanceof Array?ge:[ge],le._bindMultiple.call(le,ge,ye,xe),le},fe.prototype.unbind=function(ge,ye){var xe=this;return xe.bind.call(xe,ge,function(){},ye)},fe.prototype.trigger=function(ge,ye){var xe=this;return xe._directMap[ge+":"+ye]&&xe._directMap[ge+":"+ye]({},ge),xe},fe.prototype.reset=function(){var ge=this;return ge._callbacks={},ge._directMap={},ge},fe.prototype.stopCallback=function(ge,ye){var xe=this;return(" "+ye.className+" ").indexOf(" mousetrap ")>-1||_e(ye,xe.target)?!1:ye.tagName=="INPUT"||ye.tagName=="SELECT"||ye.tagName=="TEXTAREA"||ye.isContentEditable},fe.prototype.handleKey=function(){var ge=this;return ge._handleKey.apply(ge,arguments)},fe.init=function(){var ge=fe(I);for(var ye in ge)ye.charAt(0)!=="_"&&(fe[ye]=function(xe){return function(){return ge[xe].apply(ge,arguments)}}(ye))},fe.init(),$.Mousetrap=fe,M.exports&&(M.exports=fe),typeof N=="function"&&N.amd&&N(function(){return fe})})(window,document)})(mousetrap$1);var mousetrapExports=mousetrap$1.exports;const mousetrap=getDefaultExportFromCjs$1(mousetrapExports);class Binding{constructor($){this.bindings=$}bind($,I){return typeof $=="string"&&($=[$]),$.forEach(N=>{this.bindings[N]=this.bindings[N]||[],this.bindings[N].push(I),this.bindMousetrap(N,I)}),this.bound=$,this}destroy(){this.bound.forEach($=>{this.bindings[$].pop();const I=this.bindings[$].slice(-1)[0];I?mousetrap.bind($,I):mousetrap.unbind($)})}stop($){mousetrap.prototype.stopCallback=$}bindMousetrap($,I){mousetrap.bind($,I)}}(function(M){var $={},I=M.prototype.stopCallback;M.prototype.stopCallback=function(N,B,j,U){var q=this;return q.paused?!0:$[j]||$[U]?!1:I.call(q,N,B,j)},M.prototype.bindGlobal=function(N,B,j){var U=this;if(U.bind(N,B,j),N instanceof Array){for(var q=0;q<N.length;q++)$[N[q]]=!0;return}$[N]=!0},M.init()})(Mousetrap);class GlobalBinding extends Binding{bindMousetrap($,I){mousetrap.bindGlobal($,I)}}class Keys{constructor(){this.bindings={},this.globals={}}bind($,I){return new Binding(this.bindings).bind($,I)}stop($){return new Binding(this.bindings).stop($)}bindGlobal($,I){return new GlobalBinding(this.globals).bind($,I)}}let Hooks$1=class{constructor(){this.hooks={}}on($,I,N=10){this.hooks[$]===void 0&&(this.hooks[$]=[]),this.hooks[$].push({callback:I,priority:N})}run($,I){return new Promise((N,B)=>{this.getCallbacks($).sort((j,U)=>U.priority-j.priority).map(j=>this.convertToPromiseCallback(j.callback,I)).reduce((j,U)=>j.then(q=>U().then(Array.prototype.concat.bind(q))),Promise.resolve([])).then(j=>N(j)).catch(j=>B(j))})}getCallbacks($){return this.hooks[$]||[]}convertToPromiseCallback($,I){return()=>new Promise((N,B)=>{$(N,B,I)})}};function commonjsRequire(M){throw new Error('Could not dynamically require "'+M+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var uniqid$2={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var pid=typeof process<"u"&&process.pid?process.pid.toString(36):"",address="";if(typeof __webpack_require__!="function"&&typeof commonjsRequire<"u"){var mac="",os$1=require$$0;if(os$1.networkInterfaces)var networkInterfaces=os$1.networkInterfaces();if(networkInterfaces){e:for(let M in networkInterfaces){const $=networkInterfaces[M],I=$.length;for(var i$2=0;i$2<I;i$2++)if($[i$2]!==void 0&&$[i$2].mac&&$[i$2].mac!="00:00:00:00:00:00"){mac=$[i$2].mac;break e}}address=mac?parseInt(mac.replace(/\:|\D+/gi,"")).toString(36):""}}uniqid$2.exports=uniqid$2.exports.default=function(M,$){return(M||"")+address+pid+now$2().toString(36)+($||"")};uniqid$2.exports.process=function(M,$){return(M||"")+pid+now$2().toString(36)+($||"")};uniqid$2.exports.time=function(M,$){return(M||"")+now$2().toString(36)+($||"")};function now$2(){var M=Date.now(),$=now$2.last||M;return now$2.last=M>$?M:$+1}var uniqidExports=uniqid$2.exports;const uniqid$1=getDefaultExportFromCjs$1(uniqidExports);let FieldActions$1=class{constructor(){this.actions={}}add($,I){this.actions[$]===void 0&&(this.actions[$]=[]),this.actions[$].push(I)}get($){return this.actions[$]||[]}};function getDefaults(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let defaults$7=getDefaults();function changeDefaults(M){defaults$7=M}const escapeTest=/[&<>"']/,escapeReplace=new RegExp(escapeTest.source,"g"),escapeTestNoEncode=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode=new RegExp(escapeTestNoEncode.source,"g"),escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=M=>escapeReplacements[M];function escape$4(M,$){if($){if(escapeTest.test(M))return M.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(M))return M.replace(escapeReplaceNoEncode,getEscapeReplacement);return M}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$2(M){return M.replace(unescapeTest,($,I)=>(I=I.toLowerCase(),I==="colon"?":":I.charAt(0)==="#"?I.charAt(1)==="x"?String.fromCharCode(parseInt(I.substring(2),16)):String.fromCharCode(+I.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit(M,$){M=typeof M=="string"?M:M.source,$=$||"";const I={replace:(N,B)=>(B=B.source||B,B=B.replace(caret,"$1"),M=M.replace(N,B),I),getRegex:()=>new RegExp(M,$)};return I}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl(M,$,I){if(M){let N;try{N=decodeURIComponent(unescape$2(I)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(N.indexOf("javascript:")===0||N.indexOf("vbscript:")===0||N.indexOf("data:")===0)return null}$&&!originIndependentUrl.test(I)&&(I=resolveUrl($,I));try{I=encodeURI(I).replace(/%25/g,"%")}catch{return null}return I}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(M,$){baseUrls[" "+M]||(justDomain.test(M)?baseUrls[" "+M]=M+"/":baseUrls[" "+M]=rtrim(M,"/",!0)),M=baseUrls[" "+M];const I=M.indexOf(":")===-1;return $.substring(0,2)==="//"?I?$:M.replace(protocol,"$1")+$:$.charAt(0)==="/"?I?$:M.replace(domain,"$1")+$:M+$}const noopTest={exec:function(){}};function splitCells(M,$){const I=M.replace(/\|/g,(j,U,q)=>{let Y=!1,K=U;for(;--K>=0&&q[K]==="\\";)Y=!Y;return Y?"|":" |"}),N=I.split(/ \|/);let B=0;if(N[0].trim()||N.shift(),N.length>0&&!N[N.length-1].trim()&&N.pop(),N.length>$)N.splice($);else for(;N.length<$;)N.push("");for(;B<N.length;B++)N[B]=N[B].trim().replace(/\\\|/g,"|");return N}function rtrim(M,$,I){const N=M.length;if(N===0)return"";let B=0;for(;B<N;){const j=M.charAt(N-B-1);if(j===$&&!I)B++;else if(j!==$&&I)B++;else break}return M.slice(0,N-B)}function findClosingBracket(M,$){if(M.indexOf($[1])===-1)return-1;const I=M.length;let N=0,B=0;for(;B<I;B++)if(M[B]==="\\")B++;else if(M[B]===$[0])N++;else if(M[B]===$[1]&&(N--,N<0))return B;return-1}function checkSanitizeDeprecation(M){M&&M.sanitize&&!M.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString(M,$){if($<1)return"";let I="";for(;$>1;)$&1&&(I+=M),$>>=1,M+=M;return I+M}function outputLink(M,$,I,N){const B=$.href,j=$.title?escape$4($.title):null,U=M[1].replace(/\\([\[\]])/g,"$1");if(M[0].charAt(0)!=="!"){N.state.inLink=!0;const q={type:"link",raw:I,href:B,title:j,text:U,tokens:N.inlineTokens(U)};return N.state.inLink=!1,q}return{type:"image",raw:I,href:B,title:j,text:escape$4(U)}}function indentCodeCompensation(M,$){const I=M.match(/^(\s+)(?:```)/);if(I===null)return $;const N=I[1];return $.split(` `).map(B=>{const j=B.match(/^\s+/);if(j===null)return B;const[U]=j;return U.length>=N.length?B.slice(N.length):B}).join(` `)}class Tokenizer{constructor($){this.options=$||defaults$7}space($){const I=this.rules.block.newline.exec($);if(I&&I[0].length>0)return{type:"space",raw:I[0]}}code($){const I=this.rules.block.code.exec($);if(I){const N=I[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:I[0],codeBlockStyle:"indented",text:this.options.pedantic?N:rtrim(N,` `)}}}fences($){const I=this.rules.block.fences.exec($);if(I){const N=I[0],B=indentCodeCompensation(N,I[3]||"");return{type:"code",raw:N,lang:I[2]?I[2].trim().replace(this.rules.inline._escapes,"$1"):I[2],text:B}}}heading($){const I=this.rules.block.heading.exec($);if(I){let N=I[2].trim();if(/#$/.test(N)){const B=rtrim(N,"#");(this.options.pedantic||!B||/ $/.test(B))&&(N=B.trim())}return{type:"heading",raw:I[0],depth:I[1].length,text:N,tokens:this.lexer.inline(N)}}}hr($){const I=this.rules.block.hr.exec($);if(I)return{type:"hr",raw:I[0]}}blockquote($){const I=this.rules.block.blockquote.exec($);if(I){const N=I[0].replace(/^ *>[ \t]?/gm,""),B=this.lexer.state.top;this.lexer.state.top=!0;const j=this.lexer.blockTokens(N);return this.lexer.state.top=B,{type:"blockquote",raw:I[0],tokens:j,text:N}}}list($){let I=this.rules.block.list.exec($);if(I){let N,B,j,U,q,Y,K,G,J,Z,ee,te,se=I[1].trim();const re=se.length>1,ne={type:"list",raw:"",ordered:re,start:re?+se.slice(0,-1):"",loose:!1,items:[]};se=re?`\\d{1,9}\\${se.slice(-1)}`:`\\${se}`,this.options.pedantic&&(se=re?se:"[*+-]");const ce=new RegExp(`^( {0,3}${se})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;$&&(te=!1,!(!(I=ce.exec($))||this.rules.block.hr.test($)));){if(N=I[0],$=$.substring(N.length),G=I[2].split(` `,1)[0].replace(/^\t+/,ue=>" ".repeat(3*ue.length)),J=$.split(` `,1)[0],this.options.pedantic?(U=2,ee=G.trimLeft()):(U=I[2].search(/[^ ]/),U=U>4?1:U,ee=G.slice(U),U+=I[1].length),Y=!1,!G&&/^ *$/.test(J)&&(N+=J+` `,$=$.substring(J.length+1),te=!0),!te){const ue=new RegExp(`^ {0,${Math.min(3,U-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),_e=new RegExp(`^ {0,${Math.min(3,U-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fe=new RegExp(`^ {0,${Math.min(3,U-1)}}(?:\`\`\`|~~~)`),ge=new RegExp(`^ {0,${Math.min(3,U-1)}}#`);for(;$&&(Z=$.split(` `,1)[0],J=Z,this.options.pedantic&&(J=J.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(fe.test(J)||ge.test(J)||ue.test(J)||_e.test($)));){if(J.search(/[^ ]/)>=U||!J.trim())ee+=` `+J.slice(U);else{if(Y||G.search(/[^ ]/)>=4||fe.test(G)||ge.test(G)||_e.test(G))break;ee+=` `+J}!Y&&!J.trim()&&(Y=!0),N+=Z+` `,$=$.substring(Z.length+1),G=J.slice(U)}}ne.loose||(K?ne.loose=!0:/\n *\n *$/.test(N)&&(K=!0)),this.options.gfm&&(B=/^\[[ xX]\] /.exec(ee),B&&(j=B[0]!=="[ ] ",ee=ee.replace(/^\[[ xX]\] +/,""))),ne.items.push({type:"list_item",raw:N,task:!!B,checked:j,loose:!1,text:ee}),ne.raw+=N}ne.items[ne.items.length-1].raw=N.trimRight(),ne.items[ne.items.length-1].text=ee.trimRight(),ne.raw=ne.raw.trimRight();const me=ne.items.length;for(q=0;q<me;q++)if(this.lexer.state.top=!1,ne.items[q].tokens=this.lexer.blockTokens(ne.items[q].text,[]),!ne.loose){const ue=ne.items[q].tokens.filter(fe=>fe.type==="space"),_e=ue.length>0&&ue.some(fe=>/\n.*\n/.test(fe.raw));ne.loose=_e}if(ne.loose)for(q=0;q<me;q++)ne.items[q].loose=!0;return ne}}html($){const I=this.rules.block.html.exec($);if(I){const N={type:"html",raw:I[0],pre:!this.options.sanitizer&&(I[1]==="pre"||I[1]==="script"||I[1]==="style"),text:I[0]};if(this.options.sanitize){const B=this.options.sanitizer?this.options.sanitizer(I[0]):escape$4(I[0]);N.type="paragraph",N.text=B,N.tokens=this.lexer.inline(B)}return N}}def($){const I=this.rules.block.def.exec($);if(I){const N=I[1].toLowerCase().replace(/\s+/g," "),B=I[2]?I[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",j=I[3]?I[3].substring(1,I[3].length-1).replace(this.rules.inline._escapes,"$1"):I[3];return{type:"def",tag:N,raw:I[0],href:B,title:j}}}table($){const I=this.rules.block.table.exec($);if(I){const N={type:"table",header:splitCells(I[1]).map(B=>({text:B})),align:I[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:I[3]&&I[3].trim()?I[3].replace(/\n[ \t]*$/,"").split(` `):[]};if(N.header.length===N.align.length){N.raw=I[0];let B=N.align.length,j,U,q,Y;for(j=0;j<B;j++)/^ *-+: *$/.test(N.align[j])?N.align[j]="right":/^ *:-+: *$/.test(N.align[j])?N.align[j]="center":/^ *:-+ *$/.test(N.align[j])?N.align[j]="left":N.align[j]=null;for(B=N.rows.length,j=0;j<B;j++)N.rows[j]=splitCells(N.rows[j],N.header.length).map(K=>({text:K}));for(B=N.header.length,U=0;U<B;U++)N.header[U].tokens=this.lexer.inline(N.header[U].text);for(B=N.rows.length,U=0;U<B;U++)for(Y=N.rows[U],q=0;q<Y.length;q++)Y[q].tokens=this.lexer.inline(Y[q].text);return N}}}lheading($){const I=this.rules.block.lheading.exec($);if(I)return{type:"heading",raw:I[0],depth:I[2].charAt(0)==="="?1:2,text:I[1],tokens:this.lexer.inline(I[1])}}paragraph($){const I=this.rules.block.paragraph.exec($);if(I){const N=I[1].charAt(I[1].length-1)===` `?I[1].slice(0,-1):I[1];return{type:"paragraph",raw:I[0],text:N,tokens:this.lexer.inline(N)}}}text($){const I=this.rules.block.text.exec($);if(I)return{type:"text",raw:I[0],text:I[0],tokens:this.lexer.inline(I[0])}}escape($){const I=this.rules.inline.escape.exec($);if(I)return{type:"escape",raw:I[0],text:escape$4(I[1])}}tag($){const I=this.rules.inline.tag.exec($);if(I)return!this.lexer.state.inLink&&/^<a /i.test(I[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(I[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(I[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(I[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:I[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(I[0]):escape$4(I[0]):I[0]}}link($){const I=this.rules.inline.link.exec($);if(I){const N=I[2].trim();if(!this.options.pedantic&&/^</.test(N)){if(!/>$/.test(N))return;const U=rtrim(N.slice(0,-1),"\\");if((N.length-U.length)%2===0)return}else{const U=findClosingBracket(I[2],"()");if(U>-1){const Y=(I[0].indexOf("!")===0?5:4)+I[1].length+U;I[2]=I[2].substring(0,U),I[0]=I[0].substring(0,Y).trim(),I[3]=""}}let B=I[2],j="";if(this.options.pedantic){const U=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(B);U&&(B=U[1],j=U[3])}else j=I[3]?I[3].slice(1,-1):"";return B=B.trim(),/^</.test(B)&&(this.options.pedantic&&!/>$/.test(N)?B=B.slice(1):B=B.slice(1,-1)),outputLink(I,{href:B&&B.replace(this.rules.inline._escapes,"$1"),title:j&&j.replace(this.rules.inline._escapes,"$1")},I[0],this.lexer)}}reflink($,I){let N;if((N=this.rules.inline.reflink.exec($))||(N=this.rules.inline.nolink.exec($))){let B=(N[2]||N[1]).replace(/\s+/g," ");if(B=I[B.toLowerCase()],!B){const j=N[0].charAt(0);return{type:"text",raw:j,text:j}}return outputLink(N,B,N[0],this.lexer)}}emStrong($,I,N=""){let B=this.rules.inline.emStrong.lDelim.exec($);if(!B||B[3]&&N.match(/[\p{L}\p{N}]/u))return;const j=B[1]||B[2]||"";if(!j||j&&(N===""||this.rules.inline.punctuation.exec(N))){const U=B[0].length-1;let q,Y,K=U,G=0;const J=B[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(J.lastIndex=0,I=I.slice(-1*$.length+U);(B=J.exec(I))!=null;){if(q=B[1]||B[2]||B[3]||B[4]||B[5]||B[6],!q)continue;if(Y=q.length,B[3]||B[4]){K+=Y;continue}else if((B[5]||B[6])&&U%3&&!((U+Y)%3)){G+=Y;continue}if(K-=Y,K>0)continue;Y=Math.min(Y,Y+K+G);const Z=$.slice(0,U+B.index+(B[0].length-q.length)+Y);if(Math.min(U,Y)%2){const te=Z.slice(1,-1);return{type:"em",raw:Z,text:te,tokens:this.lexer.inlineTokens(te)}}const ee=Z.slice(2,-2);return{type:"strong",raw:Z,text:ee,tokens:this.lexer.inlineTokens(ee)}}}}codespan($){const I=this.rules.inline.code.exec($);if(I){let N=I[2].replace(/\n/g," ");const B=/[^ ]/.test(N),j=/^ /.test(N)&&/ $/.test(N);return B&&j&&(N=N.substring(1,N.length-1)),N=escape$4(N,!0),{type:"codespan",raw:I[0],text:N}}}br($){const I=this.rules.inline.br.exec($);if(I)return{type:"br",raw:I[0]}}del($){const I=this.rules.inline.del.exec($);if(I)return{type:"del",raw:I[0],text:I[2],tokens:this.lexer.inlineTokens(I[2])}}autolink($,I){const N=this.rules.inline.autolink.exec($);if(N){let B,j;return N[2]==="@"?(B=escape$4(this.options.mangle?I(N[1]):N[1]),j="mailto:"+B):(B=escape$4(N[1]),j=B),{type:"link",raw:N[0],text:B,href:j,tokens:[{type:"text",raw:B,text:B}]}}}url($,I){let N;if(N=this.rules.inline.url.exec($)){let B,j;if(N[2]==="@")B=escape$4(this.options.mangle?I(N[0]):N[0]),j="mailto:"+B;else{let U;do U=N[0],N[0]=this.rules.inline._backpedal.exec(N[0])[0];while(U!==N[0]);B=escape$4(N[0]),N[1]==="www."?j="http://"+N[0]:j=N[0]}return{type:"link",raw:N[0],text:B,href:j,tokens:[{type:"text",raw:B,text:B}]}}}inlineText($,I){const N=this.rules.inline.text.exec($);if(N){let B;return this.lexer.state.inRawBlock?B=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(N[0]):escape$4(N[0]):N[0]:B=escape$4(this.options.smartypants?I(N[0]):N[0]),{type:"text",raw:N[0],text:B}}}}const block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:noopTest,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d{1,9}[.)])/;block.listItemStart=edit(/^( *)(bull) */).replace("bull",block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="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|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";block._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal={...block};block.gfm={...block.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};block.gfm.table=edit(block.gfm.table).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.gfm.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",block.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.pedantic={...block.normal,html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",block._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";inline.punctuation=edit(inline.punctuation).replace(/punctuation/g,inline._punctuation).getRegex();inline.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;inline.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;inline._comment=edit(block._comment).replace("(?:-->|$)","-->").getRegex();inline.emStrong.lDelim=edit(inline.emStrong.lDelim).replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimAst=edit(inline.emStrong.rDelimAst,"g").replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimUnd=edit(inline.emStrong.rDelimUnd,"g").replace(/punct/g,inline._punctuation).getRegex();inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._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])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",inline._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;inline._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).replace("ref",block._label).getRegex();inline.nolink=edit(inline.nolink).replace("ref",block._label).getRegex();inline.reflinkSearch=edit(inline.reflinkSearch,"g").replace("reflink",inline.reflink).replace("nolink",inline.nolink).getRegex();inline.normal={...inline};inline.pedantic={...inline.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()};inline.gfm={...inline.normal,escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex();inline.breaks={...inline.gfm,br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function smartypants(M){return M.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function mangle(M){let $="",I,N;const B=M.length;for(I=0;I<B;I++)N=M.charCodeAt(I),Math.random()>.5&&(N="x"+N.toString(16)),$+="&#"+N+";";return $}class Lexer{constructor($){this.tokens=[],this.tokens.links=Object.create(null),this.options=$||defaults$7,this.options.tokenizer=this.options.tokenizer||new Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const I={block:block.normal,inline:inline.normal};this.options.pedantic?(I.block=block.pedantic,I.inline=inline.pedantic):this.options.gfm&&(I.block=block.gfm,this.options.breaks?I.inline=inline.breaks:I.inline=inline.gfm),this.tokenizer.rules=I}static get rules(){return{block,inline}}static lex($,I){return new Lexer(I).lex($)}static lexInline($,I){return new Lexer(I).inlineTokens($)}lex($){$=$.replace(/\r\n|\r/g,` `),this.blockTokens($,this.tokens);let I;for(;I=this.inlineQueue.shift();)this.inlineTokens(I.src,I.tokens);return this.tokens}blockTokens($,I=[]){this.options.pedantic?$=$.replace(/\t/g," ").replace(/^ +$/gm,""):$=$.replace(/^( *)(\t+)/gm,(q,Y,K)=>Y+" ".repeat(K.length));let N,B,j,U;for(;$;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(q=>(N=q.call({lexer:this},$,I))?($=$.substring(N.raw.length),I.push(N),!0):!1))){if(N=this.tokenizer.space($)){$=$.substring(N.raw.length),N.raw.length===1&&I.length>0?I[I.length-1].raw+=` `:I.push(N);continue}if(N=this.tokenizer.code($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&(B.type==="paragraph"||B.type==="text")?(B.raw+=` `+N.raw,B.text+=` `+N.text,this.inlineQueue[this.inlineQueue.length-1].src=B.text):I.push(N);continue}if(N=this.tokenizer.fences($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.heading($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.hr($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.blockquote($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.list($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.html($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.def($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&(B.type==="paragraph"||B.type==="text")?(B.raw+=` `+N.raw,B.text+=` `+N.raw,this.inlineQueue[this.inlineQueue.length-1].src=B.text):this.tokens.links[N.tag]||(this.tokens.links[N.tag]={href:N.href,title:N.title});continue}if(N=this.tokenizer.table($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.lheading($)){$=$.substring(N.raw.length),I.push(N);continue}if(j=$,this.options.extensions&&this.options.extensions.startBlock){let q=1/0;const Y=$.slice(1);let K;this.options.extensions.startBlock.forEach(function(G){K=G.call({lexer:this},Y),typeof K=="number"&&K>=0&&(q=Math.min(q,K))}),q<1/0&&q>=0&&(j=$.substring(0,q+1))}if(this.state.top&&(N=this.tokenizer.paragraph(j))){B=I[I.length-1],U&&B.type==="paragraph"?(B.raw+=` `+N.raw,B.text+=` `+N.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=B.text):I.push(N),U=j.length!==$.length,$=$.substring(N.raw.length);continue}if(N=this.tokenizer.text($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&B.type==="text"?(B.raw+=` `+N.raw,B.text+=` `+N.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=B.text):I.push(N);continue}if($){const q="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(q);break}else throw new Error(q)}}return this.state.top=!0,I}inline($,I=[]){return this.inlineQueue.push({src:$,tokens:I}),I}inlineTokens($,I=[]){let N,B,j,U=$,q,Y,K;if(this.tokens.links){const G=Object.keys(this.tokens.links);if(G.length>0)for(;(q=this.tokenizer.rules.inline.reflinkSearch.exec(U))!=null;)G.includes(q[0].slice(q[0].lastIndexOf("[")+1,-1))&&(U=U.slice(0,q.index)+"["+repeatString("a",q[0].length-2)+"]"+U.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(q=this.tokenizer.rules.inline.blockSkip.exec(U))!=null;)U=U.slice(0,q.index)+"["+repeatString("a",q[0].length-2)+"]"+U.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(q=this.tokenizer.rules.inline.escapedEmSt.exec(U))!=null;)U=U.slice(0,q.index+q[0].length-2)+"++"+U.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;$;)if(Y||(K=""),Y=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(G=>(N=G.call({lexer:this},$,I))?($=$.substring(N.raw.length),I.push(N),!0):!1))){if(N=this.tokenizer.escape($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.tag($)){$=$.substring(N.raw.length),B=I[I.length-1],B&&N.type==="text"&&B.type==="text"?(B.raw+=N.raw,B.text+=N.text):I.push(N);continue}if(N=this.tokenizer.link($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.reflink($,this.tokens.links)){$=$.substring(N.raw.length),B=I[I.length-1],B&&N.type==="text"&&B.type==="text"?(B.raw+=N.raw,B.text+=N.text):I.push(N);continue}if(N=this.tokenizer.emStrong($,U,K)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.codespan($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.br($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.del($)){$=$.substring(N.raw.length),I.push(N);continue}if(N=this.tokenizer.autolink($,mangle)){$=$.substring(N.raw.length),I.push(N);continue}if(!this.state.inLink&&(N=this.tokenizer.url($,mangle))){$=$.substring(N.raw.length),I.push(N);continue}if(j=$,this.options.extensions&&this.options.extensions.startInline){let G=1/0;const J=$.slice(1);let Z;this.options.extensions.startInline.forEach(function(ee){Z=ee.call({lexer:this},J),typeof Z=="number"&&Z>=0&&(G=Math.min(G,Z))}),G<1/0&&G>=0&&(j=$.substring(0,G+1))}if(N=this.tokenizer.inlineText(j,smartypants)){$=$.substring(N.raw.length),N.raw.slice(-1)!=="_"&&(K=N.raw.slice(-1)),Y=!0,B=I[I.length-1],B&&B.type==="text"?(B.raw+=N.raw,B.text+=N.text):I.push(N);continue}if($){const G="Infinite loop on byte: "+$.charCodeAt(0);if(this.options.silent){console.error(G);break}else throw new Error(G)}}return I}}let Renderer$1=class{constructor($){this.options=$||defaults$7}code($,I,N){const B=(I||"").match(/\S*/)[0];if(this.options.highlight){const j=this.options.highlight($,B);j!=null&&j!==$&&(N=!0,$=j)}return $=$.replace(/\n$/,"")+` `,B?'<pre><code class="'+this.options.langPrefix+escape$4(B)+'">'+(N?$:escape$4($,!0))+`</code></pre> `:"<pre><code>"+(N?$:escape$4($,!0))+`</code></pre> `}blockquote($){return`<blockquote> ${$}</blockquote> `}html($){return $}heading($,I,N,B){if(this.options.headerIds){const j=this.options.headerPrefix+B.slug(N);return`<h${I} id="${j}">${$}</h${I}> `}return`<h${I}>${$}</h${I}> `}hr(){return this.options.xhtml?`<hr/> `:`<hr> `}list($,I,N){const B=I?"ol":"ul",j=I&&N!==1?' start="'+N+'"':"";return"<"+B+j+`> `+$+"</"+B+`> `}listitem($){return`<li>${$}</li> `}checkbox($){return"<input "+($?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph($){return`<p>${$}</p> `}table($,I){return I&&(I=`<tbody>${I}</tbody>`),`<table> <thead> `+$+`</thead> `+I+`</table> `}tablerow($){return`<tr> ${$}</tr> `}tablecell($,I){const N=I.header?"th":"td";return(I.align?`<${N} align="${I.align}">`:`<${N}>`)+$+`</${N}> `}strong($){return`<strong>${$}</strong>`}em($){return`<em>${$}</em>`}codespan($){return`<code>${$}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del($){return`<del>${$}</del>`}link($,I,N){if($=cleanUrl(this.options.sanitize,this.options.baseUrl,$),$===null)return N;let B='<a href="'+$+'"';return I&&(B+=' title="'+I+'"'),B+=">"+N+"</a>",B}image($,I,N){if($=cleanUrl(this.options.sanitize,this.options.baseUrl,$),$===null)return N;let B=`<img src="${$}" alt="${N}"`;return I&&(B+=` title="${I}"`),B+=this.options.xhtml?"/>":">",B}text($){return $}};class TextRenderer{strong($){return $}em($){return $}codespan($){return $}del($){return $}html($){return $}text($){return $}link($,I,N){return""+N}image($,I,N){return""+N}br(){return""}}class Slugger{constructor(){this.seen={}}serialize($){return $.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug($,I){let N=$,B=0;if(this.seen.hasOwnProperty(N)){B=this.seen[$];do B++,N=$+"-"+B;while(this.seen.hasOwnProperty(N))}return I||(this.seen[$]=B,this.seen[N]=0),N}slug($,I={}){const N=this.serialize($);return this.getNextSafeSlug(N,I.dryrun)}}class Parser{constructor($){this.options=$||defaults$7,this.options.renderer=this.options.renderer||new Renderer$1,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse($,I){return new Parser(I).parse($)}static parseInline($,I){return new Parser(I).parseInline($)}parse($,I=!0){let N="",B,j,U,q,Y,K,G,J,Z,ee,te,se,re,ne,ce,me,ue,_e,fe;const ge=$.length;for(B=0;B<ge;B++){if(ee=$[B],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ee.type]&&(fe=this.options.extensions.renderers[ee.type].call({parser:this},ee),fe!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ee.type))){N+=fe||"";continue}switch(ee.type){case"space":continue;case"hr":{N+=this.renderer.hr();continue}case"heading":{N+=this.renderer.heading(this.parseInline(ee.tokens),ee.depth,unescape$2(this.parseInline(ee.tokens,this.textRenderer)),this.slugger);continue}case"code":{N+=this.renderer.code(ee.text,ee.lang,ee.escaped);continue}case"table":{for(J="",G="",q=ee.header.length,j=0;j<q;j++)G+=this.renderer.tablecell(this.parseInline(ee.header[j].tokens),{header:!0,align:ee.align[j]});for(J+=this.renderer.tablerow(G),Z="",q=ee.rows.length,j=0;j<q;j++){for(K=ee.rows[j],G="",Y=K.length,U=0;U<Y;U++)G+=this.renderer.tablecell(this.parseInline(K[U].tokens),{header:!1,align:ee.align[U]});Z+=this.renderer.tablerow(G)}N+=this.renderer.table(J,Z);continue}case"blockquote":{Z=this.parse(ee.tokens),N+=this.renderer.blockquote(Z);continue}case"list":{for(te=ee.ordered,se=ee.start,re=ee.loose,q=ee.items.length,Z="",j=0;j<q;j++)ce=ee.items[j],me=ce.checked,ue=ce.task,ne="",ce.task&&(_e=this.renderer.checkbox(me),re?ce.tokens.length>0&&ce.tokens[0].type==="paragraph"?(ce.tokens[0].text=_e+" "+ce.tokens[0].text,ce.tokens[0].tokens&&ce.tokens[0].tokens.length>0&&ce.tokens[0].tokens[0].type==="text"&&(ce.tokens[0].tokens[0].text=_e+" "+ce.tokens[0].tokens[0].text)):ce.tokens.unshift({type:"text",text:_e}):ne+=_e),ne+=this.parse(ce.tokens,re),Z+=this.renderer.listitem(ne,ue,me);N+=this.renderer.list(Z,te,se);continue}case"html":{N+=this.renderer.html(ee.text);continue}case"paragraph":{N+=this.renderer.paragraph(this.parseInline(ee.tokens));continue}case"text":{for(Z=ee.tokens?this.parseInline(ee.tokens):ee.text;B+1<ge&&$[B+1].type==="text";)ee=$[++B],Z+=` `+(ee.tokens?this.parseInline(ee.tokens):ee.text);N+=I?this.renderer.paragraph(Z):Z;continue}default:{const ye='Token with "'+ee.type+'" type was not found.';if(this.options.silent){console.error(ye);return}else throw new Error(ye)}}}return N}parseInline($,I){I=I||this.renderer;let N="",B,j,U;const q=$.length;for(B=0;B<q;B++){if(j=$[B],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[j.type]&&(U=this.options.extensions.renderers[j.type].call({parser:this},j),U!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(j.type))){N+=U||"";continue}switch(j.type){case"escape":{N+=I.text(j.text);break}case"html":{N+=I.html(j.text);break}case"link":{N+=I.link(j.href,j.title,this.parseInline(j.tokens,I));break}case"image":{N+=I.image(j.href,j.title,j.text);break}case"strong":{N+=I.strong(this.parseInline(j.tokens,I));break}case"em":{N+=I.em(this.parseInline(j.tokens,I));break}case"codespan":{N+=I.codespan(j.text);break}case"br":{N+=I.br();break}case"del":{N+=I.del(this.parseInline(j.tokens,I));break}case"text":{N+=I.text(j.text);break}default:{const Y='Token with "'+j.type+'" type was not found.';if(this.options.silent){console.error(Y);return}else throw new Error(Y)}}}return N}}class Hooks{constructor($){this.options=$||defaults$7}preprocess($){return $}postprocess($){return $}}Il(Hooks,"passThroughHooks",new Set(["preprocess","postprocess"]));function onError(M,$,I){return N=>{if(N.message+=` Please report this to https://github.com/markedjs/marked.`,M){const B="<p>An error occurred:</p><pre>"+escape$4(N.message+"",!0)+"</pre>";if($)return Promise.resolve(B);if(I){I(null,B);return}return B}if($)return Promise.reject(N);if(I){I(N);return}throw N}}function parseMarkdown(M,$){return(I,N,B)=>{typeof N=="function"&&(B=N,N=null);const j={...N};N={...marked.defaults,...j};const U=onError(N.silent,N.async,B);if(typeof I>"u"||I===null)return U(new Error("marked(): input parameter is undefined or null"));if(typeof I!="string")return U(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(I)+", string expected"));if(checkSanitizeDeprecation(N),N.hooks&&(N.hooks.options=N),B){const q=N.highlight;let Y;try{N.hooks&&(I=N.hooks.preprocess(I)),Y=M(I,N)}catch(J){return U(J)}const K=function(J){let Z;if(!J)try{N.walkTokens&&marked.walkTokens(Y,N.walkTokens),Z=$(Y,N),N.hooks&&(Z=N.hooks.postprocess(Z))}catch(ee){J=ee}return N.highlight=q,J?U(J):B(null,Z)};if(!q||q.length<3||(delete N.highlight,!Y.length))return K();let G=0;marked.walkTokens(Y,function(J){J.type==="code"&&(G++,setTimeout(()=>{q(J.text,J.lang,function(Z,ee){if(Z)return K(Z);ee!=null&&ee!==J.text&&(J.text=ee,J.escaped=!0),G--,G===0&&K()})},0))}),G===0&&K();return}if(N.async)return Promise.resolve(N.hooks?N.hooks.preprocess(I):I).then(q=>M(q,N)).then(q=>N.walkTokens?Promise.all(marked.walkTokens(q,N.walkTokens)).then(()=>q):q).then(q=>$(q,N)).then(q=>N.hooks?N.hooks.postprocess(q):q).catch(U);try{N.hooks&&(I=N.hooks.preprocess(I));const q=M(I,N);N.walkTokens&&marked.walkTokens(q,N.walkTokens);let Y=$(q,N);return N.hooks&&(Y=N.hooks.postprocess(Y)),Y}catch(q){return U(q)}}}function marked(M,$,I){return parseMarkdown(Lexer.lex,Parser.parse)(M,$,I)}marked.options=marked.setOptions=function(M){return marked.defaults={...marked.defaults,...M},changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults$7;marked.use=function(...M){const $=marked.defaults.extensions||{renderers:{},childTokens:{}};M.forEach(I=>{const N={...I};if(N.async=marked.defaults.async||N.async||!1,I.extensions&&(I.extensions.forEach(B=>{if(!B.name)throw new Error("extension name required");if(B.renderer){const j=$.renderers[B.name];j?$.renderers[B.name]=function(...U){let q=B.renderer.apply(this,U);return q===!1&&(q=j.apply(this,U)),q}:$.renderers[B.name]=B.renderer}if(B.tokenizer){if(!B.level||B.level!=="block"&&B.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");$[B.level]?$[B.level].unshift(B.tokenizer):$[B.level]=[B.tokenizer],B.start&&(B.level==="block"?$.startBlock?$.startBlock.push(B.start):$.startBlock=[B.start]:B.level==="inline"&&($.startInline?$.startInline.push(B.start):$.startInline=[B.start]))}B.childTokens&&($.childTokens[B.name]=B.childTokens)}),N.extensions=$),I.renderer){const B=marked.defaults.renderer||new Renderer$1;for(const j in I.renderer){const U=B[j];B[j]=(...q)=>{let Y=I.renderer[j].apply(B,q);return Y===!1&&(Y=U.apply(B,q)),Y}}N.renderer=B}if(I.tokenizer){const B=marked.defaults.tokenizer||new Tokenizer;for(const j in I.tokenizer){const U=B[j];B[j]=(...q)=>{let Y=I.tokenizer[j].apply(B,q);return Y===!1&&(Y=U.apply(B,q)),Y}}N.tokenizer=B}if(I.hooks){const B=marked.defaults.hooks||new Hooks;for(const j in I.hooks){const U=B[j];Hooks.passThroughHooks.has(j)?B[j]=q=>{if(marked.defaults.async)return Promise.resolve(I.hooks[j].call(B,q)).then(K=>U.call(B,K));const Y=I.hooks[j].call(B,q);return U.call(B,Y)}:B[j]=(...q)=>{let Y=I.hooks[j].apply(B,q);return Y===!1&&(Y=U.apply(B,q)),Y}}N.hooks=B}if(I.walkTokens){const B=marked.defaults.walkTokens;N.walkTokens=function(j){let U=[];return U.push(I.walkTokens.call(this,j)),B&&(U=U.concat(B.call(this,j))),U}}marked.setOptions(N)})};marked.walkTokens=function(M,$){let I=[];for(const N of M)switch(I=I.concat($.call(marked,N)),N.type){case"table":{for(const B of N.header)I=I.concat(marked.walkTokens(B.tokens,$));for(const B of N.rows)for(const j of B)I=I.concat(marked.walkTokens(j.tokens,$));break}case"list":{I=I.concat(marked.walkTokens(N.items,$));break}default:marked.defaults.extensions&&marked.defaults.extensions.childTokens&&marked.defaults.extensions.childTokens[N.type]?marked.defaults.extensions.childTokens[N.type].forEach(function(B){I=I.concat(marked.walkTokens(N[B],$))}):N.tokens&&(I=I.concat(marked.walkTokens(N.tokens,$)))}return I};marked.parseInline=parseMarkdown(Lexer.lexInline,Parser.parseInline);marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer$1;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.Tokenizer=Tokenizer;marked.Slugger=Slugger;marked.Hooks=Hooks;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;Parser.parse;Lexer.lex;const intervalRegexp=/^({\s*(\-?\d+(\.\d+)?[\s*,\s*\-?\d+(\.\d+)?]*)\s*})|([\[\]])\s*(-Inf|\*|\-?\d+(\.\d+)?)\s*,\s*(\+?Inf|\*|\-?\d+(\.\d+)?)\s*([\[\]])$/,anyIntervalRegexp=/({\s*(\-?\d+(\.\d+)?[\s*,\s*\-?\d+(\.\d+)?]*)\s*})|([\[\]])\s*(-Inf|\*|\-?\d+(\.\d+)?)\s*,\s*(\+?Inf|\*|\-?\d+(\.\d+)?)\s*([\[\]])/,testInterval=function(M,$){if(typeof $!="string")throw"Invalid interval: should be a string.";$=$.trim();var I=$.match(intervalRegexp);if(!I)throw"Invalid interval: "+$;if(I[2]){for(var N=I[2].split(","),B=0;B<N.length;B++)if(parseInt(N[B],10)===M)return!0}else{I=I.filter(function(K){return!!K});var j=I[1],U=convertNumber(I[2]);U===1/0&&(U=-1/0);var q=convertNumber(I[3]),Y=I[4];return(j==="["?M>=U:M>U)&&(Y==="]"?M<=q:M<q)}return!1};function convertNumber(M){return M==="-Inf"?-1/0:M==="+Inf"||M==="Inf"||M==="*"?1/0:parseInt(M,10)}function choose(M,$,I){let N=M.split("|"),B=[];for(let U=0;U<N.length;U++)if(N[U]=N[U].trim(),anyIntervalRegexp.test(N[U])){let q=N[U].split(/\s/);B.push(q.shift()),N[U]=q.join(" ")}if(N.length===1)return M;for(let U=0;U<B.length;U++)if(testInterval($,B[U]))return N[U];const j=getPluralForm($,I);return N[j]}const getPluralForm=function(M,$){switch($.includes("_")&&($=$.substr(0,$.indexOf("_"))),$){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return M==1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return M===0||M===1?0:1;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return M%10==1&&M%100!=11?0:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?1:2;case"cs":case"sk":return M==1?0:M>=2&&M<=4?1:2;case"ga":return M==1?0:M==2?1:2;case"lt":return M%10==1&&M%100!=11?0:M%10>=2&&(M%100<10||M%100>=20)?1:2;case"sl":return M%100==1?0:M%100==2?1:M%100==3||M%100==4?2:3;case"mk":return M%10==1?0:1;case"mt":return M==1?0:M===0||M%100>1&&M%100<11?1:M%100>10&&M%100<20?2:3;case"lv":return M===0?0:M%10==1&&M%100!=11?1:2;case"pl":return M==1?0:M%10>=2&&M%10<=4&&(M%100<12||M%100>14)?1:2;case"cy":return M==1?0:M==2?1:M==8||M==11?2:3;case"ro":return M==1?0:M===0||M%100>0&&M%100<20?1:2;case"ar":return M===0?0:M==1?1:M==2?2:M%100>=3&&M%100<=10?3:M%100>=11&&M%100<=99?4:5;default:return 0}},translate=function(M,$){let I=getLine(M);for(let N in $)I=I.split(":"+N).join($[N]);return I},translateChoice=function(M,$,I){I=typeof I<"u"?I:{},$=Array.isArray($)?$.length:$,I.count=$;let N=translate(M,I);return choose(N,$,Statamic.$config.get("translationLocale"))},getLine=function(M){const $=Statamic.$config.get("translations");return $[`*.${M}`]||$[M]||$[`statamic::${M}`]||$[`statamic::messages.${M}`]||M};class PreviewHtml{constructor($){this.html=$}}function cp_url$1(M){return M=Statamic.$config.get("cpUrl")+"/"+M,tidy_url(M)}function docs_url$1(M){return tidy_url("https://statamic.dev/"+M)}function resource_url$1(M){return M=Statamic.$config.get("resourceUrl")+"/"+M,tidy_url(M)}function tidy_url(M){return M.replace(/([^:])(\/\/+)/g,"$1/")}function relative_url(M){return M.replace(/^(?:\/\/|[^/]+)*\//,"/")}function dd(M){console.log(M)}function data_get$1(M,$,I=null){var N=Array.isArray($)?$:$.split("."),B=N.reduce((j,U)=>j&&j[U],M);return B!==void 0?B:I}function data_set(M,$,I){for(var N=$.split(".");N.length-1;){var B=N.shift(),j=N.length?new RegExp("^[0-9]+$").test(N[0]):!1;B in M||(M[B]=j?[]:{}),M=M[B]}M[N[0]]=I}function clone$4(M){if(M!==void 0)return JSON.parse(JSON.stringify(M))}function tailwind_width_class$1(M){return`${{25:"w-full @lg:w-1/4",33:"w-full @lg:w-1/3",50:"w-full @lg:w-1/2",66:"w-full @lg:w-2/3",75:"w-full @lg:w-3/4",100:"w-full"}[M]||"w-full"}`}function markdown$4(M){return marked(M)}function __$1(M,$){return translate(M,$)}function __n$1(M,$,I){return translateChoice(M,$,I)}function utf8btoa$1(M){const $=encodeURIComponent(M).replace(/%([0-9A-F]{2})/g,(I,N)=>String.fromCharCode(`0x${N}`));return btoa($)}function utf8atob$1(M){const $=atob(M);return decodeURIComponent($.split("").map(I=>"%"+("00"+I.charCodeAt(0).toString(16)).slice(-2)).join(""))}function uniqid(){return uniqid$1()}function truncate$1(M,$,I="..."){return M.length<=$?M:M.substring(0,$-I.length)+I}function escapeHtml$1(M){return M.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function replicatorPreviewHtml$1(M){return new PreviewHtml(M)}function closestVm(M,$){let I=M;for(;I&&!I.__vue__;)I=I.parentElement;let N=I.__vue__;for(;N!==N.$root;){if(!$||$===N.$options.name)return N;N=N.$parent}}function str_slug(M){return Statamic.$slug.create(M)}function snake_case$1(M){return Statamic.$slug.separatedBy("_").create(M)}const Globals=Object.freeze(Object.defineProperty({__proto__:null,__:__$1,__n:__n$1,clone:clone$4,closestVm,cp_url:cp_url$1,data_get:data_get$1,data_set,dd,docs_url:docs_url$1,escapeHtml:escapeHtml$1,markdown:markdown$4,relative_url,replicatorPreviewHtml:replicatorPreviewHtml$1,resource_url:resource_url$1,snake_case:snake_case$1,str_slug,tailwind_width_class:tailwind_width_class$1,tidy_url,truncate:truncate$1,uniqid,utf8atob:utf8atob$1,utf8btoa:utf8btoa$1},Symbol.toStringTag,{value:"Module"}));class Reveal{element($){if(!$)return;let I=$;for(;I;)I.matches(".tab-panel")&&closestVm(I,"publish-tabs").setActive(I.dataset.tabHandle),I.matches(".replicator-set")&&closestVm(I,"replicator-fieldtype-set").expand(),I.matches(".bard-set")&&closestVm(I,"bard-fieldtype-set").expand(),I=I.parentElement;Vue$3.nextTick(()=>{$.scrollIntoView({block:"center"})})}invalid(){Vue$3.nextTick(()=>{const $=document.querySelector(".publish-field.has-error:not(:has(.publish-field.has-error))");$&&this.element($)})}}var VERSION$1="1.13.6",root=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},ArrayProto=Array.prototype,ObjProto=Object.prototype,SymbolProto=typeof Symbol<"u"?Symbol.prototype:null,push$1=ArrayProto.push,slice$1=ArrayProto.slice,toString$4=ObjProto.toString,hasOwnProperty$2=ObjProto.hasOwnProperty,supportsArrayBuffer=typeof ArrayBuffer<"u",supportsDataView=typeof DataView<"u",nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeCreate=Object.create,nativeIsView=supportsArrayBuffer&&ArrayBuffer.isView,_isNaN=isNaN,_isFinite=isFinite,hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],MAX_ARRAY_INDEX=Math.pow(2,53)-1;function restArguments(M,$){return $=$==null?M.length-1:+$,function(){for(var I=Math.max(arguments.length-$,0),N=Array(I),B=0;B<I;B++)N[B]=arguments[B+$];switch($){case 0:return M.call(this,N);case 1:return M.call(this,arguments[0],N);case 2:return M.call(this,arguments[0],arguments[1],N)}var j=Array($+1);for(B=0;B<$;B++)j[B]=arguments[B];return j[$]=N,M.apply(this,j)}}function isObject$6(M){var $=typeof M;return $==="function"||$==="object"&&!!M}function isNull(M){return M===null}function isUndefined$2(M){return M===void 0}function isBoolean$3(M){return M===!0||M===!1||toString$4.call(M)==="[object Boolean]"}function isElement$2(M){return!!(M&&M.nodeType===1)}function tagTester(M){var $="[object "+M+"]";return function(I){return toString$4.call(I)===$}}const isString$6=tagTester("String"),isNumber$4=tagTester("Number"),isDate$3=tagTester("Date"),isRegExp$3=tagTester("RegExp"),isError$1=tagTester("Error"),isSymbol$2=tagTester("Symbol"),isArrayBuffer$1=tagTester("ArrayBuffer");var isFunction$3=tagTester("Function"),nodelist=root.document&&root.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof nodelist!="function"&&(isFunction$3=function(M){return typeof M=="function"||!1});const isFunction$4=isFunction$3,hasObjectTag=tagTester("Object");var hasStringTagBug=supportsDataView&&hasObjectTag(new DataView(new ArrayBuffer(8))),isIE11=typeof Map<"u"&&hasObjectTag(new Map),isDataView=tagTester("DataView");function ie10IsDataView(M){return M!=null&&isFunction$4(M.getInt8)&&isArrayBuffer$1(M.buffer)}const isDataView$1=hasStringTagBug?ie10IsDataView:isDataView,isArray$9=nativeIsArray||tagTester("Array");function has$6(M,$){return M!=null&&hasOwnProperty$2.call(M,$)}var isArguments=tagTester("Arguments");(function(){isArguments(arguments)||(isArguments=function(M){return has$6(M,"callee")})})();const isArguments$1=isArguments;function isFinite$1(M){return!isSymbol$2(M)&&_isFinite(M)&&!isNaN(parseFloat(M))}function isNaN$1(M){return isNumber$4(M)&&_isNaN(M)}function constant(M){return function(){return M}}function createSizePropertyCheck(M){return function($){var I=M($);return typeof I=="number"&&I>=0&&I<=MAX_ARRAY_INDEX}}function shallowProperty(M){return function($){return $==null?void 0:$[M]}}const getByteLength=shallowProperty("byteLength"),isBufferLike=createSizePropertyCheck(getByteLength);var typedArrayPattern=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function isTypedArray$1(M){return nativeIsView?nativeIsView(M)&&!isDataView$1(M):isBufferLike(M)&&typedArrayPattern.test(toString$4.call(M))}const isTypedArray$2=supportsArrayBuffer?isTypedArray$1:constant(!1),getLength=shallowProperty("length");function emulatedSet(M){for(var $={},I=M.length,N=0;N<I;++N)$[M[N]]=!0;return{contains:function(B){return $[B]===!0},push:function(B){return $[B]=!0,M.push(B)}}}function collectNonEnumProps(M,$){$=emulatedSet($);var I=nonEnumerableProps.length,N=M.constructor,B=isFunction$4(N)&&N.prototype||ObjProto,j="constructor";for(has$6(M,j)&&!$.contains(j)&&$.push(j);I--;)j=nonEnumerableProps[I],j in M&&M[j]!==B[j]&&!$.contains(j)&&$.push(j)}function keys$2(M){if(!isObject$6(M))return[];if(nativeKeys)return nativeKeys(M);var $=[];for(var I in M)has$6(M,I)&&$.push(I);return hasEnumBug&&collectNonEnumProps(M,$),$}function isEmpty$1(M){if(M==null)return!0;var $=getLength(M);return typeof $=="number"&&(isArray$9(M)||isString$6(M)||isArguments$1(M))?$===0:getLength(keys$2(M))===0}function isMatch(M,$){var I=keys$2($),N=I.length;if(M==null)return!N;for(var B=Object(M),j=0;j<N;j++){var U=I[j];if($[U]!==B[U]||!(U in B))return!1}return!0}function _$1(M){if(M instanceof _$1)return M;if(!(this instanceof _$1))return new _$1(M);this._wrapped=M}_$1.VERSION=VERSION$1;_$1.prototype.value=function(){return this._wrapped};_$1.prototype.valueOf=_$1.prototype.toJSON=_$1.prototype.value;_$1.prototype.toString=function(){return String(this._wrapped)};function toBufferView(M){return new Uint8Array(M.buffer||M,M.byteOffset||0,getByteLength(M))}var tagDataView="[object DataView]";function eq(M,$,I,N){if(M===$)return M!==0||1/M===1/$;if(M==null||$==null)return!1;if(M!==M)return $!==$;var B=typeof M;return B!=="function"&&B!=="object"&&typeof $!="object"?!1:deepEq(M,$,I,N)}function deepEq(M,$,I,N){M instanceof _$1&&(M=M._wrapped),$ instanceof _$1&&($=$._wrapped);var B=toString$4.call(M);if(B!==toString$4.call($))return!1;if(hasStringTagBug&&B=="[object Object]"&&isDataView$1(M)){if(!isDataView$1($))return!1;B=tagDataView}switch(B){case"[object RegExp]":case"[object String]":return""+M==""+$;case"[object Number]":return+M!=+M?+$!=+$:+M==0?1/+M===1/$:+M==+$;case"[object Date]":case"[object Boolean]":return+M==+$;case"[object Symbol]":return SymbolProto.valueOf.call(M)===SymbolProto.valueOf.call($);case"[object ArrayBuffer]":case tagDataView:return deepEq(toBufferView(M),toBufferView($),I,N)}var j=B==="[object Array]";if(!j&&isTypedArray$2(M)){var U=getByteLength(M);if(U!==getByteLength($))return!1;if(M.buffer===$.buffer&&M.byteOffset===$.byteOffset)return!0;j=!0}if(!j){if(typeof M!="object"||typeof $!="object")return!1;var q=M.constructor,Y=$.constructor;if(q!==Y&&!(isFunction$4(q)&&q instanceof q&&isFunction$4(Y)&&Y instanceof Y)&&"constructor"in M&&"constructor"in $)return!1}I=I||[],N=N||[];for(var K=I.length;K--;)if(I[K]===M)return N[K]===$;if(I.push(M),N.push($),j){if(K=M.length,K!==$.length)return!1;for(;K--;)if(!eq(M[K],$[K],I,N))return!1}else{var G=keys$2(M),J;if(K=G.length,keys$2($).length!==K)return!1;for(;K--;)if(J=G[K],!(has$6($,J)&&eq(M[J],$[J],I,N)))return!1}return I.pop(),N.pop(),!0}function isEqual(M,$){return eq(M,$)}function allKeys(M){if(!isObject$6(M))return[];var $=[];for(var I in M)$.push(I);return hasEnumBug&&collectNonEnumProps(M,$),$}function ie11fingerprint(M){var $=getLength(M);return function(I){if(I==null)return!1;var N=allKeys(I);if(getLength(N))return!1;for(var B=0;B<$;B++)if(!isFunction$4(I[M[B]]))return!1;return M!==weakMapMethods||!isFunction$4(I[forEachName])}}var forEachName="forEach",hasName="has",commonInit=["clear","delete"],mapTail=["get",hasName,"set"],mapMethods=commonInit.concat(forEachName,mapTail),weakMapMethods=commonInit.concat(mapTail),setMethods=["add"].concat(commonInit,forEachName,hasName);const isMap$2=isIE11?ie11fingerprint(mapMethods):tagTester("Map"),isWeakMap$1=isIE11?ie11fingerprint(weakMapMethods):tagTester("WeakMap"),isSet$1=isIE11?ie11fingerprint(setMethods):tagTester("Set"),isWeakSet$1=tagTester("WeakSet");function values(M){for(var $=keys$2(M),I=$.length,N=Array(I),B=0;B<I;B++)N[B]=M[$[B]];return N}function pairs(M){for(var $=keys$2(M),I=$.length,N=Array(I),B=0;B<I;B++)N[B]=[$[B],M[$[B]]];return N}function invert(M){for(var $={},I=keys$2(M),N=0,B=I.length;N<B;N++)$[M[I[N]]]=I[N];return $}function functions(M){var $=[];for(var I in M)isFunction$4(M[I])&&$.push(I);return $.sort()}function createAssigner(M,$){return function(I){var N=arguments.length;if($&&(I=Object(I)),N<2||I==null)return I;for(var B=1;B<N;B++)for(var j=arguments[B],U=M(j),q=U.length,Y=0;Y<q;Y++){var K=U[Y];(!$||I[K]===void 0)&&(I[K]=j[K])}return I}}const extend$5=createAssigner(allKeys),extendOwn=createAssigner(keys$2),defaults$6=createAssigner(allKeys,!0);function ctor(){return function(){}}function baseCreate(M){if(!isObject$6(M))return{};if(nativeCreate)return nativeCreate(M);var $=ctor();$.prototype=M;var I=new $;return $.prototype=null,I}function create$1(M,$){var I=baseCreate(M);return $&&extendOwn(I,$),I}function clone$3(M){return isObject$6(M)?isArray$9(M)?M.slice():extend$5({},M):M}function tap(M,$){return $(M),M}function toPath$1(M){return isArray$9(M)?M:[M]}_$1.toPath=toPath$1;function toPath(M){return _$1.toPath(M)}function deepGet(M,$){for(var I=$.length,N=0;N<I;N++){if(M==null)return;M=M[$[N]]}return I?M:void 0}function get$5(M,$,I){var N=deepGet(M,toPath($));return isUndefined$2(N)?I:N}function has$5(M,$){$=toPath($);for(var I=$.length,N=0;N<I;N++){var B=$[N];if(!has$6(M,B))return!1;M=M[B]}return!!I}function identity(M){return M}function matcher(M){return M=extendOwn({},M),function($){return isMatch($,M)}}function property(M){return M=toPath(M),function($){return deepGet($,M)}}function optimizeCb(M,$,I){if($===void 0)return M;switch(I??3){case 1:return function(N){return M.call($,N)};case 3:return function(N,B,j){return M.call($,N,B,j)};case 4:return function(N,B,j,U){return M.call($,N,B,j,U)}}return function(){return M.apply($,arguments)}}function baseIteratee(M,$,I){return M==null?identity:isFunction$4(M)?optimizeCb(M,$,I):isObject$6(M)&&!isArray$9(M)?matcher(M):property(M)}function iteratee(M,$){return baseIteratee(M,$,1/0)}_$1.iteratee=iteratee;function cb(M,$,I){return _$1.iteratee!==iteratee?_$1.iteratee(M,$):baseIteratee(M,$,I)}function mapObject(M,$,I){$=cb($,I);for(var N=keys$2(M),B=N.length,j={},U=0;U<B;U++){var q=N[U];j[q]=$(M[q],q,M)}return j}function noop$1(){}function propertyOf(M){return M==null?noop$1:function($){return get$5(M,$)}}function times(M,$,I){var N=Array(Math.max(0,M));$=optimizeCb($,I,1);for(var B=0;B<M;B++)N[B]=$(B);return N}function random(M,$){return $==null&&($=M,M=0),M+Math.floor(Math.random()*($-M+1))}const now$1=Date.now||function(){return new Date().getTime()};function createEscaper(M){var $=function(j){return M[j]},I="(?:"+keys$2(M).join("|")+")",N=RegExp(I),B=RegExp(I,"g");return function(j){return j=j==null?"":""+j,N.test(j)?j.replace(B,$):j}}const escapeMap={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},escape$3=createEscaper(escapeMap),unescapeMap=invert(escapeMap),unescape$1=createEscaper(unescapeMap),templateSettings=_$1.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var noMatch=/(.)^/,escapes={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},escapeRegExp$1=/\\|'|\r|\n|\u2028|\u2029/g;function escapeChar(M){return"\\"+escapes[M]}var bareIdentifier=/^\s*(\w|\$)+\s*$/;function template(M,$,I){!$&&I&&($=I),$=defaults$6({},$,_$1.templateSettings);var N=RegExp([($.escape||noMatch).source,($.interpolate||noMatch).source,($.evaluate||noMatch).source].join("|")+"|$","g"),B=0,j="__p+='";M.replace(N,function(K,G,J,Z,ee){return j+=M.slice(B,ee).replace(escapeRegExp$1,escapeChar),B=ee+K.length,G?j+=`'+ ((__t=(`+G+`))==null?'':_.escape(__t))+ '`:J?j+=`'+ ((__t=(`+J+`))==null?'':__t)+ '`:Z&&(j+=`'; `+Z+` __p+='`),K}),j+=`'; `;var U=$.variable;if(U){if(!bareIdentifier.test(U))throw new Error("variable is not a bare identifier: "+U)}else j=`with(obj||{}){ `+j+`} `,U="obj";j=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; `+j+`return __p; `;var q;try{q=new Function(U,"_",j)}catch(K){throw K.source=j,K}var Y=function(K){return q.call(this,K,_$1)};return Y.source="function("+U+`){ `+j+"}",Y}function result(M,$,I){$=toPath($);var N=$.length;if(!N)return isFunction$4(I)?I.call(M):I;for(var B=0;B<N;B++){var j=M==null?void 0:M[$[B]];j===void 0&&(j=I,B=N),M=isFunction$4(j)?j.call(M):j}return M}var idCounter=0;function uniqueId(M){var $=++idCounter+"";return M?M+$:$}function chain(M){var $=_$1(M);return $._chain=!0,$}function executeBound(M,$,I,N,B){if(!(N instanceof $))return M.apply(I,B);var j=baseCreate(M.prototype),U=M.apply(j,B);return isObject$6(U)?U:j}var partial$1=restArguments(function(M,$){var I=partial$1.placeholder,N=function(){for(var B=0,j=$.length,U=Array(j),q=0;q<j;q++)U[q]=$[q]===I?arguments[B++]:$[q];for(;B<arguments.length;)U.push(arguments[B++]);return executeBound(M,N,this,this,U)};return N});partial$1.placeholder=_$1;const bind$6=restArguments(function(M,$,I){if(!isFunction$4(M))throw new TypeError("Bind must be called on a function");var N=restArguments(function(B){return executeBound(M,N,$,this,I.concat(B))});return N}),isArrayLike=createSizePropertyCheck(getLength);function flatten$1(M,$,I,N){if(N=N||[],!$&&$!==0)$=1/0;else if($<=0)return N.concat(M);for(var B=N.length,j=0,U=getLength(M);j<U;j++){var q=M[j];if(isArrayLike(q)&&(isArray$9(q)||isArguments$1(q)))if($>1)flatten$1(q,$-1,I,N),B=N.length;else for(var Y=0,K=q.length;Y<K;)N[B++]=q[Y++];else I||(N[B++]=q)}return N}const bindAll=restArguments(function(M,$){$=flatten$1($,!1,!1);var I=$.length;if(I<1)throw new Error("bindAll must be passed function names");for(;I--;){var N=$[I];M[N]=bind$6(M[N],M)}return M});function memoize(M,$){var I=function(N){var B=I.cache,j=""+($?$.apply(this,arguments):N);return has$6(B,j)||(B[j]=M.apply(this,arguments)),B[j]};return I.cache={},I}const delay=restArguments(function(M,$,I){return setTimeout(function(){return M.apply(null,I)},$)}),defer=partial$1(delay,_$1,1);function throttle$3(M,$,I){var N,B,j,U,q=0;I||(I={});var Y=function(){q=I.leading===!1?0:now$1(),N=null,U=M.apply(B,j),N||(B=j=null)},K=function(){var G=now$1();!q&&I.leading===!1&&(q=G);var J=$-(G-q);return B=this,j=arguments,J<=0||J>$?(N&&(clearTimeout(N),N=null),q=G,U=M.apply(B,j),N||(B=j=null)):!N&&I.trailing!==!1&&(N=setTimeout(Y,J)),U};return K.cancel=function(){clearTimeout(N),q=0,N=B=j=null},K}function debounce$1(M,$,I){var N,B,j,U,q,Y=function(){var G=now$1()-B;$>G?N=setTimeout(Y,$-G):(N=null,I||(U=M.apply(q,j)),N||(j=q=null))},K=restArguments(function(G){return q=this,j=G,B=now$1(),N||(N=setTimeout(Y,$),I&&(U=M.apply(q,j))),U});return K.cancel=function(){clearTimeout(N),N=j=q=null},K}function wrap(M,$){return partial$1($,M)}function negate(M){return function(){return!M.apply(this,arguments)}}function compose(){var M=arguments,$=M.length-1;return function(){for(var I=$,N=M[$].apply(this,arguments);I--;)N=M[I].call(this,N);return N}}function after(M,$){return function(){if(--M<1)return $.apply(this,arguments)}}function before(M,$){var I;return function(){return--M>0&&(I=$.apply(this,arguments)),M<=1&&($=null),I}}const once$1=partial$1(before,2);function findKey$1(M,$,I){$=cb($,I);for(var N=keys$2(M),B,j=0,U=N.length;j<U;j++)if(B=N[j],$(M[B],B,M))return B}function createPredicateIndexFinder(M){return function($,I,N){I=cb(I,N);for(var B=getLength($),j=M>0?0:B-1;j>=0&&j<B;j+=M)if(I($[j],j,$))return j;return-1}}const findIndex=createPredicateIndexFinder(1),findLastIndex=createPredicateIndexFinder(-1);function sortedIndex(M,$,I,N){I=cb(I,N,1);for(var B=I($),j=0,U=getLength(M);j<U;){var q=Math.floor((j+U)/2);I(M[q])<B?j=q+1:U=q}return j}function createIndexFinder(M,$,I){return function(N,B,j){var U=0,q=getLength(N);if(typeof j=="number")M>0?U=j>=0?j:Math.max(j+q,U):q=j>=0?Math.min(j+1,q):j+q+1;else if(I&&j&&q)return j=I(N,B),N[j]===B?j:-1;if(B!==B)return j=$(slice$1.call(N,U,q),isNaN$1),j>=0?j+U:-1;for(j=M>0?U:q-1;j>=0&&j<q;j+=M)if(N[j]===B)return j;return-1}}const indexOf$2=createIndexFinder(1,findIndex,sortedIndex),lastIndexOf=createIndexFinder(-1,findLastIndex);function find$1(M,$,I){var N=isArrayLike(M)?findIndex:findKey$1,B=N(M,$,I);if(B!==void 0&&B!==-1)return M[B]}function findWhere(M,$){return find$1(M,matcher($))}function each(M,$,I){$=optimizeCb($,I);var N,B;if(isArrayLike(M))for(N=0,B=M.length;N<B;N++)$(M[N],N,M);else{var j=keys$2(M);for(N=0,B=j.length;N<B;N++)$(M[j[N]],j[N],M)}return M}function map$1(M,$,I){$=cb($,I);for(var N=!isArrayLike(M)&&keys$2(M),B=(N||M).length,j=Array(B),U=0;U<B;U++){var q=N?N[U]:U;j[U]=$(M[q],q,M)}return j}function createReduce(M){var $=function(I,N,B,j){var U=!isArrayLike(I)&&keys$2(I),q=(U||I).length,Y=M>0?0:q-1;for(j||(B=I[U?U[Y]:Y],Y+=M);Y>=0&&Y<q;Y+=M){var K=U?U[Y]:Y;B=N(B,I[K],K,I)}return B};return function(I,N,B,j){var U=arguments.length>=3;return $(I,optimizeCb(N,j,4),B,U)}}const reduce=createReduce(1),reduceRight=createReduce(-1);function filter(M,$,I){var N=[];return $=cb($,I),each(M,function(B,j,U){$(B,j,U)&&N.push(B)}),N}function reject(M,$,I){return filter(M,negate(cb($)),I)}function every(M,$,I){$=cb($,I);for(var N=!isArrayLike(M)&&keys$2(M),B=(N||M).length,j=0;j<B;j++){var U=N?N[j]:j;if(!$(M[U],U,M))return!1}return!0}function some$1(M,$,I){$=cb($,I);for(var N=!isArrayLike(M)&&keys$2(M),B=(N||M).length,j=0;j<B;j++){var U=N?N[j]:j;if($(M[U],U,M))return!0}return!1}function contains$1(M,$,I,N){return isArrayLike(M)||(M=values(M)),(typeof I!="number"||N)&&(I=0),indexOf$2(M,$,I)>=0}const invoke=restArguments(function(M,$,I){var N,B;return isFunction$4($)?B=$:($=toPath($),N=$.slice(0,-1),$=$[$.length-1]),map$1(M,function(j){var U=B;if(!U){if(N&&N.length&&(j=deepGet(j,N)),j==null)return;U=j[$]}return U==null?U:U.apply(j,I)})});function pluck$1(M,$){return map$1(M,property($))}function where(M,$){return filter(M,matcher($))}function max$3(M,$,I){var N=-1/0,B=-1/0,j,U;if($==null||typeof $=="number"&&typeof M[0]!="object"&&M!=null){M=isArrayLike(M)?M:values(M);for(var q=0,Y=M.length;q<Y;q++)j=M[q],j!=null&&j>N&&(N=j)}else $=cb($,I),each(M,function(K,G,J){U=$(K,G,J),(U>B||U===-1/0&&N===-1/0)&&(N=K,B=U)});return N}function min$3(M,$,I){var N=1/0,B=1/0,j,U;if($==null||typeof $=="number"&&typeof M[0]!="object"&&M!=null){M=isArrayLike(M)?M:values(M);for(var q=0,Y=M.length;q<Y;q++)j=M[q],j!=null&&j<N&&(N=j)}else $=cb($,I),each(M,function(K,G,J){U=$(K,G,J),(U<B||U===1/0&&N===1/0)&&(N=K,B=U)});return N}var reStrSymbol=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function toArray$2(M){return M?isArray$9(M)?slice$1.call(M):isString$6(M)?M.match(reStrSymbol):isArrayLike(M)?map$1(M,identity):values(M):[]}function sample(M,$,I){if($==null||I)return isArrayLike(M)||(M=values(M)),M[random(M.length-1)];var N=toArray$2(M),B=getLength(N);$=Math.max(Math.min($,B),0);for(var j=B-1,U=0;U<$;U++){var q=random(U,j),Y=N[U];N[U]=N[q],N[q]=Y}return N.slice(0,$)}function shuffle(M){return sample(M,1/0)}function sortBy(M,$,I){var N=0;return $=cb($,I),pluck$1(map$1(M,function(B,j,U){return{value:B,index:N++,criteria:$(B,j,U)}}).sort(function(B,j){var U=B.criteria,q=j.criteria;if(U!==q){if(U>q||U===void 0)return 1;if(U<q||q===void 0)return-1}return B.index-j.index}),"value")}function group(M,$){return function(I,N,B){var j=$?[[],[]]:{};return N=cb(N,B),each(I,function(U,q){var Y=N(U,q,I);M(j,U,Y)}),j}}const groupBy=group(function(M,$,I){has$6(M,I)?M[I].push($):M[I]=[$]}),indexBy=group(function(M,$,I){M[I]=$}),countBy=group(function(M,$,I){has$6(M,I)?M[I]++:M[I]=1}),partition=group(function(M,$,I){M[I?0:1].push($)},!0);function size$2(M){return M==null?0:isArrayLike(M)?M.length:keys$2(M).length}function keyInObj(M,$,I){return $ in I}const pick=restArguments(function(M,$){var I={},N=$[0];if(M==null)return I;isFunction$4(N)?($.length>1&&(N=optimizeCb(N,$[1])),$=allKeys(M)):(N=keyInObj,$=flatten$1($,!1,!1),M=Object(M));for(var B=0,j=$.length;B<j;B++){var U=$[B],q=M[U];N(q,U,M)&&(I[U]=q)}return I}),omit=restArguments(function(M,$){var I=$[0],N;return isFunction$4(I)?(I=negate(I),$.length>1&&(N=$[1])):($=map$1(flatten$1($,!1,!1),String),I=function(B,j){return!contains$1($,j)}),pick(M,I,N)});function initial(M,$,I){return slice$1.call(M,0,Math.max(0,M.length-($==null||I?1:$)))}function first(M,$,I){return M==null||M.length<1?$==null||I?void 0:[]:$==null||I?M[0]:initial(M,M.length-$)}function rest(M,$,I){return slice$1.call(M,$==null||I?1:$)}function last(M,$,I){return M==null||M.length<1?$==null||I?void 0:[]:$==null||I?M[M.length-1]:rest(M,Math.max(0,M.length-$))}function compact$1(M){return filter(M,Boolean)}function flatten(M,$){return flatten$1(M,$,!1)}const difference=restArguments(function(M,$){return $=flatten$1($,!0,!0),filter(M,function(I){return!contains$1($,I)})}),without=restArguments(function(M,$){return difference(M,$)});function uniq(M,$,I,N){isBoolean$3($)||(N=I,I=$,$=!1),I!=null&&(I=cb(I,N));for(var B=[],j=[],U=0,q=getLength(M);U<q;U++){var Y=M[U],K=I?I(Y,U,M):Y;$&&!I?((!U||j!==K)&&B.push(Y),j=K):I?contains$1(j,K)||(j.push(K),B.push(Y)):contains$1(B,Y)||B.push(Y)}return B}const union=restArguments(function(M){return uniq(flatten$1(M,!0,!0))});function intersection(M){for(var $=[],I=arguments.length,N=0,B=getLength(M);N<B;N++){var j=M[N];if(!contains$1($,j)){var U;for(U=1;U<I&&contains$1(arguments[U],j);U++);U===I&&$.push(j)}}return $}function unzip(M){for(var $=M&&max$3(M,getLength).length||0,I=Array($),N=0;N<$;N++)I[N]=pluck$1(M,N);return I}const zip=restArguments(unzip);function object(M,$){for(var I={},N=0,B=getLength(M);N<B;N++)$?I[M[N]]=$[N]:I[M[N][0]]=M[N][1];return I}function range(M,$,I){$==null&&($=M||0,M=0),I||(I=$<M?-1:1);for(var N=Math.max(Math.ceil(($-M)/I),0),B=Array(N),j=0;j<N;j++,M+=I)B[j]=M;return B}function chunk(M,$){if($==null||$<1)return[];for(var I=[],N=0,B=M.length;N<B;)I.push(slice$1.call(M,N,N+=$));return I}function chainResult(M,$){return M._chain?_$1($).chain():$}function mixin$1(M){return each(functions(M),function($){var I=_$1[$]=M[$];_$1.prototype[$]=function(){var N=[this._wrapped];return push$1.apply(N,arguments),chainResult(this,I.apply(_$1,N))}}),_$1}each(["pop","push","reverse","shift","sort","splice","unshift"],function(M){var $=ArrayProto[M];_$1.prototype[M]=function(){var I=this._wrapped;return I!=null&&($.apply(I,arguments),(M==="shift"||M==="splice")&&I.length===0&&delete I[0]),chainResult(this,I)}});each(["concat","join","slice"],function(M){var $=ArrayProto[M];_$1.prototype[M]=function(){var I=this._wrapped;return I!=null&&(I=$.apply(I,arguments)),chainResult(this,I)}});const allExports=Object.freeze(Object.defineProperty({__proto__:null,VERSION:VERSION$1,after,all:every,allKeys,any:some$1,assign:extendOwn,before,bind:bind$6,bindAll,chain,chunk,clone:clone$3,collect:map$1,compact:compact$1,compose,constant,contains:contains$1,countBy,create:create$1,debounce:debounce$1,default:_$1,defaults:defaults$6,defer,delay,detect:find$1,difference,drop:rest,each,escape:escape$3,every,extend:extend$5,extendOwn,filter,find:find$1,findIndex,findKey:findKey$1,findLastIndex,findWhere,first,flatten,foldl:reduce,foldr:reduceRight,forEach:each,functions,get:get$5,groupBy,has:has$5,head:first,identity,include:contains$1,includes:contains$1,indexBy,indexOf:indexOf$2,initial,inject:reduce,intersection,invert,invoke,isArguments:isArguments$1,isArray:isArray$9,isArrayBuffer:isArrayBuffer$1,isBoolean:isBoolean$3,isDataView:isDataView$1,isDate:isDate$3,isElement:isElement$2,isEmpty:isEmpty$1,isEqual,isError:isError$1,isFinite:isFinite$1,isFunction:isFunction$4,isMap:isMap$2,isMatch,isNaN:isNaN$1,isNull,isNumber:isNumber$4,isObject:isObject$6,isRegExp:isRegExp$3,isSet:isSet$1,isString:isString$6,isSymbol:isSymbol$2,isTypedArray:isTypedArray$2,isUndefined:isUndefined$2,isWeakMap:isWeakMap$1,isWeakSet:isWeakSet$1,iteratee,keys:keys$2,last,lastIndexOf,map:map$1,mapObject,matcher,matches:matcher,max:max$3,memoize,methods:functions,min:min$3,mixin:mixin$1,negate,noop:noop$1,now:now$1,object,omit,once:once$1,pairs,partial:partial$1,partition,pick,pluck:pluck$1,property,propertyOf,random,range,reduce,reduceRight,reject,rest,restArguments,result,sample,select:filter,shuffle,size:size$2,some:some$1,sortBy,sortedIndex,tail:rest,take:first,tap,template,templateSettings,throttle:throttle$3,times,toArray:toArray$2,toPath:toPath$1,transpose:unzip,unescape:unescape$1,union,uniq,unique:uniq,uniqueId,unzip,values,where,without,wrap,zip},Symbol.toStringTag,{value:"Module"}));var _=mixin$1(allExports);_._=_;class Component{constructor($,I,N){this.id=$,this.name=I,this.props=N,this.events={}}prop($,I){this.props[$]=I}on($,I){Vue$3.set(this.events,$,I)}destroy(){Statamic.$components.destroy(this.id)}}class Components{constructor($){this.$root=$}register($,I){Vue$3.component($,I)}append($,{props:I}){const N=`appended-${uniqid$1()}`,B=new Component(N,$,I);return this.$root.appendedComponents.push(B),B}get($){let I=this.getAppended($);if(I)return I}getAppended($){const I=this.$root.appendedComponents;return _.findWhere(I,{id:$})}destroy($){let I=this.getAppended($);if(I){const N=_.indexOf(this.$root.appendedComponents,I);this.$root.appendedComponents.splice(N,1)}}}let FieldConditions$1=class{add($,I){Statamic.$store.commit("statamic/condition",{name:$,condition:I})}};class Callbacks{constructor(){this.callbacks=[]}add($,I){this.callbacks[$]=I}call($,...I){if(this.callbacks[$])return this.callbacks[$](...I)}}function bind$5(M,$){return function(){return M.apply($,arguments)}}const{toString:toString$3}=Object.prototype,{getPrototypeOf}=Object,kindOf$1=(M=>$=>{const I=toString$3.call($);return M[I]||(M[I]=I.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=M=>(M=M.toLowerCase(),$=>kindOf$1($)===M),typeOfTest=M=>$=>typeof $===M,{isArray:isArray$8}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer$3(M){return M!==null&&!isUndefined$1(M)&&M.constructor!==null&&!isUndefined$1(M.constructor)&&isFunction$2(M.constructor.isBuffer)&&M.constructor.isBuffer(M)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(M){let $;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?$=ArrayBuffer.isView(M):$=M&&M.buffer&&isArrayBuffer(M.buffer),$}const isString$5=typeOfTest("string"),isFunction$2=typeOfTest("function"),isNumber$3=typeOfTest("number"),isObject$5=M=>M!==null&&typeof M=="object",isBoolean$2=M=>M===!0||M===!1,isPlainObject=M=>{if(kindOf$1(M)!=="object")return!1;const $=getPrototypeOf(M);return($===null||$===Object.prototype||Object.getPrototypeOf($)===null)&&!(Symbol.toStringTag in M)&&!(Symbol.iterator in M)},isDate$2=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=M=>isObject$5(M)&&isFunction$2(M.pipe),isFormData=M=>{let $;return M&&(typeof FormData=="function"&&M instanceof FormData||isFunction$2(M.append)&&(($=kindOf$1(M))==="formdata"||$==="object"&&isFunction$2(M.toString)&&M.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=M=>M.trim?M.trim():M.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(M,$,{allOwnKeys:I=!1}={}){if(M===null||typeof M>"u")return;let N,B;if(typeof M!="object"&&(M=[M]),isArray$8(M))for(N=0,B=M.length;N<B;N++)$.call(null,M[N],N,M);else{const j=I?Object.getOwnPropertyNames(M):Object.keys(M),U=j.length;let q;for(N=0;N<U;N++)q=j[N],$.call(null,M[q],q,M)}}function findKey(M,$){$=$.toLowerCase();const I=Object.keys(M);let N=I.length,B;for(;N-- >0;)if(B=I[N],$===B.toLowerCase())return B;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=M=>!isUndefined$1(M)&&M!==_global;function merge$2(){const{caseless:M}=isContextDefined(this)&&this||{},$={},I=(N,B)=>{const j=M&&findKey($,B)||B;isPlainObject($[j])&&isPlainObject(N)?$[j]=merge$2($[j],N):isPlainObject(N)?$[j]=merge$2({},N):isArray$8(N)?$[j]=N.slice():$[j]=N};for(let N=0,B=arguments.length;N<B;N++)arguments[N]&&forEach(arguments[N],I);return $}const extend$4=(M,$,I,{allOwnKeys:N}={})=>(forEach($,(B,j)=>{I&&isFunction$2(B)?M[j]=bind$5(B,I):M[j]=B},{allOwnKeys:N}),M),stripBOM=M=>(M.charCodeAt(0)===65279&&(M=M.slice(1)),M),inherits=(M,$,I,N)=>{M.prototype=Object.create($.prototype,N),M.prototype.constructor=M,Object.defineProperty(M,"super",{value:$.prototype}),I&&Object.assign(M.prototype,I)},toFlatObject=(M,$,I,N)=>{let B,j,U;const q={};if($=$||{},M==null)return $;do{for(B=Object.getOwnPropertyNames(M),j=B.length;j-- >0;)U=B[j],(!N||N(U,M,$))&&!q[U]&&($[U]=M[U],q[U]=!0);M=I!==!1&&getPrototypeOf(M)}while(M&&(!I||I(M,$))&&M!==Object.prototype);return $},endsWith=(M,$,I)=>{M=String(M),(I===void 0||I>M.length)&&(I=M.length),I-=$.length;const N=M.indexOf($,I);return N!==-1&&N===I},toArray$1=M=>{if(!M)return null;if(isArray$8(M))return M;let $=M.length;if(!isNumber$3($))return null;const I=new Array($);for(;$-- >0;)I[$]=M[$];return I},isTypedArray=(M=>$=>M&&$ instanceof M)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(M,$)=>{const N=(M&&M[Symbol.iterator]).call(M);let B;for(;(B=N.next())&&!B.done;){const j=B.value;$.call(M,j[0],j[1])}},matchAll=(M,$)=>{let I;const N=[];for(;(I=M.exec($))!==null;)N.push(I);return N},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=M=>M.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(I,N,B){return N.toUpperCase()+B}),hasOwnProperty$1=(({hasOwnProperty:M})=>($,I)=>M.call($,I))(Object.prototype),isRegExp$2=kindOfTest("RegExp"),reduceDescriptors=(M,$)=>{const I=Object.getOwnPropertyDescriptors(M),N={};forEach(I,(B,j)=>{let U;(U=$(B,j,M))!==!1&&(N[j]=U||B)}),Object.defineProperties(M,N)},freezeMethods=M=>{reduceDescriptors(M,($,I)=>{if(isFunction$2(M)&&["arguments","caller","callee"].indexOf(I)!==-1)return!1;const N=M[I];if(isFunction$2(N)){if($.enumerable=!1,"writable"in $){$.writable=!1;return}$.set||($.set=()=>{throw Error("Can not rewrite read-only method '"+I+"'")})}})},toObjectSet=(M,$)=>{const I={},N=B=>{B.forEach(j=>{I[j]=!0})};return isArray$8(M)?N(M):N(String(M).split($)),I},noop=()=>{},toFiniteNumber=(M,$)=>M!=null&&Number.isFinite(M=+M)?M:$,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(M=16,$=ALPHABET.ALPHA_DIGIT)=>{let I="";const{length:N}=$;for(;M--;)I+=$[Math.random()*N|0];return I};function isSpecCompliantForm(M){return!!(M&&isFunction$2(M.append)&&M[Symbol.toStringTag]==="FormData"&&M[Symbol.iterator])}const toJSONObject=M=>{const $=new Array(10),I=(N,B)=>{if(isObject$5(N)){if($.indexOf(N)>=0)return;if(!("toJSON"in N)){$[B]=N;const j=isArray$8(N)?[]:{};return forEach(N,(U,q)=>{const Y=I(U,B+1);!isUndefined$1(Y)&&(j[q]=Y)}),$[B]=void 0,j}}return N};return I(M,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=M=>M&&(isObject$5(M)||isFunction$2(M))&&isFunction$2(M.then)&&isFunction$2(M.catch),_setImmediate=((M,$)=>M?setImmediate:$?((I,N)=>(_global.addEventListener("message",({source:B,data:j})=>{B===_global&&j===I&&N.length&&N.shift()()},!1),B=>{N.push(B),_global.postMessage(I,"*")}))(`axios@${Math.random()}`,[]):I=>setTimeout(I))(typeof setImmediate=="function",isFunction$2(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$4={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$3,isFormData,isArrayBufferView,isString:isString$5,isNumber:isNumber$3,isBoolean:isBoolean$2,isObject:isObject$5,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined:isUndefined$1,isDate:isDate$2,isFile,isBlob,isRegExp:isRegExp$2,isFunction:isFunction$2,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$2,extend:extend$4,trim,stripBOM,inherits,toFlatObject,kindOf:kindOf$1,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(M,$,I,N,B){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=M,this.name="AxiosError",$&&(this.code=$),I&&(this.config=I),N&&(this.request=N),B&&(this.response=B)}utils$4.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$4.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(M=>{descriptors[M]={value:M}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(M,$,I,N,B,j)=>{const U=Object.create(prototype$1);return utils$4.toFlatObject(M,U,function(Y){return Y!==Error.prototype},q=>q!=="isAxiosError"),AxiosError.call(U,M.message,$,I,N,B),U.cause=M,U.name=M.name,j&&Object.assign(U,j),U};const httpAdapter=null;function isVisitable(M){return utils$4.isPlainObject(M)||utils$4.isArray(M)}function removeBrackets(M){return utils$4.endsWith(M,"[]")?M.slice(0,-2):M}function renderKey(M,$,I){return M?M.concat($).map(function(B,j){return B=removeBrackets(B),!I&&j?"["+B+"]":B}).join(I?".":""):$}function isFlatArray(M){return utils$4.isArray(M)&&!M.some(isVisitable)}const predicates=utils$4.toFlatObject(utils$4,{},null,function($){return/^is[A-Z]/.test($)});function toFormData(M,$,I){if(!utils$4.isObject(M))throw new TypeError("target must be an object");$=$||new FormData,I=utils$4.toFlatObject(I,{metaTokens:!0,dots:!1,indexes:!1},!1,function(se,re){return!utils$4.isUndefined(re[se])});const N=I.metaTokens,B=I.visitor||G,j=I.dots,U=I.indexes,Y=(I.Blob||typeof Blob<"u"&&Blob)&&utils$4.isSpecCompliantForm($);if(!utils$4.isFunction(B))throw new TypeError("visitor must be a function");function K(te){if(te===null)return"";if(utils$4.isDate(te))return te.toISOString();if(!Y&&utils$4.isBlob(te))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$4.isArrayBuffer(te)||utils$4.isTypedArray(te)?Y&&typeof Blob=="function"?new Blob([te]):Buffer.from(te):te}function G(te,se,re){let ne=te;if(te&&!re&&typeof te=="object"){if(utils$4.endsWith(se,"{}"))se=N?se:se.slice(0,-2),te=JSON.stringify(te);else if(utils$4.isArray(te)&&isFlatArray(te)||(utils$4.isFileList(te)||utils$4.endsWith(se,"[]"))&&(ne=utils$4.toArray(te)))return se=removeBrackets(se),ne.forEach(function(me,ue){!(utils$4.isUndefined(me)||me===null)&&$.append(U===!0?renderKey([se],ue,j):U===null?se:se+"[]",K(me))}),!1}return isVisitable(te)?!0:($.append(renderKey(re,se,j),K(te)),!1)}const J=[],Z=Object.assign(predicates,{defaultVisitor:G,convertValue:K,isVisitable});function ee(te,se){if(!utils$4.isUndefined(te)){if(J.indexOf(te)!==-1)throw Error("Circular reference detected in "+se.join("."));J.push(te),utils$4.forEach(te,function(ne,ce){(!(utils$4.isUndefined(ne)||ne===null)&&B.call($,ne,utils$4.isString(ce)?ce.trim():ce,se,Z))===!0&&ee(ne,se?se.concat(ce):[ce])}),J.pop()}}if(!utils$4.isObject(M))throw new TypeError("data must be an object");return ee(M),$}function encode$2(M){const $={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(M).replace(/[!'()~]|%20|%00/g,function(N){return $[N]})}function AxiosURLSearchParams(M,$){this._pairs=[],M&&toFormData(M,this,$)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function($,I){this._pairs.push([$,I])};prototype.toString=function($){const I=$?function(N){return $.call(this,N,encode$2)}:encode$2;return this._pairs.map(function(B){return I(B[0])+"="+I(B[1])},"").join("&")};function encode$1(M){return encodeURIComponent(M).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(M,$,I){if(!$)return M;const N=I&&I.encode||encode$1,B=I&&I.serialize;let j;if(B?j=B($,I):j=utils$4.isURLSearchParams($)?$.toString():new AxiosURLSearchParams($,I).toString(N),j){const U=M.indexOf("#");U!==-1&&(M=M.slice(0,U)),M+=(M.indexOf("?")===-1?"?":"&")+j}return M}class InterceptorManager{constructor(){this.handlers=[]}use($,I,N){return this.handlers.push({fulfilled:$,rejected:I,synchronous:N?N.synchronous:!1,runWhen:N?N.runWhen:null}),this.handlers.length-1}eject($){this.handlers[$]&&(this.handlers[$]=null)}clear(){this.handlers&&(this.handlers=[])}forEach($){utils$4.forEach(this.handlers,function(N){N!==null&&$(N)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$2={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(M=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(M)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin},Symbol.toStringTag,{value:"Module"})),platform$1={...utils$3,...platform$2};function toURLEncodedForm(M,$){return toFormData(M,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(I,N,B,j){return platform$1.isNode&&utils$4.isBuffer(I)?(this.append(N,I.toString("base64")),!1):j.defaultVisitor.apply(this,arguments)}},$))}function parsePropPath(M){return utils$4.matchAll(/\w+|\[(\w*)]/g,M).map($=>$[0]==="[]"?"":$[1]||$[0])}function arrayToObject$1(M){const $={},I=Object.keys(M);let N;const B=I.length;let j;for(N=0;N<B;N++)j=I[N],$[j]=M[j];return $}function formDataToJSON(M){function $(I,N,B,j){let U=I[j++];if(U==="__proto__")return!0;const q=Number.isFinite(+U),Y=j>=I.length;return U=!U&&utils$4.isArray(B)?B.length:U,Y?(utils$4.hasOwnProp(B,U)?B[U]=[B[U],N]:B[U]=N,!q):((!B[U]||!utils$4.isObject(B[U]))&&(B[U]=[]),$(I,N,B[U],j)&&utils$4.isArray(B[U])&&(B[U]=arrayToObject$1(B[U])),!q)}if(utils$4.isFormData(M)&&utils$4.isFunction(M.entries)){const I={};return utils$4.forEachEntry(M,(N,B)=>{$(parsePropPath(N),B,I,0)}),I}return null}function stringifySafely(M,$,I){if(utils$4.isString(M))try{return($||JSON.parse)(M),utils$4.trim(M)}catch(N){if(N.name!=="SyntaxError")throw N}return(I||JSON.stringify)(M)}const defaults$4={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function($,I){const N=I.getContentType()||"",B=N.indexOf("application/json")>-1,j=utils$4.isObject($);if(j&&utils$4.isHTMLForm($)&&($=new FormData($)),utils$4.isFormData($))return B?JSON.stringify(formDataToJSON($)):$;if(utils$4.isArrayBuffer($)||utils$4.isBuffer($)||utils$4.isStream($)||utils$4.isFile($)||utils$4.isBlob($)||utils$4.isReadableStream($))return $;if(utils$4.isArrayBufferView($))return $.buffer;if(utils$4.isURLSearchParams($))return I.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),$.toString();let q;if(j){if(N.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm($,this.formSerializer).toString();if((q=utils$4.isFileList($))||N.indexOf("multipart/form-data")>-1){const Y=this.env&&this.env.FormData;return toFormData(q?{"files[]":$}:$,Y&&new Y,this.formSerializer)}}return j||B?(I.setContentType("application/json",!1),stringifySafely($)):$}],transformResponse:[function($){const I=this.transitional||defaults$4.transitional,N=I&&I.forcedJSONParsing,B=this.responseType==="json";if(utils$4.isResponse($)||utils$4.isReadableStream($))return $;if($&&utils$4.isString($)&&(N&&!this.responseType||B)){const U=!(I&&I.silentJSONParsing)&&B;try{return JSON.parse($)}catch(q){if(U)throw q.name==="SyntaxError"?AxiosError.from(q,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):q}}return $}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$1.classes.FormData,Blob:platform$1.classes.Blob},validateStatus:function($){return $>=200&&$<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$4.forEach(["delete","get","head","post","put","patch"],M=>{defaults$4.headers[M]={}});const defaults$5=defaults$4,ignoreDuplicateOf=utils$4.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=M=>{const $={};let I,N,B;return M&&M.split(` `).forEach(function(U){B=U.indexOf(":"),I=U.substring(0,B).trim().toLowerCase(),N=U.substring(B+1).trim(),!(!I||$[I]&&ignoreDuplicateOf[I])&&(I==="set-cookie"?$[I]?$[I].push(N):$[I]=[N]:$[I]=$[I]?$[I]+", "+N:N)}),$},$internals=Symbol("internals");function normalizeHeader(M){return M&&String(M).trim().toLowerCase()}function normalizeValue(M){return M===!1||M==null?M:utils$4.isArray(M)?M.map(normalizeValue):String(M)}function parseTokens(M){const $=Object.create(null),I=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let N;for(;N=I.exec(M);)$[N[1]]=N[2];return $}const isValidHeaderName=M=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(M.trim());function matchHeaderValue(M,$,I,N,B){if(utils$4.isFunction(N))return N.call(this,$,I);if(B&&($=I),!!utils$4.isString($)){if(utils$4.isString(N))return $.indexOf(N)!==-1;if(utils$4.isRegExp(N))return N.test($)}}function formatHeader(M){return M.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,($,I,N)=>I.toUpperCase()+N)}function buildAccessors(M,$){const I=utils$4.toCamelCase(" "+$);["get","set","has"].forEach(N=>{Object.defineProperty(M,N+I,{value:function(B,j,U){return this[N].call(this,$,B,j,U)},configurable:!0})})}class AxiosHeaders{constructor($){$&&this.set($)}set($,I,N){const B=this;function j(q,Y,K){const G=normalizeHeader(Y);if(!G)throw new Error("header name must be a non-empty string");const J=utils$4.findKey(B,G);(!J||B[J]===void 0||K===!0||K===void 0&&B[J]!==!1)&&(B[J||Y]=normalizeValue(q))}const U=(q,Y)=>utils$4.forEach(q,(K,G)=>j(K,G,Y));if(utils$4.isPlainObject($)||$ instanceof this.constructor)U($,I);else if(utils$4.isString($)&&($=$.trim())&&!isValidHeaderName($))U(parseHeaders($),I);else if(utils$4.isHeaders($))for(const[q,Y]of $.entries())j(Y,q,N);else $!=null&&j(I,$,N);return this}get($,I){if($=normalizeHeader($),$){const N=utils$4.findKey(this,$);if(N){const B=this[N];if(!I)return B;if(I===!0)return parseTokens(B);if(utils$4.isFunction(I))return I.call(this,B,N);if(utils$4.isRegExp(I))return I.exec(B);throw new TypeError("parser must be boolean|regexp|function")}}}has($,I){if($=normalizeHeader($),$){const N=utils$4.findKey(this,$);return!!(N&&this[N]!==void 0&&(!I||matchHeaderValue(this,this[N],N,I)))}return!1}delete($,I){const N=this;let B=!1;function j(U){if(U=normalizeHeader(U),U){const q=utils$4.findKey(N,U);q&&(!I||matchHeaderValue(N,N[q],q,I))&&(delete N[q],B=!0)}}return utils$4.isArray($)?$.forEach(j):j($),B}clear($){const I=Object.keys(this);let N=I.length,B=!1;for(;N--;){const j=I[N];(!$||matchHeaderValue(this,this[j],j,$,!0))&&(delete this[j],B=!0)}return B}normalize($){const I=this,N={};return utils$4.forEach(this,(B,j)=>{const U=utils$4.findKey(N,j);if(U){I[U]=normalizeValue(B),delete I[j];return}const q=$?formatHeader(j):String(j).trim();q!==j&&delete I[j],I[q]=normalizeValue(B),N[q]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){const I=Object.create(null);return utils$4.forEach(this,(N,B)=>{N!=null&&N!==!1&&(I[B]=$&&utils$4.isArray(N)?N.join(", "):N)}),I}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,I])=>$+": "+I).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...I){const N=new this($);return I.forEach(B=>N.set(B)),N}static accessor($){const N=(this[$internals]=this[$internals]={accessors:{}}).accessors,B=this.prototype;function j(U){const q=normalizeHeader(U);N[q]||(buildAccessors(B,U),N[q]=!0)}return utils$4.isArray($)?$.forEach(j):j($),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$4.reduceDescriptors(AxiosHeaders.prototype,({value:M},$)=>{let I=$[0].toUpperCase()+$.slice(1);return{get:()=>M,set(N){this[I]=N}}});utils$4.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(M,$){const I=this||defaults$5,N=$||I,B=AxiosHeaders$1.from(N.headers);let j=N.data;return utils$4.forEach(M,function(q){j=q.call(I,j,B.normalize(),$?$.status:void 0)}),B.normalize(),j}function isCancel(M){return!!(M&&M.__CANCEL__)}function CanceledError(M,$,I){AxiosError.call(this,M??"canceled",AxiosError.ERR_CANCELED,$,I),this.name="CanceledError"}utils$4.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(M,$,I){const N=I.config.validateStatus;!I.status||!N||N(I.status)?M(I):$(new AxiosError("Request failed with status code "+I.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(I.status/100)-4],I.config,I.request,I))}function parseProtocol(M){const $=/^([-+\w]{1,25})(:?\/\/|:)/.exec(M);return $&&$[1]||""}function speedometer(M,$){M=M||10;const I=new Array(M),N=new Array(M);let B=0,j=0,U;return $=$!==void 0?$:1e3,function(Y){const K=Date.now(),G=N[j];U||(U=K),I[B]=Y,N[B]=K;let J=j,Z=0;for(;J!==B;)Z+=I[J++],J=J%M;if(B=(B+1)%M,B===j&&(j=(j+1)%M),K-U<$)return;const ee=G&&K-G;return ee?Math.round(Z*1e3/ee):void 0}}function throttle$2(M,$){let I=0,N=1e3/$,B,j;const U=(K,G=Date.now())=>{I=G,B=null,j&&(clearTimeout(j),j=null),M.apply(null,K)};return[(...K)=>{const G=Date.now(),J=G-I;J>=N?U(K,G):(B=K,j||(j=setTimeout(()=>{j=null,U(B)},N-J)))},()=>B&&U(B)]}const progressEventReducer=(M,$,I=3)=>{let N=0;const B=speedometer(50,250);return throttle$2(j=>{const U=j.loaded,q=j.lengthComputable?j.total:void 0,Y=U-N,K=B(Y),G=U<=q;N=U;const J={loaded:U,total:q,progress:q?U/q:void 0,bytes:Y,rate:K||void 0,estimated:K&&q&&G?(q-U)/K:void 0,event:j,lengthComputable:q!=null,[$?"download":"upload"]:!0};M(J)},I)},progressEventDecorator=(M,$)=>{const I=M!=null;return[N=>$[0]({lengthComputable:I,total:M,loaded:N}),$[1]]},asyncDecorator=M=>(...$)=>utils$4.asap(()=>M(...$)),isURLSameOrigin=platform$1.hasStandardBrowserEnv?function(){const $=/(msie|trident)/i.test(navigator.userAgent),I=document.createElement("a");let N;function B(j){let U=j;return $&&(I.setAttribute("href",U),U=I.href),I.setAttribute("href",U),{href:I.href,protocol:I.protocol?I.protocol.replace(/:$/,""):"",host:I.host,search:I.search?I.search.replace(/^\?/,""):"",hash:I.hash?I.hash.replace(/^#/,""):"",hostname:I.hostname,port:I.port,pathname:I.pathname.charAt(0)==="/"?I.pathname:"/"+I.pathname}}return N=B(window.location.href),function(U){const q=utils$4.isString(U)?B(U):U;return q.protocol===N.protocol&&q.host===N.host}}():function(){return function(){return!0}}(),cookies$1=platform$1.hasStandardBrowserEnv?{write(M,$,I,N,B,j){const U=[M+"="+encodeURIComponent($)];utils$4.isNumber(I)&&U.push("expires="+new Date(I).toGMTString()),utils$4.isString(N)&&U.push("path="+N),utils$4.isString(B)&&U.push("domain="+B),j===!0&&U.push("secure"),document.cookie=U.join("; ")},read(M){const $=document.cookie.match(new RegExp("(^|;\\s*)("+M+")=([^;]*)"));return $?decodeURIComponent($[3]):null},remove(M){this.write(M,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(M){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(M)}function combineURLs(M,$){return $?M.replace(/\/?\/$/,"")+"/"+$.replace(/^\/+/,""):M}function buildFullPath(M,$){return M&&!isAbsoluteURL($)?combineURLs(M,$):$}const headersToObject=M=>M instanceof AxiosHeaders$1?{...M}:M;function mergeConfig(M,$){$=$||{};const I={};function N(K,G,J){return utils$4.isPlainObject(K)&&utils$4.isPlainObject(G)?utils$4.merge.call({caseless:J},K,G):utils$4.isPlainObject(G)?utils$4.merge({},G):utils$4.isArray(G)?G.slice():G}function B(K,G,J){if(utils$4.isUndefined(G)){if(!utils$4.isUndefined(K))return N(void 0,K,J)}else return N(K,G,J)}function j(K,G){if(!utils$4.isUndefined(G))return N(void 0,G)}function U(K,G){if(utils$4.isUndefined(G)){if(!utils$4.isUndefined(K))return N(void 0,K)}else return N(void 0,G)}function q(K,G,J){if(J in $)return N(K,G);if(J in M)return N(void 0,K)}const Y={url:j,method:j,data:j,baseURL:U,transformRequest:U,transformResponse:U,paramsSerializer:U,timeout:U,timeoutMessage:U,withCredentials:U,withXSRFToken:U,adapter:U,responseType:U,xsrfCookieName:U,xsrfHeaderName:U,onUploadProgress:U,onDownloadProgress:U,decompress:U,maxContentLength:U,maxBodyLength:U,beforeRedirect:U,transport:U,httpAgent:U,httpsAgent:U,cancelToken:U,socketPath:U,responseEncoding:U,validateStatus:q,headers:(K,G)=>B(headersToObject(K),headersToObject(G),!0)};return utils$4.forEach(Object.keys(Object.assign({},M,$)),function(G){const J=Y[G]||B,Z=J(M[G],$[G],G);utils$4.isUndefined(Z)&&J!==q||(I[G]=Z)}),I}const resolveConfig=M=>{const $=mergeConfig({},M);let{data:I,withXSRFToken:N,xsrfHeaderName:B,xsrfCookieName:j,headers:U,auth:q}=$;$.headers=U=AxiosHeaders$1.from(U),$.url=buildURL(buildFullPath($.baseURL,$.url),M.params,M.paramsSerializer),q&&U.set("Authorization","Basic "+btoa((q.username||"")+":"+(q.password?unescape(encodeURIComponent(q.password)):"")));let Y;if(utils$4.isFormData(I)){if(platform$1.hasStandardBrowserEnv||platform$1.hasStandardBrowserWebWorkerEnv)U.setContentType(void 0);else if((Y=U.getContentType())!==!1){const[K,...G]=Y?Y.split(";").map(J=>J.trim()).filter(Boolean):[];U.setContentType([K||"multipart/form-data",...G].join("; "))}}if(platform$1.hasStandardBrowserEnv&&(N&&utils$4.isFunction(N)&&(N=N($)),N||N!==!1&&isURLSameOrigin($.url))){const K=B&&j&&cookies$1.read(j);K&&U.set(B,K)}return $},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(M){return new Promise(function(I,N){const B=resolveConfig(M);let j=B.data;const U=AxiosHeaders$1.from(B.headers).normalize();let{responseType:q,onUploadProgress:Y,onDownloadProgress:K}=B,G,J,Z,ee,te;function se(){ee&&ee(),te&&te(),B.cancelToken&&B.cancelToken.unsubscribe(G),B.signal&&B.signal.removeEventListener("abort",G)}let re=new XMLHttpRequest;re.open(B.method.toUpperCase(),B.url,!0),re.timeout=B.timeout;function ne(){if(!re)return;const me=AxiosHeaders$1.from("getAllResponseHeaders"in re&&re.getAllResponseHeaders()),_e={data:!q||q==="text"||q==="json"?re.responseText:re.response,status:re.status,statusText:re.statusText,headers:me,config:M,request:re};settle(function(ge){I(ge),se()},function(ge){N(ge),se()},_e),re=null}"onloadend"in re?re.onloadend=ne:re.onreadystatechange=function(){!re||re.readyState!==4||re.status===0&&!(re.responseURL&&re.responseURL.indexOf("file:")===0)||setTimeout(ne)},re.onabort=function(){re&&(N(new AxiosError("Request aborted",AxiosError.ECONNABORTED,M,re)),re=null)},re.onerror=function(){N(new AxiosError("Network Error",AxiosError.ERR_NETWORK,M,re)),re=null},re.ontimeout=function(){let ue=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const _e=B.transitional||transitionalDefaults;B.timeoutErrorMessage&&(ue=B.timeoutErrorMessage),N(new AxiosError(ue,_e.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,M,re)),re=null},j===void 0&&U.setContentType(null),"setRequestHeader"in re&&utils$4.forEach(U.toJSON(),function(ue,_e){re.setRequestHeader(_e,ue)}),utils$4.isUndefined(B.withCredentials)||(re.withCredentials=!!B.withCredentials),q&&q!=="json"&&(re.responseType=B.responseType),K&&([Z,te]=progressEventReducer(K,!0),re.addEventListener("progress",Z)),Y&&re.upload&&([J,ee]=progressEventReducer(Y),re.upload.addEventListener("progress",J),re.upload.addEventListener("loadend",ee)),(B.cancelToken||B.signal)&&(G=me=>{re&&(N(!me||me.type?new CanceledError(null,M,re):me),re.abort(),re=null)},B.cancelToken&&B.cancelToken.subscribe(G),B.signal&&(B.signal.aborted?G():B.signal.addEventListener("abort",G)));const ce=parseProtocol(B.url);if(ce&&platform$1.protocols.indexOf(ce)===-1){N(new AxiosError("Unsupported protocol "+ce+":",AxiosError.ERR_BAD_REQUEST,M));return}re.send(j||null)})},composeSignals=(M,$)=>{let I=new AbortController,N;const B=function(Y){if(!N){N=!0,U();const K=Y instanceof Error?Y:this.reason;I.abort(K instanceof AxiosError?K:new CanceledError(K instanceof Error?K.message:K))}};let j=$&&setTimeout(()=>{B(new AxiosError(`timeout ${$} of ms exceeded`,AxiosError.ETIMEDOUT))},$);const U=()=>{M&&(j&&clearTimeout(j),j=null,M.forEach(Y=>{Y&&(Y.removeEventListener?Y.removeEventListener("abort",B):Y.unsubscribe(B))}),M=null)};M.forEach(Y=>Y&&Y.addEventListener&&Y.addEventListener("abort",B));const{signal:q}=I;return q.unsubscribe=U,[q,()=>{j&&clearTimeout(j),j=null}]},composeSignals$1=composeSignals,streamChunk=function*(M,$){let I=M.byteLength;if(!$||I<$){yield M;return}let N=0,B;for(;N<I;)B=N+$,yield M.slice(N,B),N=B},readBytes=async function*(M,$,I){for await(const N of M)yield*streamChunk(ArrayBuffer.isView(N)?N:await I(String(N)),$)},trackStream=(M,$,I,N,B)=>{const j=readBytes(M,$,B);let U=0,q,Y=K=>{q||(q=!0,N&&N(K))};return new ReadableStream({async pull(K){try{const{done:G,value:J}=await j.next();if(G){Y(),K.close();return}let Z=J.byteLength;if(I){let ee=U+=Z;I(ee)}K.enqueue(new Uint8Array(J))}catch(G){throw Y(G),G}},cancel(K){return Y(K),j.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(M=>$=>M.encode($))(new TextEncoder):async M=>new Uint8Array(await new Response(M).arrayBuffer())),test=(M,...$)=>{try{return!!M(...$)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let M=!1;const $=new Request(platform$1.origin,{body:new ReadableStream,method:"POST",get duplex(){return M=!0,"half"}}).headers.has("Content-Type");return M&&!$}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$4.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(M=>M.body)};isFetchSupported&&(M=>{["text","arrayBuffer","blob","formData","stream"].forEach($=>{!resolvers[$]&&(resolvers[$]=utils$4.isFunction(M[$])?I=>I[$]():(I,N)=>{throw new AxiosError(`Response type '${$}' is not supported`,AxiosError.ERR_NOT_SUPPORT,N)})})})(new Response);const getBodyLength=async M=>{if(M==null)return 0;if(utils$4.isBlob(M))return M.size;if(utils$4.isSpecCompliantForm(M))return(await new Request(M).arrayBuffer()).byteLength;if(utils$4.isArrayBufferView(M)||utils$4.isArrayBuffer(M))return M.byteLength;if(utils$4.isURLSearchParams(M)&&(M=M+""),utils$4.isString(M))return(await encodeText(M)).byteLength},resolveBodyLength=async(M,$)=>{const I=utils$4.toFiniteNumber(M.getContentLength());return I??getBodyLength($)},fetchAdapter=isFetchSupported&&(async M=>{let{url:$,method:I,data:N,signal:B,cancelToken:j,timeout:U,onDownloadProgress:q,onUploadProgress:Y,responseType:K,headers:G,withCredentials:J="same-origin",fetchOptions:Z}=resolveConfig(M);K=K?(K+"").toLowerCase():"text";let[ee,te]=B||j||U?composeSignals$1([B,j],U):[],se,re;const ne=()=>{!se&&setTimeout(()=>{ee&&ee.unsubscribe()}),se=!0};let ce;try{if(Y&&supportsRequestStream&&I!=="get"&&I!=="head"&&(ce=await resolveBodyLength(G,N))!==0){let fe=new Request($,{method:"POST",body:N,duplex:"half"}),ge;if(utils$4.isFormData(N)&&(ge=fe.headers.get("content-type"))&&G.setContentType(ge),fe.body){const[ye,xe]=progressEventDecorator(ce,progressEventReducer(asyncDecorator(Y)));N=trackStream(fe.body,DEFAULT_CHUNK_SIZE,ye,xe,encodeText)}}utils$4.isString(J)||(J=J?"include":"omit"),re=new Request($,{...Z,signal:ee,method:I.toUpperCase(),headers:G.normalize().toJSON(),body:N,duplex:"half",credentials:J});let me=await fetch(re);const ue=supportsResponseStream&&(K==="stream"||K==="response");if(supportsResponseStream&&(q||ue)){const fe={};["status","statusText","headers"].forEach(le=>{fe[le]=me[le]});const ge=utils$4.toFiniteNumber(me.headers.get("content-length")),[ye,xe]=q&&progressEventDecorator(ge,progressEventReducer(asyncDecorator(q),!0))||[];me=new Response(trackStream(me.body,DEFAULT_CHUNK_SIZE,ye,()=>{xe&&xe(),ue&&ne()},encodeText),fe)}K=K||"text";let _e=await resolvers[utils$4.findKey(resolvers,K)||"text"](me,M);return!ue&&ne(),te&&te(),await new Promise((fe,ge)=>{settle(fe,ge,{data:_e,headers:AxiosHeaders$1.from(me.headers),status:me.status,statusText:me.statusText,config:M,request:re})})}catch(me){throw ne(),me&&me.name==="TypeError"&&/fetch/i.test(me.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,M,re),{cause:me.cause||me}):AxiosError.from(me,me&&me.code,M,re)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$4.forEach(knownAdapters,(M,$)=>{if(M){try{Object.defineProperty(M,"name",{value:$})}catch{}Object.defineProperty(M,"adapterName",{value:$})}});const renderReason=M=>`- ${M}`,isResolvedHandle=M=>utils$4.isFunction(M)||M===null||M===!1,adapters={getAdapter:M=>{M=utils$4.isArray(M)?M:[M];const{length:$}=M;let I,N;const B={};for(let j=0;j<$;j++){I=M[j];let U;if(N=I,!isResolvedHandle(I)&&(N=knownAdapters[(U=String(I)).toLowerCase()],N===void 0))throw new AxiosError(`Unknown adapter '${U}'`);if(N)break;B[U||"#"+j]=N}if(!N){const j=Object.entries(B).map(([q,Y])=>`adapter ${q} `+(Y===!1?"is not supported by the environment":"is not available in the build"));let U=$?j.length>1?`since : `+j.map(renderReason).join(` `):" "+renderReason(j[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+U,"ERR_NOT_SUPPORT")}return N},adapters:knownAdapters};function throwIfCancellationRequested(M){if(M.cancelToken&&M.cancelToken.throwIfRequested(),M.signal&&M.signal.aborted)throw new CanceledError(null,M)}function dispatchRequest(M){return throwIfCancellationRequested(M),M.headers=AxiosHeaders$1.from(M.headers),M.data=transformData.call(M,M.transformRequest),["post","put","patch"].indexOf(M.method)!==-1&&M.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(M.adapter||defaults$5.adapter)(M).then(function(N){return throwIfCancellationRequested(M),N.data=transformData.call(M,M.transformResponse,N),N.headers=AxiosHeaders$1.from(N.headers),N},function(N){return isCancel(N)||(throwIfCancellationRequested(M),N&&N.response&&(N.response.data=transformData.call(M,M.transformResponse,N.response),N.response.headers=AxiosHeaders$1.from(N.response.headers))),Promise.reject(N)})}const VERSION="1.7.4",validators$1={};["object","boolean","number","function","string","symbol"].forEach((M,$)=>{validators$1[M]=function(N){return typeof N===M||"a"+($<1?"n ":" ")+M}});const deprecatedWarnings={};validators$1.transitional=function($,I,N){function B(j,U){return"[Axios v"+VERSION+"] Transitional option '"+j+"'"+U+(N?". "+N:"")}return(j,U,q)=>{if($===!1)throw new AxiosError(B(U," has been removed"+(I?" in "+I:"")),AxiosError.ERR_DEPRECATED);return I&&!deprecatedWarnings[U]&&(deprecatedWarnings[U]=!0,console.warn(B(U," has been deprecated since v"+I+" and will be removed in the near future"))),$?$(j,U,q):!0}};function assertOptions(M,$,I){if(typeof M!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const N=Object.keys(M);let B=N.length;for(;B-- >0;){const j=N[B],U=$[j];if(U){const q=M[j],Y=q===void 0||U(q,j,M);if(Y!==!0)throw new AxiosError("option "+j+" must be "+Y,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(I!==!0)throw new AxiosError("Unknown option "+j,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor($){this.defaults=$,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request($,I){try{return await this._request($,I)}catch(N){if(N instanceof Error){let B;Error.captureStackTrace?Error.captureStackTrace(B={}):B=new Error;const j=B.stack?B.stack.replace(/^.+\n/,""):"";try{N.stack?j&&!String(N.stack).endsWith(j.replace(/^.+\n.+\n/,""))&&(N.stack+=` `+j):N.stack=j}catch{}}throw N}}_request($,I){typeof $=="string"?(I=I||{},I.url=$):I=$||{},I=mergeConfig(this.defaults,I);const{transitional:N,paramsSerializer:B,headers:j}=I;N!==void 0&&validator.assertOptions(N,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),B!=null&&(utils$4.isFunction(B)?I.paramsSerializer={serialize:B}:validator.assertOptions(B,{encode:validators.function,serialize:validators.function},!0)),I.method=(I.method||this.defaults.method||"get").toLowerCase();let U=j&&utils$4.merge(j.common,j[I.method]);j&&utils$4.forEach(["delete","get","head","post","put","patch","common"],te=>{delete j[te]}),I.headers=AxiosHeaders$1.concat(U,j);const q=[];let Y=!0;this.interceptors.request.forEach(function(se){typeof se.runWhen=="function"&&se.runWhen(I)===!1||(Y=Y&&se.synchronous,q.unshift(se.fulfilled,se.rejected))});const K=[];this.interceptors.response.forEach(function(se){K.push(se.fulfilled,se.rejected)});let G,J=0,Z;if(!Y){const te=[dispatchRequest.bind(this),void 0];for(te.unshift.apply(te,q),te.push.apply(te,K),Z=te.length,G=Promise.resolve(I);J<Z;)G=G.then(te[J++],te[J++]);return G}Z=q.length;let ee=I;for(J=0;J<Z;){const te=q[J++],se=q[J++];try{ee=te(ee)}catch(re){se.call(this,re);break}}try{G=dispatchRequest.call(this,ee)}catch(te){return Promise.reject(te)}for(J=0,Z=K.length;J<Z;)G=G.then(K[J++],K[J++]);return G}getUri($){$=mergeConfig(this.defaults,$);const I=buildFullPath($.baseURL,$.url);return buildURL(I,$.params,$.paramsSerializer)}}utils$4.forEach(["delete","get","head","options"],function($){Axios.prototype[$]=function(I,N){return this.request(mergeConfig(N||{},{method:$,url:I,data:(N||{}).data}))}});utils$4.forEach(["post","put","patch"],function($){function I(N){return function(j,U,q){return this.request(mergeConfig(q||{},{method:$,headers:N?{"Content-Type":"multipart/form-data"}:{},url:j,data:U}))}}Axios.prototype[$]=I(),Axios.prototype[$+"Form"]=I(!0)});const Axios$1=Axios;class CancelToken{constructor($){if(typeof $!="function")throw new TypeError("executor must be a function.");let I;this.promise=new Promise(function(j){I=j});const N=this;this.promise.then(B=>{if(!N._listeners)return;let j=N._listeners.length;for(;j-- >0;)N._listeners[j](B);N._listeners=null}),this.promise.then=B=>{let j;const U=new Promise(q=>{N.subscribe(q),j=q}).then(B);return U.cancel=function(){N.unsubscribe(j)},U},$(function(j,U,q){N.reason||(N.reason=new CanceledError(j,U,q),I(N.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}this._listeners?this._listeners.push($):this._listeners=[$]}unsubscribe($){if(!this._listeners)return;const I=this._listeners.indexOf($);I!==-1&&this._listeners.splice(I,1)}static source(){let $;return{token:new CancelToken(function(B){$=B}),cancel:$}}}const CancelToken$1=CancelToken;function spread(M){return function(I){return M.apply(null,I)}}function isAxiosError(M){return utils$4.isObject(M)&&M.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([M,$])=>{HttpStatusCode[$]=M});const HttpStatusCode$1=HttpStatusCode;function createInstance(M){const $=new Axios$1(M),I=bind$5(Axios$1.prototype.request,$);return utils$4.extend(I,Axios$1.prototype,$,{allOwnKeys:!0}),utils$4.extend(I,$,null,{allOwnKeys:!0}),I.create=function(B){return createInstance(mergeConfig(M,B))},I}const axios$1=createInstance(defaults$5);axios$1.Axios=Axios$1;axios$1.CanceledError=CanceledError;axios$1.CancelToken=CancelToken$1;axios$1.isCancel=isCancel;axios$1.VERSION=VERSION;axios$1.toFormData=toFormData;axios$1.AxiosError=AxiosError;axios$1.Cancel=axios$1.CanceledError;axios$1.all=function($){return Promise.all($)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;axios$1.mergeConfig=mergeConfig;axios$1.AxiosHeaders=AxiosHeaders$1;axios$1.formToJSON=M=>formDataToJSON(utils$4.isHTMLForm(M)?new FormData(M):M);axios$1.getAdapter=adapters.getAdapter;axios$1.HttpStatusCode=HttpStatusCode$1;axios$1.default=axios$1;const axios$2=axios$1;var speakingurl$1={exports:{}};(function(M){(function($){var I={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},N=["်","ް"],B={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},j={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},U={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},q=[";","?",":","@","&","=","+","$",",","/"].join(""),Y=[";","?",":","@","&","=","+","$",","].join(""),K=[".","!","~","*","'","(",")"].join(""),G=function(se,re){var ne="-",ce="",me="",ue=!0,_e={},fe,ge,ye,xe,le,be,ve,we,Ae,Se,Pe,Me,Be,ze,Ze="";if(typeof se!="string")return"";if(typeof re=="string"&&(ne=re),ve=U.en,we=j.en,typeof re=="object"){fe=re.maintainCase||!1,_e=re.custom&&typeof re.custom=="object"?re.custom:_e,ye=+re.truncate>1&&re.truncate||!1,xe=re.uric||!1,le=re.uricNoSlash||!1,be=re.mark||!1,ue=!(re.symbols===!1||re.lang===!1),ne=re.separator||ne,xe&&(Ze+=q),le&&(Ze+=Y),be&&(Ze+=K),ve=re.lang&&U[re.lang]&&ue?U[re.lang]:ue?U.en:{},we=re.lang&&j[re.lang]?j[re.lang]:re.lang===!1||re.lang===!0?{}:j.en,re.titleCase&&typeof re.titleCase.length=="number"&&Array.prototype.toString.call(re.titleCase)?(re.titleCase.forEach(function(ft){_e[ft+""]=ft+""}),ge=!0):ge=!!re.titleCase,re.custom&&typeof re.custom.length=="number"&&Array.prototype.toString.call(re.custom)&&re.custom.forEach(function(ft){_e[ft+""]=ft+""}),Object.keys(_e).forEach(function(ft){var Ye;ft.length>1?Ye=new RegExp("\\b"+Z(ft)+"\\b","gi"):Ye=new RegExp(Z(ft),"gi"),se=se.replace(Ye,_e[ft])});for(Pe in _e)Ze+=Pe}for(Ze+=ne,Ze=Z(Ze),se=se.replace(/(^\s+|\s+$)/g,""),Be=!1,ze=!1,Se=0,Me=se.length;Se<Me;Se++)Pe=se[Se],ee(Pe,_e)?Be=!1:we[Pe]?(Pe=Be&&we[Pe].match(/[A-Za-z0-9]/)?" "+we[Pe]:we[Pe],Be=!1):Pe in I?(Se+1<Me&&N.indexOf(se[Se+1])>=0?(me+=Pe,Pe=""):ze===!0?(Pe=B[me]+I[Pe],me=""):Pe=Be&&I[Pe].match(/[A-Za-z0-9]/)?" "+I[Pe]:I[Pe],Be=!1,ze=!1):Pe in B?(me+=Pe,Pe="",Se===Me-1&&(Pe=B[me]),ze=!0):ve[Pe]&&!(xe&&q.indexOf(Pe)!==-1)&&!(le&&Y.indexOf(Pe)!==-1)?(Pe=Be||ce.substr(-1).match(/[A-Za-z0-9]/)?ne+ve[Pe]:ve[Pe],Pe+=se[Se+1]!==void 0&&se[Se+1].match(/[A-Za-z0-9]/)?ne:"",Be=!0):(ze===!0?(Pe=B[me]+Pe,me="",ze=!1):Be&&(/[A-Za-z0-9]/.test(Pe)||ce.substr(-1).match(/A-Za-z0-9]/))&&(Pe=" "+Pe),Be=!1),ce+=Pe.replace(new RegExp("[^\\w\\s"+Ze+"_-]","g"),ne);return ge&&(ce=ce.replace(/(\w)(\S*)/g,function(ft,Ye,Ve){var Dt=Ye.toUpperCase()+(Ve!==null?Ve:"");return Object.keys(_e).indexOf(Dt.toLowerCase())<0?Dt:Dt.toLowerCase()})),ce=ce.replace(/\s+/g,ne).replace(new RegExp("\\"+ne+"+","g"),ne).replace(new RegExp("(^\\"+ne+"+|\\"+ne+"+$)","g"),""),ye&&ce.length>ye&&(Ae=ce.charAt(ye)===ne,ce=ce.slice(0,ye),Ae||(ce=ce.slice(0,ce.lastIndexOf(ne)))),!fe&&!ge&&(ce=ce.toLowerCase()),ce},J=function(se){return function(ne){return G(ne,se)}},Z=function(se){return se.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},ee=function(te,se){for(var re in se)if(se[re]===te)return!0};if(M.exports)M.exports=G,M.exports.createSlug=J;else try{if($.getSlug||$.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";$.getSlug=G,$.createSlug=J}catch{}})(commonjsGlobal)})(speakingurl$1);var speakingurlExports=speakingurl$1.exports,speakingurl=speakingurlExports;const speakingUrl=getDefaultExportFromCjs$1(speakingurl);var ea,Ro,Do,Oa,Mo,ul,Ll,Qc,Fl,eu,Bl,tu,zl,nu,jl,ru,Vl,iu;class Slug{constructor(){Oi(this,Ll);Oi(this,Fl);Oi(this,Bl);Oi(this,zl);Oi(this,jl);Oi(this,Vl);Il(this,"busy",!1);Oi(this,ea,void 0);Oi(this,Ro,"-");Oi(this,Do,void 0);Oi(this,Oa,void 0);Oi(this,Mo,void 0);Oi(this,ul,!1);Ao(this,Ll,Qc).call(this)}separatedBy($){return $&&Ji(this,Ro,$),this}in($){return $&&Ji(this,Do,$),this}async(){return Ji(this,ul,!0),Ji(this,Oa,_.debounce(function($,I){return Ao(this,Vl,iu).call(this).then(N=>$(N)).catch(N=>I(N))},300)),this}create($){return Ji(this,ea,($+"").trim()),Fr(this,ul)?Ao(this,jl,ru).call(this):Ao(this,Fl,eu).call(this)}}ea=new WeakMap,Ro=new WeakMap,Do=new WeakMap,Oa=new WeakMap,Mo=new WeakMap,ul=new WeakMap,Ll=new WeakSet,Qc=function(){const $=Statamic.$config.get("selectedSite"),N=Statamic.$config.get("sites").find(B=>B.handle===$);Ji(this,Do,(N==null?void 0:N.lang)??Statamic.$config.get("lang"))},Fl=new WeakSet,eu=function(){const $=Statamic.$config.get("asciiReplaceExtraSymbols"),I=Statamic.$config.get("charmap");let N=I[Fr(this,Do)]??{};return N["'"]="",N["’"]="",N[" - "]=" ",N["("]="",N[")"]="",N=$?Ao(this,Bl,tu).call(this,N,I):Ao(this,zl,nu).call(this,N,I),Fr(this,Ro)!=="-"&&(N["-"]=Fr(this,Ro)),speakingUrl(Fr(this,ea),{separator:Fr(this,Ro),lang:Fr(this,Do),custom:N,symbols:$})},Bl=new WeakSet,tu=function($,I){return{...$,...I.currency}},zl=new WeakSet,nu=function($,I){for(const N in I.currency_short)$[N]="";return $},jl=new WeakSet,ru=function(){var $;return Fr(this,ea)?(this.busy=!0,new Promise((I,N)=>Fr(this,Oa).call(this,I,N))):(($=Fr(this,Mo))==null||$.abort(),Fr(this,Oa).cancel(),this.busy=!1,Promise.resolve(""))},Vl=new WeakSet,iu=function(){const $={string:Fr(this,ea),separator:Fr(this,Ro),language:Fr(this,Do)};Fr(this,Mo)&&Fr(this,Mo).abort(),Ji(this,Mo,new AbortController);let I=!1;return axios$2.post(cp_url("slug"),$,{signal:Fr(this,Mo).signal}).then(N=>N.data).catch(N=>{if(axios$2.isCancel(N)){I=!0;return}throw N}).finally(()=>{I||(this.busy=!1)})};class Manager{make(){return new Slug}create($){return this.make().create($)}separatedBy($){return this.make().separatedBy($)}in($){return this.make().in($)}async(){return this.make().async()}}const echo=new Echo,bard=new Bard,keys$1=new Keys,hooks$1=new Hooks$1,fieldActions=new FieldActions$1,reveal=new Reveal,components=new Components,conditions=new FieldConditions$1,callbacks=new Callbacks,slug=new Manager,Statamic$1=new Vue$3({data(){return{bootingCallbacks:[],bootedCallbacks:[],darkMode:null}},computed:{$callbacks(){return callbacks},$components(){return components},$request(){return this.$axios},$echo(){return echo},$bard(){return bard},$hooks(){return hooks$1},$fieldActions(){return fieldActions},$reveal(){return reveal},$conditions(){return conditions},$keys(){return keys$1},$slug(){return slug},user(){return this.$config.get("user")}},methods:{booting(M){this.bootingCallbacks.push(M)},booted(M){this.bootedCallbacks.push(M)},app(M){this.$app=M},config(M){this.$store.commit("statamic/config",M)},start(){this.bootingCallbacks.forEach(M=>M(this)),this.bootingCallbacks=[],this.$app=new Vue$3(this.$app),this.$components.$root=this.$app,this.bootedCallbacks.forEach(M=>M(this)),this.bootedCallbacks=[]},component(M,$){Vue$3.component(M,$)}}});var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(M){queueJob(M)}function queueJob(M){queue.includes(M)||queue.push(M),queueFlush()}function dequeueJob(M){let $=queue.indexOf(M);$!==-1&&$>lastFlushedIndex&&queue.splice($,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let M=0;M<queue.length;M++)queue[M](),lastFlushedIndex=M;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect,release,raw,shouldSchedule=!0;function disableEffectScheduling(M){shouldSchedule=!1,M(),shouldSchedule=!0}function setReactivityEngine(M){reactive=M.reactive,release=M.release,effect=$=>M.effect($,{scheduler:I=>{shouldSchedule?scheduler(I):I()}}),raw=M.raw}function overrideEffect(M){effect=M}function elementBoundEffect(M){let $=()=>{};return[N=>{let B=effect(N);return M._x_effects||(M._x_effects=new Set,M._x_runEffects=()=>{M._x_effects.forEach(j=>j())}),M._x_effects.add(B),$=()=>{B!==void 0&&(M._x_effects.delete(B),release(B))},B},()=>{$()}]}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(M){onElAddeds.push(M)}function onElRemoved(M,$){typeof $=="function"?(M._x_cleanups||(M._x_cleanups=[]),M._x_cleanups.push($)):($=M,onElRemoveds.push($))}function onAttributesAdded(M){onAttributeAddeds.push(M)}function onAttributeRemoved(M,$,I){M._x_attributeCleanups||(M._x_attributeCleanups={}),M._x_attributeCleanups[$]||(M._x_attributeCleanups[$]=[]),M._x_attributeCleanups[$].push(I)}function cleanupAttributes(M,$){M._x_attributeCleanups&&Object.entries(M._x_attributeCleanups).forEach(([I,N])=>{($===void 0||$.includes(I))&&(N.forEach(B=>B()),delete M._x_attributeCleanups[I])})}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var recordQueue=[],willProcessRecordQueue=!1;function flushObserver(){recordQueue=recordQueue.concat(observer.takeRecords()),recordQueue.length&&!willProcessRecordQueue&&(willProcessRecordQueue=!0,queueMicrotask(()=>{processRecordQueue(),willProcessRecordQueue=!1}))}function processRecordQueue(){onMutate(recordQueue),recordQueue.length=0}function mutateDom(M){if(!currentlyObserving)return M();stopObservingMutations();let $=M();return startObservingMutations(),$}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(M){if(isCollecting){deferredMutations=deferredMutations.concat(M);return}let $=[],I=[],N=new Map,B=new Map;for(let j=0;j<M.length;j++)if(!M[j].target._x_ignoreMutationObserver&&(M[j].type==="childList"&&(M[j].addedNodes.forEach(U=>U.nodeType===1&&$.push(U)),M[j].removedNodes.forEach(U=>U.nodeType===1&&I.push(U))),M[j].type==="attributes")){let U=M[j].target,q=M[j].attributeName,Y=M[j].oldValue,K=()=>{N.has(U)||N.set(U,[]),N.get(U).push({name:q,value:U.getAttribute(q)})},G=()=>{B.has(U)||B.set(U,[]),B.get(U).push(q)};U.hasAttribute(q)&&Y===null?K():U.hasAttribute(q)?(G(),K()):G()}B.forEach((j,U)=>{cleanupAttributes(U,j)}),N.forEach((j,U)=>{onAttributeAddeds.forEach(q=>q(U,j))});for(let j of I)if(!$.includes(j)&&(onElRemoveds.forEach(U=>U(j)),j._x_cleanups))for(;j._x_cleanups.length;)j._x_cleanups.pop()();$.forEach(j=>{j._x_ignoreSelf=!0,j._x_ignore=!0});for(let j of $)I.includes(j)||j.isConnected&&(delete j._x_ignoreSelf,delete j._x_ignore,onElAddeds.forEach(U=>U(j)),j._x_ignore=!0,j._x_ignoreSelf=!0);$.forEach(j=>{delete j._x_ignoreSelf,delete j._x_ignore}),$=null,I=null,N=null,B=null}function scope(M){return mergeProxies(closestDataStack(M))}function addScopeToNode(M,$,I){return M._x_dataStack=[$,...closestDataStack(I||M)],()=>{M._x_dataStack=M._x_dataStack.filter(N=>N!==$)}}function refreshScope(M,$){let I=M._x_dataStack[0];Object.entries($).forEach(([N,B])=>{I[N]=B})}function closestDataStack(M){return M._x_dataStack?M._x_dataStack:typeof ShadowRoot=="function"&&M instanceof ShadowRoot?closestDataStack(M.host):M.parentNode?closestDataStack(M.parentNode):[]}function mergeProxies(M){let $=new Proxy({},{ownKeys:()=>Array.from(new Set(M.flatMap(I=>Object.keys(I)))),has:(I,N)=>M.some(B=>B.hasOwnProperty(N)),get:(I,N)=>(M.find(B=>{if(B.hasOwnProperty(N)){let j=Object.getOwnPropertyDescriptor(B,N);if(j.get&&j.get._x_alreadyBound||j.set&&j.set._x_alreadyBound)return!0;if((j.get||j.set)&&j.enumerable){let U=j.get,q=j.set,Y=j;U=U&&U.bind($),q=q&&q.bind($),U&&(U._x_alreadyBound=!0),q&&(q._x_alreadyBound=!0),Object.defineProperty(B,N,{...Y,get:U,set:q})}return!0}return!1})||{})[N],set:(I,N,B)=>{let j=M.find(U=>U.hasOwnProperty(N));return j?j[N]=B:M[M.length-1][N]=B,!0}});return $}function initInterceptors(M){let $=N=>typeof N=="object"&&!Array.isArray(N)&&N!==null,I=(N,B="")=>{Object.entries(Object.getOwnPropertyDescriptors(N)).forEach(([j,{value:U,enumerable:q}])=>{if(q===!1||U===void 0)return;let Y=B===""?j:`${B}.${j}`;typeof U=="object"&&U!==null&&U._x_interceptor?N[j]=U.initialize(M,Y,j):$(U)&&U!==N&&!(U instanceof Element)&&I(U,Y)})};return I(M)}function interceptor(M,$=()=>{}){let I={initialValue:void 0,_x_interceptor:!0,initialize(N,B,j){return M(this.initialValue,()=>get$4(N,B),U=>set$2(N,B,U),B,j)}};return $(I),N=>{if(typeof N=="object"&&N!==null&&N._x_interceptor){let B=I.initialize.bind(I);I.initialize=(j,U,q)=>{let Y=N.initialize(j,U,q);return I.initialValue=Y,B(j,U,q)}}else I.initialValue=N;return I}}function get$4(M,$){return $.split(".").reduce((I,N)=>I[N],M)}function set$2(M,$,I){if(typeof $=="string"&&($=$.split(".")),$.length===1)M[$[0]]=I;else{if($.length===0)throw error;return M[$[0]]||(M[$[0]]={}),set$2(M[$[0]],$.slice(1),I)}}var magics={};function magic(M,$){magics[M]=$}function injectMagics(M,$){return Object.entries(magics).forEach(([I,N])=>{Object.defineProperty(M,`$${I}`,{get(){let[B,j]=getElementBoundUtilities($);return B={interceptor,...B},onElRemoved($,j),N($,B)},enumerable:!1})}),M}function tryCatch(M,$,I,...N){try{return I(...N)}catch(B){handleError(B,M,$)}}function handleError(M,$,I=void 0){Object.assign(M,{el:$,expression:I}),console.warn(`Alpine Expression Error: ${M.message} ${I?'Expression: "'+I+`" `:""}`,$),setTimeout(()=>{throw M},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(M){let $=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1,M(),shouldAutoEvaluateFunctions=$}function evaluate(M,$,I={}){let N;return evaluateLater(M,$)(B=>N=B,I),N}function evaluateLater(...M){return theEvaluatorFunction(...M)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(M){theEvaluatorFunction=M}function normalEvaluator(M,$){let I={};injectMagics(I,M);let N=[I,...closestDataStack(M)],B=typeof $=="function"?generateEvaluatorFromFunction(N,$):generateEvaluatorFromString(N,$,M);return tryCatch.bind(null,M,$,B)}function generateEvaluatorFromFunction(M,$){return(I=()=>{},{scope:N={},params:B=[]}={})=>{let j=$.apply(mergeProxies([N,...M]),B);runIfTypeOfFunction(I,j)}}var evaluatorMemo={};function generateFunctionFromString(M,$){if(evaluatorMemo[M])return evaluatorMemo[M];let I=Object.getPrototypeOf(async function(){}).constructor,N=/^[\n\s]*if.*\(.*\)/.test(M)||/^(let|const)\s/.test(M)?`(async()=>{ ${M} })()`:M,j=(()=>{try{return new I(["__self","scope"],`with (scope) { __self.result = ${N} }; __self.finished = true; return __self.result;`)}catch(U){return handleError(U,$,M),Promise.resolve()}})();return evaluatorMemo[M]=j,j}function generateEvaluatorFromString(M,$,I){let N=generateFunctionFromString($,I);return(B=()=>{},{scope:j={},params:U=[]}={})=>{N.result=void 0,N.finished=!1;let q=mergeProxies([j,...M]);if(typeof N=="function"){let Y=N(N,q).catch(K=>handleError(K,I,$));N.finished?(runIfTypeOfFunction(B,N.result,q,U,I),N.result=void 0):Y.then(K=>{runIfTypeOfFunction(B,K,q,U,I)}).catch(K=>handleError(K,I,$)).finally(()=>N.result=void 0)}}}function runIfTypeOfFunction(M,$,I,N,B){if(shouldAutoEvaluateFunctions&&typeof $=="function"){let j=$.apply(I,N);j instanceof Promise?j.then(U=>runIfTypeOfFunction(M,U,I,N)).catch(U=>handleError(U,B,$)):M(j)}else typeof $=="object"&&$ instanceof Promise?$.then(j=>M(j)):M($)}var prefixAsString="x-";function prefix(M=""){return prefixAsString+M}function setPrefix(M){prefixAsString=M}var directiveHandlers={};function directive$1(M,$){return directiveHandlers[M]=$,{before(I){if(!directiveHandlers[I]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const N=directiveOrder.indexOf(I);directiveOrder.splice(N>=0?N:directiveOrder.indexOf("DEFAULT"),0,M)}}}function directives$1(M,$,I){if($=Array.from($),M._x_virtualDirectives){let j=Object.entries(M._x_virtualDirectives).map(([q,Y])=>({name:q,value:Y})),U=attributesOnly(j);j=j.map(q=>U.find(Y=>Y.name===q.name)?{name:`x-bind:${q.name}`,value:`"${q.value}"`}:q),$=$.concat(j)}let N={};return $.map(toTransformedAttributes((j,U)=>N[j]=U)).filter(outNonAlpineAttributes).map(toParsedDirectives(N,I)).sort(byPriority).map(j=>getDirectiveHandler(M,j))}function attributesOnly(M){return Array.from(M).map(toTransformedAttributes()).filter($=>!outNonAlpineAttributes($))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(M){isDeferringHandlers=!0;let $=Symbol();currentHandlerStackKey=$,directiveHandlerStacks.set($,[]);let I=()=>{for(;directiveHandlerStacks.get($).length;)directiveHandlerStacks.get($).shift()();directiveHandlerStacks.delete($)},N=()=>{isDeferringHandlers=!1,I()};M(I),N()}function getElementBoundUtilities(M){let $=[],I=q=>$.push(q),[N,B]=elementBoundEffect(M);return $.push(B),[{Alpine:alpine_default,effect:N,cleanup:I,evaluateLater:evaluateLater.bind(evaluateLater,M),evaluate:evaluate.bind(evaluate,M)},()=>$.forEach(q=>q())]}function getDirectiveHandler(M,$){let I=()=>{},N=directiveHandlers[$.type]||I,[B,j]=getElementBoundUtilities(M);onAttributeRemoved(M,$.original,j);let U=()=>{M._x_ignore||M._x_ignoreSelf||(N.inline&&N.inline(M,$,B),N=N.bind(N,M,$,B),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(N):N())};return U.runCleanups=j,U}var startingWith=(M,$)=>({name:I,value:N})=>(I.startsWith(M)&&(I=I.replace(M,$)),{name:I,value:N}),into=M=>M;function toTransformedAttributes(M=()=>{}){return({name:$,value:I})=>{let{name:N,value:B}=attributeTransformers.reduce((j,U)=>U(j),{name:$,value:I});return N!==$&&M(N,$),{name:N,value:B}}}var attributeTransformers=[];function mapAttributes(M){attributeTransformers.push(M)}function outNonAlpineAttributes({name:M}){return alpineAttributeRegex().test(M)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(M,$){return({name:I,value:N})=>{let B=I.match(alpineAttributeRegex()),j=I.match(/:([a-zA-Z0-9\-:]+)/),U=I.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],q=$||M[I]||I;return{type:B?B[1]:null,value:j?j[1]:null,modifiers:U.map(Y=>Y.replace(".","")),expression:N,original:q}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(M,$){let I=directiveOrder.indexOf(M.type)===-1?DEFAULT:M.type,N=directiveOrder.indexOf($.type)===-1?DEFAULT:$.type;return directiveOrder.indexOf(I)-directiveOrder.indexOf(N)}function dispatch(M,$,I={}){M.dispatchEvent(new CustomEvent($,{detail:I,bubbles:!0,composed:!0,cancelable:!0}))}function walk(M,$){if(typeof ShadowRoot=="function"&&M instanceof ShadowRoot){Array.from(M.children).forEach(B=>walk(B,$));return}let I=!1;if($(M,()=>I=!0),I)return;let N=M.firstElementChild;for(;N;)walk(N,$),N=N.nextElementSibling}function warn$3(M,...$){console.warn(`Alpine Warning: ${M}`,...$)}function start(){document.body||warn$3("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded($=>initTree($,walk)),onElRemoved($=>destroyTree($)),onAttributesAdded(($,I)=>{directives$1($,I).forEach(N=>N())});let M=$=>!closestRoot($.parentElement,!0);Array.from(document.querySelectorAll(allSelectors())).filter(M).forEach($=>{initTree($)}),dispatch(document,"alpine:initialized")}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(M=>M())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(M=>M())}function addRootSelector(M){rootSelectorCallbacks.push(M)}function addInitSelector(M){initSelectorCallbacks.push(M)}function closestRoot(M,$=!1){return findClosest(M,I=>{if(($?allSelectors():rootSelectors()).some(B=>I.matches(B)))return!0})}function findClosest(M,$){if(M){if($(M))return M;if(M._x_teleportBack&&(M=M._x_teleportBack),!!M.parentElement)return findClosest(M.parentElement,$)}}function isRoot(M){return rootSelectors().some($=>M.matches($))}var initInterceptors2=[];function interceptInit(M){initInterceptors2.push(M)}function initTree(M,$=walk,I=()=>{}){deferHandlingDirectives(()=>{$(M,(N,B)=>{I(N,B),initInterceptors2.forEach(j=>j(N,B)),directives$1(N,N.attributes).forEach(j=>j()),N._x_ignore&&B()})})}function destroyTree(M){walk(M,$=>cleanupAttributes($))}var tickStack=[],isHolding=!1;function nextTick(M=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise($=>{tickStack.push(()=>{M(),$()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(M,$){return Array.isArray($)?setClassesFromString(M,$.join(" ")):typeof $=="object"&&$!==null?setClassesFromObject(M,$):typeof $=="function"?setClasses(M,$()):setClassesFromString(M,$)}function setClassesFromString(M,$){let I=B=>B.split(" ").filter(j=>!M.classList.contains(j)).filter(Boolean),N=B=>(M.classList.add(...B),()=>{M.classList.remove(...B)});return $=$===!0?$="":$||"",N(I($))}function setClassesFromObject(M,$){let I=q=>q.split(" ").filter(Boolean),N=Object.entries($).flatMap(([q,Y])=>Y?I(q):!1).filter(Boolean),B=Object.entries($).flatMap(([q,Y])=>Y?!1:I(q)).filter(Boolean),j=[],U=[];return B.forEach(q=>{M.classList.contains(q)&&(M.classList.remove(q),U.push(q))}),N.forEach(q=>{M.classList.contains(q)||(M.classList.add(q),j.push(q))}),()=>{U.forEach(q=>M.classList.add(q)),j.forEach(q=>M.classList.remove(q))}}function setStyles(M,$){return typeof $=="object"&&$!==null?setStylesFromObject(M,$):setStylesFromString(M,$)}function setStylesFromObject(M,$){let I={};return Object.entries($).forEach(([N,B])=>{I[N]=M.style[N],N.startsWith("--")||(N=kebabCase(N)),M.style.setProperty(N,B)}),setTimeout(()=>{M.style.length===0&&M.removeAttribute("style")}),()=>{setStyles(M,I)}}function setStylesFromString(M,$){let I=M.getAttribute("style",$);return M.setAttribute("style",$),()=>{M.setAttribute("style",I||"")}}function kebabCase(M){return M.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(M,$=()=>{}){let I=!1;return function(){I?$.apply(this,arguments):(I=!0,M.apply(this,arguments))}}directive$1("transition",(M,{value:$,modifiers:I,expression:N},{evaluate:B})=>{typeof N=="function"&&(N=B(N)),N?registerTransitionsFromClassString(M,N,$):registerTransitionsFromHelper(M,I,$)});function registerTransitionsFromClassString(M,$,I){registerTransitionObject(M,setClasses,""),{enter:B=>{M._x_transition.enter.during=B},"enter-start":B=>{M._x_transition.enter.start=B},"enter-end":B=>{M._x_transition.enter.end=B},leave:B=>{M._x_transition.leave.during=B},"leave-start":B=>{M._x_transition.leave.start=B},"leave-end":B=>{M._x_transition.leave.end=B}}[I]($)}function registerTransitionsFromHelper(M,$,I){registerTransitionObject(M,setStyles);let N=!$.includes("in")&&!$.includes("out")&&!I,B=N||$.includes("in")||["enter"].includes(I),j=N||$.includes("out")||["leave"].includes(I);$.includes("in")&&!N&&($=$.filter((ne,ce)=>ce<$.indexOf("out"))),$.includes("out")&&!N&&($=$.filter((ne,ce)=>ce>$.indexOf("out")));let U=!$.includes("opacity")&&!$.includes("scale"),q=U||$.includes("opacity"),Y=U||$.includes("scale"),K=q?0:1,G=Y?modifierValue($,"scale",95)/100:1,J=modifierValue($,"delay",0),Z=modifierValue($,"origin","center"),ee="opacity, transform",te=modifierValue($,"duration",150)/1e3,se=modifierValue($,"duration",75)/1e3,re="cubic-bezier(0.4, 0.0, 0.2, 1)";B&&(M._x_transition.enter.during={transformOrigin:Z,transitionDelay:J,transitionProperty:ee,transitionDuration:`${te}s`,transitionTimingFunction:re},M._x_transition.enter.start={opacity:K,transform:`scale(${G})`},M._x_transition.enter.end={opacity:1,transform:"scale(1)"}),j&&(M._x_transition.leave.during={transformOrigin:Z,transitionDelay:J,transitionProperty:ee,transitionDuration:`${se}s`,transitionTimingFunction:re},M._x_transition.leave.start={opacity:1,transform:"scale(1)"},M._x_transition.leave.end={opacity:K,transform:`scale(${G})`})}function registerTransitionObject(M,$,I={}){M._x_transition||(M._x_transition={enter:{during:I,start:I,end:I},leave:{during:I,start:I,end:I},in(N=()=>{},B=()=>{}){transition(M,$,{during:this.enter.during,start:this.enter.start,end:this.enter.end},N,B)},out(N=()=>{},B=()=>{}){transition(M,$,{during:this.leave.during,start:this.leave.start,end:this.leave.end},N,B)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(M,$,I,N){const B=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let j=()=>B(I);if($){M._x_transition&&(M._x_transition.enter||M._x_transition.leave)?M._x_transition.enter&&(Object.entries(M._x_transition.enter.during).length||Object.entries(M._x_transition.enter.start).length||Object.entries(M._x_transition.enter.end).length)?M._x_transition.in(I):j():M._x_transition?M._x_transition.in(I):j();return}M._x_hidePromise=M._x_transition?new Promise((U,q)=>{M._x_transition.out(()=>{},()=>U(N)),M._x_transitioning.beforeCancel(()=>q({isFromCancelledTransition:!0}))}):Promise.resolve(N),queueMicrotask(()=>{let U=closestHide(M);U?(U._x_hideChildren||(U._x_hideChildren=[]),U._x_hideChildren.push(M)):B(()=>{let q=Y=>{let K=Promise.all([Y._x_hidePromise,...(Y._x_hideChildren||[]).map(q)]).then(([G])=>G());return delete Y._x_hidePromise,delete Y._x_hideChildren,K};q(M).catch(Y=>{if(!Y.isFromCancelledTransition)throw Y})})})};function closestHide(M){let $=M.parentNode;if($)return $._x_hidePromise?$:closestHide($)}function transition(M,$,{during:I,start:N,end:B}={},j=()=>{},U=()=>{}){if(M._x_transitioning&&M._x_transitioning.cancel(),Object.keys(I).length===0&&Object.keys(N).length===0&&Object.keys(B).length===0){j(),U();return}let q,Y,K;performTransition(M,{start(){q=$(M,N)},during(){Y=$(M,I)},before:j,end(){q(),K=$(M,B)},after:U,cleanup(){Y(),K()}})}function performTransition(M,$){let I,N,B,j=once(()=>{mutateDom(()=>{I=!0,N||$.before(),B||($.end(),releaseNextTicks()),$.after(),M.isConnected&&$.cleanup(),delete M._x_transitioning})});M._x_transitioning={beforeCancels:[],beforeCancel(U){this.beforeCancels.push(U)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();j()}),finish:j},mutateDom(()=>{$.start(),$.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(I)return;let U=Number(getComputedStyle(M).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,q=Number(getComputedStyle(M).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;U===0&&(U=Number(getComputedStyle(M).animationDuration.replace("s",""))*1e3),mutateDom(()=>{$.before()}),N=!0,requestAnimationFrame(()=>{I||(mutateDom(()=>{$.end()}),releaseNextTicks(),setTimeout(M._x_transitioning.finish,U+q),B=!0)})})}function modifierValue(M,$,I){if(M.indexOf($)===-1)return I;const N=M[M.indexOf($)+1];if(!N||$==="scale"&&isNaN(N))return I;if($==="duration"){let B=N.match(/([0-9]+)ms/);if(B)return B[1]}return $==="origin"&&["top","right","left","center","bottom"].includes(M[M.indexOf($)+2])?[N,M[M.indexOf($)+2]].join(" "):N}var isCloning=!1;function skipDuringClone(M,$=()=>{}){return(...I)=>isCloning?$(...I):M(...I)}function onlyDuringClone(M){return(...$)=>isCloning&&M(...$)}function clone$2(M,$){$._x_dataStack||($._x_dataStack=M._x_dataStack),isCloning=!0,dontRegisterReactiveSideEffects(()=>{cloneTree($)}),isCloning=!1}function cloneTree(M){let $=!1;initTree(M,(N,B)=>{walk(N,(j,U)=>{if($&&isRoot(j))return U();$=!0,B(j,U)})})}function dontRegisterReactiveSideEffects(M){let $=effect;overrideEffect((I,N)=>{let B=$(I);return release(B),()=>{}}),M(),overrideEffect($)}function bind$4(M,$,I,N=[]){switch(M._x_bindings||(M._x_bindings=reactive({})),M._x_bindings[$]=I,$=N.includes("camel")?camelCase($):$,$){case"value":bindInputValue(M,I);break;case"style":bindStyles(M,I);break;case"class":bindClasses(M,I);break;default:bindAttribute(M,$,I);break}}function bindInputValue(M,$){if(M.type==="radio")M.attributes.value===void 0&&(M.value=$),window.fromModel&&(M.checked=checkedAttrLooseCompare(M.value,$));else if(M.type==="checkbox")Number.isInteger($)?M.value=$:!Number.isInteger($)&&!Array.isArray($)&&typeof $!="boolean"&&![null,void 0].includes($)?M.value=String($):Array.isArray($)?M.checked=$.some(I=>checkedAttrLooseCompare(I,M.value)):M.checked=!!$;else if(M.tagName==="SELECT")updateSelect(M,$);else{if(M.value===$)return;M.value=$}}function bindClasses(M,$){M._x_undoAddedClasses&&M._x_undoAddedClasses(),M._x_undoAddedClasses=setClasses(M,$)}function bindStyles(M,$){M._x_undoAddedStyles&&M._x_undoAddedStyles(),M._x_undoAddedStyles=setStyles(M,$)}function bindAttribute(M,$,I){[null,void 0,!1].includes(I)&&attributeShouldntBePreservedIfFalsy($)?M.removeAttribute($):(isBooleanAttr($)&&(I=$),setIfChanged(M,$,I))}function setIfChanged(M,$,I){M.getAttribute($)!=I&&M.setAttribute($,I)}function updateSelect(M,$){const I=[].concat($).map(N=>N+"");Array.from(M.options).forEach(N=>{N.selected=I.includes(N.value)})}function camelCase(M){return M.toLowerCase().replace(/-(\w)/g,($,I)=>I.toUpperCase())}function checkedAttrLooseCompare(M,$){return M==$}function isBooleanAttr(M){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(M)}function attributeShouldntBePreservedIfFalsy(M){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(M)}function getBinding(M,$,I){if(M._x_bindings&&M._x_bindings[$]!==void 0)return M._x_bindings[$];let N=M.getAttribute($);return N===null?typeof I=="function"?I():I:N===""?!0:isBooleanAttr($)?!![$,"true"].includes(N):N}function debounce(M,$){var I;return function(){var N=this,B=arguments,j=function(){I=null,M.apply(N,B)};clearTimeout(I),I=setTimeout(j,$)}}function throttle$1(M,$){let I;return function(){let N=this,B=arguments;I||(M.apply(N,B),I=!0,setTimeout(()=>I=!1,$))}}function plugin$2(M){M(alpine_default)}var stores={},isReactive=!1;function store(M,$){if(isReactive||(stores=reactive(stores),isReactive=!0),$===void 0)return stores[M];stores[M]=$,typeof $=="object"&&$!==null&&$.hasOwnProperty("init")&&typeof $.init=="function"&&stores[M].init(),initInterceptors(stores[M])}function getStores(){return stores}var binds={};function bind2(M,$){let I=typeof $!="function"?()=>$:$;M instanceof Element?applyBindingsObject(M,I()):binds[M]=I}function injectBindingProviders(M){return Object.entries(binds).forEach(([$,I])=>{Object.defineProperty(M,$,{get(){return(...N)=>I(...N)}})}),M}function applyBindingsObject(M,$,I){let N=[];for(;N.length;)N.pop()();let B=Object.entries($).map(([U,q])=>({name:U,value:q})),j=attributesOnly(B);B=B.map(U=>j.find(q=>q.name===U.name)?{name:`x-bind:${U.name}`,value:`"${U.value}"`}:U),directives$1(M,B,I).map(U=>{N.push(U.runCleanups),U()})}var datas={};function data(M,$){datas[M]=$}function injectDataProviders(M,$){return Object.entries(datas).forEach(([I,N])=>{Object.defineProperty(M,I,{get(){return(...B)=>N.bind($)(...B)},enumerable:!1})}),M}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect},get raw(){return raw},version:"3.12.0",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,setEvaluator,mergeProxies,findClosest,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive:directive$1,throttle:throttle$1,debounce,evaluate,initTree,nextTick,prefixed:prefix,prefix:setPrefix,plugin:plugin$2,magic,store,start,clone:clone$2,bound:getBinding,$data:scope,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(M,$){const I=Object.create(null),N=M.split(",");for(let B=0;B<N.length;B++)I[N[B]]=!0;return $?B=>!!I[B.toLowerCase()]:B=>!!I[B]}var EMPTY_OBJ=Object.freeze({}),extend$3=Object.assign,hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn$4=(M,$)=>hasOwnProperty.call(M,$),isArray$7=Array.isArray,isMap$1=M=>toTypeString(M)==="[object Map]",isString$4=M=>typeof M=="string",isSymbol$1=M=>typeof M=="symbol",isObject$4=M=>M!==null&&typeof M=="object",objectToString$1=Object.prototype.toString,toTypeString=M=>objectToString$1.call(M),toRawType=M=>toTypeString(M).slice(8,-1),isIntegerKey=M=>isString$4(M)&&M!=="NaN"&&M[0]!=="-"&&""+parseInt(M,10)===M,cacheStringFunction=M=>{const $=Object.create(null);return I=>$[I]||($[I]=M(I))},capitalize=cacheStringFunction(M=>M.charAt(0).toUpperCase()+M.slice(1)),hasChanged=(M,$)=>M!==$&&(M===M||$===$),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(M){return M&&M._isEffect===!0}function effect2(M,$=EMPTY_OBJ){isEffect(M)&&(M=M.raw);const I=createReactiveEffect(M,$);return $.lazy||I(),I}function stop(M){M.active&&(cleanup(M),M.options.onStop&&M.options.onStop(),M.active=!1)}var uid=0;function createReactiveEffect(M,$){const I=function(){if(!I.active)return M();if(!effectStack.includes(I)){cleanup(I);try{return enableTracking(),effectStack.push(I),activeEffect=I,M()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return I.id=uid++,I.allowRecurse=!!$.allowRecurse,I._isEffect=!0,I.active=!0,I.raw=M,I.deps=[],I.options=$,I}function cleanup(M){const{deps:$}=M;if($.length){for(let I=0;I<$.length;I++)$[I].delete(M);$.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const M=trackStack.pop();shouldTrack=M===void 0?!0:M}function track(M,$,I){if(!shouldTrack||activeEffect===void 0)return;let N=targetMap.get(M);N||targetMap.set(M,N=new Map);let B=N.get(I);B||N.set(I,B=new Set),B.has(activeEffect)||(B.add(activeEffect),activeEffect.deps.push(B),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:M,type:$,key:I}))}function trigger(M,$,I,N,B,j){const U=targetMap.get(M);if(!U)return;const q=new Set,Y=G=>{G&&G.forEach(J=>{(J!==activeEffect||J.allowRecurse)&&q.add(J)})};if($==="clear")U.forEach(Y);else if(I==="length"&&isArray$7(M))U.forEach((G,J)=>{(J==="length"||J>=N)&&Y(G)});else switch(I!==void 0&&Y(U.get(I)),$){case"add":isArray$7(M)?isIntegerKey(I)&&Y(U.get("length")):(Y(U.get(ITERATE_KEY)),isMap$1(M)&&Y(U.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$7(M)||(Y(U.get(ITERATE_KEY)),isMap$1(M)&&Y(U.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(M)&&Y(U.get(ITERATE_KEY));break}const K=G=>{G.options.onTrigger&&G.options.onTrigger({effect:G,target:M,key:I,type:$,newValue:N,oldValue:B,oldTarget:j}),G.options.scheduler?G.options.scheduler(G):G()};q.forEach(K)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(M=>Symbol[M]).filter(isSymbol$1)),get2=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations={};["includes","indexOf","lastIndexOf"].forEach(M=>{const $=Array.prototype[M];arrayInstrumentations[M]=function(...I){const N=toRaw(this);for(let j=0,U=this.length;j<U;j++)track(N,"get",j+"");const B=$.apply(N,I);return B===-1||B===!1?$.apply(N,I.map(toRaw)):B}});["push","pop","shift","unshift","splice"].forEach(M=>{const $=Array.prototype[M];arrayInstrumentations[M]=function(...I){pauseTracking();const N=$.apply(this,I);return resetTracking(),N}});function createGetter(M=!1,$=!1){return function(N,B,j){if(B==="__v_isReactive")return!M;if(B==="__v_isReadonly")return M;if(B==="__v_raw"&&j===(M?$?shallowReadonlyMap:readonlyMap:$?shallowReactiveMap:reactiveMap).get(N))return N;const U=isArray$7(N);if(!M&&U&&hasOwn$4(arrayInstrumentations,B))return Reflect.get(arrayInstrumentations,B,j);const q=Reflect.get(N,B,j);return(isSymbol$1(B)?builtInSymbols.has(B):isNonTrackableKeys(B))||(M||track(N,"get",B),$)?q:isRef(q)?!U||!isIntegerKey(B)?q.value:q:isObject$4(q)?M?readonly(q):reactive2(q):q}}var set2=createSetter(),shallowSet=createSetter(!0);function createSetter(M=!1){return function(I,N,B,j){let U=I[N];if(!M&&(B=toRaw(B),U=toRaw(U),!isArray$7(I)&&isRef(U)&&!isRef(B)))return U.value=B,!0;const q=isArray$7(I)&&isIntegerKey(N)?Number(N)<I.length:hasOwn$4(I,N),Y=Reflect.set(I,N,B,j);return I===toRaw(j)&&(q?hasChanged(B,U)&&trigger(I,"set",N,B,U):trigger(I,"add",N,B)),Y}}function deleteProperty(M,$){const I=hasOwn$4(M,$),N=M[$],B=Reflect.deleteProperty(M,$);return B&&I&&trigger(M,"delete",$,void 0,N),B}function has$4(M,$){const I=Reflect.has(M,$);return(!isSymbol$1($)||!builtInSymbols.has($))&&track(M,"has",$),I}function ownKeys(M){return track(M,"iterate",isArray$7(M)?"length":ITERATE_KEY),Reflect.ownKeys(M)}var mutableHandlers={get:get2,set:set2,deleteProperty,has:has$4,ownKeys},readonlyHandlers={get:readonlyGet,set(M,$){return console.warn(`Set operation on key "${String($)}" failed: target is readonly.`,M),!0},deleteProperty(M,$){return console.warn(`Delete operation on key "${String($)}" failed: target is readonly.`,M),!0}};extend$3({},mutableHandlers,{get:shallowGet,set:shallowSet});extend$3({},readonlyHandlers,{get:shallowReadonlyGet});var toReactive=M=>isObject$4(M)?reactive2(M):M,toReadonly=M=>isObject$4(M)?readonly(M):M,toShallow=M=>M,getProto$1=M=>Reflect.getPrototypeOf(M);function get$1$1(M,$,I=!1,N=!1){M=M.__v_raw;const B=toRaw(M),j=toRaw($);$!==j&&!I&&track(B,"get",$),!I&&track(B,"get",j);const{has:U}=getProto$1(B),q=N?toShallow:I?toReadonly:toReactive;if(U.call(B,$))return q(M.get($));if(U.call(B,j))return q(M.get(j));M!==B&&M.get($)}function has$1$1(M,$=!1){const I=this.__v_raw,N=toRaw(I),B=toRaw(M);return M!==B&&!$&&track(N,"has",M),!$&&track(N,"has",B),M===B?I.has(M):I.has(M)||I.has(B)}function size$1(M,$=!1){return M=M.__v_raw,!$&&track(toRaw(M),"iterate",ITERATE_KEY),Reflect.get(M,"size",M)}function add$2(M){M=toRaw(M);const $=toRaw(this);return getProto$1($).has.call($,M)||($.add(M),trigger($,"add",M,M)),this}function set$1$1(M,$){$=toRaw($);const I=toRaw(this),{has:N,get:B}=getProto$1(I);let j=N.call(I,M);j?checkIdentityKeys(I,N,M):(M=toRaw(M),j=N.call(I,M));const U=B.call(I,M);return I.set(M,$),j?hasChanged($,U)&&trigger(I,"set",M,$,U):trigger(I,"add",M,$),this}function deleteEntry(M){const $=toRaw(this),{has:I,get:N}=getProto$1($);let B=I.call($,M);B?checkIdentityKeys($,I,M):(M=toRaw(M),B=I.call($,M));const j=N?N.call($,M):void 0,U=$.delete(M);return B&&trigger($,"delete",M,void 0,j),U}function clear(){const M=toRaw(this),$=M.size!==0,I=isMap$1(M)?new Map(M):new Set(M),N=M.clear();return $&&trigger(M,"clear",void 0,void 0,I),N}function createForEach(M,$){return function(N,B){const j=this,U=j.__v_raw,q=toRaw(U),Y=$?toShallow:M?toReadonly:toReactive;return!M&&track(q,"iterate",ITERATE_KEY),U.forEach((K,G)=>N.call(B,Y(K),Y(G),j))}}function createIterableMethod(M,$,I){return function(...N){const B=this.__v_raw,j=toRaw(B),U=isMap$1(j),q=M==="entries"||M===Symbol.iterator&&U,Y=M==="keys"&&U,K=B[M](...N),G=I?toShallow:$?toReadonly:toReactive;return!$&&track(j,"iterate",Y?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:J,done:Z}=K.next();return Z?{value:J,done:Z}:{value:q?[G(J[0]),G(J[1])]:G(J),done:Z}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(M){return function(...$){{const I=$[0]?`on key "${$[0]}" `:"";console.warn(`${capitalize(M)} operation ${I}failed: target is readonly.`,toRaw(this))}return M==="delete"?!1:this}}var mutableInstrumentations={get(M){return get$1$1(this,M)},get size(){return size$1(this)},has:has$1$1,add:add$2,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},shallowInstrumentations={get(M){return get$1$1(this,M,!1,!0)},get size(){return size$1(this)},has:has$1$1,add:add$2,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},readonlyInstrumentations={get(M){return get$1$1(this,M,!0)},get size(){return size$1(this,!0)},has(M){return has$1$1.call(this,M,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},shallowReadonlyInstrumentations={get(M){return get$1$1(this,M,!0,!0)},get size(){return size$1(this,!0)},has(M){return has$1$1.call(this,M,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)},iteratorMethods=["keys","values","entries",Symbol.iterator];iteratorMethods.forEach(M=>{mutableInstrumentations[M]=createIterableMethod(M,!1,!1),readonlyInstrumentations[M]=createIterableMethod(M,!0,!1),shallowInstrumentations[M]=createIterableMethod(M,!1,!0),shallowReadonlyInstrumentations[M]=createIterableMethod(M,!0,!0)});function createInstrumentationGetter(M,$){const I=$?M?shallowReadonlyInstrumentations:shallowInstrumentations:M?readonlyInstrumentations:mutableInstrumentations;return(N,B,j)=>B==="__v_isReactive"?!M:B==="__v_isReadonly"?M:B==="__v_raw"?N:Reflect.get(hasOwn$4(I,B)&&B in N?I:N,B,j)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)};function checkIdentityKeys(M,$,I){const N=toRaw(I);if(N!==I&&$.call(M,N)){const B=toRawType(M);console.warn(`Reactive ${B} contains both the raw and reactive versions of the same object${B==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(M){switch(M){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(M){return M.__v_skip||!Object.isExtensible(M)?0:targetTypeMap(toRawType(M))}function reactive2(M){return M&&M.__v_isReadonly?M:createReactiveObject(M,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(M){return createReactiveObject(M,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(M,$,I,N,B){if(!isObject$4(M))return console.warn(`value cannot be made reactive: ${String(M)}`),M;if(M.__v_raw&&!($&&M.__v_isReactive))return M;const j=B.get(M);if(j)return j;const U=getTargetType(M);if(U===0)return M;const q=new Proxy(M,U===2?N:I);return B.set(M,q),q}function toRaw(M){return M&&toRaw(M.__v_raw)||M}function isRef(M){return!!(M&&M.__v_isRef===!0)}magic("nextTick",()=>nextTick);magic("dispatch",M=>dispatch.bind(dispatch,M));magic("watch",(M,{evaluateLater:$,effect:I})=>(N,B)=>{let j=$(N),U=!0,q,Y=I(()=>j(K=>{JSON.stringify(K),U?q=K:queueMicrotask(()=>{B(K,q),q=K}),U=!1}));M._x_effects.delete(Y)});magic("store",getStores);magic("data",M=>scope(M));magic("root",M=>closestRoot(M));magic("refs",M=>(M._x_refs_proxy||(M._x_refs_proxy=mergeProxies(getArrayOfRefObject(M))),M._x_refs_proxy));function getArrayOfRefObject(M){let $=[],I=M;for(;I;)I._x_refs&&$.push(I._x_refs),I=I.parentNode;return $}var globalIdMemo={};function findAndIncrementId(M){return globalIdMemo[M]||(globalIdMemo[M]=0),++globalIdMemo[M]}function closestIdRoot(M,$){return findClosest(M,I=>{if(I._x_ids&&I._x_ids[$])return!0})}function setIdRoot(M,$){M._x_ids||(M._x_ids={}),M._x_ids[$]||(M._x_ids[$]=findAndIncrementId($))}magic("id",M=>($,I=null)=>{let N=closestIdRoot(M,$),B=N?N._x_ids[$]:findAndIncrementId($);return I?`${$}-${B}-${I}`:`${$}-${B}`});magic("el",M=>M);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(M,$,I){magic($,N=>warn$3(`You can't use [$${directiveName}] without first installing the "${M}" plugin here: https://alpinejs.dev/plugins/${I}`,N))}function entangle({get:M,set:$},{get:I,set:N}){let B=!0,j,U,q=effect(()=>{let Y,K;B?(Y=M(),N(Y),K=I(),B=!1):(Y=M(),K=I(),U=JSON.stringify(Y),JSON.stringify(K),U!==j?(K=I(),N(Y),K=Y):($(K),Y=K)),j=JSON.stringify(Y),JSON.stringify(K)});return()=>{release(q)}}directive$1("modelable",(M,{expression:$},{effect:I,evaluateLater:N,cleanup:B})=>{let j=N($),U=()=>{let G;return j(J=>G=J),G},q=N(`${$} = __placeholder`),Y=G=>q(()=>{},{scope:{__placeholder:G}}),K=U();Y(K),queueMicrotask(()=>{if(!M._x_model)return;M._x_removeModelListeners.default();let G=M._x_model.get,J=M._x_model.set,Z=entangle({get(){return G()},set(ee){J(ee)}},{get(){return U()},set(ee){Y(ee)}});B(Z)})});var teleportContainerDuringClone=document.createElement("div");directive$1("teleport",(M,{modifiers:$,expression:I},{cleanup:N})=>{M.tagName.toLowerCase()!=="template"&&warn$3("x-teleport can only be used on a <template> tag",M);let B=skipDuringClone(()=>document.querySelector(I),()=>teleportContainerDuringClone)();B||warn$3(`Cannot find x-teleport element for selector: "${I}"`);let j=M.content.cloneNode(!0).firstElementChild;M._x_teleport=j,j._x_teleportBack=M,M._x_forwardEvents&&M._x_forwardEvents.forEach(U=>{j.addEventListener(U,q=>{q.stopPropagation(),M.dispatchEvent(new q.constructor(q.type,q))})}),addScopeToNode(j,{},M),mutateDom(()=>{$.includes("prepend")?B.parentNode.insertBefore(j,B):$.includes("append")?B.parentNode.insertBefore(j,B.nextSibling):B.appendChild(j),initTree(j),j._x_ignore=!0}),N(()=>j.remove())});var handler=()=>{};handler.inline=(M,{modifiers:$},{cleanup:I})=>{$.includes("self")?M._x_ignoreSelf=!0:M._x_ignore=!0,I(()=>{$.includes("self")?delete M._x_ignoreSelf:delete M._x_ignore})};directive$1("ignore",handler);directive$1("effect",(M,{expression:$},{effect:I})=>I(evaluateLater(M,$)));function on(M,$,I,N){let B=M,j=Y=>N(Y),U={},q=(Y,K)=>G=>K(Y,G);if(I.includes("dot")&&($=dotSyntax($)),I.includes("camel")&&($=camelCase2($)),I.includes("passive")&&(U.passive=!0),I.includes("capture")&&(U.capture=!0),I.includes("window")&&(B=window),I.includes("document")&&(B=document),I.includes("prevent")&&(j=q(j,(Y,K)=>{K.preventDefault(),Y(K)})),I.includes("stop")&&(j=q(j,(Y,K)=>{K.stopPropagation(),Y(K)})),I.includes("self")&&(j=q(j,(Y,K)=>{K.target===M&&Y(K)})),(I.includes("away")||I.includes("outside"))&&(B=document,j=q(j,(Y,K)=>{M.contains(K.target)||K.target.isConnected!==!1&&(M.offsetWidth<1&&M.offsetHeight<1||M._x_isShown!==!1&&Y(K))})),I.includes("once")&&(j=q(j,(Y,K)=>{Y(K),B.removeEventListener($,j,U)})),j=q(j,(Y,K)=>{isKeyEvent($)&&isListeningForASpecificKeyThatHasntBeenPressed(K,I)||Y(K)}),I.includes("debounce")){let Y=I[I.indexOf("debounce")+1]||"invalid-wait",K=isNumeric(Y.split("ms")[0])?Number(Y.split("ms")[0]):250;j=debounce(j,K)}if(I.includes("throttle")){let Y=I[I.indexOf("throttle")+1]||"invalid-wait",K=isNumeric(Y.split("ms")[0])?Number(Y.split("ms")[0]):250;j=throttle$1(j,K)}return B.addEventListener($,j,U),()=>{B.removeEventListener($,j,U)}}function dotSyntax(M){return M.replace(/-/g,".")}function camelCase2(M){return M.toLowerCase().replace(/-(\w)/g,($,I)=>I.toUpperCase())}function isNumeric(M){return!Array.isArray(M)&&!isNaN(M)}function kebabCase2(M){return[" ","_"].includes(M)?M:M.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(M){return["keydown","keyup"].includes(M)}function isListeningForASpecificKeyThatHasntBeenPressed(M,$){let I=$.filter(j=>!["window","document","prevent","stop","once","capture"].includes(j));if(I.includes("debounce")){let j=I.indexOf("debounce");I.splice(j,isNumeric((I[j+1]||"invalid-wait").split("ms")[0])?2:1)}if(I.includes("throttle")){let j=I.indexOf("throttle");I.splice(j,isNumeric((I[j+1]||"invalid-wait").split("ms")[0])?2:1)}if(I.length===0||I.length===1&&keyToModifiers(M.key).includes(I[0]))return!1;const B=["ctrl","shift","alt","meta","cmd","super"].filter(j=>I.includes(j));return I=I.filter(j=>!B.includes(j)),!(B.length>0&&B.filter(U=>((U==="cmd"||U==="super")&&(U="meta"),M[`${U}Key`])).length===B.length&&keyToModifiers(M.key).includes(I[0]))}function keyToModifiers(M){if(!M)return[];M=kebabCase2(M);let $={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return $[M]=M,Object.keys($).map(I=>{if($[I]===M)return I}).filter(I=>I)}directive$1("model",(M,{modifiers:$,expression:I},{effect:N,cleanup:B})=>{let j=M;$.includes("parent")&&(j=M.parentNode);let U=evaluateLater(j,I),q;typeof I=="string"?q=evaluateLater(j,`${I} = __placeholder`):typeof I=="function"&&typeof I()=="string"?q=evaluateLater(j,`${I()} = __placeholder`):q=()=>{};let Y=()=>{let Z;return U(ee=>Z=ee),isGetterSetter(Z)?Z.get():Z},K=Z=>{let ee;U(te=>ee=te),isGetterSetter(ee)?ee.set(Z):q(()=>{},{scope:{__placeholder:Z}})};$.includes("fill")&&M.hasAttribute("value")&&(Y()===null||Y()==="")&&K(M.value),typeof I=="string"&&M.type==="radio"&&mutateDom(()=>{M.hasAttribute("name")||M.setAttribute("name",I)});var G=M.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(M.type)||$.includes("lazy")?"change":"input";let J=isCloning?()=>{}:on(M,G,$,Z=>{K(getInputValue(M,$,Z,Y()))});if(M._x_removeModelListeners||(M._x_removeModelListeners={}),M._x_removeModelListeners.default=J,B(()=>M._x_removeModelListeners.default()),M.form){let Z=on(M.form,"reset",[],ee=>{nextTick(()=>M._x_model&&M._x_model.set(M.value))});B(()=>Z())}M._x_model={get(){return Y()},set(Z){K(Z)}},M._x_forceModelUpdate=Z=>{Z=Z===void 0?Y():Z,Z===void 0&&typeof I=="string"&&I.match(/\./)&&(Z=""),window.fromModel=!0,mutateDom(()=>bind$4(M,"value",Z)),delete window.fromModel},N(()=>{let Z=Y();$.includes("unintrusive")&&document.activeElement.isSameNode(M)||M._x_forceModelUpdate(Z)})});function getInputValue(M,$,I,N){return mutateDom(()=>{if(I instanceof CustomEvent&&I.detail!==void 0)return typeof I.detail<"u"?I.detail:I.target.value;if(M.type==="checkbox")if(Array.isArray(N)){let B=$.includes("number")?safeParseNumber(I.target.value):I.target.value;return I.target.checked?N.concat([B]):N.filter(j=>!checkedAttrLooseCompare2(j,B))}else return I.target.checked;else{if(M.tagName.toLowerCase()==="select"&&M.multiple)return $.includes("number")?Array.from(I.target.selectedOptions).map(B=>{let j=B.value||B.text;return safeParseNumber(j)}):Array.from(I.target.selectedOptions).map(B=>B.value||B.text);{let B=I.target.value;return $.includes("number")?safeParseNumber(B):$.includes("trim")?B.trim():B}}})}function safeParseNumber(M){let $=M?parseFloat(M):null;return isNumeric2($)?$:M}function checkedAttrLooseCompare2(M,$){return M==$}function isNumeric2(M){return!Array.isArray(M)&&!isNaN(M)}function isGetterSetter(M){return M!==null&&typeof M=="object"&&typeof M.get=="function"&&typeof M.set=="function"}directive$1("cloak",M=>queueMicrotask(()=>mutateDom(()=>M.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive$1("init",skipDuringClone((M,{expression:$},{evaluate:I})=>typeof $=="string"?!!$.trim()&&I($,{},!1):I($,{},!1)));directive$1("text",(M,{expression:$},{effect:I,evaluateLater:N})=>{let B=N($);I(()=>{B(j=>{mutateDom(()=>{M.textContent=j})})})});directive$1("html",(M,{expression:$},{effect:I,evaluateLater:N})=>{let B=N($);I(()=>{B(j=>{mutateDom(()=>{M.innerHTML=j,M._x_ignoreSelf=!0,initTree(M),delete M._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));directive$1("bind",(M,{value:$,modifiers:I,expression:N,original:B},{effect:j})=>{if(!$){let q={};injectBindingProviders(q),evaluateLater(M,N)(K=>{applyBindingsObject(M,K,B)},{scope:q});return}if($==="key")return storeKeyForXFor(M,N);let U=evaluateLater(M,N);j(()=>U(q=>{q===void 0&&typeof N=="string"&&N.match(/\./)&&(q=""),mutateDom(()=>bind$4(M,$,q,I))}))});function storeKeyForXFor(M,$){M._x_keyExpression=$}addRootSelector(()=>`[${prefix("data")}]`);directive$1("data",skipDuringClone((M,{expression:$},{cleanup:I})=>{$=$===""?"{}":$;let N={};injectMagics(N,M);let B={};injectDataProviders(B,N);let j=evaluate(M,$,{scope:B});(j===void 0||j===!0)&&(j={}),injectMagics(j,M);let U=reactive(j);initInterceptors(U);let q=addScopeToNode(M,U);U.init&&evaluate(M,U.init),I(()=>{U.destroy&&evaluate(M,U.destroy),q()})}));directive$1("show",(M,{modifiers:$,expression:I},{effect:N})=>{let B=evaluateLater(M,I);M._x_doHide||(M._x_doHide=()=>{mutateDom(()=>{M.style.setProperty("display","none",$.includes("important")?"important":void 0)})}),M._x_doShow||(M._x_doShow=()=>{mutateDom(()=>{M.style.length===1&&M.style.display==="none"?M.removeAttribute("style"):M.style.removeProperty("display")})});let j=()=>{M._x_doHide(),M._x_isShown=!1},U=()=>{M._x_doShow(),M._x_isShown=!0},q=()=>setTimeout(U),Y=once(J=>J?U():j(),J=>{typeof M._x_toggleAndCascadeWithTransitions=="function"?M._x_toggleAndCascadeWithTransitions(M,J,U,j):J?q():j()}),K,G=!0;N(()=>B(J=>{!G&&J===K||($.includes("immediate")&&(J?q():j()),Y(J),K=J,G=!1)}))});directive$1("for",(M,{expression:$},{effect:I,cleanup:N})=>{let B=parseForExpression($),j=evaluateLater(M,B.items),U=evaluateLater(M,M._x_keyExpression||"index");M._x_prevKeys=[],M._x_lookup={},I(()=>loop(M,B,j,U)),N(()=>{Object.values(M._x_lookup).forEach(q=>q.remove()),delete M._x_prevKeys,delete M._x_lookup})});function loop(M,$,I,N){let B=U=>typeof U=="object"&&!Array.isArray(U),j=M;I(U=>{isNumeric3(U)&&U>=0&&(U=Array.from(Array(U).keys(),re=>re+1)),U===void 0&&(U=[]);let q=M._x_lookup,Y=M._x_prevKeys,K=[],G=[];if(B(U))U=Object.entries(U).map(([re,ne])=>{let ce=getIterationScopeVariables($,ne,re,U);N(me=>G.push(me),{scope:{index:re,...ce}}),K.push(ce)});else for(let re=0;re<U.length;re++){let ne=getIterationScopeVariables($,U[re],re,U);N(ce=>G.push(ce),{scope:{index:re,...ne}}),K.push(ne)}let J=[],Z=[],ee=[],te=[];for(let re=0;re<Y.length;re++){let ne=Y[re];G.indexOf(ne)===-1&&ee.push(ne)}Y=Y.filter(re=>!ee.includes(re));let se="template";for(let re=0;re<G.length;re++){let ne=G[re],ce=Y.indexOf(ne);if(ce===-1)Y.splice(re,0,ne),J.push([se,re]);else if(ce!==re){let me=Y.splice(re,1)[0],ue=Y.splice(ce-1,1)[0];Y.splice(re,0,ue),Y.splice(ce,0,me),Z.push([me,ue])}else te.push(ne);se=ne}for(let re=0;re<ee.length;re++){let ne=ee[re];q[ne]._x_effects&&q[ne]._x_effects.forEach(dequeueJob),q[ne].remove(),q[ne]=null,delete q[ne]}for(let re=0;re<Z.length;re++){let[ne,ce]=Z[re],me=q[ne],ue=q[ce],_e=document.createElement("div");mutateDom(()=>{ue.after(_e),me.after(ue),ue._x_currentIfEl&&ue.after(ue._x_currentIfEl),_e.before(me),me._x_currentIfEl&&me.after(me._x_currentIfEl),_e.remove()}),refreshScope(ue,K[G.indexOf(ce)])}for(let re=0;re<J.length;re++){let[ne,ce]=J[re],me=ne==="template"?j:q[ne];me._x_currentIfEl&&(me=me._x_currentIfEl);let ue=K[ce],_e=G[ce],fe=document.importNode(j.content,!0).firstElementChild;addScopeToNode(fe,reactive(ue),j),mutateDom(()=>{me.after(fe),initTree(fe)}),typeof _e=="object"&&warn$3("x-for key cannot be an object, it must be a string or an integer",j),q[_e]=fe}for(let re=0;re<te.length;re++)refreshScope(q[te[re]],K[G.indexOf(te[re])]);j._x_prevKeys=G})}function parseForExpression(M){let $=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,I=/^\s*\(|\)\s*$/g,N=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,B=M.match(N);if(!B)return;let j={};j.items=B[2].trim();let U=B[1].replace(I,"").trim(),q=U.match($);return q?(j.item=U.replace($,"").trim(),j.index=q[1].trim(),q[2]&&(j.collection=q[2].trim())):j.item=U,j}function getIterationScopeVariables(M,$,I,N){let B={};return/^\[.*\]$/.test(M.item)&&Array.isArray($)?M.item.replace("[","").replace("]","").split(",").map(U=>U.trim()).forEach((U,q)=>{B[U]=$[q]}):/^\{.*\}$/.test(M.item)&&!Array.isArray($)&&typeof $=="object"?M.item.replace("{","").replace("}","").split(",").map(U=>U.trim()).forEach(U=>{B[U]=$[U]}):B[M.item]=$,M.index&&(B[M.index]=I),M.collection&&(B[M.collection]=N),B}function isNumeric3(M){return!Array.isArray(M)&&!isNaN(M)}function handler2(){}handler2.inline=(M,{expression:$},{cleanup:I})=>{let N=closestRoot(M);N._x_refs||(N._x_refs={}),N._x_refs[$]=M,I(()=>delete N._x_refs[$])};directive$1("ref",handler2);directive$1("if",(M,{expression:$},{effect:I,cleanup:N})=>{let B=evaluateLater(M,$),j=()=>{if(M._x_currentIfEl)return M._x_currentIfEl;let q=M.content.cloneNode(!0).firstElementChild;return addScopeToNode(q,{},M),mutateDom(()=>{M.after(q),initTree(q)}),M._x_currentIfEl=q,M._x_undoIf=()=>{walk(q,Y=>{Y._x_effects&&Y._x_effects.forEach(dequeueJob)}),q.remove(),delete M._x_currentIfEl},q},U=()=>{M._x_undoIf&&(M._x_undoIf(),delete M._x_undoIf)};I(()=>B(q=>{q?j():U()})),N(()=>M._x_undoIf&&M._x_undoIf())});directive$1("id",(M,{expression:$},{evaluate:I})=>{I($).forEach(B=>setIdRoot(M,B))});mapAttributes(startingWith("@",into(prefix("on:"))));directive$1("on",skipDuringClone((M,{value:$,modifiers:I,expression:N},{cleanup:B})=>{let j=N?evaluateLater(M,N):()=>{};M.tagName.toLowerCase()==="template"&&(M._x_forwardEvents||(M._x_forwardEvents=[]),M._x_forwardEvents.includes($)||M._x_forwardEvents.push($));let U=on(M,$,I,q=>{j(()=>{},{scope:{$event:q},params:[q]})});B(()=>U())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(M,$,I){directive$1($,N=>warn$3(`You can't use [x-${$}] without first installing the "${M}" plugin here: https://alpinejs.dev/plugins/${I}`,N))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default=alpine_default,module_default=src_default,cookies={exports:{}};(function(M,$){(function(I,N){var B=function(U){if(typeof U.document!="object")throw new Error("Cookies.js requires a `window` with a `document` object");var q=function(Y,K,G){return arguments.length===1?q.get(Y):q.set(Y,K,G)};return q._document=U.document,q._cacheKeyPrefix="cookey.",q._maxExpireDate=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),q.defaults={path:"/",secure:!1},q.get=function(Y){q._cachedDocumentCookie!==q._document.cookie&&q._renewCache();var K=q._cache[q._cacheKeyPrefix+Y];return K===N?N:decodeURIComponent(K)},q.set=function(Y,K,G){return G=q._getExtendedOptions(G),G.expires=q._getExpiresDate(K===N?-1:G.expires),q._document.cookie=q._generateCookieString(Y,K,G),q},q.expire=function(Y,K){return q.set(Y,N,K)},q._getExtendedOptions=function(Y){return{path:Y&&Y.path||q.defaults.path,domain:Y&&Y.domain||q.defaults.domain,expires:Y&&Y.expires||q.defaults.expires,secure:Y&&Y.secure!==N?Y.secure:q.defaults.secure}},q._isValidDate=function(Y){return Object.prototype.toString.call(Y)==="[object Date]"&&!isNaN(Y.getTime())},q._getExpiresDate=function(Y,K){if(K=K||new Date,typeof Y=="number"?Y=Y===1/0?q._maxExpireDate:new Date(K.getTime()+Y*1e3):typeof Y=="string"&&(Y=new Date(Y)),Y&&!q._isValidDate(Y))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return Y},q._generateCookieString=function(Y,K,G){Y=Y.replace(/[^#$&+\^`|]/g,encodeURIComponent),Y=Y.replace(/\(/g,"%28").replace(/\)/g,"%29"),K=(K+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent),G=G||{};var J=Y+"="+K;return J+=G.path?";path="+G.path:"",J+=G.domain?";domain="+G.domain:"",J+=G.expires?";expires="+G.expires.toUTCString():"",J+=G.secure?";secure":"",J},q._getCacheFromString=function(Y){for(var K={},G=Y?Y.split("; "):[],J=0;J<G.length;J++){var Z=q._getKeyValuePairFromCookieString(G[J]);K[q._cacheKeyPrefix+Z.key]===N&&(K[q._cacheKeyPrefix+Z.key]=Z.value)}return K},q._getKeyValuePairFromCookieString=function(Y){var K=Y.indexOf("=");K=K<0?Y.length:K;var G=Y.substr(0,K),J;try{J=decodeURIComponent(G)}catch(Z){console&&typeof console.error=="function"&&console.error('Could not decode cookie with key "'+G+'"',Z)}return{key:J,value:Y.substr(K+1)}},q._renewCache=function(){q._cache=q._getCacheFromString(q._document.cookie),q._cachedDocumentCookie=q._document.cookie},q._areEnabled=function(){var Y="cookies.js",K=q.set(Y,1).get(Y)==="1";return q.expire(Y),K},q.enabled=q._areEnabled(),q},j=I&&typeof I.document=="object"?B(I):B;typeof N=="function"&&N.amd?N(function(){return j}):($=M.exports=j,$.Cookies=j)})(typeof window>"u"?commonjsGlobal:window)})(cookies,cookies.exports);var cookiesExports=cookies.exports;const Cookies$1=getDefaultExportFromCjs$1(cookiesExports);String.prototype.includes||(String.prototype.includes=function(M,$){return typeof $!="number"&&($=0),$+M.length>this.length?!1:this.indexOf(M,$)!==-1});_.mixin({objMap:function(M,$,I){return _.reduce(M,function(N,B,j){return N[j]=$.call(I,B,j,M),N},{},I)},objFilter:function(M,$,I){return _.reduce(M,function(N,B,j){return $.call(I,B,j,M)&&(N[j]=B),N},{},I)},objReject:function(M,$,I){return _.reduce(M,function(N,B,j){return $.call(I,B,j,M)||(N[j]=B),N},{},I)}});const CpUrl={install(M,$){M.prototype.cp_url=function(I){return cp_url(I)}}},DocsUrl={install(M,$){M.prototype.docs_url=function(I){return docs_url(I)}}},ResourceUrl={install(M,$){M.prototype.resource_url=function(I){return resource_url(I)}}},FileIcon$1={install(M,$){M.prototype.file_icon=function(I){return file_icon(I)}}},can=function(M){const $=JSON.parse(atob(Statamic.$config.get("permissions")));return $.includes("super")||$.includes(M)},Can={install(M,$){M.prototype.can=function(I){return can(I)}}},Slugify$1={install(M,$){M.prototype.$slugify=function(I,N,B){return Statamic.$slug.separatedBy(N).in(B).create(I)}}};Vue$3.use(CpUrl);Vue$3.use(DocsUrl);Vue$3.use(ResourceUrl);Vue$3.use(FileIcon$1);Vue$3.use(Can);Vue$3.use(Slugify$1);function orderby(M,$,I){if(!$)return M;var N=I&&I<0?-1:1;return M.slice().sort(function(B,j){return $!=="$key"&&(Vue$3.util.isObject(B)&&"$value"in B&&(B=B.$value),Vue$3.util.isObject(j)&&"$value"in j&&(j=j.$value)),B=Vue$3.util.isObject(B)?Vue$3.parsers.path.getPath(B,$):B,j=Vue$3.util.isObject(j)?Vue$3.parsers.path.getPath(j,$):j,B=typeof B=="string"?B.toLowerCase():B,j=typeof j=="string"?j.toLowerCase():j,B===j?0:B>j?N:-N})}function deslugify(M){return M.replace(/[-_]/g," ")}function markdown$3(M){return markdown(M)}function parse$3(M){return JSON.parse(M)}function pre(M){return"<pre><code>"+JSON.stringify(M,null,2)+"</code></pre>"}function pluck(M,$){return M.map(function(I){return I[$]})}function reverse(M){return M.split("").reverse().join("")}var striptags$2={exports:{}};(function(M){(function($){if(typeof I!="function"){var I=function(te){return te};I.nonNative=!0}const N=I("plaintext"),B=I("html"),j=I("comment"),U=/<(\w*)>/g,q=/<\/?([^\s\/>]+)/;function Y(te,se,re){te=te||"",se=se||[],re=re||"";let ne=G(se,re);return J(te,ne)}function K(te,se){te=te||[],se=se||"";let re=G(te,se);return function(ce){return J(ce||"",re)}}Y.init_streaming_mode=K;function G(te,se){return te=Z(te),{allowable_tags:te,tag_replacement:se,state:N,tag_buffer:"",depth:0,in_quote_char:""}}function J(te,se){if(typeof te!="string")throw new TypeError("'html' parameter must be a string");let re=se.allowable_tags,ne=se.tag_replacement,ce=se.state,me=se.tag_buffer,ue=se.depth,_e=se.in_quote_char,fe="";for(let ge=0,ye=te.length;ge<ye;ge++){let xe=te[ge];if(ce===N)switch(xe){case"<":ce=B,me+=xe;break;default:fe+=xe;break}else if(ce===B)switch(xe){case"<":if(_e)break;ue++;break;case">":if(_e)break;if(ue){ue--;break}_e="",ce=N,me+=">",re.has(ee(me))?fe+=me:fe+=ne,me="";break;case'"':case"'":xe===_e?_e="":_e=_e||xe,me+=xe;break;case"-":me==="<!-"&&(ce=j),me+=xe;break;case" ":case` `:if(me==="<"){ce=N,fe+="< ",me="";break}me+=xe;break;default:me+=xe;break}else if(ce===j)switch(xe){case">":me.slice(-2)=="--"&&(ce=N),me="";break;default:me+=xe;break}}return se.state=ce,se.tag_buffer=me,se.depth=ue,se.in_quote_char=_e,fe}function Z(te){let se=new Set;if(typeof te=="string"){let re;for(;re=U.exec(te);)se.add(re[1])}else!I.nonNative&&typeof te[I.iterator]=="function"?se=new Set(te):typeof te.forEach=="function"&&te.forEach(se.add,se);return se}function ee(te){let se=q.exec(te);return se?se[1].toLowerCase():null}M.exports?M.exports=Y:$.striptags=Y})(commonjsGlobal)})(striptags$2);var striptagsExports=striptags$2.exports;const striptags$1=getDefaultExportFromCjs$1(striptagsExports);function striptags(M){return striptags$1(M)}function titleize(M){if(!M.split)return M;var $=function(N){return N.charAt(0).toUpperCase()+N.slice(1).toLowerCase()},I=[];return M.split(" ").forEach(function(N){I.push($(N))}),I.join(" ")}Vue$3.filter("caseInsensitiveOrderBy",orderby);Vue$3.filter("deslugify",deslugify);Vue$3.filter("markdown",markdown$3);Vue$3.filter("parse",parse$3);Vue$3.filter("pre",pre);Vue$3.filter("pluck",pluck);Vue$3.filter("reverse",reverse);Vue$3.filter("striptags",striptags);Vue$3.filter("titleize",titleize);function modal(M){return new Promise($=>{const I=Statamic.$components.append("field-action-modal",{props:M}),N=()=>Statamic.$components.destroy(I.id);I.on("confirm",(B={})=>{$({...B,confirmed:!0}),N()}),I.on("cancel",()=>{$({confirmed:!1}),N()})})}var Es,dl,ta,fl,na,ra,ia,sa,Ul,su;class FieldAction{constructor($,I){Oi(this,Ul);Oi(this,Es,void 0);Oi(this,dl,void 0);Oi(this,ta,void 0);Oi(this,fl,void 0);Oi(this,na,void 0);Oi(this,ra,void 0);Oi(this,ia,void 0);Oi(this,sa,void 0);Ji(this,Es,I),Ji(this,dl,$.run),Ji(this,sa,$.confirm),Ji(this,ta,$.visible??!0),Ji(this,fl,$.visibleWhenReadOnly??!1),Ji(this,na,$.icon??"image"),Ji(this,ra,$.quick??!1),Ji(this,ia,$.dangerous??!1),this.title=$.title}get visible(){return Fr(this,Es).isReadOnly&&!Fr(this,fl)?!1:typeof Fr(this,ta)=="function"?Fr(this,ta).call(this,Fr(this,Es)):Fr(this,ta)}get quick(){return typeof Fr(this,ra)=="function"?Fr(this,ra).call(this,Fr(this,Es)):Fr(this,ra)}get dangerous(){return typeof Fr(this,ia)=="function"?Fr(this,ia).call(this,Fr(this,Es)):Fr(this,ia)}get icon(){return typeof Fr(this,na)=="function"?Fr(this,na).call(this,Fr(this,Es)):Fr(this,na)}async run(){let $={...Fr(this,Es)};if(Fr(this,sa)){const N=await modal(Ao(this,Ul,su).call(this));if(!N.confirmed)return;$={...$,confirmation:N}}const I=Fr(this,dl).call(this,$);if(I instanceof Promise){const N=Fr(this,Es).vm.$progress,B=Fr(this,Es).fieldPathPrefix??Fr(this,Es).handle;N.loading(B,!0),I.finally(()=>N.loading(B,!1))}}}Es=new WeakMap,dl=new WeakMap,ta=new WeakMap,fl=new WeakMap,na=new WeakMap,ra=new WeakMap,ia=new WeakMap,sa=new WeakMap,Ul=new WeakSet,su=function(){let $=Fr(this,sa)===!0?{}:{...Fr(this,sa)};return $.title||($.title=this.title),$};const HasFieldActions={computed:{fieldActions(){return[...this.$fieldActions.get(this.$options.name),...this.internalFieldActions].map(M=>new FieldAction(M,this.fieldActionPayload)).filter(M=>M.visible)},internalFieldActions(){return[]},fieldActionPayload(){return{}}}};function normalizeComponent$2(M,$,I,N,B,j,U,q){var Y=typeof M=="function"?M.options:M;$&&(Y.render=$,Y.staticRenderFns=I,Y._compiled=!0),N&&(Y.functional=!0),j&&(Y._scopeId="data-v-"+j);var K;if(U?(K=function(Z){Z=Z||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!Z&&typeof __VUE_SSR_CONTEXT__<"u"&&(Z=__VUE_SSR_CONTEXT__),B&&B.call(this,Z),Z&&Z._registeredComponents&&Z._registeredComponents.add(U)},Y._ssrRegister=K):B&&(K=q?function(){B.call(this,(Y.functional?this.parent:this).$root.$options.shadowRoot)}:B),K)if(Y.functional){Y._injectStyles=K;var G=Y.render;Y.render=function(ee,te){return K.call(te),G(ee,te)}}else{var J=Y.beforeCreate;Y.beforeCreate=J?[].concat(J,K):[K]}return{exports:M,options:Y}}const _sfc_main$4c={mixins:[HasFieldActions],inject:{fieldActionStoreName:{from:"storeName",default:null}},props:{value:{required:!0},config:{type:Object,default:()=>({})},handle:{type:String,required:!0},meta:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showFieldPreviews:{type:Boolean,default:!1},namePrefix:String,fieldPathPrefix:String},methods:{update(M){this.$emit("input",M)},updateDebounced:_.debounce(function(M){this.update(M)},150),updateMeta(M){this.$emit("meta-updated",M)}},computed:{name(){return this.namePrefix?`${this.namePrefix}[${this.handle}]`:this.handle},isReadOnly(){return this.readOnly||this.config.visibility==="read_only"||this.config.visibility==="computed"||!1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value},fieldPathKeys(){return(this.fieldPathPrefix||this.handle).split(".")},fieldId(){return(this.fieldPathPrefix?this.fieldPathPrefix+".":"")+"field_"+this.config.handle},fieldActionPayload(){return{vm:this,fieldPathPrefix:this.fieldPathPrefix,handle:this.handle,value:this.value,config:this.config,meta:this.meta,update:this.update,updateMeta:this.updateMeta,isReadOnly:this.isReadOnly,store:this.$store,storeName:this.fieldActionStoreName}}},watch:{replicatorPreview:{immediate:!0,handler(M){!this.showFieldPreviews||!this.config.replicator_preview||this.$emit("replicator-preview-updated",M)}}}},_sfc_render$4c=null,_sfc_staticRenderFns$4c=null;var __component__$4d=normalizeComponent$2(_sfc_main$4c,_sfc_render$4c,_sfc_staticRenderFns$4c,!1,null,null,null,null);const Fieldtype$1=__component__$4d.exports,_sfc_main$4b={props:{handle:{type:String,required:!0},value:{required:!0},values:{required:!0}}},_sfc_render$4b=null,_sfc_staticRenderFns$4b=null;var __component__$4c=normalizeComponent$2(_sfc_main$4b,_sfc_render$4b,_sfc_staticRenderFns$4b,!1,null,null,null,null);const IndexFieldtype$1=__component__$4c.exports,_sfc_main$4a={props:{button:Object,active:Boolean,config:Object,bard:{},editor:{}}};var _sfc_render$4a=function(){var $=this,I=$._self._c;return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.button.text,expression:"button.text"}],staticClass:"bard-toolbar-button",class:{active:$.active},attrs:{"aria-label":$.button.text},on:{click:function(N){return $.button.command($.editor,$.button.args)}}},[$.button.svg?I("svg-icon",{attrs:{name:$.button.svg}}):$._e(),$.button.html?I("div",{staticClass:"flex items-center",domProps:{innerHTML:$._s($.button.html)}}):$._e()],1)},_sfc_staticRenderFns$4a=[],__component__$4b=normalizeComponent$2(_sfc_main$4a,_sfc_render$4a,_sfc_staticRenderFns$4a,!1,null,null,null,null);const BardToolbarButton$1=__component__$4b.exports,HasActions$1={methods:{actionStarted(){this.loading=!0},actionCompleted(M=null,$={}){this.loading=!1,M!==!1&&(this.$events.$emit("clear-selections"),this.$events.$emit("reset-action-modals"),$.success===!1?this.$toast.error($.message||__("Action failed")):this.$toast.success($.message||__("Action completed")),this.afterActionSuccessfullyCompleted())},afterActionSuccessfullyCompleted(){this.request()}}},HasFilters={data(){return{activeFilterBadges:{},activeFilters:{},activePreset:null,activePresetPayload:{},searchQuery:""}},computed:{activeFilterCount(){let M=Object.keys(this.activeFilters).length;return this.activeFilters.hasOwnProperty("fields")&&(M=M+Object.keys(this.activeFilters.fields).filter($=>$!="badge").length-1),M},canSave(){return this.isDirty&&this.preferencesPrefix},isDirty(){return this.isFiltering?this.activePreset?this.activePresetPayload.query!=this.searchQuery||!_.isEqual(this.activePresetPayload.filters||{},this.activeFilters):!0:!1},isFiltering(){return!_.isEmpty(this.activeFilters)||this.searchQuery||this.activePreset},hasActiveFilters(){return this.activeFilterCount>0},searchPlaceholder(){return this.activePreset?`${__("Searching in:")} ${this.activePresetPayload.display}`:__("Search")}},methods:{searchChanged(M){this.searchQuery=M},hasFields(M){for(const $ in M)if(M[$])return!0;return!1},filterChanged({handle:M,values:$},I=!0){$&&this.hasFields($)?Vue$3.set(this.activeFilters,M,$):Vue$3.delete(this.activeFilters,M),I&&this.unselectAllItems()},filtersChanged(M){this.activeFilters={};for(const $ in M){const I=M[$];this.filterChanged({handle:$,values:I},!1)}this.unselectAllItems()},filtersReset(){this.activePreset=null,this.activePresetPayload={},this.searchQuery="",this.activeFilters={},this.activeFilterBadges={}},unselectAllItems(){this.$refs.dataList&&this.$refs.dataList.clearSelections()},selectPreset(M,$){this.activePreset=M,this.activePresetPayload=$,this.searchQuery=$.query,this.filtersChanged($.filters)},autoApplyFilters(M){if(!M)return;let $={};M.filter(I=>!_.isEmpty(I.auto_apply)).forEach(I=>{$[I.handle]=I.auto_apply}),this.activeFilters=$}}},HasPagination={props:{initialPerPage:{type:Number,default(){return Statamic.$config.get("paginationSize")}}},data(){return{perPage:this.initialPerPage,page:1}},mounted(){this.setInitialPerPage()},methods:{setInitialPerPage(){this.hasPreferences&&(this.perPage=this.getPreference("per_page")||this.initialPerPage)},changePerPage(M){M=parseInt(M),(this.hasPreferences?this.setPreference("per_page",M!=this.initialPerPage?M:null):Promise.resolve()).then(I=>{this.perPage=M,this.resetPage()})},selectPage(M){this.page=M,this.$events.$emit("clear-selections")},resetPage(){this.page=1,this.$events.$emit("clear-selections")}}},HasPreferences={data(){return{preferencesPrefix:null}},computed:{hasPreferences(){return this.preferencesPrefix!==null}},methods:{preferencesKey(M){return`${this.preferencesPrefix}.${M}`},getPreference(M){return this.$preferences.get(this.preferencesKey(M))},setPreference(M,$){return this.$preferences.set(this.preferencesKey(M),$)},removePreference(M,$=null){return this.$preferences.remove(this.preferencesKey(M),$)}}},_sfc_main$49={mixins:[HasActions$1,HasFilters,HasPagination,HasPreferences],props:{initialSortColumn:String,initialSortDirection:String,initialColumns:{type:Array,default:()=>[]},filters:Array,actionUrl:String},data(){return{source:null,initializing:!0,loading:!0,items:[],columns:this.initialColumns,visibleColumns:this.initialColumns.filter(M=>M.visible),sortColumn:this.initialSortColumn,sortDirection:this.initialSortDirection,meta:null,pushQuery:!1,popping:!1}},computed:{parameterMap(){return{sort:"sortColumn",order:"sortDirection",page:"page",perPage:"perPage",search:"searchQuery",filters:"activeFilterParameters",columns:"visibleColumnParameters"}},parameters:{get(){return{...Object.fromEntries(Object.entries(this.parameterMap).map(([$,I])=>[$,this[I]]).filter(([$,I])=>I!=null&&I!=="")),...this.additionalParameters}},set(M){Object.entries(this.parameterMap).forEach(([$,I])=>{M.hasOwnProperty($)&&(this[I]=M[$])})}},activeFilterParameters:{get(){return _.isEmpty(this.activeFilters)?null:utf8btoa(JSON.stringify(this.activeFilters))},set(M){this.activeFilters=JSON.parse(utf8atob(M))}},visibleColumnParameters:{get(){return _.isEmpty(this.visibleColumns)?null:this.visibleColumns.map(M=>M.field).join(",")},set(M){this.visibleColumns=M.split(",").map($=>this.columns.find(I=>I.field===$))}},additionalParameters(){return{}},shouldRequestFirstPage(){return this.page>1&&this.items.length===0?(this.page=1,!0):!1}},created(){this.autoApplyFilters(this.filters),this.autoApplyState(),this.request()},mounted(){this.pushQuery&&(window.history.replaceState({parameters:this.parameters},""),window.addEventListener("popstate",this.popState))},beforeDestroy(){this.pushQuery&&window.removeEventListener("popstate",this.popState)},watch:{parameters:{deep:!0,handler(M,$){$.search===M.search&&JSON.stringify($)!==JSON.stringify(M)&&(this.request(),this.pushState())}},loading:{immediate:!0,handler(M){this.$progress.loading(this.listingKey,M)}},searchQuery(M){this.sortColumn=null,this.sortDirection=null,this.resetPage(),this.request(),this.pushState()}},methods:{request(){if(!this.requestUrl){this.loading=!1;return}this.loading=!0,this.source&&this.source.cancel(),this.source=this.$axios.CancelToken.source(),this.$axios.get(this.requestUrl,{params:this.parameters,cancelToken:this.source.token}).then(M=>{if(this.columns=M.data.meta.columns,this.activeFilterBadges={...M.data.meta.activeFilterBadges},this.items=Object.values(M.data.data),this.meta=M.data.meta,this.shouldRequestFirstPage)return this.request();this.loading=!1,this.initializing=!1,this.afterRequestCompleted(M)}).catch(M=>{this.$axios.isCancel(M)||(this.loading=!1,this.initializing=!1,!(M.request&&!M.response)&&this.$toast.error(M.response?M.response.data.message:__("Something went wrong"),{duration:null}))})},afterRequestCompleted(M){},sorted(M,$){this.sortColumn=M,this.sortDirection=$},removeRow(M){let $=M.id,I=_.indexOf(this.rows,_.findWhere(this.rows,{id:$}));this.rows.splice(I,1),this.rows.length===0&&location.reload()},popState(M){!this.pushQuery||!M.state||(this.popping=!0,this.parameters=M.state.parameters,this.$nextTick(()=>{this.popping=!1}))},pushState(){if(!this.pushQuery||this.popping)return;const M=this.parameters,$=Object.keys(this.parameterMap),I=new URLSearchParams(Object.fromEntries($.filter(N=>M.hasOwnProperty(N)).map(N=>[N,M[N]])));window.history.pushState({parameters:M},"","?"+I.toString())},autoApplyState(){if(!this.pushQuery||!window.location.search)return;const M=new URLSearchParams(window.location.search),$=Object.fromEntries(M.entries());this.popping=!0,this.parameters=$,this.$nextTick(()=>{this.popping=!1})}}},_sfc_render$49=null,_sfc_staticRenderFns$49=null;var __component__$4a=normalizeComponent$2(_sfc_main$49,_sfc_render$49,_sfc_staticRenderFns$49,!1,null,null,null,null);const Listing=__component__$4a.exports,HasInputOptions={methods:{normalizeInputOptions(M){return Array.isArray(M)?_.map(M,$=>{if(typeof $=="object"){let I="value",N="label";return $.hasOwnProperty("key")&&(I="key",N="value"),{value:$[I],label:__($[N])||$[I]}}return{value:$,label:__($)||$}}):_.map(M,($,I)=>({value:Array.isArray(M)?$:I,label:__($)||I}))}}},KEYS=["if","if_any","show_when","show_when_any","unless","unless_any","hide_when","hide_when_any"],OPERATORS=["equals","not","contains","contains_any","===","!==",">",">=","<","<=","custom"],ALIASES={is:"equals","==":"equals",isnt:"not","!=":"not",includes:"contains",includes_any:"contains_any"};mixin$1({chain,filter,each});class Converter{fromBlueprint($,I=null){return map$1($,(N,B)=>this.splitRhs(B,N,I))}toBlueprint($){let I={};return each($,N=>{I[N.field]=this.combineRhs(N)}),I}splitRhs($,I,N=null){return{field:this.getScopedFieldHandle($,N),operator:this.getOperatorFromRhs(I),value:this.getValueFromRhs(I)}}getScopedFieldHandle($,I){return $.startsWith("$root.")||$.startsWith("root.")||$.startsWith("$parent.")?$:I?I+$:$}getOperatorFromRhs($){let I="==";return chain(this.getOperatorsAndAliases()).filter(N=>new RegExp(`^${N} [^=]`).test(this.normalizeConditionString($))).each(N=>I=N),this.normalizeOperator(I)}normalizeOperator($){return ALIASES[$]?ALIASES[$]:$}getValueFromRhs($){let I=this.normalizeConditionString($);return chain(this.getOperatorsAndAliases()).filter(N=>new RegExp(`^${N} [^=]`).test(I)).each(N=>I=I.replace(new RegExp(`^${N}[ ]*`),"")),I}combineRhs($){let I=$.operator?$.operator.trim():"",N=$.value.trim();return`${I} ${N}`.trim()}getOperatorsAndAliases(){return OPERATORS.concat(Object.keys(ALIASES))}normalizeConditionString($){return $===null?"null":$===""?"empty":$.toString()}}const _sfc_main$48={mixins:[HasInputOptions],props:{config:{type:Object,required:!0},condition:{type:Object,required:!0},conditions:{type:Array,required:!0},index:{type:Number,required:!0},suggestableFields:{type:Array,required:!0}},computed:{field(){return this.suggestableFields.find(M=>M.handle===this.condition.field)},showValueToggle(){return this.field&&["toggle","revealer"].includes(this.field.config.type)&&["equals","not","===","!=="].includes(this.condition.operator)},showValueDropdown(){return this.field&&["button_group","checkboxes","radio","select"].includes(this.field.config.type)&&["equals","not","===","!=="].includes(this.condition.operator)},valueOptions(){if(this.showValueDropdown)return this.normalizeInputOptions(this.field.config.options)},fieldOptions(){const M=this.conditions.map($=>$.field);return _$1(this.suggestableFields).reject($=>$.handle===this.config.handle||this.condition.field===$.handle||M.includes($.handle)).map($=>{let I=$.config.display;return I||(I=$.handle.replace(/_/g," ").replace(/(?:^|\s)\S/g,function(N){return N.toUpperCase()})),{value:$.handle,label:I}})},operatorOptions(){return this.normalizeInputOptions({equals:__("equals"),not:__("not"),contains:__("contains"),contains_any:__("contains any"),"===":"===","!==":"!==",">":">",">=":">=","<":"<","<=":"<=",custom:__("custom")})}},methods:{fieldSelected(M){this.$emit("updated",{...this.condition,field:M})},fieldSelectBlur(){const M=this.$refs.fieldSelect.$refs.search.value;M&&this.fieldUpdated(M)},operatorSelected(M){this.$emit("updated",{...this.condition,operator:M})},valueUpdated(M){this.$emit("updated",{...this.condition,value:M.toString()})},valueSelectBlur(){const M=this.$refs.valueSelect.$refs.search.value;M&&this.valueUpdated(M)},remove(){this.$emit("removed")}}};var _sfc_render$48=function(){var $=this,I=$._self._c;return I("div",{staticClass:"flex flex-wrap items-center py-4 border-t dark:border-dark-900"},[$.index===0?I("div",{staticClass:"help-block",domProps:{textContent:$._s($.__("messages.field_conditions_field_instructions"))}}):$._e(),I("v-select",{ref:"fieldSelect",staticClass:"w-full md:w-1/3 mb-2 md:mb-0",attrs:{value:$.condition.field,options:$.fieldOptions,placeholder:$.__("Field"),taggable:!0,"push-tags":!0,reduce:N=>N.value,"create-option":N=>({value:N,label:N})},on:{input:$.fieldSelected,"search:blur":$.fieldSelectBlur},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"hidden"})]},proxy:!0},{key:"option",fn:function(N){return[I("div",{staticClass:"flex items-center"},[I("span",{domProps:{textContent:$._s(N.label)}}),I("span",{staticClass:"font-mono text-2xs text-gray-500 dark:text-dark-150",class:{"ml-2":N.label},domProps:{textContent:$._s(N.value)}})])]}}])}),I("select-input",{staticClass:"rtl:md:mr-4 ltr:md:ml-4",attrs:{value:$.condition.operator,options:$.operatorOptions,placeholder:!1},on:{input:$.operatorSelected}}),$.showValueToggle?I("toggle-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{value:$.condition.value==="true"},on:{input:$.valueUpdated}}):$.showValueDropdown?I("v-select",{ref:"valueSelect",staticClass:"rtl:mr-4 ltr:ml-4 w-full md:w-52 mb-2 md:mb-0",attrs:{value:$.condition.value,options:$.valueOptions,placeholder:$.__("Option"),taggable:!1,"push-tags":!0,reduce:N=>N.value,"create-option":N=>({value:N,label:N})},on:{input:$.valueUpdated,"search:blur":$.valueSelectBlur},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"hidden"})]},proxy:!0}])}):I("text-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{value:$.condition.value},on:{input:$.valueUpdated}}),I("button",{staticClass:"btn-close rtl:mr-2 ltr:ml-2 group",on:{click:$.remove}},[I("svg-icon",{staticClass:"w-4 h-4 group-hover:text-red-500",attrs:{name:"micro/trash"}})],1)],1)},_sfc_staticRenderFns$48=[],__component__$49=normalizeComponent$2(_sfc_main$48,_sfc_render$48,_sfc_staticRenderFns$48,!1,null,null,null,null);const Condition=__component__$49.exports,_sfc_main$47={mixins:[HasInputOptions],components:{Condition},props:{config:{required:!0},suggestableFields:{required:!0}},data(){return{when:"always",type:"all",customMethod:null,conditions:[],alwaysSave:!1}},computed:{whenOptions(){return this.normalizeInputOptions({always:__$1("Always show"),if:__$1("Show when"),unless:__$1("Hide when")})},typeOptions(){return this.normalizeInputOptions({all:__$1("All of the following conditions pass"),any:__$1("Any of the following conditions pass"),custom:__$1("Custom method passes")})},hasConditions(){return this.when!=="always"},isStandard(){return this.hasConditions&&!this.isCustom},isCustom(){return this.type==="custom"},saveableConditions(){var M={};let $=this.type==="any"?`${this.when}_any`:this.when,I=this.prepareSaveableConditions(this.conditions);return this.isStandard&&!_.isEmpty(I)?M[$]=I:this.isCustom&&this.customMethod&&(M[$]=this.customMethod),M}},watch:{saveableConditions:{deep:!0,handler(M){this.$emit("updated",M)}},alwaysSave(M){this.$emit("updated-always-save",M)}},created(){this.add(),this.getInitialConditions(),this.getInitialAlwaysSaveState()},methods:{add(){this.conditions.push({_id:uniqid$1(),field:null,operator:"equals",value:null})},remove(M){this.conditions.splice(M,1)},updated(M,$){this.conditions.splice(M,1,$)},getInitialConditions(){let M=_.chain(KEYS).filter(I=>this.config[I]).first().value(),$=this.config[M];if($){if(this.when=M.startsWith("unless")||M.startsWith("hide_when")?"unless":"if",this.type=M.endsWith("_any")?"any":"all",typeof $=="string"){this.type="custom",this.customMethod=$;return}this.conditions=this.prepareEditableConditions($)}},getInitialAlwaysSaveState(){this.alwaysSave=data_get(this.config,"always_save",!1)},prepareEditableConditions(M){return new Converter().fromBlueprint(M).map($=>($._id=uniqid$1(),$.operator=this.prepareEditableOperator($.operator),$))},prepareSaveableConditions(M){return M=_.reject(M,$=>!$.field||!$.value),new Converter().toBlueprint(M)},prepareEditableOperator(M){switch(M){case"is":case"==":return"";case"isnt":case"!=":return"not"}return M}}};var _sfc_render$47=function(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full"},[I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Conditions")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_conditions_instructions")))])]),I("div",{staticClass:"flex items-center mb-6"},[I("select-input",{attrs:{options:$.whenOptions,placeholder:!1},model:{value:$.when,callback:function(N){$.when=N},expression:"when"}}),$.hasConditions?I("select-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{options:$.typeOptions,placeholder:!1},model:{value:$.type,callback:function(N){$.type=N},expression:"type"}}):$._e(),$.hasConditions&&$.isCustom?I("text-input",{staticClass:"rtl:mr-4 ltr:ml-4 flex-1",model:{value:$.customMethod,callback:function(N){$.customMethod=N},expression:"customMethod"}}):$._e()],1),$._l($.conditions,function(N,B){return $.hasConditions&&$.isStandard?I("condition",{key:N._id,attrs:{index:B,config:$.config,condition:N,conditions:$.conditions,"suggestable-fields":$.suggestableFields},on:{updated:function(j){return $.updated(B,j)},removed:function(j){return $.remove(B)}}}):$._e()}),$.hasConditions&&$.isStandard?I("div",{staticClass:"border-t dark:border-dark-900 pt-6"},[I("button",{staticClass:"btn-default",domProps:{textContent:$._s($.__("Add Condition"))},on:{click:$.add}})]):$._e()],2),I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Always Save")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_conditions_always_save_instructions")))])]),I("toggle-input",{model:{value:$.alwaysSave,callback:function(N){$.alwaysSave=N},expression:"alwaysSave"}})],1)])},_sfc_staticRenderFns$47=[],__component__$48=normalizeComponent$2(_sfc_main$47,_sfc_render$47,_sfc_staticRenderFns$47,!1,null,null,null,null);const FieldConditionsBuilder=__component__$48.exports;class ParentResolver{constructor($){this.currentFieldPath=$}resolve($){let I=this.getParentFieldPath(this.currentFieldPath,!0),N=this.removeOneParentKeyword($);for(;N.startsWith("$parent.");)I=this.getParentFieldPath(I),N=this.removeOneParentKeyword(N);return`$root.${I?`${I}.${N}`:N}`}getParentFieldPath($,I){const N=new RegExp("(.*?[^\\.]+)(\\.[0-9]+)*\\.[^\\.]*$");return(I||this.isAtSetLevel($))&&($=$.replace(N,"$1")),$.includes(".")?$.replace(N,"$1$2"):""}isAtSetLevel($){return $.match(new RegExp("(\\.[0-9]+)$"))}removeOneParentKeyword($){return $.replace(new RegExp("^\\$parent."),"")}}mixin$1({chain,map:map$1,each,filter,reject,first,isEmpty:isEmpty$1});const NUMBER_SPECIFIC_COMPARISONS=[">",">=","<","<="];class Validator{constructor(M,$,I,N,B){this.field=M,this.values=$,this.dottedFieldPath=I,this.store=N,this.storeName=B,this.rootValues=N?N.state.publish[B].values:!1,this.passOnAny=!1,this.showOnPass=!0,this.converter=new Converter}passesConditions(M){let $=M||this.getConditions();if($===void 0)return!0;if(this.isCustomConditionWithoutTarget($))return this.passesCustomCondition(this.prepareCondition($));let I=this.passOnAny?this.passesAnyConditions($):this.passesAllConditions($);return this.showOnPass?I:!I}getConditions(){let M=chain(KEYS).filter(I=>this.field[I]).first().value();if(!M)return;M.includes("any")&&(this.passOnAny=!0),(M.includes("unless")||M.includes("hide_when"))&&(this.showOnPass=!1);let $=this.field[M];return this.isCustomConditionWithoutTarget($)?$:this.converter.fromBlueprint($,this.field.prefix)}isCustomConditionWithoutTarget(M){return isString$6(M)}passesAllConditions(M){return chain(M).map($=>this.prepareCondition($)).reject($=>this.passesCondition($)).isEmpty().value()}passesAnyConditions(M){return!chain(M).map($=>this.prepareCondition($)).filter($=>this.passesCondition($)).isEmpty().value()}prepareCondition(M){if(isString$6(M)||M.operator==="custom")return this.prepareCustomCondition(M);let $=this.prepareOperator(M.operator),I=this.prepareLhs(M.field,$),N=this.prepareRhs(M.value,$);return{lhs:I,operator:$,rhs:N}}prepareOperator(M){switch(M){case null:case"":case"is":case"equals":return"==";case"isnt":case"not":case"¯\\_(ツ)_/¯":return"!=";case"includes":case"contains":return"includes";case"includes_any":case"contains_any":return"includes_any"}return M}prepareLhs(M,$){let I=this.getFieldValue(M);return NUMBER_SPECIFIC_COMPARISONS.includes($)?Number(I):$==="includes"&&!isObject$6(I)?I?I.toString():"":(isString$6(I)&&isEmpty$1(I)&&(I=null),isString$6(I)?JSON.stringify(I.trim()):I)}prepareRhs(M,$){switch(M){case"null":return null;case"true":return!0;case"false":return!1}return NUMBER_SPECIFIC_COMPARISONS.includes($)?Number(M):M==="empty"||$==="includes"||$==="includes_any"?M:isString$6(M)?JSON.stringify(M.trim()):M}prepareCustomCondition(M){let $=this.prepareFunctionName(M.value||M),I=this.prepareParams(M.value||M),N=M.field?this.getFieldValue(M.field):null,B=M.field;return{functionName:$,params:I,target:N,targetHandle:B}}prepareFunctionName(M){return M.replace(new RegExp("^custom "),"").split(":")[0]}prepareParams(M){let $=M.split(":")[1];return $?$.split(",").map(I=>I.trim()):[]}getFieldValue(M){return M.startsWith("$parent.")&&(M=new ParentResolver(this.dottedFieldPath).resolve(M)),M.startsWith("$root.")||M.startsWith("root.")?data_get$1(this.rootValues,M.replace(new RegExp("^\\$?root\\."),"")):data_get$1(this.values,M)}passesCondition(condition){return condition.functionName?this.passesCustomCondition(condition):condition.operator==="includes"?this.passesIncludesCondition(condition):condition.operator==="includes_any"?this.passesIncludesAnyCondition(condition):(condition.rhs==="empty"&&(condition.lhs=isEmpty$1(condition.lhs),condition.rhs=!0),isObject$6(condition.lhs)?!1:eval(`${condition.lhs} ${condition.operator} ${condition.rhs}`))}passesIncludesCondition(M){return M.lhs.includes(M.rhs)}passesIncludesAnyCondition(M){let $=M.rhs.split(",").map(I=>I.trim());return Array.isArray(M.lhs)?intersection(M.lhs,$).length:new RegExp($.join("|")).test(M.lhs)}passesCustomCondition(M){let $=data_get$1(this.store.state.statamic.conditions,M.functionName);if(typeof $!="function")return console.error(`Statamic field condition [${M.functionName}] was not properly defined.`),!1;let I=$({params:M.params,target:M.target,targetHandle:M.targetHandle,values:this.values,root:this.rootValues,store:this.store,storeName:this.storeName,fieldPath:this.dottedFieldPath});return this.showOnPass?I:!I}passesNonRevealerConditions(M){let $=this.getConditions();if(this.isCustomConditionWithoutTarget($))return this.passesConditions($);let I=data_get$1(this.store.state.publish[this.storeName],"revealerFields",[]),N=chain(this.getConditions()).reject(B=>I.includes(this.relativeLhsToAbsoluteFieldPath(B.field,M))).value();return this.passesConditions(N)}relativeLhsToAbsoluteFieldPath(M,$){return M.startsWith("$parent.")&&(M=new ParentResolver(this.dottedFieldPath).resolve(M)),M.startsWith("$root.")||M.startsWith("root.")?M.replace(new RegExp("^\\$?root\\."),""):$?$+"."+M:M}}const ValidatesFieldConditions={inject:{storeName:{default:"base"}},methods:{showField(M,$){let I=$||M.handle,N=$?$.replace(new RegExp("."+M.handle+"$"),""):"";if(M.visibility==="hidden"||this.shouldForceHiddenField(I))return this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:I,hidden:"force",omitValue:!1}),!1;let B=new Validator(M,{...this.values,...this.extraValues},I,this.$store,this.storeName),j=B.passesConditions();return M.always_save===!0?(this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:I,hidden:!j,omitValue:!1}),j):(this.$nextTick(()=>{this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:I,hidden:!j,omitValue:M.type==="revealer"||!B.passesNonRevealerConditions(N)})}),j)},shouldForceHiddenField(M){return data_get$1(this.$store.state.publish[this.storeName].hiddenFields[M],"hidden")==="force"}}},FieldConditions=Object.freeze(Object.defineProperty({__proto__:null,FIELD_CONDITIONS_ALIASES:ALIASES,FIELD_CONDITIONS_KEYS:KEYS,FIELD_CONDITIONS_OPERATORS:OPERATORS,FieldConditionsBuilder,FieldConditionsConverter:Converter,FieldConditionsValidator:Validator,ValidatesFieldConditions},Symbol.toStringTag,{value:"Module"}));window.Fieldtype=Fieldtype$1;window.IndexFieldtype=IndexFieldtype$1;window.BardToolbarButton=BardToolbarButton$1;window.Listing=Listing;window.FieldConditions=FieldConditions;Vue$3.mixin({methods:{__(M,$){return __(M,$)},__n(M,$,I){return __n(M,$,I)},translate(M,$){return __(M,$)},$wait(M){return new Promise($=>{setTimeout($,M)})}}});var vueSelect={exports:{}};(function(M,$){(function(I,N){M.exports=N()})(typeof self<"u"?self:commonjsGlobal,function(){return(()=>{var I={646:U=>{U.exports=function(q){if(Array.isArray(q)){for(var Y=0,K=new Array(q.length);Y<q.length;Y++)K[Y]=q[Y];return K}}},713:U=>{U.exports=function(q,Y,K){return Y in q?Object.defineProperty(q,Y,{value:K,enumerable:!0,configurable:!0,writable:!0}):q[Y]=K,q}},860:U=>{U.exports=function(q){if(Symbol.iterator in Object(q)||Object.prototype.toString.call(q)==="[object Arguments]")return Array.from(q)}},206:U=>{U.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(U,q,Y)=>{var K=Y(646),G=Y(860),J=Y(206);U.exports=function(Z){return K(Z)||G(Z)||J()}},8:U=>{function q(Y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?U.exports=q=function(K){return typeof K}:U.exports=q=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},q(Y)}U.exports=q}},N={};function B(U){var q=N[U];if(q!==void 0)return q.exports;var Y=N[U]={exports:{}};return I[U](Y,Y.exports,B),Y.exports}B.n=U=>{var q=U&&U.__esModule?()=>U.default:()=>U;return B.d(q,{a:q}),q},B.d=(U,q)=>{for(var Y in q)B.o(q,Y)&&!B.o(U,Y)&&Object.defineProperty(U,Y,{enumerable:!0,get:q[Y]})},B.o=(U,q)=>Object.prototype.hasOwnProperty.call(U,q),B.r=U=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})};var j={};return(()=>{B.r(j),B.d(j,{VueSelect:()=>ge,default:()=>xe,mixins:()=>ye});var U=B(319),q=B.n(U),Y=B(8),K=B.n(Y),G=B(713),J=B.n(G);const Z={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(le){var be=this;this.autoscroll&&le&&this.$nextTick(function(){return be.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var le,be=((le=this.$refs.dropdownMenu)===null||le===void 0?void 0:le.children[this.typeAheadPointer])||!1;if(be){var ve=this.getDropdownViewport(),we=be.getBoundingClientRect(),Ae=we.top,Se=we.bottom,Pe=we.height;if(Ae<ve.top)return this.$refs.dropdownMenu.scrollTop=be.offsetTop;if(Se>ve.bottom)return this.$refs.dropdownMenu.scrollTop=be.offsetTop-(ve.height-Pe)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},ee={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var le=0;le<this.filteredOptions.length;le++)if(this.selectable(this.filteredOptions[le])){this.typeAheadPointer=le;break}},open:function(le){le&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var le=this.typeAheadPointer-1;le>=0;le--)if(this.selectable(this.filteredOptions[le])){this.typeAheadPointer=le;break}},typeAheadDown:function(){for(var le=this.typeAheadPointer+1;le<this.filteredOptions.length;le++)if(this.selectable(this.filteredOptions[le])){this.typeAheadPointer=le;break}},typeAheadSelect:function(){var le=this.filteredOptions[this.typeAheadPointer];le&&this.selectable(le)&&this.select(le)},typeAheadToLastSelected:function(){var le=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;le!==-1&&(this.typeAheadPointer=le)}}},te={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(le){this.mutableLoading=le}},methods:{toggleLoading:function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=le??!this.mutableLoading}}};function se(le,be,ve,we,Ae,Se,Pe,Me){var Be,ze=typeof le=="function"?le.options:le;if(be&&(ze.render=be,ze.staticRenderFns=ve,ze._compiled=!0),we&&(ze.functional=!0),Se&&(ze._scopeId="data-v-"+Se),Pe?(Be=function(Ye){(Ye=Ye||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(Ye=__VUE_SSR_CONTEXT__),Ae&&Ae.call(this,Ye),Ye&&Ye._registeredComponents&&Ye._registeredComponents.add(Pe)},ze._ssrRegister=Be):Ae&&(Be=Me?function(){Ae.call(this,(ze.functional?this.parent:this).$root.$options.shadowRoot)}:Ae),Be)if(ze.functional){ze._injectStyles=Be;var Ze=ze.render;ze.render=function(Ye,Ve){return Be.call(Ve),Ze(Ye,Ve)}}else{var ft=ze.beforeCreate;ze.beforeCreate=ft?[].concat(ft,Be):[Be]}return{exports:le,options:ze}}const re={Deselect:se({},function(){var le=this.$createElement,be=this._self._c||le;return be("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[be("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:se({},function(){var le=this.$createElement,be=this._self._c||le;return be("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[be("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},ne={inserted:function(le,be,ve){var we=ve.context;if(we.appendToBody){var Ae=we.$refs.toggle.getBoundingClientRect(),Se=Ae.height,Pe=Ae.top,Me=Ae.left,Be=Ae.width,ze=window.scrollX||window.pageXOffset,Ze=window.scrollY||window.pageYOffset;le.unbindPosition=we.calculatePosition(le,we,{width:Be+"px",left:ze+Me+"px",top:Ze+Pe+Se+"px"}),document.body.appendChild(le)}},unbind:function(le,be,ve){ve.context.appendToBody&&(le.unbindPosition&&typeof le.unbindPosition=="function"&&le.unbindPosition(),le.parentNode&&le.parentNode.removeChild(le))}},ce=function(le){var be={};return Object.keys(le).sort().forEach(function(ve){be[ve]=le[ve]}),JSON.stringify(be)};var me=0;const ue=function(){return++me};function _e(le,be){var ve=Object.keys(le);if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(le);be&&(we=we.filter(function(Ae){return Object.getOwnPropertyDescriptor(le,Ae).enumerable})),ve.push.apply(ve,we)}return ve}function fe(le){for(var be=1;be<arguments.length;be++){var ve=arguments[be]!=null?arguments[be]:{};be%2?_e(Object(ve),!0).forEach(function(we){J()(le,we,ve[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(ve)):_e(Object(ve)).forEach(function(we){Object.defineProperty(le,we,Object.getOwnPropertyDescriptor(ve,we))})}return le}const ge=se({components:fe({},re),directives:{appendToBody:ne},mixins:[Z,ee,te],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(le){return le}},selectable:{type:Function,default:function(le){return!0}},getOptionLabel:{type:Function,default:function(le){return K()(le)==="object"?le.hasOwnProperty(this.label)?le[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(le),`. `)+"https://vue-select.org/api/props.html#getoptionlabel"):le}},getOptionKey:{type:Function,default:function(le){if(K()(le)!=="object")return le;try{return le.hasOwnProperty("id")?le.id:ce(le)}catch(be){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option. https://vue-select.org/api/props.html#getoptionkey`,le,be)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(le,be,ve){return(be||"").toLocaleLowerCase().indexOf(ve.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(le,be){var ve=this;return le.filter(function(we){var Ae=ve.getOptionLabel(we);return typeof Ae=="number"&&(Ae=Ae.toString()),ve.filterBy(we,Ae,be)})}},createOption:{type:Function,default:function(le){return K()(this.optionList[0])==="object"?J()({},this.label,le):le}},resetOnOptionsChange:{default:!1,validator:function(le){return["function","boolean"].includes(K()(le))}},clearSearchOnBlur:{type:Function,default:function(le){var be=le.clearSearchOnSelect,ve=le.multiple;return be&&!ve}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(le,be){return le}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(le,be,ve){var we=ve.width,Ae=ve.top,Se=ve.left;le.style.top=Ae,le.style.left=Se,le.style.width=we}},dropdownShouldOpen:{type:Function,default:function(le){var be=le.noDrop,ve=le.open,we=le.mutableLoading;return!be&&ve&&!we}},uid:{type:[String,Number],default:function(){return ue()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var le=this.value;return this.isTrackingValues&&(le=this.$data._value),le!=null&&le!==""?[].concat(le):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var le=this,be={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:fe({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return le.isComposing=!0},compositionend:function(){return le.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(ve){return le.search=ve.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:be,listFooter:be,header:fe({},be,{deselect:this.deselect}),footer:fe({},be,{deselect:this.deselect})}},childComponents:function(){return fe({},re,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var le=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return le;var be=this.search.length?this.filter(le,this.search,this):le;if(this.taggable&&this.search.length){var ve=this.createOption(this.search);this.optionExists(ve)||be.unshift(ve)}return be},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(le,be){var ve=this;!this.taggable&&(typeof ve.resetOnOptionsChange=="function"?ve.resetOnOptionsChange(le,be,ve.selectedValue):ve.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(le){this.isTrackingValues&&this.setInternalValueFromOptions(le)}},multiple:function(){this.clearSelection()},open:function(le){this.$emit(le?"open":"close")},search:function(le){le.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(le){var be=this;Array.isArray(le)?this.$data._value=le.map(function(ve){return be.findOptionFromReducedValue(ve)}):this.$data._value=this.findOptionFromReducedValue(le)},select:function(le){this.$emit("option:selecting",le),this.isOptionSelected(le)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(le):(this.taggable&&!this.optionExists(le)&&this.$emit("option:created",le),this.multiple&&(le=this.selectedValue.concat(le)),this.updateValue(le),this.$emit("option:selected",le)),this.onAfterSelect(le)},deselect:function(le){var be=this;this.$emit("option:deselecting",le),this.updateValue(this.selectedValue.filter(function(ve){return!be.optionComparator(ve,le)})),this.$emit("option:deselected",le)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(le){var be=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return be.$refs.search.focus()})},updateValue:function(le){var be=this;this.value===void 0&&(this.$data._value=le),le!==null&&(le=Array.isArray(le)?le.map(function(ve){return be.reduce(ve)}):this.reduce(le)),this.$emit("input",le)},toggleDropdown:function(le){var be=le.target!==this.searchEl;be&&le.preventDefault();var ve=[].concat(q()(this.$refs.deselectButtons||[]),q()([this.$refs.clearButton]));this.searchEl===void 0||ve.filter(Boolean).some(function(we){return we.contains(le.target)||we===le.target})?le.preventDefault():this.open&&be?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(le){var be=this;return this.selectedValue.some(function(ve){return be.optionComparator(ve,le)})},isOptionDeselectable:function(le){return this.isOptionSelected(le)&&this.deselectFromDropdown},optionComparator:function(le,be){return this.getOptionKey(le)===this.getOptionKey(be)},findOptionFromReducedValue:function(le){var be=this,ve=[].concat(q()(this.options),q()(this.pushedTags)).filter(function(we){return JSON.stringify(be.reduce(we))===JSON.stringify(le)});return ve.length===1?ve[0]:ve.find(function(we){return be.optionComparator(we,be.$data._value)})||le},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var le=null;this.multiple&&(le=q()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(le)}},optionExists:function(le){var be=this;return this.optionList.some(function(ve){return be.optionComparator(ve,le)})},normalizeOptionForSlot:function(le){return K()(le)==="object"?le:J()({},this.label,le)},pushTag:function(le){this.pushedTags.push(le)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var le=this.clearSearchOnSelect,be=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:le,multiple:be})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(le){var be=this,ve=function(Se){return Se.preventDefault(),!be.isComposing&&be.typeAheadSelect()},we={8:function(Se){return be.maybeDeleteValue()},9:function(Se){return be.onTab()},27:function(Se){return be.onEscape()},38:function(Se){if(Se.preventDefault(),be.open)return be.typeAheadUp();be.open=!0},40:function(Se){if(Se.preventDefault(),be.open)return be.typeAheadDown();be.open=!0}};this.selectOnKeyCodes.forEach(function(Se){return we[Se]=ve});var Ae=this.mapKeydown(we,this);if(typeof Ae[le.keyCode]=="function")return Ae[le.keyCode](le)},onSearchKeyPress:function(le){this.open||le.keyCode!==32||(le.preventDefault(),this.open=!0)}}},function(){var le=this,be=le.$createElement,ve=le._self._c||be;return ve("div",{staticClass:"v-select",class:le.stateClasses,attrs:{dir:le.dir}},[le._t("header",null,null,le.scope.header),le._v(" "),ve("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+le.uid+"__combobox",role:"combobox","aria-expanded":le.dropdownOpen.toString(),"aria-owns":"vs"+le.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(we){return le.toggleDropdown(we)}}},[ve("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[le._l(le.selectedValue,function(we){return le._t("selected-option-container",[ve("span",{key:le.getOptionKey(we),staticClass:"vs__selected"},[le._t("selected-option",[le._v(` `+le._s(le.getOptionLabel(we))+` `)],null,le.normalizeOptionForSlot(we)),le._v(" "),le.multiple?ve("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:le.disabled,type:"button",title:"Deselect "+le.getOptionLabel(we),"aria-label":"Deselect "+le.getOptionLabel(we)},on:{click:function(Ae){return le.deselect(we)}}},[ve(le.childComponents.Deselect,{tag:"component"})],1):le._e()],2)],{option:le.normalizeOptionForSlot(we),deselect:le.deselect,multiple:le.multiple,disabled:le.disabled})}),le._v(" "),le._t("search",[ve("input",le._g(le._b({staticClass:"vs__search"},"input",le.scope.search.attributes,!1),le.scope.search.events))],null,le.scope.search)],2),le._v(" "),ve("div",{ref:"actions",staticClass:"vs__actions"},[ve("button",{directives:[{name:"show",rawName:"v-show",value:le.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:le.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:le.clearSelection}},[ve(le.childComponents.Deselect,{tag:"component"})],1),le._v(" "),le._t("open-indicator",[le.noDrop?le._e():ve(le.childComponents.OpenIndicator,le._b({tag:"component"},"component",le.scope.openIndicator.attributes,!1))],null,le.scope.openIndicator),le._v(" "),le._t("spinner",[ve("div",{directives:[{name:"show",rawName:"v-show",value:le.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[le._v("Loading...")])],null,le.scope.spinner)],2)]),le._v(" "),ve("transition",{attrs:{name:le.transition}},[le.dropdownOpen?ve("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+le.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+le.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(we){return we.preventDefault(),le.onMousedown(we)},mouseup:le.onMouseUp}},[le._t("list-header",null,null,le.scope.listHeader),le._v(" "),le._l(le.filteredOptions,function(we,Ae){return ve("li",{key:le.getOptionKey(we),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":le.isOptionDeselectable(we)&&Ae===le.typeAheadPointer,"vs__dropdown-option--selected":le.isOptionSelected(we),"vs__dropdown-option--highlight":Ae===le.typeAheadPointer,"vs__dropdown-option--disabled":!le.selectable(we)},attrs:{id:"vs"+le.uid+"__option-"+Ae,role:"option","aria-selected":Ae===le.typeAheadPointer||null},on:{mouseover:function(Se){le.selectable(we)&&(le.typeAheadPointer=Ae)},click:function(Se){Se.preventDefault(),Se.stopPropagation(),le.selectable(we)&&le.select(we)}}},[le._t("option",[le._v(` `+le._s(le.getOptionLabel(we))+` `)],null,le.normalizeOptionForSlot(we))],2)}),le._v(" "),le.filteredOptions.length===0?ve("li",{staticClass:"vs__no-options"},[le._t("no-options",[le._v(` Sorry, no matching options. `)],null,le.scope.noOptions)],2):le._e(),le._v(" "),le._t("list-footer",null,null,le.scope.listFooter)],2):ve("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+le.uid+"__listbox",role:"listbox"}})]),le._v(" "),le._t("footer",null,null,le.scope.footer)],2)},[],!1,null,null,null).exports,ye={ajax:te,pointer:ee,pointerScroll:Z},xe=ge})(),j})()})})(vueSelect);var vueSelectExports=vueSelect.exports;const vSelect=getDefaultExportFromCjs$1(vueSelectExports),_sfc_main$46={props:{initialContainer:Object,initialPath:String,initialEditingAssetId:String,actions:Array,canCreateContainers:Boolean,createContainerUrl:String},data(){return{container:this.initialContainer,path:this.initialPath,selectedAssets:[]}},mounted(){this.bindBrowserNavigation()},methods:{bindBrowserNavigation(){window.history.replaceState({container:this.container,path:this.path},""),window.onpopstate=M=>{this.container=M.state.container,this.path=M.state.path}},pushState(){let M=cp_url("assets/browse/"+this.container.id);this.path!=="/"&&(M+="/"+this.path),window.history.pushState({container:this.container,path:this.path},"",M)},navigate(M,$){this.container=M,this.path=$,this.pushState(),this.selectedAssets=[]},updateSelections(M){this.selectedAssets=M},editAsset(M){event.preventDefault(),this.$refs.browser.edit(M.id)}}};var _sfc_render$46=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"asset-manager"},[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.__($.container.title)))]),$.container.can_edit||$.container.can_delete?I("dropdown-list",{staticClass:"rtl:mr-4 ltr:ml-4"},[$.container.can_edit?I("dropdown-item",{attrs:{redirect:$.container.edit_url},domProps:{textContent:$._s($.__("Edit Container"))}}):$._e(),I("dropdown-item",{attrs:{redirect:$.container.blueprint_url},domProps:{textContent:$._s($.__("Edit Blueprint"))}}),$.container.can_delete?I("dropdown-item",{staticClass:"warning",domProps:{textContent:$._s($.__("Delete Container"))},on:{click:function(N){return $.$refs.deleter.confirm()}}},[I("resource-deleter",{ref:"deleter",attrs:{"resource-title":$.__($.container.title),route:$.container.delete_url}})],1):$._e()],1):$._e(),$.canCreateContainers?I("a",{staticClass:"btn rtl:mr-4 ltr:ml-4",attrs:{href:$.createContainerUrl}},[$._v($._s($.__("Create Container")))]):$._e()],1),I("asset-browser",{ref:"browser",attrs:{"initial-container":$.container,"initial-per-page":$.$config.get("paginationSize"),"initial-editing-asset-id":$.initialEditingAssetId,"selected-path":$.path,"selected-assets":$.selectedAssets},on:{navigated:$.navigate,"selections-updated":$.updateSelections,"asset-doubleclicked":$.editAsset,"edit-asset":$.editAsset}})],1)},_sfc_staticRenderFns$46=[],__component__$47=normalizeComponent$2(_sfc_main$46,_sfc_render$46,_sfc_staticRenderFns$46,!1,null,null,null,null);const AssetManager=__component__$47.exports,_sfc_main$45={props:{asset:Object,square:{default:!1,type:Boolean}},computed:{showSvg(){return this.asset.extension==="svg"}}};var _sfc_render$45=function M(){var $=this,I=$._self._c;return I("div",{},[$.asset.is_image?I("img",{staticClass:"asset-thumbnail max-h-8 max-w-full mx-auto rounded",class:{"w-8 h-8 object-cover":$.square},attrs:{src:$.asset.thumbnail,loading:"lazy"}}):$.asset.is_svg?I("img",{staticClass:"asset-thumbnail h-8 max-w-full mx-auto rounded",attrs:{src:$.asset.url,loading:"lazy"}}):I("file-icon",{staticClass:"p-px asset-thumbnail rounded w-8 h-8",attrs:{extension:$.asset.extension}})],1)},_sfc_staticRenderFns$45=[],__component__$46=normalizeComponent$2(_sfc_main$45,_sfc_render$45,_sfc_staticRenderFns$45,!1,null,null,null,null);const AssetThumbnail=__component__$46.exports,_sfc_main$44={props:{config:{type:Object,required:!0},value:{required:!0},meta:{},errors:{type:Array},readOnly:Boolean,syncable:Boolean,namePrefix:String,fieldPathPrefix:String},inject:{storeName:{default:null},isInsideConfigFields:{default:!1}},data(){return{hasField:!1}},computed:{fieldtypeComponent(){return`${this.config.component||this.config.type}-fieldtype`},fieldtypeComponentExists(){return Vue$3.options.components[this.fieldtypeComponent]!==void 0},instructions(){return this.config.instructions?this.renderMarkdownAndLinks(__(this.config.instructions)):null},hasError(){return this.errors&&this.errors.length>0},isReadOnly(){return this.storeState.isRoot===!1&&!this.config.localizable?!0:this.isLocked||this.readOnly||this.config.visibility==="read_only"||!1},isLocalizable(){return this.$config.get("sites").length>1&&this.config.localizable},isTab(){return this.config.type==="tab"},isSection(){return this.config.type==="section"},classes(){return["form-group publish-field","publish-field__"+this.config.handle,`${this.config.component||this.config.type}-fieldtype`,,this.isReadOnly?"read-only-field":"",this.isInsideConfigFields?"config-field":`${tailwind_width_class(this.config.width)}`,this.showLabel?"has-field-label":"",this.shouldShowFieldActions?"has-field-dropdown":"",this.config.classes||"",this.config.full_width_setting?"full-width-setting":"",{"has-error":this.hasError||this.hasNestedError}]},fieldId(){return"field_"+this.config.handle},locks(){return this.storeState.fieldLocks||{}},isLocked(){return Object.keys(this.locks).includes(this.config.handle)},lockingUser(){if(this.isLocked){let M=this.locks[this.config.handle];if(typeof M=="object")return M}},isSynced(){if(this.syncable)return!this.storeState.localizedFields.includes(this.config.handle)},storeState(){return this.$store.state.publish[this.storeName]||{}},hasNestedError(){const M=`${this.fieldPathPrefix||this.config.handle}.`;return Object.keys(this.storeState.errors??[]).some($=>$.startsWith(M))},labelText(){return this.config.display||Vue$3.$options.filters.titleize(Vue$3.$options.filters.deslugify(this.config.handle))},showLabelText(){return!this.config.hide_display},showLabel(){return this.showLabelText||this.isReadOnly||this.config.required||this.isLocked||this.isLocalizable||this.syncable},shouldShowFieldActions(){return!this.isInsideConfigFields&&this.fieldActions.length>0},fieldActions(){return this.hasField?this.$refs.field.fieldActions:[]}},mounted(){this.$refs.field&&(this.hasField=!0)},methods:{focused(){this.isLocked||this.$emit("focus")},blurred(){this.isLocked||this.$emit("blur")},renderMarkdownAndLinks(M){var $=new marked.Renderer;return $.link=function(I,N,B){var j=marked.Renderer.prototype.link.call(this,I,N,B);return j.replace("<a","<a target='_blank' ")},marked.setOptions({renderer:$}),marked(M)},metaLoaded(){this.$nextTick(()=>this.hasField=!0)}}};var _sfc_render$44=function M(){var $=this,I=$._self._c;return I("publish-field-meta",{attrs:{config:$.config,"initial-value":$.value,"initial-meta":$.meta},on:{loaded:$.metaLoaded},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return I("div",{class:$.classes},[I("div",{staticClass:"field-inner"},[$.showLabel?I("label",{staticClass:"publish-field-label",class:{"font-bold":$.config.bold},attrs:{for:$.fieldId}},[$.showLabelText?I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.config.handle,delay:500,autoHide:!1},expression:"{content: config.handle, delay: 500, autoHide: false}"}],staticClass:"rtl:ml-1 ltr:mr-1",class:{"text-gray-600":$.syncable&&$.isSynced},domProps:{textContent:$._s($.__($.labelText))}}):$._e(),$.showLabelText&&$.config.required?I("i",{staticClass:"required rtl:ml-1 ltr:mr-1"},[$._v("*")]):$._e(),$.isLocked?I("avatar",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.lockingUser.name,expression:"lockingUser.name"}],staticClass:"w-6 h-6 rounded-full -mt-px rtl:mr-2 ltr:ml-2 rtl:ml-2 ltr:mr-2",attrs:{user:$.lockingUser}}):$._e(),$.isReadOnly&&!$.isTab&&!$.isSection?I("span",{staticClass:"text-gray-500 dark:text-dark-200 font-normal text-2xs rtl:ml-1 ltr:mr-1 mt-0.5"},[$._v(" "+$._s($.isLocked?$.__("Locked"):$.__("Read Only"))+" ")]):$._e(),$.isLocalizable&&!$.isTab?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("Localizable field"),expression:"__('Localizable field')",modifiers:{top:!0}}],staticClass:"h-4 rtl:ml-1 ltr:mr-1 w-4 text-gray-600",attrs:{name:"translate"}}):$._e(),!$.isReadOnly&&!$.isTab?I("button",{directives:[{name:"show",rawName:"v-show",value:$.syncable&&$.isSynced,expression:"syncable && isSynced"}],staticClass:"outline-none",class:{flex:$.syncable&&$.isSynced},on:{click:function(U){return $.$emit("desynced")}}},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("messages.field_synced_with_origin"),expression:"__('messages.field_synced_with_origin')",modifiers:{top:!0}}],staticClass:"h-4 w-4 rtl:ml-1.5 ltr:mr-1.5 mb-1 text-gray-600",attrs:{name:"light/hyperlink"}})],1):$._e(),!$.isReadOnly&&!$.isTab?I("button",{directives:[{name:"show",rawName:"v-show",value:$.syncable&&!$.isSynced,expression:"syncable && !isSynced"}],staticClass:"outline-none",class:{flex:$.syncable&&!$.isSynced},on:{click:function(U){return $.$emit("synced")}}},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("messages.field_desynced_from_origin"),expression:"__('messages.field_desynced_from_origin')",modifiers:{top:!0}}],staticClass:"h-4 w-4 rtl:ml-1.5 ltr:mr-1.5 mb-1 text-gray-600",attrs:{name:"light/hyperlink-broken"}})],1):$._e()],1):$._e(),$.instructions&&$.config.instructions_position!=="below"?I("div",{staticClass:"help-block",class:{"-mt-2":$.showLabel},domProps:{innerHTML:$._s($.instructions)}}):$._e(),$.shouldShowFieldActions?I("publish-field-actions",{attrs:{actions:$.fieldActions}}):$._e()],1),j?I("loading-graphic",{attrs:{size:16,inline:!0}}):$._e(),j?$._e():$._t("fieldtype",function(){return[$.fieldtypeComponentExists?I($.fieldtypeComponent,{ref:"field",tag:"component",attrs:{config:$.config,value:B,meta:N,handle:$.config.handle,"name-prefix":$.namePrefix,"field-path-prefix":$.fieldPathPrefix,"read-only":$.isReadOnly},on:{input:function(U){return $.$emit("input",U)},"meta-updated":function(U){return $.$emit("meta-updated",U)},focus:$.focused,blur:$.blurred}}):I("div",{staticClass:"text-xs text-red-500"},[$._v("Component "),I("code",{domProps:{textContent:$._s($.fieldtypeComponent)}}),$._v(" does not exist.")])]}),$.instructions&&$.config.instructions_position==="below"?I("div",{staticClass:"help-block mt-2",domProps:{innerHTML:$._s($.instructions)}}):$._e(),$.hasError?I("div",$._l($.errors,function(U,q){return I("small",{key:q,staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s(U)}})}),0):$._e()],2)}}],null,!0)})},_sfc_staticRenderFns$44=[],__component__$45=normalizeComponent$2(_sfc_main$44,_sfc_render$44,_sfc_staticRenderFns$44,!1,null,null,null,null);const PublishField=__component__$45.exports,_sfc_main$43={components:{PublishField},mixins:[ValidatesFieldConditions],inject:["storeName"],props:{fields:{type:Array,required:!0},readOnly:Boolean,syncable:Boolean,syncableFields:Array,namePrefix:String},computed:{state(){return this.$store.state.publish[this.storeName]},values(){return this.state.values},extraValues(){return this.state.extraValues||{}},meta(){return this.state.meta},errors(){return this.state.errors}},methods:{isSyncableField(M){return this.syncable?this.syncableFields?this.syncableFields.includes(M.handle):!0:!1}}};var _sfc_render$43=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"publish-fields @container"},$._l($.fields,function(N){return I("publish-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N),expression:"showField(field)"}],key:N.handle,attrs:{config:N,value:$.values[N.handle],meta:$.meta[N.handle],errors:$.errors[N.handle],"read-only":$.readOnly,syncable:$.isSyncableField(N),"name-prefix":$.namePrefix},on:{input:function(B){return $.$emit("updated",N.handle,B)},"meta-updated":function(B){return $.$emit("meta-updated",N.handle,B)},synced:function(B){return $.$emit("synced",N.handle)},desynced:function(B){return $.$emit("desynced",N.handle)},focus:function(B){return $.$emit("focus",N.handle)},blur:function(B){return $.$emit("blur",N.handle)}}})}),1)},_sfc_staticRenderFns$43=[],__component__$44=normalizeComponent$2(_sfc_main$43,_sfc_render$43,_sfc_staticRenderFns$43,!1,null,null,null,null);const Fields$1=__component__$44.exports,_sfc_main$42={components:{PublishFields:Fields$1},props:{action:{type:Object,required:!0},selections:{type:Number,required:!0},errors:{type:Object},isDirty:{type:Boolean,default:!1}},data(){return{confirming:!1,fieldset:{tabs:[{fields:this.action.fields}]},values:this.action.values,running:!1}},computed:{confirmationText(){if(this.action.confirmationText)return __n(this.action.confirmationText,this.selections)},warningText(){if(this.action.warningText)return __n(this.action.warningText,this.selections)},dirtyText(){if(this.isDirty)return __(this.action.dirtyWarningText)},showDirtyWarning(){return this.isDirty&&this.action.dirtyWarningText&&!this.action.bypassesDirtyWarning},runButtonText(){return __n(this.action.buttonText,this.selections)}},created(){this.$events.$on("reset-action-modals",this.reset)},destroyed(){this.$events.$off("reset-action-modals",this.reset)},methods:{onDone(){this.running=!1},select(){if(this.action.confirm){this.confirming=!0;return}this.running=!0,this.$emit("selected",this.action,this.values,this.onDone)},confirm(){this.running=!0,this.$emit("selected",this.action,this.values,this.onDone)},reset(){this.confirming=!1,this.values=clone(this.action.values)}}};var _sfc_render$42=function M(){var $=this,I=$._self._c;return I("span",[$._t("default",null,{action:$.action,select:$.select}),$.confirming?I("confirmation-modal",{attrs:{title:$.action.title,danger:$.action.dangerous,buttonText:$.runButtonText,busy:$.running},on:{confirm:$.confirm,cancel:$.reset}},[$.confirmationText?I("div",{class:{"mb-4":$.warningText||$.showDirtyWarning||$.action.fields.length},domProps:{textContent:$._s($.confirmationText)}}):$._e(),$.warningText?I("div",{staticClass:"text-red-500",class:{"mb-4":$.showDirtyWarning||$.action.fields.length},domProps:{textContent:$._s($.warningText)}}):$._e(),$.showDirtyWarning?I("div",{staticClass:"text-red-500",class:{"mb-4":$.action.fields.length},domProps:{textContent:$._s($.dirtyText)}}):$._e(),$.action.fields.length?I("publish-container",{attrs:{name:"confirm-action",blueprint:$.fieldset,values:$.values,meta:$.action.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("publish-fields",{attrs:{fields:$.action.fields},on:{updated:N,"meta-updated":B}})}}],null,!1,3839930647)}):$._e()],1):$._e()],2)},_sfc_staticRenderFns$42=[],__component__$43=normalizeComponent$2(_sfc_main$42,_sfc_render$42,_sfc_staticRenderFns$42,!1,null,null,null,null);const DataListAction=__component__$43.exports,Actions={components:{DataListAction},props:{url:String},data(){return{errors:{}}},computed:{sortedActions(){let M=_.sortBy(this.actions,"title");return[...M.filter($=>!$.dangerous),...M.filter($=>$.dangerous)]}},methods:{run(M,$,I){this.$emit("started"),this.errors={};const N={action:M.handle,context:M.context,selections:this.selections,values:$};this.$axios.post(this.url,N,{responseType:"blob"}).then(B=>{B.headers["content-disposition"]?this.handleFileDownload(B):this.handleActionSuccess(B)}).catch(B=>this.handleActionError(B.response)).finally(()=>{I&&I()})},handleActionSuccess(M){M.data.text().then($=>{$=JSON.parse($),$.redirect&&($.bypassesDirtyWarning&&this.$dirty.disableWarning(),window.location=$.redirect),$.callback&&Statamic.$callbacks.call($.callback[0],...$.callback.slice(1)),this.$emit("completed",!0,$)})},handleActionError(M){M.data.text().then($=>{$=JSON.parse($),M.status==422&&(this.errors=$.errors),this.$toast.error($.message),this.$emit("completed",!1,$)})},handleFileDownload(M){const $=M.headers["content-disposition"].match(/^attachment.+filename\*?=(?:UTF-8'')?"?([^"]+)"?/i)||[];if(!$.length)return;const I=$.length>=2?$[1]:"file.txt",N=window.URL.createObjectURL(new Blob([M.data])),B=document.createElement("a");B.href=N,B.setAttribute("download",I),document.body.appendChild(B),B.click(),this.$emit("completed",!0)}}},_sfc_main$41={mixins:[Actions],props:{actions:{type:Array,required:!0},id:{type:String,required:!0}},computed:{selections(){return[this.id]}},created(){this.$events.$on("editor-action-selected",this.actionSelected)},methods:{findActionComponent(M){return _.find(this.$refs.actions,$=>$.action.handle===M)},actionSelected(M){this.findActionComponent(M.action).confirming=!0}}};var _sfc_render$41=function M(){var $=this,I=$._self._c;return I("div",$._l($.actions,function(N){return I("data-list-action",{key:N.handle,ref:"actions",refInFor:!0,attrs:{action:N,selections:1,errors:$.errors},on:{selected:$.run}})}),1)},_sfc_staticRenderFns$41=[],__component__$42=normalizeComponent$2(_sfc_main$41,_sfc_render$41,_sfc_staticRenderFns$41,!1,null,null,null,null);const EditorActions=__component__$42.exports,_sfc_main$40={props:["x","y","z","imageUrl","imageDimensions"],data(){return{frameDimensions:{w:100,h:100}}},mounted(){const M=this.$refs.frame;this.frameDimensions={w:M.clientWidth,h:M.clientHeight}},computed:{bgImageDimensions(){const M=({w:$,h:I})=>$/I;return M(this.imageDimensions)>M(this.frameDimensions)?{h:this.frameDimensions.h,w:this.frameDimensions.h/this.imageDimensions.h*this.imageDimensions.w}:{w:this.frameDimensions.w,h:this.frameDimensions.w/this.imageDimensions.w*this.imageDimensions.h}},frameWidthPercent(){return this.frameDimensions.w/this.bgImageDimensions.w*100},frameHeightPercent(){return this.frameDimensions.h/this.bgImageDimensions.h*100},relOffsetLeft(){let M=this.x-this.frameWidthPercent/2;return M=Math.max(M,0),Math.min(M,100-this.frameWidthPercent)},offsetLeft(){return this.relOffsetLeft*this.bgImageDimensions.w/100},relOffsetTop(){let M=this.y-this.frameHeightPercent/2;return M=Math.max(M,0),Math.min(M,100-this.frameHeightPercent)},offsetTop(){return this.relOffsetTop*this.bgImageDimensions.h/100},backgroundPosition(){return`-${this.offsetLeft}px -${this.offsetTop}px`},transformOrigin(){const M={x:(this.x-this.relOffsetLeft)/this.frameWidthPercent*100,y:(this.y-this.relOffsetTop)/this.frameHeightPercent*100};return`${M.x}% ${M.y}%`}}};var _sfc_render$40=function M(){var $=this,I=$._self._c;return I("div",{ref:"frame",staticClass:"frame-image",style:{backgroundImage:`url('${encodeURI($.imageUrl)}')`,backgroundPosition:$.backgroundPosition,transform:`scale(${$.z})`,transformOrigin:$.transformOrigin}})},_sfc_staticRenderFns$40=[],__component__$41=normalizeComponent$2(_sfc_main$40,_sfc_render$40,_sfc_staticRenderFns$40,!1,null,null,null,null);const FocalPointPreviewFrame=__component__$41.exports,_sfc_main$3$={components:{FocalPointPreviewFrame},props:["data","image"],data(){return{x:50,y:50,z:1,imageDimensions:null}},mounted(){const $=(this.data||"50-50-1").split("-");this.x=$[0],this.y=$[1],this.z=$[2]||1},computed:{reticleSize(){return!this.imageDimensions||!this.z?0:Math.min(this.imageDimensions.w,this.imageDimensions.h)/this.z}},methods:{setImageDimensions(){const M=this.$refs.image;this.imageDimensions={w:M.clientWidth,h:M.clientHeight}},define(M){var $=M.target.getBoundingClientRect(),I=$.width,N=$.height,B=M.clientX-$.left,j=M.clientY-$.top;this.x=(B/I*100).toFixed(),this.y=(j/N*100).toFixed()},select(){this.$emit("selected",this.x+"-"+this.y+"-"+this.z),this.close()},close(){this.$emit("closed")},reset(){this.x=50,this.y=50,this.z=1}}};var _sfc_render$3$=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"focal-point"}},[I("div",{staticClass:"focal-point"},[I("div",{staticClass:"focal-point-toolbox card p-0"},[I("div",{staticClass:"p-4"},[I("label",[$._v($._s($.__("Focal Point")))]),I("small",{staticClass:"help-block"},[$._v($._s($.__("messages.focal_point_instructions")))]),I("div",{staticClass:"focal-point-image"},[I("img",{ref:"image",attrs:{src:$.image},on:{click:$.define,load:$.setImageDimensions}}),I("div",{staticClass:"focal-point-reticle",class:{zoomed:$.z>1},style:{top:`${$.y}%`,left:`${$.x}%`,width:`${$.reticleSize}px`,height:`${$.reticleSize}px`,marginTop:`-${$.reticleSize/2}px`,marginLeft:`-${$.reticleSize/2}px`}})])]),I("div",{staticClass:"flex items-center text-sm justify-center mb-4"},[I("div",{staticClass:"flex items-center mx-4"},[I("div",{staticClass:"rtl:ml-1 ltr:mr-1"},[$._v("X")]),I("div",{staticClass:"value"},[$._v($._s($.x)),I("sup",[$._v("%")])])]),I("div",{staticClass:"flex items-center mx-4"},[I("div",{staticClass:"rtl:ml-1 ltr:mr-1"},[$._v("Y")]),I("div",{staticClass:"value"},[$._v($._s($.y)),I("sup",[$._v("%")])])]),I("div",{staticClass:"flex items-center mx-4"},[I("div",{staticClass:"rtl:ml-1 ltr:mr-1"},[$._v("Z")]),I("div",{staticClass:"value"},[$._v($._s($.z))])])]),I("div",{staticClass:"px-4"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.z,expression:"z"}],staticClass:"w-full mb-4",attrs:{type:"range",min:"1",max:"10",step:"0.1"},domProps:{value:$.z},on:{__r:function(N){$.z=N.target.value}}}),I("div",{staticClass:"mb-2 flex flex-wrap items-center justify-center"},[I("button",{staticClass:"btn mb-2",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.close.apply(null,arguments)}}},[$._v($._s($.__("Cancel")))]),I("button",{staticClass:"btn mb-2 btn-default mx-2",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.reset.apply(null,arguments)}}},[$._v($._s($.__("Reset")))]),I("button",{staticClass:"btn mb-2 btn-primary",attrs:{type:"button"},on:{click:$.select}},[$._v($._s($.__("Finish")))])])]),I("h6",{staticClass:"p-4 text-center bg-gray-300 dark:bg-dark-550 rounded-b dark:border-dark-200"},[$._v($._s($.__("messages.focal_point_previews_are_examples")))])]),$._l(9,function(N){return I("div",{key:N,class:`frame frame-${N}`},[$.imageDimensions?I("focal-point-preview-frame",{attrs:{x:$.x,y:$.y,z:$.z,"image-url":$.image,"image-dimensions":$.imageDimensions}}):$._e()],1)})],2)])},_sfc_staticRenderFns$3$=[],__component__$40=normalizeComponent$2(_sfc_main$3$,_sfc_render$3$,_sfc_staticRenderFns$3$,!1,null,null,null,null);const FocalPointEditor=__component__$40.exports;var pdfobject={exports:{}};/** * PDFObject v2.2.8 * https://github.com/pipwerks/PDFObject * @license * Copyright (c) 2008-2022 Philip Hutchison * MIT-style license: http://pipwerks.mit-license.org/ * UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js */(function(M){(function($,I){M.exports?M.exports=I():$.PDFObject=I()})(commonjsGlobal,function(){if(typeof window>"u"||window.navigator===void 0||window.navigator.userAgent===void 0||window.navigator.mimeTypes===void 0)return!1;let $="2.2.8",I=window.navigator,N=window.navigator.userAgent,B="ActiveXObject"in window,j=window.Promise!==void 0,U=I.mimeTypes["application/pdf"]!==void 0,Y=I.platform!==void 0&&I.platform==="MacIntel"&&I.maxTouchPoints!==void 0&&I.maxTouchPoints>1||/Mobi|Tablet|Android|iPad|iPhone/.test(N),K=!Y&&I.vendor!==void 0&&/Apple/.test(I.vendor)&&/Safari/.test(N),G=!Y&&/irefox/.test(N)&&N.split("rv:").length>1?parseInt(N.split("rv:")[1].split(".")[0],10)>18:!1,J=function(ue){var _e;try{_e=new ActiveXObject(ue)}catch{_e=null}return _e},ee=!Y&&(j||G||U||B&&function(){return!!(J("AcroPDF.PDF")||J("PDF.PdfCtrl"))}()),te=function(ue){let _e="",fe;if(ue){for(fe in ue)ue.hasOwnProperty(fe)&&(_e+=encodeURIComponent(fe)+"="+encodeURIComponent(ue[fe])+"&");_e&&(_e="#"+_e,_e=_e.slice(0,_e.length-1))}return _e},se=function(ue,_e){return _e||console.log("[PDFObject] "+ue),!1},re=function(ue){for(;ue.firstChild;)ue.removeChild(ue.firstChild)},ne=function(ue){let _e=document.body;return typeof ue=="string"?_e=document.querySelector(ue):window.jQuery!==void 0&&ue instanceof jQuery&&ue.length?_e=ue.get(0):ue.nodeType!==void 0&&ue.nodeType===1&&(_e=ue),_e},ce=function(ue,_e,fe,ge,ye,xe,le,be,ve,we){re(_e);let Ae=fe;if(ue==="pdfjs"){let Me=we.indexOf("?")!==-1?"&":"?";Ae=we+Me+"file="+encodeURIComponent(fe)+ge}let Se=ue==="pdfjs"||ue==="iframe"?"iframe":"embed",Pe=document.createElement(Se);if(Pe.className="pdfobject",Pe.type="application/pdf",Pe.title=be,Pe.src=Ae,le&&(Pe.id=le),Se==="iframe"&&(Pe.allow="fullscreen",Pe.frameborder="0"),!ve){let Me=Se==="embed"?"overflow: auto;":"border: none;";_e!==document.body?Me+="width: "+ye+"; height: "+xe+";":Me+="position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",Pe.style.cssText=Me}return _e.classList.add("pdfobject-container"),_e.appendChild(Pe),_e.getElementsByTagName(Se)[0]},me=function(ue,_e,fe){let ge=_e||!1,ye=fe||{},xe=typeof ye.id=="string"?ye.id:"",le=ye.page||!1,be=ye.pdfOpenParams||{},ve=typeof ye.fallbackLink=="string"||typeof ye.fallbackLink=="boolean"?ye.fallbackLink:!0,we=ye.width||"100%",Ae=ye.height||"100%",Se=ye.title||"Embedded PDF",Pe=typeof ye.assumptionMode=="boolean"?ye.assumptionMode:!0,Me=typeof ye.forcePDFJS=="boolean"?ye.forcePDFJS:!1,Be=typeof ye.supportRedirect=="boolean"?ye.supportRedirect:!1,ze=typeof ye.omitInlineStyles=="boolean"?ye.omitInlineStyles:!1,Ze=typeof ye.suppressConsole=="boolean"?ye.suppressConsole:!1,ft=typeof ye.forceIframe=="boolean"?ye.forceIframe:!1,Ye=ye.PDFJS_URL||!1,Ve=ne(ge),Dt="",Nt="",Vt="<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>";return typeof ue!="string"?se("URL is not valid",Ze):Ve?(le&&(be.page=le),Nt=te(be),Me&&Ye?ce("pdfjs",Ve,ue,Nt,we,Ae,xe,Se,ze,Ye):ee||Pe&&!Y?ce(ft||Be||K?"iframe":"embed",Ve,ue,Nt,we,Ae,xe,Se,ze):Ye?ce("pdfjs",Ve,ue,Nt,we,Ae,xe,Se,ze,Ye):(ve&&(Dt=typeof ve=="string"?ve:Vt,Ve.innerHTML=Dt.replace(/\[url\]/g,ue)),se("This browser does not support embedded PDFs",Ze))):se("Target element cannot be determined",Ze)};return{embed:function(ue,_e,fe){return me(ue,_e,fe)},pdfobjectversion:function(){return $}(),supportsPDFs:function(){return ee}()}})})(pdfobject);var pdfobjectExports=pdfobject.exports;const PDFObject=getDefaultExportFromCjs$1(pdfobjectExports),_sfc_main$3_={props:{src:{required:!0}},mounted(){PDFObject.embed(this.src,"#pdfViewer")}};var _sfc_render$3_=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full text-white text-center flex flex-col justify-center items-center",attrs:{id:"pdfViewer"}})},_sfc_staticRenderFns$3_=[],__component__$3$=normalizeComponent$2(_sfc_main$3_,_sfc_render$3_,_sfc_staticRenderFns$3_,!1,null,null,null,null);const PdfViewer=__component__$3$.exports;function data_delete(M,$){for(var I=$.split(".");I.length-1;){var N=I.shift(),B=I.length?new RegExp("^[0-9]+$").test(I[0]):!1;N in M||(M[N]=B?[]:{}),M=M[N]}delete M[I[0]]}class Values{constructor($,I){this.values=clone$4($),this.jsonFields=clone$4(I||[]).filter((N,B)=>I.indexOf(N)===B).sort()}get($){let I=new this.constructor(clone$4(this.values),this.jsonFields).jsonDecode().values;return data_get$1(I,$)}set($,I){return this.jsonDecode().setValue($,I).jsonEncode(),this}mergeDottedKeys($,I){let N=new this.constructor(clone$4(I.values),I.jsonFields).jsonDecode().values;return this.jsonDecode(),$.forEach(B=>{data_set(this.values,B,data_get$1(N,B))}),this.jsonEncode(),this}except($){return this.jsonDecode().rejectValuesByKey($).jsonEncode().all()}all(){return this.values}jsonDecode(){return this.jsonFields.forEach($=>{this.jsonDecodeValue($)}),this}jsonEncode(){return clone$4(this.jsonFields).reverse().forEach($=>{this.jsonEncodeValue($)}),this}dottedKeyToJsPath($){return $.split(".").map(I=>new RegExp(/^\d+.*/).test(I)?'["'+I+'"]':I).join(".").replace(/\.\[/g,"[")}missingValue($){var I=Array.isArray($)?$:$.split("."),N=I.reduce((B,j)=>B&&B[j],clone$4(this.values));return N===void 0}jsonDecodeValue($){if(this.missingValue($))return;let I=clone$4(this.values),N=data_get$1(I,$),B=JSON.parse(N);data_set(I,$,B),this.values=I}jsonEncodeValue($){if(this.missingValue($))return;let I=clone$4(this.values),N=data_get$1(I,$),B=JSON.stringify(N);data_set(I,$,B),this.values=I}setValue($,I){return data_set(this.values,$,I),this}rejectValuesByKey($){return $.forEach(I=>{this.forgetValue(I)}),this}forgetValue($){if(this.missingValue($))return;let I=clone$4(this.values);data_delete(I,$),this.values=I}}const HasHiddenFields={computed:{hiddenFields(){return this.$store.state.publish[this.publishContainer].hiddenFields},jsonSubmittingFields(){return this.$store.state.publish[this.publishContainer].jsonSubmittingFields},revealerFields(){return this.$store.state.publish[this.publishContainer].revealerFields},visibleValues(){let M=_.chain(this.hiddenFields).pick($=>$.omitValue).keys().value();return new Values(this.values,this.jsonSubmittingFields).except(M)}},methods:{resetValuesFromResponse(M){if(!M)return this.values;let $=["id"].concat(this.revealerFields),I=new Values(this.values,this.jsonSubmittingFields),N=new Values(M,this.jsonSubmittingFields);return N.mergeDottedKeys($,I),N.all()}}},_sfc_main$3Z={mixins:[HasHiddenFields],components:{EditorActions,FocalPointEditor,PdfViewer,PublishFields:Fields$1},props:{id:{required:!0},readOnly:{type:Boolean},showToolbar:{type:Boolean,default:!0},allowDeleting:{type:Boolean,default(){return!0}}},data(){return{loading:!0,saving:!1,asset:null,publishContainer:"asset",values:{},extraValues:{},meta:{},fields:null,fieldset:null,showFocalPointEditor:!1,error:null,errors:{},actions:[]}},computed:{isImage(){return this.asset?this.asset.isImage:!1},hasErrors:function(){return this.error||Object.keys(this.errors).length},canUseGoogleDocsViewer(){return Statamic.$config.get("googleDocsViewer")},isFocalPointEditorEnabled(){return Statamic.$config.get("focalPointEditorEnabled")},isToolbarVisible(){return!this.readOnly&&this.showToolbar},actionsMenu(){return this.actions.filter(M=>!["rename_asset","move_asset","replace_asset","reupload_asset","download_asset","delete","copy_asset_url"].includes(M.handle))}},mounted(){this.$modal.show("asset-editor"),this.load()},events:{"close-child-editor":function(){this.closeFocalPointEditor(),this.closeImageEditor(),this.closeRenamer()}},methods:{load(){this.loading=!0;const M=cp_url(`assets/${utf8btoa(this.id)}`);this.$axios.get(M).then($=>{const I=$.data.data;this.asset=I,this.values=_.isArray(I.values)?{}:I.values,this.meta=I.meta,this.actionUrl=I.actionUrl,this.actions=I.actions,this.fieldset=I.blueprint,this.fields=_.chain(this.fieldset.tabs).map(N=>N.sections).flatten(!0).map(N=>N.fields).flatten(!0).value(),this.extraValues=pick(this.asset,["filename","basename","extension","path","mimeType","width","height","duration"]),this.loading=!1})},openFocalPointEditor(){this.showFocalPointEditor=!0},closeFocalPointEditor(){this.showFocalPointEditor=!1},selectFocalPoint(M){M=M==="50-50-1"?null:M,this.$set(this.values,"focus",M),this.$dirty.add(this.publishContainer)},save(){this.saving=!0;const M=cp_url(`assets/${utf8btoa(this.id)}`);this.$axios.patch(M,this.visibleValues).then($=>{this.$emit("saved",$.data.asset),this.$toast.success(__("Saved")),this.saving=!1,this.clearErrors()}).catch($=>{if(this.saving=!1,$.response&&$.response.status===422){const{message:I,errors:N,error:B}=$.response.data;this.error=I,this.errors=N,this.$toast.error(B)}else $.response?this.$toast.error($.response.data.message):this.$toast.error(__("Something went wrong"))})},clearErrors(){this.error=null,this.errors={}},close(){this.$modal.hide("asset-editor"),this.$emit("closed")},shouldClose(){return!(this.$dirty.has(this.publishContainer)&&!confirm(__("Are you sure? Unsaved changes will be lost.")))},open(){window.open(this.asset.url,"_blank")},download(){window.open(this.asset.downloadUrl)},canRunAction(M){return _.find(this.actions,$=>$.handle==M)},runAction(M){this.$events.$emit("editor-action-selected",{action:M,selection:this.id})},actionStarted(M){this.$events.$emit("editor-action-started")},actionCompleted(M,$){this.$events.$emit("editor-action-completed",M,$),this.$emit("action-completed",M,$),M&&this.close()}}};var _sfc_render$3Z=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{name:"asset-editor","before-close":$.shouldClose,full:!0},on:{closed:$.close}},[I("div",{staticClass:"asset-editor flex flex-col relative bg-gray-100 dark:bg-dark-800 h-full rounded",class:$.isImage?"is-image":"is-file"},[$.loading?I("div",{staticClass:"loading"},[I("loading-graphic")],1):$._e(),$.loading?$._e():[I("div",{staticClass:"flex justify-between w-full px-2 relative",attrs:{id:"asset-editor-header"}},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip.right",value:$.__("Open in a new window"),expression:"__('Open in a new window')",modifiers:{right:!0}}],staticClass:"flex items-center p-4 group",attrs:{"aria-label":$.__("Open in a new window")},on:{click:$.open}},[I("svg-icon",{staticClass:"text-gray-700 dark:text-dark-175 h-5 w-5",attrs:{name:"folder-image"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 text-sm text-gray-800 dark:text-dark-150 group-hover:text-blue dark:group-hover:text-dark-100"},[$._v($._s($.asset.path))]),I("svg-icon",{staticClass:"text-gray-700 dark:text-dark-175 h-5 w-5 group-hover:text-blue dark:group-hover:text-dark-100 rtl:rotate-180",attrs:{name:"micro/chevron-right"}})],1),I("button",{staticClass:"btn-close absolute top-2 rtl:left-2.5 ltr:right-2.5",attrs:{"aria-label":$.__("Close Editor")},on:{click:$.close}},[$._v("×")])]),I("div",{staticClass:"flex flex-1 flex-col md:flex-row md:justify-between grow overflow-scroll"},[I("div",{staticClass:"editor-preview bg-gray-800 dark:bg-dark-950 rtl:md:rounded-tl-md ltr:md:rounded-tr-md flex flex-col justify-between flex-1 min-h-[45vh] md:min-h-auto md:flex-auto md:grow w-full md:w-1/2 lg:w-2/3 shadow-[inset_0px_4px_3px_0px_black]"},[$.isToolbarVisible?I("div",{staticClass:"@container/toolbar flex items-center justify-center py-4 px-2 text-2xs text-white dark:text-dark-100 text-center space-x-1 sm:space-x-3 rtl:space-x-reverse",attrs:{id:"asset-editor-toolbar"}},[$.isImage&&$.isFocalPointEditorEnabled?I("button",{staticClass:"flex bg-gray-750 dark:bg-dark-400 hover:bg-gray-900 dark:hover:bg-dark-600 hover:text-yellow-light dark:hover:text-yellow-dark rounded items-center justify-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.openFocalPointEditor.apply(null,arguments)}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"focal-point"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Focal Point")))])],1):$._e(),$.canRunAction("rename_asset")?I("button",{staticClass:"flex bg-gray-750 dark:bg-dark-400 hover:bg-gray-900 dark:hover:bg-dark-600 hover:text-yellow-light dark:hover:text-yellow-dark rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("rename_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"rename-file"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Rename")))])],1):$._e(),$.canRunAction("move_asset")?I("button",{staticClass:"flex bg-gray-750 dark:bg-dark-400 hover:bg-gray-900 dark:hover:bg-dark-600 hover:text-yellow-light dark:hover:text-yellow-dark rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("move_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"move-file"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Move")))])],1):$._e(),$.canRunAction("replace_asset")?I("button",{staticClass:"flex bg-gray-750 dark:bg-dark-400 hover:bg-gray-900 dark:hover:bg-dark-600 hover:text-yellow-light dark:hover:text-yellow-dark rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("replace_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"swap"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Replace")))])],1):$._e(),$.canRunAction("reupload_asset")?I("button",{staticClass:"flex bg-gray-750 dark:bg-dark-400 hover:bg-gray-900 dark:hover:bg-dark-600 hover:text-yellow-light dark:hover:text-yellow-dark rounded items-center px-3 py-1.5",attrs:{type:"button"},on:{click:function(N){return N.preventDefault(),$.runAction("reupload_asset")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"upload-cloud"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Reupload")))])],1):$._e(),$.asset.allowDownloading?I("button",{staticClass:"flex bg-gray-750 dark:bg-dark-400 hover:bg-gray-900 dark:hover:bg-dark-600 hover:text-yellow-light dark:hover:text-yellow-dark rounded items-center px-3 py-1.5",attrs:{"aria-label":$.__("Download file")},on:{click:$.download}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"download-desktop"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Download")))])],1):$._e(),$.allowDeleting&&$.canRunAction("delete")?I("button",{staticClass:"flex bg-gray-750 dark:bg-dark-400 hover:bg-gray-900 dark:hover:bg-dark-600 hover:text-red-400 dark:hover:text-dark-red rounded items-center text-center px-3 py-1.5",on:{click:function(N){return $.runAction("delete")}}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"trash"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @3xl/toolbar:inline-block"},[$._v($._s($.__("Delete")))])],1):$._e(),$.actionsMenu.length?I("dropdown-list",{staticClass:"mr-4"},[I("data-list-inline-actions",{attrs:{item:$.id,url:$.actionUrl,actions:$.actionsMenu},on:{started:$.actionStarted,completed:$.actionCompleted}})],1):$._e()],1):$._e(),$.asset.isImage||$.asset.isSvg||$.asset.isAudio||$.asset.isVideo?I("div",{staticClass:"editor-preview-image"},[I("div",{staticClass:"image-wrapper"},[$.asset.isImage?I("img",{staticClass:"asset-thumb",attrs:{src:$.asset.preview}}):$.asset.isSvg?I("div",{staticClass:"bg-checkerboard h-full w-full flex flex-col"},[I("div",{staticClass:"flex border-b-2 border-gray-900"},[I("div",{staticClass:"flex-1 order-r p-4 border-gray-900 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-4 h-4",attrs:{src:$.asset.url}})]),I("div",{staticClass:"flex-1 rtl:border-r ltr:border-l rtl:border-l ltr:border-r p-4 border-gray-900 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-12 h-12",attrs:{src:$.asset.url}})]),I("div",{staticClass:"flex-1 rtl:border-r ltr:border-l p-4 border-gray-900 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-24 h-24",attrs:{src:$.asset.url}})])]),I("div",{staticClass:"min-h-0 h-full p-4 flex items-center justify-center"},[I("img",{staticClass:"asset-thumb w-2/3 max-w-full max-h-full",attrs:{src:$.asset.url}})])]):$.asset.isAudio?I("div",{staticClass:"w-full shadow-none"},[I("audio",{staticClass:"w-full",attrs:{src:$.asset.url,controls:"",preload:"auto"}})]):$.asset.isVideo?I("video",{attrs:{src:$.asset.url,controls:""}}):$._e()])]):$.asset.isPdf?I("div",{staticClass:"h-full"},[I("pdf-viewer",{attrs:{src:$.asset.pdfUrl}})],1):$.asset.isPreviewable&&$.canUseGoogleDocsViewer?I("div",{staticClass:"h-full"},[I("iframe",{staticClass:"h-full w-full",attrs:{frameborder:"0",src:"https://docs.google.com/gview?url="+$.asset.permalink+"&embedded=true"}})]):$._e()]),$.fields?I("publish-container",{attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,"extra-values":$.extraValues,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values={...N,focus:$.values.focus}}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{staticClass:"w-full sm:p-4 md:pt-px md:w-1/3 md:grow h-1/2 md:h-full overflow-scroll"},[$.saving?I("div",{staticClass:"loading"},[I("loading-graphic",{attrs:{text:"Saving"}})],1):$._e(),$.error?I("div",{staticClass:"bg-red-500 text-white p-4 shadow mb-4",domProps:{textContent:$._s($.error)}}):$._e(),I("publish-sections",{attrs:{sections:$.fieldset.tabs[0].sections,"read-only":$.readOnly},on:{updated:N,"meta-updated":B}})],1)}}],null,!1,2184877992)}):$._e()],1),I("div",{staticClass:"bg-gray-200 dark:bg-dark-550 w-full border-t dark:border-dark-200 flex items-center justify-end py-3 px-4 rounded-b"},[I("div",{staticClass:"flex-1 hidden sm:flex space-x-3 rtl:space-x-reverse py-1 h-full text-xs text-gray-800 dark:text-dark-150",attrs:{id:"asset-meta-data"}},[$.isImage?I("div",{staticClass:"flex items-center bg-gray-400 dark:bg-dark-600 rounded py-1 rtl:pr-2 ltr:pl-2 rtl:pl-3 ltr:pr-3"},[I("svg-icon",{staticClass:"h-3 rtl:ml-2 ltr:mr-2",attrs:{name:"image-picture"}}),I("div",{},[$._v($._s($.__("messages.width_x_height",{width:$.asset.width,height:$.asset.height})))])],1):$._e(),I("div",{staticClass:"flex items-center bg-gray-400 dark:bg-dark-600 rounded py-1 rtl:pr-2 ltr:pl-2 rtl:pl-3 ltr:pr-3"},[I("svg-icon",{staticClass:"h-3 rtl:ml-2 ltr:mr-2",attrs:{name:"sd-card"}}),I("div",{},[$._v($._s($.asset.size))])],1),I("div",{staticClass:"flex items-center bg-gray-400 dark:bg-dark-600 rounded py-1 rtl:pr-2 ltr:pl-2 rtl:pl-3 ltr:pr-3"},[I("svg-icon",{staticClass:"h-3 rtl:ml-2 ltr:mr-2",attrs:{name:"thumbprint"}}),I("div",{attrs:{title:$.asset.lastModified}},[$._v($._s($.asset.lastModifiedRelative))])],1)]),I("div",{staticClass:"flex items-center space-x-3 rtl:space-x-reverse"},[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),$.readOnly?$._e():I("button",{staticClass:"btn-primary",attrs:{type:"button"},on:{click:$.save}},[$._v(" "+$._s($.__("Save"))+" ")])])])],$.actions.length?I("editor-actions",{attrs:{id:$.id,actions:$.actions,url:$.actionUrl},on:{started:$.actionStarted,completed:$.actionCompleted}}):$._e(),$.showFocalPointEditor&&$.isFocalPointEditorEnabled?I("focal-point-editor",{attrs:{data:$.values.focus,image:$.asset.preview},on:{selected:$.selectFocalPoint,closed:$.closeFocalPointEditor}}):$._e()],2)])},_sfc_staticRenderFns$3Z=[],__component__$3_=normalizeComponent$2(_sfc_main$3Z,_sfc_render$3Z,_sfc_staticRenderFns$3Z,!1,null,null,null,null);const AssetEditor=__component__$3_.exports,_sfc_main$3Y={props:{path:String},computed:{pathParts(){let M=["/"];return this.path==="/"?M:M.concat(this.path.split("/"))}},methods:{selectFolder(M){const $=M===0?"/":this.pathParts.slice(1,M+1).join("/");this.$emit("navigated",$)}}};var _sfc_render$3Y=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"px-4 py-2 flex flex-wrap text-sm bg-gray-200 dark:bg-dark-700 border-t border-b dark:border-dark-900 shadow-inner"},$._l($.pathParts,function(N,B){return I("a",{key:B,staticClass:"group flex items-center",on:{click:function(j){return $.selectFolder(B)}}},[B!==0?I("svg-icon",{staticClass:"text-gray-700 h-4 w-4 rtl:ml-1 ltr:mr-1 rtl:rotate-180",attrs:{name:"micro/chevron-right"}}):$._e(),N==="/"?I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 h-5 w-5 text-blue-400 group-hover:text-blue-600",attrs:{name:"folder-home"}}):I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 h-5 w-5 text-blue-400 group-hover:text-blue-600",attrs:{name:"folder"}}),N!=="/"?I("span",{staticClass:"text-gray-700 text-2xs group-hover:text-gray-800",domProps:{textContent:$._s(N)}}):$._e()],1)}),0)},_sfc_staticRenderFns$3Y=[],__component__$3Z=normalizeComponent$2(_sfc_main$3Y,_sfc_render$3Y,_sfc_staticRenderFns$3Y,!1,null,null,null,null);const Breadcrumbs$1=__component__$3Z.exports,_sfc_main$3X={props:{initialDirectory:String,container:Object,path:String},data(){return{modalTitle:__("Create Folder"),buttonText:__("Create"),directory:this.initialDirectory,errors:{},submitting:!1}},methods:{cancel(){this.$emit("closed")},submit(){const M=cp_url(`asset-containers/${this.container.id}/folders`),$={path:this.path,directory:this.directory,title:this.title};this.submitting=!0,this.$axios.post(M,$).then(I=>{this.$toast.success(__("Folder created")),this.$emit("created",I.data)}).catch(I=>{this.handleErrors(I)}).finally(()=>{this.submitting=!1})},handleErrors(M){if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.errors=I,this.$toast.error($),this.saving=!1}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal("esc",this.cancel)}};var _sfc_render$3X=function M(){var $=this,I=$._self._c;return I("confirmation-modal",{attrs:{name:"folder-editor",title:$.modalTitle,busy:$.submitting},on:{cancel:$.cancel,confirm:$.submit}},[I("div",{staticClass:"publish-fields @container"},[$.initialDirectory?$._e():I("form-group",{attrs:{handle:"directory",display:$.__("Folder Name"),errors:$.errors.directory,instructions:$.__("messages.asset_folders_directory_instructions"),focus:!0,required:!0,config:{debounce:!1}},model:{value:$.directory,callback:function(N){$.directory=N},expression:"directory"}})],1)])},_sfc_staticRenderFns$3X=[],__component__$3Y=normalizeComponent$2(_sfc_main$3X,_sfc_render$3X,_sfc_staticRenderFns$3X,!1,null,null,null,null);const CreateFolder=__component__$3Y.exports;var lib$1={},Upload$2={},browser=typeof self=="object"?self.FormData:window.FormData,__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Upload$2,"__esModule",{value:!0});Upload$2.Upload=void 0;const form_data_1=__importDefault(browser);let Upload$1=class{constructor($){if(this.events={state:new Set,error:new Set,progress:new Set},this.withCredentials=!1,this._uploadedBytes=0,this._totalBytes=0,this._state="new",!$)throw new Error("Options are required.");if(!$.url||typeof $.url!="string")throw new Error("Destination URL is missing or invalid.");this.form=$.form,this.url=$.url,this.headers=$.headers,this.withCredentials=$.withCredentials}upload(){return new Promise(($,I)=>{if(typeof window<"u"&&typeof XMLHttpRequest<"u"){if(this.xhr=new XMLHttpRequest,this.withCredentials&&(this.xhr.withCredentials=!0),this.xhr.open("POST",this.url,!0),typeof this.headers=="object")for(const N of Object.keys(this.headers))this.xhr.setRequestHeader(N,this.headers[N]);if(this.xhr.addEventListener("loadstart",()=>{this.setState("started")}),this.xhr.upload&&this.xhr.upload.addEventListener("progress",N=>{this._totalBytes!==N.total&&this.setTotalBytes(N.total),this.setUploadedBytes(N.loaded)}),this.xhr.addEventListener("load",()=>{if(this.xhr){this.setUploadedBytes(this.totalBytes),this.setState("successful");const N={},B=this.xhr.getAllResponseHeaders().replace(/\r/g,"").split(` `),j={};for(const U of B){const q=U.split(":");q.length==2&&(j[q[0].trim()]=q[1].trim())}switch(N.headers=j,N.status=this.xhr.status,N.xhr=this.xhr,this.xhr.responseType){case"json":N.data=JSON.stringify(this.xhr.response);break;default:N.data=this.xhr.response}$(N)}}),this.xhr.addEventListener("error",()=>{this.setState("failed"),this.emit("error"),I()}),this.xhr.addEventListener("abort",()=>{this.setState("aborted")}),this.form instanceof FormData)this.xhr.send(this.form);else{const N=this.form,B=new FormData;for(const j of Object.keys(this.form))B.set(j,N[j]);this.xhr.send(B)}}else{const N=(q,Y)=>{if(q)this.setState("failed"),this.emit("error"),I();else{this.setUploadedBytes(this.totalBytes),this.setState("successful");let K="";Y.on("readable",()=>{const G=Y.read();G&&(K+=G)}),Y.on("end",()=>{const G={};G.data=K,G.headers=Y.headers,$(G)})}},B=new URL(this.url),j={hostname:B.hostname,port:B.port,path:B.pathname,method:"POST",headers:this.headers};let U;if(this.form instanceof form_data_1.default)U=this.form;else{const q=this.form;U=new form_data_1.default;for(const Y of Object.keys(this.form))U.append(Y,q[Y])}U.getLength((q,Y)=>{this.setTotalBytes(Y)}),U.on("data",q=>{this.state==="new"&&this.setState("started"),q.hasOwnProperty("length")&&this.increaseUploadedBytes(q.length)}),U.submit(j,N)}})}abort(){var $;($=this.xhr)===null||$===void 0||$.abort()}get uploadedBytes(){return this._uploadedBytes}setUploadedBytes($){this._uploadedBytes=$,this.emit("progress",this.progress)}increaseUploadedBytes($){this._uploadedBytes+=$,this.emit("progress",this.progress)}get totalBytes(){return this._totalBytes}setTotalBytes($){this._totalBytes=$,this.emit("progress",this.progress)}get progress(){return this._totalBytes===0?0:this._uploadedBytes/this._totalBytes}get state(){return this._state}setState($){const I=this._state;this._state=$,I!==this._state&&this.emit("state",this._state)}on($,I){this.events[$].add(I)}off($,I){this.events[$].delete(I)}emit($,...I){for(const N of this.events[$])N.apply(this,I)}};Upload$2.Upload=Upload$1;var UploadFunction={},__awaiter=commonjsGlobal&&commonjsGlobal.__awaiter||function(M,$,I,N){function B(j){return j instanceof I?j:new I(function(U){U(j)})}return new(I||(I=Promise))(function(j,U){function q(G){try{K(N.next(G))}catch(J){U(J)}}function Y(G){try{K(N.throw(G))}catch(J){U(J)}}function K(G){G.done?j(G.value):B(G.value).then(q,Y)}K((N=N.apply(M,$||[])).next())})};Object.defineProperty(UploadFunction,"__esModule",{value:!0});UploadFunction.upload=void 0;const Upload_1=Upload$2;function upload(M,$,I,N=!1){return __awaiter(this,void 0,void 0,function*(){const B=new Upload_1.Upload(Object.assign({url:M,form:$,withCredentials:N},I));return I!=null&&I.onProgress&&B.on("progress",I.onProgress),yield B.upload()})}UploadFunction.upload=upload;(function(M){var $=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(N,B,j,U){U===void 0&&(U=j),Object.defineProperty(N,U,{enumerable:!0,get:function(){return B[j]}})}:function(N,B,j,U){U===void 0&&(U=j),N[U]=B[j]}),I=commonjsGlobal&&commonjsGlobal.__exportStar||function(N,B){for(var j in N)j!=="default"&&!B.hasOwnProperty(j)&&$(B,N,j)};Object.defineProperty(M,"__esModule",{value:!0}),I(Upload$2,M),I(UploadFunction,M)})(lib$1);const _sfc_main$3W={render(M){const $=M("input",{class:{hidden:!0},attrs:{type:"file",multiple:!0},ref:"nativeFileField"});return M("div",{on:{dragenter:this.dragenter,dragover:this.dragover,dragleave:this.dragleave,drop:this.drop}},[M("div",{class:{"pointer-events-none":this.dragging}},[$,...this.$scopedSlots.default({dragging:this.enabled?this.dragging:!1})])])},props:{enabled:{type:Boolean,default:()=>!0},container:String,path:String,url:{type:String,default:()=>cp_url("assets")},extraData:{type:Object,default:()=>({})}},data(){return{dragging:!1,uploads:[]}},mounted(){this.$refs.nativeFileField.addEventListener("change",this.addNativeFileFieldSelections)},beforeDestroy(){this.$refs.nativeFileField.removeEventListener("change",this.addNativeFileFieldSelections)},watch:{uploads(M){this.$emit("updated",M),this.processUploadQueue()}},computed:{activeUploads(){return this.uploads.filter(M=>M.instance.state==="started")}},methods:{browse(){this.$refs.nativeFileField.click()},addNativeFileFieldSelections(M){for(let $=0;$<M.target.files.length;$++)this.addFile(M.target.files[$])},dragenter(M){M.stopPropagation(),M.preventDefault(),this.dragging=!0},dragover(M){M.stopPropagation(),M.preventDefault()},dragleave(M){M.target===M.currentTarget&&(this.dragging=!1)},drop(M){M.stopPropagation(),M.preventDefault(),this.dragging=!1;const{files:$,items:I}=M.dataTransfer;I&&I.length&&I[0].webkitGetAsEntry?this.addFilesFromDataTransferItems(I):this.addFilesFromFileList($)},addFilesFromFileList(M){for(let $=0;$<M.length;$++)this.addFile(M[$])},addFilesFromDataTransferItems(M){for(let $=0;$<M.length;$++){let I=M[$];if(I.webkitGetAsEntry){const N=I.webkitGetAsEntry();N!=null&&N.isFile?this.addFile(I.getAsFile()):N!=null&&N.isDirectory&&this.addFilesFromDirectory(N,N.name)}else I.getAsFile&&(I.kind==="file"||!I.kind)&&this.addFile(I.getAsFile())}},addFilesFromDirectory(M,$){const I=M.createReader(),N=()=>I.readEntries(B=>{if(B.length){for(let j of B)j.isFile?j.file(U=>{U.name.startsWith(".")||(U.relativePath=$,this.addFile(U))}):j.isDirectory&&this.addFilesFromDirectory(j,`${$}/${j.name}`);N()}},console.error);return N()},addFile(M,$={}){if(!this.enabled)return;const I=uniqid$1(),N=this.makeUpload(I,M,$);this.uploads.push({id:I,basename:M.name,extension:M.name.split(".").pop(),percent:0,errorMessage:null,errorStatus:null,instance:N,retry:B=>this.retry(I,B)})},findUpload(M){return this.uploads.find($=>$.id===M)},findUploadIndex(M){return this.uploads.findIndex($=>$.id===M)},makeUpload(M,$,I={}){const N=new lib$1.Upload({url:this.url,form:this.makeFormData($,I),headers:{Accept:"application/json"}});return N.on("progress",B=>{this.findUpload(M).percent=B*100}),N},makeFormData(M,$={}){const I=new FormData;I.append("file",M),M.relativePath&&I.append("relativePath",M.relativePath);let N={...this.extraData,container:this.container,folder:this.path,_token:Statamic.$config.get("csrfToken")};for(let B in N)I.append(B,N[B]);for(let B in $)I.append(B,$[B]);return I},processUploadQueue(){if(this.activeUploads.length)return;const M=this.uploads.find(I=>I.instance.state==="new"&&!I.errorMessage);if(!M)return;const $=M.id;M.instance.upload().then(I=>{let N=null;try{N=JSON.parse(I.data)}catch{}I.status===200?this.handleUploadSuccess($,N):this.handleUploadError($,I.status,N),this.processUploadQueue()})},handleUploadSuccess(M,$){this.$emit("upload-complete",$.data,this.uploads),this.uploads.splice(this.findUploadIndex(M),1)},handleUploadError(M,$,I){const N=this.findUpload(M);let B=I==null?void 0:I.message;B?[422,409].includes($)&&(B=Object.values(I.errors)[0][0]):$===413?B=__("Upload failed. The file is larger than is allowed by your server."):B=__("Upload failed. The file might be larger than is allowed by your server."),N.errorMessage=B,N.errorStatus=$,this.$emit("error",N,this.uploads),this.processUploadQueue()},retry(M,$){let I=this.findUpload(M).instance.form.get("file");this.addFile(I,$),this.uploads.splice(this.findUploadIndex(M),1)}}},_sfc_render$3W=null,_sfc_staticRenderFns$3W=null;var __component__$3X=normalizeComponent$2(_sfc_main$3W,_sfc_render$3W,_sfc_staticRenderFns$3W,!1,null,null,null,null);const Uploader=__component__$3X.exports,_sfc_main$3V={props:{extension:String,basename:String,percent:Number,error:String,errorStatus:Number,allowSelectingExisting:Boolean},data(){return{showNewFilenameModal:!1,newFilename:""}},computed:{status(){return this.error?"error":this.percent===100?"pending":"uploading"}},methods:{clear(){this.$emit("clear")},retryAndOverwrite(){this.$emit("retry",{option:"overwrite"})},retryWithTimestamp(){this.$emit("retry",{option:"timestamp"})},openNewFilenameModal(){this.showNewFilenameModal=!0,this.newFilename=this.basename.substring(0,this.basename.lastIndexOf("."))},confirmNewFilename(){this.showNewFilenameModal=!1,this.retryWithNewFilename()},retryWithNewFilename(){this.$emit("retry",{option:"rename",filename:this.newFilename})},selectExisting(){this.$emit("existing-selected")}}};var _sfc_render$3V=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center my-4",class:{"text-red-500":$.status=="error"}},[I("div",{staticClass:"flex items-center flex-1"},[I("div",{staticClass:"mx-2 flex items-center"},[$.status==="error"?I("svg-icon",{staticClass:"text-red-500 h-4 w-4",attrs:{name:"micro/warning"}}):I("loading-graphic",{attrs:{inline:!0,text:""}})],1),I("div",{staticClass:"filename"},[$._v($._s($.basename))])]),$.status!=="error"?I("div",{staticClass:"bg-white flex-1 h-4 mx-2 rounded"},[I("div",{staticClass:"bg-blue h-full rounded",style:{width:$.percent+"%"}})]):$._e(),$.status==="error"?I("div",{staticClass:"ml-4 px-2 flex items-center gap-2"},[$._v(" "+$._s($.error)+" "),$.errorStatus===409?I("dropdown-list",{scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"ml-4 btn btn-xs",domProps:{textContent:$._s(`${$.__("Fix")}...`)}})]},proxy:!0}],null,!1,3194504607)},[I("dropdown-item",{attrs:{text:$.__("messages.uploader_overwrite_existing")},on:{click:$.retryAndOverwrite}}),I("dropdown-item",{attrs:{text:`${$.__("messages.uploader_choose_new_filename")}...`},on:{click:$.openNewFilenameModal}}),I("dropdown-item",{attrs:{text:$.__("messages.uploader_append_timestamp")},on:{click:$.retryWithTimestamp}}),$.allowSelectingExisting?I("dropdown-item",{attrs:{text:$.__("messages.uploader_discard_use_existing")},on:{click:$.selectExisting}}):$._e()],1):$._e(),I("button",{staticClass:"btn btn-xs",domProps:{textContent:$._s($.__("Discard"))},on:{click:$.clear}})],1):$._e(),$.showNewFilenameModal?I("confirmation-modal",{attrs:{title:$.__("New Filename")},on:{cancel:function(N){$.showNewFilenameModal=!1},confirm:$.confirmNewFilename}},[I("text-input",{attrs:{autoselect:""},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:$.confirmNewFilename.apply(null,arguments)}},model:{value:$.newFilename,callback:function(N){$.newFilename=N},expression:"newFilename"}})],1):$._e()],1)},_sfc_staticRenderFns$3V=[],__component__$3W=normalizeComponent$2(_sfc_main$3V,_sfc_render$3V,_sfc_staticRenderFns$3V,!1,null,null,null,null);const Upload=__component__$3W.exports,_sfc_main$3U={props:{uploads:Array,allowSelectingExisting:Boolean},components:{Upload},methods:{clearUpload(M){this.uploads.splice(M,1)},retry(M,$){this.uploads[M].retry($)},existingSelected(M){this.$emit("existing-selected",this.uploads[M]),this.clearUpload(M)}}};var _sfc_render$3U=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"bg-gray-400 dark:bg-dark-800 text-xs p-2"},$._l($.uploads,function(N,B){return I("upload",{key:N.id,attrs:{basename:N.basename,extension:N.extension,percent:N.percent,error:N.errorMessage,"error-status":N.errorStatus,"allow-selecting-existing":$.allowSelectingExisting},on:{clear:function(j){return $.clearUpload(B)},retry:function(j){return $.retry(B,j)},"existing-selected":function(j){return $.existingSelected(B)}}})}),1)},_sfc_staticRenderFns$3U=[],__component__$3V=normalizeComponent$2(_sfc_main$3U,_sfc_render$3U,_sfc_staticRenderFns$3U,!1,null,null,null,null);const Uploads=__component__$3V.exports,_sfc_main$3T={mixins:[HasActions$1,HasPagination,HasPreferences],components:{AssetThumbnail,AssetEditor,Breadcrumbs:Breadcrumbs$1,Uploader,Uploads,CreateFolder},props:{initialContainer:{},selectedPath:String,restrictFolderNavigation:Boolean,selectedAssets:Array,maxFiles:Number,queryScopes:Array,initialEditingAssetId:String,autoselectUploads:Boolean,autofocusSearch:Boolean,allowSelectingExistingUpload:Boolean},data(){return{columns:[{label:__("File"),field:"basename",visible:!0,sortable:!0},{label:__("Size"),field:"size",value:"size_formatted",visible:!0,sortable:!0},{label:__("Last Modified"),field:"last_modified",value:"last_modified_relative",visible:!0,sortable:!0}],containers:[],container:{},initializing:!0,loading:!0,assets:[],path:this.selectedPath,folders:[],folder:{},searchQuery:"",editedAssetId:this.initialEditingAssetId,creatingFolder:!1,uploads:[],page:1,preferencesPrefix:null,meta:{},sortColumn:this.initialContainer.sort_field,sortDirection:this.initialContainer.sort_direction,mode:"table",actionUrl:null,folderActionUrl:null,shifting:!1,lastItemClicked:null,actionOpened:null}},computed:{selectedContainer(){return typeof this.initialContainer=="object"?this.initialContainer.id:this.initialContainer},actionContext(){return{container:this.selectedContainer}},showAssetEditor(){return!!this.editedAssetId},canEdit(){return this.can("edit "+this.container.id+" assets")||this.can("configure asset containers")},canUpload(){return this.folder&&this.container.allow_uploads&&(this.can("upload "+this.container.id+" assets")||this.can("configure asset containers"))},canCreateFolders(){return this.folder&&this.container.create_folders&&!this.restrictFolderNavigation&&(this.can("upload "+this.container.id+" assets")||this.can("configure asset containers"))},parameters(){return{page:this.page,perPage:this.perPage,sort:this.sortColumn,order:this.sortDirection,search:this.searchQuery,queryScopes:this.queryScopes}},hasMaxFiles(){return this.maxFiles!==void 0&&this.maxFiles!==1/0},reachedSelectionLimit(){return this.selectedAssets.length>=this.maxFiles},hasSelections(){return this.selectedAssets.length>0},containerIsEmpty(){return this.assets.length===0&&this.folders.length===0&&(!this.folder||!this.folder.parent_path)},editedAssetBasename(){let M=_.find(this.assets,$=>$.id==this.editedAssetId);return M?M.basename:null},modeClass(){return"mode-"+this.mode}},mounted(){this.loadContainers()},created(){this.$events.$on("editor-action-started",this.actionStarted),this.$events.$on("editor-action-completed",this.actionCompleted)},destroyed(){this.$events.$off("editor-action-started",this.actionStarted),this.$events.$off("editor-action-completed",this.actionCompleted)},watch:{initialContainer(){this.container=this.initialContainer},container(M){this.initializing=!0,this.preferencesPrefix=`assets.${M.id}`,this.mode=this.getPreference("mode")||"table",this.setInitialPerPage(),this.loadAssets()},path(){this.loadAssets()},selectedPath(M){M.endsWith("/edit")||(this.path=M)},parameters(M,$){this.initializing||JSON.stringify($)===JSON.stringify(M)||this.loadAssets()},initializing(M,$){$&&this.autofocusSearch&&this.$nextTick(()=>this.$refs.search.focus())},loading(M){this.$progress.loading("asset-browser",M)},editedAssetId(M){let $=M?[this.path,this.editedAssetBasename].filter(I=>I!="/").join("/")+"/edit":this.path;this.$emit("navigated",this.container,$)},searchQuery(){this.page=1}},methods:{afterActionSuccessfullyCompleted(){this.loadAssets()},loadContainers(){this.$axios.get(cp_url("asset-containers")).then(M=>{this.containers=_.chain(M.data).indexBy("id").value(),this.container=this.containers[this.selectedContainer]})},loadAssets(){this.loading=!0;const M=this.searchQuery?cp_url(`assets/browse/search/${this.container.id}/${this.restrictFolderNavigation?this.path:""}`).replace(/\/$/,""):cp_url(`assets/browse/folders/${this.container.id}/${this.path||""}`).replace(/\/$/,"");this.$axios.get(M,{params:this.parameters}).then($=>{const I=$.data;this.assets=I.data.assets,this.meta=I.meta,this.searchQuery?(this.folder=null,this.folders=[]):(this.folder=I.data.folder,this.folders=I.data.folder.folders,this.actionUrl=I.links.asset_action,this.folderActionUrl=I.links.folder_action),this.loading=!1,this.initializing=!1}).catch($=>{this.$toast.error($.response.data.message,{action:null,duration:null}),this.assets=[],this.folders=[],this.loading=!1,this.initializing=!1})},selectFolder(M){this.path=M,this.page=1,this.$emit("navigated",this.container,this.path)},setMode(M){this.mode=M,this.setPreference("mode",M=="table"?null:M)},edit(M){this.editedAssetId=M},closeAssetEditor(){this.editedAssetId=null},assetSaved(){this.closeAssetEditor(),this.loadAssets()},assetDeleted(){this.closeAssetEditor(),this.loadAssets()},uploadsUpdated(M){this.uploads=M},uploadCompleted(M){this.autoselectUploads&&(this.sortColumn="last_modified",this.sortDirection="desc",this.selectedAssets.push(M.id),this.$emit("selections-updated",this.selectedAssets)),this.loadAssets(),this.$toast.success(__(":file uploaded",{file:M.basename}))},uploadError(M,$){this.uploads=$,this.$toast.error(M.errorMessage)},existingUploadSelected(M){const $=`${this.folder.path}/${M.basename}`.replace(/^\/+/,""),I=`${this.container.id}::${$}`;this.selectedAssets.push(I),this.$emit("selections-updated",this.selectedAssets)},openFileBrowser(){this.$refs.uploader.browse()},folderCreated(M){this.folders.push(M),this.folders=_.sortBy(this.folders,"title"),this.creatingFolder=!1},sorted(M,$){this.sortColumn=M,this.sortDirection=$},isSelected(M){return this.selectedAssets.includes(M)},toggleSelection(M,$,I){const N=this.selectedAssets.indexOf(M);this.$refs.browser.focus(),this.maxFiles===1?this.selectedAssets=[M]:N!=-1?this.selectedAssets.splice(N,1):this.reachedSelectionLimit||(I.shiftKey&&this.lastItemClicked!==null?this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$)):this.selectedAssets.push(M)),this.$emit("selections-updated",this.selectedAssets),this.lastItemClicked=$},folderActions(M){return M.actions||this.folder.actions||[]},selectRange(M,$){for(var I=M;I<=$;I++){let N=this.assets[I].id;!this.selectedAssets.includes(N)&&!this.reachedSelectionLimit&&this.selectedAssets.push(N),this.$emit("selections-updated",this.selectedAssets)}},shiftDown(){this.shifting=!0},clearShift(){this.shifting=!1}}};var _sfc_render$3T=function M(){var $=this,I=$._self._c;return I("div",{ref:"browser",staticClass:"min-h-screen",on:{keydown:function(N){return N.shiftKey?$.shiftDown.apply(null,arguments):null},keyup:$.clearShift}},[$.initializing?I("div",{staticClass:"loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("uploader",{ref:"uploader",attrs:{container:$.container.id,path:$.path,enabled:$.canUpload},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadCompleted,error:$.uploadError},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{staticClass:"min-h-screen"},[I("div",{directives:[{name:"show",rawName:"v-show",value:N,expression:"dragging"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-12 w-12 m-4",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Drop File to Upload")))])],1),$.initializing?$._e():I("data-list",{attrs:{rows:$.assets,columns:$.columns,selections:$.selectedAssets,"max-selections":$.maxFiles,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"selections-updated":B=>$.$emit("selections-updated",B)},scopedSlots:$._u([{key:"default",fn:function({filteredRows:B}){return I("div",{class:$.modeClass},[I("div",{staticClass:"card overflow-hidden p-0",class:{"select-none":$.shifting}},[I("div",{staticClass:"relative w-full"},[I("div",{staticClass:"flex items-center justify-between p-2 text-sm"},[I("data-list-search",{ref:"search",staticClass:"h-8",model:{value:$.searchQuery,callback:function(j){$.searchQuery=j},expression:"searchQuery"}}),$.canCreateFolders?I("button",{staticClass:"btn btn-sm rtl:mr-3 ltr:ml-3",on:{click:function(j){$.creatingFolder=!0}}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2",attrs:{name:"folder-add"}}),I("span",[$._v($._s($.__("Create Folder")))])],1):$._e(),$.canUpload?I("button",{staticClass:"btn btn-sm rtl:mr-3 ltr:ml-3",on:{click:$.openFileBrowser}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 text-current",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Upload")))])],1):$._e(),I("div",{staticClass:"btn-group rtl:mr-3 ltr:ml-3"},[I("button",{staticClass:"btn btn-sm",class:{active:$.mode==="grid"},on:{click:function(j){return $.setMode("grid")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-grid"}})],1),I("button",{staticClass:"btn btn-sm",class:{active:$.mode==="table"},on:{click:function(j){return $.setMode("table")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)])],1),$.restrictFolderNavigation?$._e():I("breadcrumbs",{attrs:{path:$.path},on:{navigated:$.selectFolder}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext,"show-always":$.mode==="grid"},on:{started:$.actionStarted,completed:$.actionCompleted}})],1),$.uploads.length?I("uploads",{class:{"-mt-px":!$.hasSelections,"mt-10":$.hasSelections},attrs:{uploads:$.uploads,"allow-selecting-existing":$.allowSelectingExistingUpload},on:{"existing-selected":$.existingUploadSelected}}):$._e(),I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[$.mode==="table"&&!$.containerIsEmpty?I("data-list-table",{attrs:{"allow-bulk-actions":!0,loading:$.loading,rows:B,"toggle-selection-on-row-click":!0},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-basename",fn:function({row:j,checkboxId:U}){return[I("div",{staticClass:"flex items-center w-fit-content group"},[I("asset-thumbnail",{staticClass:"w-8 h-8 rtl:ml-2 ltr:mr-2 cursor-pointer",attrs:{asset:j,square:!0},nativeOn:{click:function(q){return q.stopPropagation(),$.$emit("edit-asset",j)}}}),I("label",{staticClass:"cursor-pointer select-none group-hover:text-blue normal-nums",attrs:{for:U},on:{click:function(q){return q.stopPropagation(),$.$emit("edit-asset",j)}}},[$._v(" "+$._s(j.basename)+" ")])],1)]}},{key:"actions",fn:function({row:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__($.canEdit?"Edit":"View")},on:{click:function(U){return $.edit(j.id)}}}),j.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:j.id,url:$.actionUrl,actions:j.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)},[I("template",{slot:"tbody-start"},[$.folder&&$.folder.parent_path&&!$.restrictFolderNavigation?I("tr",[I("td"),I("td",{on:{click:function(j){return $.selectFolder($.folder.parent_path)}}},[I("a",{staticClass:"flex items-center cursor-pointer group"},[I("file-icon",{staticClass:"w-8 h-8 rtl:ml-2 ltr:mr-2 inline-block text-blue-400 group-hover:text-blue",attrs:{extension:"folder"}}),$._v(" .. ")],1)]),I("td",{attrs:{colspan:$.columns.length}})]):$._e(),$._l($.folders,function(j,U){return $.restrictFolderNavigation?$._e():I("tr",{key:j.path},[I("td"),I("td",{on:{click:function(q){return $.selectFolder(j.path)}}},[I("a",{staticClass:"flex items-center cursor-pointer group"},[I("file-icon",{staticClass:"w-8 h-8 rtl:ml-2 ltr:mr-2 inline-block text-blue-400 group-hover:text-blue",attrs:{extension:"folder"}}),$._v(" "+$._s(j.basename)+" ")],1)]),I("td"),I("td"),I("th",{staticClass:"actions-column",attrs:{colspan:$.columns.length}},[$.folderActions(j).length?I("dropdown-list",{attrs:{placement:"left-start"}},[I("data-list-inline-actions",{attrs:{item:j.path,url:$.folderActionUrl,actions:$.folderActions(j)},on:{started:$.actionStarted,completed:$.actionCompleted}})],1):$._e()],1)])})],2)],2):$._e()],1),$.mode==="grid"&&!$.containerIsEmpty?I("div",[I("div",{staticClass:"asset-grid-listing px-4 pt-2"},[$.folder&&$.folder.parent_path&&!$.restrictFolderNavigation?I("div",{staticClass:"asset-tile"},[I("div",{staticClass:"asset-thumb-container"},[I("button",{on:{click:function(j){return $.selectFolder($.folder.parent_path)}}},[I("div",{staticClass:"asset-thumb"},[I("file-icon",{staticClass:"w-full h-full text-blue-400 hover:text-blue",attrs:{extension:"folder"}})],1)])]),I("div",{staticClass:"asset-meta flex items-center"},[I("div",{staticClass:"asset-filename text-center w-full px-2 py-1"},[$._v("..")])])]):$._e(),$._l($.folders,function(j,U){return $.restrictFolderNavigation?$._e():I("div",{key:j.path,staticClass:"asset-tile group relative"},[I("div",{staticClass:"asset-thumb-container"},[I("button",{on:{click:function(q){return $.selectFolder(j.path)}}},[I("div",{staticClass:"asset-thumb"},[I("file-icon",{staticClass:"w-full h-full text-blue-400 hover:text-blue",attrs:{extension:"folder"}})],1)])]),I("div",{staticClass:"asset-meta flex items-center"},[I("div",{staticClass:"asset-filename text-center w-full px-2 py-1",attrs:{title:j.basename},domProps:{textContent:$._s(j.basename)}})]),$.folderActions(j).length?I("dropdown-list",{staticClass:"absolute top-1 rtl:left-2 ltr:right-2 opacity-0 group-hover:opacity-100",class:{"opacity-100":$.actionOpened===j.path},on:{opened:function(q){$.actionOpened=j.path},closed:function(q){$.actionOpened=null}}},[I("data-list-inline-actions",{attrs:{item:j.path,url:$.folderActionUrl,actions:$.folderActions(j)},on:{started:$.actionStarted,completed:$.actionCompleted}})],1):$._e()],1)}),$._l($.assets,function(j,U){return I("button",{key:j.id,staticClass:"asset-tile outline-none group relative",class:{selected:$.isSelected(j.id)}},[I("div",{staticClass:"w-full",on:{click:function(q){return q.stopPropagation(),$.toggleSelection(j.id,U,q)},dblclick:function(q){return q.stopPropagation(),$.$emit("edit-asset",j)}}},[I("div",{staticClass:"asset-thumb-container"},[I("div",{staticClass:"asset-thumb",class:{"bg-checkerboard":j.can_be_transparent}},[j.is_image?I("img",{class:{"p-4 h-full w-full":j.extension==="svg"},attrs:{src:j.thumbnail,loading:"lazy"}}):I("file-icon",{staticClass:"p-4 h-full w-full",attrs:{extension:j.extension}})],1)]),I("div",{staticClass:"asset-meta"},[I("div",{staticClass:"asset-filename px-2 py-1 text-center",attrs:{title:j.basename},domProps:{textContent:$._s(j.basename)}})])]),I("dropdown-list",{staticClass:"absolute top-1 rtl:left-2 ltr:right-2 opacity-0 group-hover:opacity-100",class:{"opacity-100":$.actionOpened===j.id},on:{opened:function(q){$.actionOpened=j.id},closed:function(q){$.actionOpened=null}}},[I("dropdown-item",{attrs:{text:$.__($.canEdit?"Edit":"View")},on:{click:function(q){return $.edit(j.id)}}}),j.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:j.id,url:$.actionUrl,actions:j.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)],1)})],2)]):$._e(),$.containerIsEmpty?I("div",{staticClass:"p-4 text-gray-700",domProps:{textContent:$._s($.searchQuery?$.__("No results"):$.__("This container is empty"))}}):$._e()],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage},on:{"page-selected":function(j){$.page=j},"per-page-changed":$.changePerPage}})],1)}}],null,!0)})],1)}}],null,!1,1290290018)}),$.showAssetEditor?I("asset-editor",{attrs:{id:$.editedAssetId,"read-only":!$.canEdit},on:{closed:$.closeAssetEditor,saved:$.assetSaved}}):$._e(),$.creatingFolder?I("create-folder",{attrs:{container:$.container,path:$.path},on:{closed:function(N){$.creatingFolder=!1},created:$.folderCreated}}):$._e()],1)},_sfc_staticRenderFns$3T=[],__component__$3U=normalizeComponent$2(_sfc_main$3T,_sfc_render$3T,_sfc_staticRenderFns$3T,!1,null,null,null,null);const Browser=__component__$3U.exports,_sfc_main$3S={computed:{count(){return this.$store.state.updates.count}},created(){this.registerVuexModule(),this.getCount()},methods:{registerVuexModule(){this.$store.state.updates||this.$store.registerModule("updates",{namespaced:!0,state:{count:0,requested:!1},mutations:{count:(M,$)=>M.count=$,requested:M=>M.requested=!0}})},getCount(){this.$store.state.updates.requested||(this.$axios.get(cp_url("updater/count")).then(M=>this.$store.commit("updates/count",isNaN(M.data)?0:M.data)),this.$store.commit("updates/requested"))}}};var _sfc_render$3S=function M(){var $=this,I=$._self._c;return $.count?I("span",{staticClass:"badge-sm bg-red-500 dark:bg-blue-900"},[$._v(" "+$._s($.count)+" ")]):$._e()},_sfc_staticRenderFns$3S=[],__component__$3T=normalizeComponent$2(_sfc_main$3S,_sfc_render$3S,_sfc_staticRenderFns$3S,!1,null,null,null,null);const UpdatesBadge=__component__$3T.exports,_sfc_main$3R={model:{prop:"values",event:"updated"},props:{reference:{type:String},name:{type:String,required:!0},blueprint:{type:Object,default:()=>{}},values:{type:Object,default:()=>{}},extraValues:{type:Object,default:()=>{}},meta:{type:Object,default:()=>{}},errors:{type:Object},site:{type:String},localizedFields:{type:Array},isRoot:{},trackDirtyState:{type:Boolean,default:!0}},data(){return{components:[]}},created(){this.registerVuexModule(),this.$events.$emit("publish-container-created",this)},destroyed(){this.removeVuexModule(),this.clearDirtyState(),this.$events.$emit("publish-container-destroyed",this)},provide(){return{storeName:this.name}},methods:{registerVuexModule(){const M=this,$={blueprint:_.clone(this.blueprint),values:_.clone(this.values),extraValues:_.clone(this.extraValues),meta:_.clone(this.meta),localizedFields:_.clone(this.localizedFields),site:this.site,isRoot:this.isRoot,reference:this.reference};if(this.$store.state.hasOwnProperty("publish")&&this.$store.state.publish.hasOwnProperty(this.name)){this.$store.commit(`publish/${this.name}/initialize`,$);return}this.$store.registerModule(["publish",this.name],{namespaced:!0,state:{blueprint:$.blueprint,values:$.values,extraValues:$.extraValues,hiddenFields:{},jsonSubmittingFields:[],revealerFields:[],meta:$.meta,localizedFields:$.localizedFields,site:$.site,fieldLocks:{},errors:{},isRoot:$.isRoot,preloadedAssets:[],autosaveInterval:null,reference:$.reference},mutations:{setFieldValue(I,N){const{handle:B,value:j}=N;I.values[B]=j},setValues(I,N){I.values=N},setExtraValues(I,N){I.extraValues=N},setHiddenField(I,N){I.hiddenFields[N.dottedKey]={hidden:N.hidden,omitValue:N.omitValue}},setFieldSubmitsJson(I,N){I.jsonSubmittingFields.indexOf(N)===-1&&I.jsonSubmittingFields.push(N)},unsetFieldSubmitsJson(I,N){const B=I.jsonSubmittingFields.indexOf(N);B!==-1&&I.jsonSubmittingFields.splice(B,1)},setRevealerField(I,N){I.revealerFields.indexOf(N)===-1&&I.revealerFields.push(N)},unsetRevealerField(I,N){const B=I.revealerFields.indexOf(N);B!==-1&&I.revealerFields.splice(B,1)},setMeta(I,N){I.meta=N},setFieldMeta(I,N){const{handle:B,value:j}=N;I.meta[B]=j},setIsRoot(I,N){I.isRoot=N},setBlueprint(I,N){I.blueprint=N},setErrors(I,N){I.errors=N},setSite(I,N){I.site=N},setLocalizedFields(I,N){I.localizedFields=N},lockField(I,{handle:N,user:B}){Vue$3.set(I.fieldLocks,N,B||!0)},unlockField(I,N){Vue$3.delete(I.fieldLocks,N)},initialize(I,N){I.blueprint=N.blueprint,I.values=N.values,I.meta=N.meta,I.site=N.site},setPreloadedAssets(I,N){I.preloadedAssets=N},setAutosaveInterval(I,N){I.autosaveInterval&&clearInterval(I.autosaveInterval),I.autosaveInterval=N},clearAutosaveInterval(I){clearInterval(I.autosaveInterval)}},actions:{setFieldValue(I,N){I.commit("setFieldValue",N),M.emitUpdatedEvent(I.state.values)},setFieldMeta(I,N){I.commit("setFieldMeta",N)},setValues(I,N){I.commit("setValues",N),M.emitUpdatedEvent(I.state.values)},setExtraValues(I,N){I.commit("setExtraValues",N)},setMeta(I,N){I.commit("setMeta",N)}}})},removeVuexModule(){this.$store.unregisterModule(["publish",this.name])},emitUpdatedEvent(M){this.$emit("updated",M),this.dirty()},saving(){this.$events.$emit(`container.${this.name}.saving`)},saved(){this.clearDirtyState()},clearDirtyState(){this.$dirty.remove(this.name)},pushComponent(M,{props:$}){const I=new Component(uniqid$1(),M,$);return this.components.push(I),I},setFieldValue(M,$){this.$store.dispatch(`publish/${this.name}/setFieldValue`,{handle:M,value:$,user:Statamic.user.id})},setFieldMeta(M,$){this.$store.dispatch(`publish/${this.name}/setFieldMeta`,{handle:M,value:$,user:Statamic.user.id})},dirty(){this.trackDirtyState&&this.$dirty.add(this.name)}},watch:{values:{deep:!0,handler(M,$){_.isEqual($,M)||this.$store.commit(`publish/${this.name}/setValues`,M)}},extraValues:{deep:!0,handler(M,$){_.isEqual($,M)||this.$store.commit(`publish/${this.name}/setExtraValues`,M)}},meta:{deep:!0,handler(M,$){_.isEqual($,M)||this.$store.commit(`publish/${this.name}/setMeta`,M)}},isRoot(M){this.$store.commit(`publish/${this.name}/setIsRoot`,M)},blueprint:{deep:!0,handler(M){this.$store.commit(`publish/${this.name}/setBlueprint`,M)}},site(M){this.$store.commit(`publish/${this.name}/setSite`,M)},errors(M){this.$store.commit(`publish/${this.name}/setErrors`,M)},localizedFields(M){this.$store.commit(`publish/${this.name}/setLocalizedFields`,M)}},render(){return this.$scopedSlots.default({values:this.$store.state.publish[this.name].values,container:this._self,components:this.components,setFieldValue:this.setFieldValue,setFieldMeta:this.setFieldMeta})}},_sfc_render$3R=null,_sfc_staticRenderFns$3R=null;var __component__$3S=normalizeComponent$2(_sfc_main$3R,_sfc_render$3R,_sfc_staticRenderFns$3R,!1,null,null,null,null);const Container=__component__$3S.exports,_sfc_main$3Q={props:{blueprint:{required:!0,type:Object},meta:{required:!0,type:Object},values:{required:!0,type:Object},title:{required:!0,type:String},name:{type:String,default:"base"},breadcrumbs:Array,action:String,method:{type:String,default:"post"},readOnly:{type:Boolean,default:!1}},data(){return{currentValues:this.values,error:null,errors:{},hasSidebar:this.blueprint.tabs.map(M=>M.handle).includes("sidebar")}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.action&&(this.saving=!0,this.clearErrors(),this.$axios[this.method](this.action,this.currentValues).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved(),this.$emit("saved",M)}).catch(M=>this.handleAxiosError(M)))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else{const $=data_get(M,"response.data.message");this.$toast.error($||M),console.log(M)}}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$3Q=function M(){var $=this,I=$._self._c;return I("publish-container",{ref:"container",attrs:{name:$.name,blueprint:$.blueprint,reference:"collection",meta:$.meta,errors:$.errors},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return[I("div",[$.breadcrumbs?I("breadcrumbs",{attrs:{crumbs:$.breadcrumbs}}):$._e(),I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.title))]),$.action?I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))]):$._e()]),I("publish-tabs",{attrs:{"enable-sidebar":$.hasSidebar,"read-only":$.readOnly},on:{updated:N,"meta-updated":B}})],1)]}}]),model:{value:$.currentValues,callback:function(N){$.currentValues=N},expression:"currentValues"}})},_sfc_staticRenderFns$3Q=[],__component__$3R=normalizeComponent$2(_sfc_main$3Q,_sfc_render$3Q,_sfc_staticRenderFns$3Q,!1,null,null,null,null);const PublishForm=__component__$3R.exports,_sfc_main$3P={};var _sfc_render$3P=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"publish-fields @container"},[$._t("default")],2)},_sfc_staticRenderFns$3P=[],__component__$3Q=normalizeComponent$2(_sfc_main$3P,_sfc_render$3P,_sfc_staticRenderFns$3P,!1,null,null,null,null);const FieldsContainer=__component__$3Q.exports,_sfc_main$3O={props:["actions"],inject:["popover"],methods:{run(M){M.run(),this.popover.vm.close()}}};var _sfc_render$3O=function M(){var $=this,I=$._self._c;return I("div",$._l($.actions,function(N){return I("button",{class:{warning:N.dangerous},domProps:{textContent:$._s(N.title)},on:{click:function(B){return $.run(N)}}})}),0)},_sfc_staticRenderFns$3O=[],__component__$3P=normalizeComponent$2(_sfc_main$3O,_sfc_render$3O,_sfc_staticRenderFns$3O,!1,null,null,null,null);const DropdownActions=__component__$3P.exports,_sfc_main$3N={components:{DropdownActions},props:{title:{type:String,required:!0},fieldActions:{type:Array,default:()=>[]}}};var _sfc_render$3N=function M(){var $=this,I=$._self._c;return I("header",{staticClass:"bg-white dark:bg-dark-550 fixed top-0 inset-x-0 px-4 flex items-center justify-between shadow z-max"},[I("h2",{staticClass:"w-full",domProps:{textContent:$._s($.__($.title))}}),I("div",{staticClass:"grow-1 min-w-max flex gap-4 items-center"},[$._t("default")],2),I("div",{staticClass:"w-full py-2.5 flex justify-end items-center"},[$.fieldActions.length?I("dropdown-list",{staticClass:"mr-2"},[$.fieldActions.length?I("dropdown-actions",{attrs:{actions:$.fieldActions}}):$._e()],1):$._e(),$._l($.fieldActions.filter(N=>N.quick),function(N,B){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:N.title,expression:"action.title"}],key:B,staticClass:"btn-quick-action",on:{click:function(j){return N.run()}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:N.icon}})],1)})],2)])},_sfc_staticRenderFns$3N=[],__component__$3O=normalizeComponent$2(_sfc_main$3N,_sfc_render$3N,_sfc_staticRenderFns$3N,!1,null,null,null,null);const FullscreenHeader=__component__$3O.exports,_sfc_main$3M={props:{config:Object,initialValue:{},initialMeta:{}},data(){return{meta:this.initialMeta,value:this.initialValue,loading:!1}},computed:{isPreloadable(){return this.$config.get("preloadableFieldtypes").includes(this.config.type)}},render(M){return this.$scopedSlots.default({meta:this.meta,value:this.value,loading:this.loading,updateMeta:this.updateMeta})},created(){this.isPreloadable&&this.initialMeta===void 0&&this.load()},watch:{initialValue(M){this.value=M},initialMeta(M){this.meta=M}},methods:{load(){this.loading=!0;const M={config:utf8btoa(JSON.stringify(this.config)),value:this.value};this.$axios.post(cp_url("fields/field-meta"),M).then($=>{this.meta=$.data.meta,this.value=$.data.value,this.loading=!1,this.$emit("loaded")})},updateMeta(M){this.meta=M}}},_sfc_render$3M=null,_sfc_staticRenderFns$3M=null;var __component__$3N=normalizeComponent$2(_sfc_main$3M,_sfc_render$3M,_sfc_staticRenderFns$3M,!1,null,null,null,null);const FieldMeta=__component__$3N.exports,_sfc_main$3L={components:{DropdownActions},props:{actions:{type:Array}}};var _sfc_render$3L=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"field-dropdown"},[I("div",{staticClass:"quick-list"},[I("div",{staticClass:"quick-list-content"},$._l($.actions.filter(N=>N.quick),function(N,B){return I("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:N.title,expression:"action.title"}],key:B,on:{click:function(j){return N.run()}}},[I("svg-icon",{staticClass:"h-3 w-3",attrs:{name:N.icon}})],1)}),0),I("dropdown-list",{attrs:{placement:"left-start",offset:[7,-3]}},[I("dropdown-actions",{attrs:{actions:$.actions}})],1)],1)])},_sfc_staticRenderFns$3L=[],__component__$3M=normalizeComponent$2(_sfc_main$3L,_sfc_render$3L,_sfc_staticRenderFns$3L,!1,null,null,null,null);const FieldActions=__component__$3M.exports,_sfc_main$3K={inject:["storeName"],props:{readOnly:Boolean,syncable:Boolean},data(){return{active:this.$store.state.publish[this.storeName].blueprint.tabs[0].handle,containerWidth:null}},computed:{state(){return this.$store.state.publish[this.storeName]},tabs(){return this.state.blueprint.tabs},mainTabs(){return this.shouldShowSidebar?(this.active==="sidebar"&&(this.active=this.state.blueprint.tabs[0].handle),_.filter(this.tabs,M=>M.handle!="sidebar")):this.tabs},actionsPortal(){return`publish-actions-${this.storeName}`}}};var _sfc_render$3K=function M(){var $=this,I=$._self._c;return I("element-container",{on:{resized:function(N){$.containerWidth=N.width}}},[I("div",[$._l($.mainTabs,function(N){return I("div",{key:N.handle},[I("div",{staticClass:"mb-2 content"},[I("h2",{staticClass:"text-base",domProps:{textContent:$._s(N.display)}}),I("p",{domProps:{innerHTML:$._s(N.instructions)}})]),I("div",{},[I("publish-sections",{attrs:{sections:N.sections,"read-only":$.readOnly,syncable:$.syncable},on:{updated:(B,j)=>$.$emit("updated",B,j),"meta-updated":(B,j)=>$.$emit("meta-updated",B,j),synced:function(B){return $.$emit("synced",B)},desynced:function(B){return $.$emit("desynced",B)},focus:function(B){return $.$emit("focus",B)},blur:function(B){return $.$emit("blur",B)}}})],1)])}),I("portal-target",{staticClass:"publish-tab publish-tab-actions-footer",attrs:{name:$.actionsPortal}})],2)])},_sfc_staticRenderFns$3K=[],__component__$3L=normalizeComponent$2(_sfc_main$3K,_sfc_render$3K,_sfc_staticRenderFns$3K,!1,null,null,null,null);const ConfigureTabs=__component__$3L.exports,_sfc_main$3J={inject:["storeName"],mixins:[ValidatesFieldConditions],props:{readOnly:Boolean,syncable:Boolean,enableSidebar:{type:Boolean,default:!0}},data(){return{active:this.$store.state.publish[this.storeName].blueprint.tabs[0].handle,layoutReady:!1,shouldShowSidebar:!1,hiddenTabs:[],tabsAreScrolled:!1,canScrollLeft:!1,canScrollRight:!1}},computed:{state(){return this.$store.state.publish[this.storeName]},tabs(){return this.state.blueprint.tabs.filter(M=>this.tabHasVisibleFields(M))},inStack(){return this.actionsPortal!=="publish-actions-base"},mainTabs(){return this.layoutReady&&!this.shouldShowSidebar?this.tabs:this.tabs.filter(M=>M.handle!=="sidebar")},sidebarTab(){return this.tabs.find(M=>M.handle==="sidebar")},numberOfTabs(){return this.mainTabs.length},showTabs(){return this.layoutReady&&this.numberOfTabs>1},showHiddenTabsDropdown(){return this.hiddenTabs.length>0},errors(){return this.state.errors},tabsWithErrors(){let M={};Object.values(this.tabs).forEach(I=>{I.sections.forEach(N=>{N.fields.forEach(B=>{M[B.handle]=I.handle})})});let $=Object.keys(this.errors).map(I=>I.split(".")[0]).filter(I=>M[I]).map(I=>M[I]);return uniq($)},actionsPortal(){return`publish-actions-${this.storeName}`},values(){return this.state.values}},beforeUpdate(){this.shouldShowSidebar&&this.active==="sidebar"&&(this.active=this.tabAt(0))},watch:{layoutReady(M){M&&this.$nextTick(()=>this.setActiveTabFromHash())}},methods:{tabHasError(M){return this.tabsWithErrors.includes(M)},tabHasVisibleFields(M){let $=0;return M.sections.forEach(I=>{I.fields.forEach(N=>{this.showField(N)&&$++})}),$>0},setActive(M){this.active=M,this.inStack||(window.location.hash=M);const $=this.getTabNode(M);if(!$){console.error(`Tab '${M}' not found`);return}this.scrollTabIntoView($),$.focus(),this.$events.$emit("tab-switched",M)},isActive(M){return M===this.active},tabIndex(M){return this.mainTabs.findIndex($=>$.handle===(M||this.active))},tabAt(M){const $=this.mainTabs[M];return $?$.handle:void 0},setActiveTabFromHash(){if(this.inStack||window.location.hash.length===0)return;const M=window.location.hash.substr(1);this.tabIndex(M)>=0?this.setActive(M):window.location.hash=""},activateNextTab(){this.activateTabAt((this.tabIndex()+1)%this.numberOfTabs)},activatePreviousTab(){this.activateTabAt((this.tabIndex()-1+this.numberOfTabs)%this.numberOfTabs)},activateFirstTab(){this.activateTabAt(0)},activateLastTab(){this.activateTabAt(this.numberOfTabs-1)},activateTabAt(M){this.setActive(this.tabAt(M))},tabId(M){return`${this.pascalCase(M)}Tab`},tabPanelId(M){return`${this.pascalCase(M)}TabPanel`},pascalCase(M){return M.split("_").map($=>$.slice(0,1).toUpperCase()+$.slice(1)).join("")},getTabNode(M){return this.$refs.tabs.childNodes[this.tabIndex(M)]},scrollTabs(M){this.$refs.tabs&&(this.$refs.tabs.scrollLeft+=M.deltaY,this.updateHiddenTabs())},scrollTabIntoView(M){if(typeof M=="string"&&(M=this.getTabNode(M)),!M){console.error(`Tab '${M}' not found`);return}const $=this.tabIsOutsideView(M);if(!$)return;const I=20;$==="left"?this.$refs.tabs.scrollLeft=M.offsetLeft-I:this.$refs.tabs.scrollLeft=M.offsetLeft+M.offsetWidth-this.$refs.tabs.clientWidth+I+8,this.updateHiddenTabs()},updateScrollHints(){this.canScrollLeft=this.$refs.tabs&&this.$refs.tabs.scrollLeft>0,this.canScrollRight=this.$refs.tabs&&this.$refs.tabs.scrollLeft<this.$refs.tabs.scrollWidth-this.$refs.tabs.clientWidth},containerWasResized(M){const{width:$}=M;this.layoutReady=$!==null,this.shouldShowSidebar=this.enableSidebar&&$>920,this.layoutReady&&this.$nextTick(()=>{this.updateScrollHints(),this.updateHiddenTabs()})},updateHiddenTabs(){if(!this.$refs.tabs)return;const M=[];this.$refs.tabs.childNodes.forEach(($,I)=>{this.tabIsOutsideView($,20)&&M.push(I)}),JSON.stringify(M)!==JSON.stringify(this.hiddenTabs)&&(this.hiddenTabs=M)},tabIsOutsideView(M,$=0){const I=this.$refs.tabs.getBoundingClientRect(),N=M.getBoundingClientRect();return I.left-N.left>$?"left":N.right-I.right>$?"right":!1},shouldShowInDropdown(M){return this.hiddenTabs.includes(M)}}};var _sfc_render$3J=function M(){var $=this,I=$._self._c;return I("element-container",{on:{resized:$.containerWasResized}},[I("div",[$.showTabs?I("div",{staticClass:"tabs-container flex items-center"},[I("div",{ref:"tabs",staticClass:"publish-tabs tabs",class:{"tabs-scrolled":$.canScrollLeft},attrs:{role:"tablist","aria-label":$.__("Edit Content")},on:{keydown:[function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-left",void 0,N.key,void 0)?null:(N.preventDefault(),$.activatePreviousTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-right",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateNextTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-up",void 0,N.key,void 0)?null:(N.preventDefault(),$.activatePreviousTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"arrow-down",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateNextTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"home",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateFirstTab.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"end",void 0,N.key,void 0)?null:(N.preventDefault(),$.activateLastTab.apply(null,arguments))}],mousewheel:function(N){return N.preventDefault(),$.scrollTabs.apply(null,arguments)},scroll:$.updateScrollHints}},$._l($.mainTabs,function(N){return I("button",{key:N.handle,ref:N.handle+"-tab",refInFor:!0,staticClass:"tab-button",class:{active:$.isActive(N.handle),"has-error":$.tabHasError(N.handle)},attrs:{role:"tab",id:$.tabId(N.handle),"aria-controls":$.tabPanelId(N.handle),"aria-selected":$.isActive(N.handle),tabindex:$.isActive(N.handle)?0:-1},domProps:{textContent:$._s($.__(N.display||`${N.handle[0].toUpperCase()}${N.handle.slice(1)}`))},on:{click:function(B){return $.setActive(N.handle)}}})}),0),$.canScrollLeft?I("div",{staticClass:"fade-left"}):$._e(),$.canScrollRight?I("div",{staticClass:"fade-right",class:{"mr-8":$.showHiddenTabsDropdown}}):$._e(),$.showHiddenTabsDropdown?I("dropdown-list",{staticClass:"rtl:mr-2 ltr:ml-2"},$._l($.mainTabs,function(N,B){return I("dropdown-item",{directives:[{name:"show",rawName:"v-show",value:$.shouldShowInDropdown(B),expression:"shouldShowInDropdown(index)"}],key:N.handle,attrs:{text:$.__(N.display||`${N.handle[0].toUpperCase()}${N.handle.slice(1)}`)},on:{click:function(j){return j.preventDefault(),$.setActive(N.handle)}}})}),1):$._e()],1):$._e(),I("div",{staticClass:"publish-tab-outer"},[I("div",{ref:"publishTabWrapper",staticClass:"publish-tab-wrapper w-full min-w-0"},$._l($.mainTabs,function(N){return I("div",{directives:[{name:"show",rawName:"v-show",value:$.isActive(N.handle),expression:"isActive(tab.handle)"}],key:N.handle,staticClass:"publish-tab tab-panel w-full",class:$.showTabs,attrs:{role:$.showTabs&&"tabpanel",id:$.showTabs&&$.tabPanelId(N.handle),"aria-labelledby":$.showTabs&&$.tabId(N.handle),"data-tab-handle":N.handle,tabindex:"0"}},[I("publish-sections",{attrs:{sections:N.sections,"read-only":$.readOnly,syncable:$.syncable},on:{updated:(B,j)=>$.$emit("updated",B,j),"meta-updated":(B,j)=>$.$emit("meta-updated",B,j),synced:function(B){return $.$emit("synced",B)},desynced:function(B){return $.$emit("desynced",B)},focus:function(B){return $.$emit("focus",B)},blur:function(B){return $.$emit("blur",B)}}})],1)}),0),I("div",{class:{"publish-sidebar":$.shouldShowSidebar}},[I("div",{staticClass:"publish-tab"},[I("div",{staticClass:"publish-tab-actions",class:{"as-sidebar":$.shouldShowSidebar}},[I("v-portal",{attrs:{to:$.actionsPortal,disabled:$.shouldShowSidebar}},[$._t("actions",null,{shouldShowSidebar:$.shouldShowSidebar})],2)],1),$.layoutReady&&$.shouldShowSidebar&&$.sidebarTab?I("publish-sections",{attrs:{sections:$.sidebarTab.sections,"read-only":$.readOnly,syncable:$.syncable},on:{updated:(N,B)=>$.$emit("updated",N,B),"meta-updated":(N,B)=>$.$emit("meta-updated",N,B),synced:function(N){return $.$emit("synced",N)},desynced:function(N){return $.$emit("desynced",N)},focus:function(N){return $.$emit("focus",N)},blur:function(N){return $.$emit("blur",N)}}}):$._e()],1)])]),I("portal-target",{staticClass:"publish-tab publish-tab-actions-footer",attrs:{name:$.actionsPortal}})],1)])},_sfc_staticRenderFns$3J=[],__component__$3K=normalizeComponent$2(_sfc_main$3J,_sfc_render$3J,_sfc_staticRenderFns$3J,!1,null,null,null,null);const PublishTabs=__component__$3K.exports,_sfc_main$3I={mixins:[ValidatesFieldConditions],props:{sections:{type:Array,required:!0},readOnly:Boolean,syncable:Boolean,syncableFields:Array,namePrefix:String},computed:{state(){return this.$store.state.publish[this.storeName]},values(){return this.state.values},visibleSections(){return this.sections.filter(M=>this.sectionHasVisibleFields(M))}},methods:{sectionHasVisibleFields(M){let $=0;return M.fields.forEach(I=>{this.showField(I)&&$++}),$>0}}};var _sfc_render$3I=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"publish-sections"},$._l($.visibleSections,function(N,B){return I("div",{key:B,staticClass:"publish-sections-section"},[I("div",{staticClass:"p-0 card"},[N.display?I("header",{staticClass:"publish-section-header @container"},[I("div",{staticClass:"publish-section-header-inner"},[I("label",{staticClass:"text-base font-semibold",domProps:{textContent:$._s($.__(N.display))}}),N.instructions?I("div",{staticClass:"help-block"},[I("p",{domProps:{innerHTML:$._s($.$options.filters.markdown($.__(N.instructions)))}})]):$._e()])]):$._e(),I("publish-fields",{attrs:{fields:N.fields,"read-only":$.readOnly,syncable:$.syncable,"syncable-fields":$.syncableFields},on:{updated:(j,U)=>$.$emit("updated",j,U),"meta-updated":(j,U)=>$.$emit("meta-updated",j,U),synced:function(j){return $.$emit("synced",j)},desynced:function(j){return $.$emit("desynced",j)},focus:function(j){return $.$emit("focus",j)},blur:function(j){return $.$emit("blur",j)}}})],1)])}),0)},_sfc_staticRenderFns$3I=[],__component__$3J=normalizeComponent$2(_sfc_main$3I,_sfc_render$3I,_sfc_staticRenderFns$3I,!1,null,null,null,null);const PublishSections=__component__$3J.exports,_sfc_main$3H={inject:["storeName"],computed:{errors(){return this.$store.state.publish[this.storeName].errors}}};var _sfc_render$3H=function M(){var $=this,I=$._self._c;return I("validation-errors",{attrs:{errors:$.errors}})},_sfc_staticRenderFns$3H=[],__component__$3I=normalizeComponent$2(_sfc_main$3H,_sfc_render$3H,_sfc_staticRenderFns$3H,!1,null,null,null,null);const PublishValidationErrors=__component__$3I.exports,_sfc_main$3G={components:{PublishField},props:{value:{},fieldtype:{type:String,default:"text"},handle:{type:String,required:!0},display:{type:String,required:!0},instructions:{type:String},width:{default:100},focus:{type:Boolean},autoselect:{type:Boolean},errors:{type:Array},error:{type:String},config:{type:Object}},computed:{fieldConfig(){return{...this.config,type:this.fieldtype,handle:this.handle,display:this.display,instructions:this.instructions,width:this.width,focus:this.focus,autoselect:this.autoselect}},fieldErrors(){return this.error?[this.error]:this.errors}}};var _sfc_render$3G=function M(){var $=this,I=$._self._c;return I("publish-field",{attrs:{config:$.fieldConfig,value:$.value,errors:$.fieldErrors},on:{input:function(N){return $.$emit("input",N)}}})},_sfc_staticRenderFns$3G=[],__component__$3H=normalizeComponent$2(_sfc_main$3G,_sfc_render$3G,_sfc_staticRenderFns$3G,!1,null,null,null,null);const FormGroup=__component__$3H.exports,_sfc_main$3F={props:{variables:Object},provide(){return this.variables},render(){return this.$scopedSlots.default({})}},_sfc_render$3F=null,_sfc_staticRenderFns$3F=null;var __component__$3G=normalizeComponent$2(_sfc_main$3F,_sfc_render$3F,_sfc_staticRenderFns$3F,!1,null,null,null,null);const Provider=__component__$3G.exports,_sfc_main$3E={methods:{resizeStart(){this.$emit("resize-start"),window.addEventListener("mousemove",this.resizing),window.addEventListener("mouseup",this.resizeEnd)},resizeEnd(){this.$emit("resize-end"),window.removeEventListener("mousemove",this.resizing,!1),window.removeEventListener("mouseup",this.resizeEnd,!1)},resizing(M){M.preventDefault();let $=M.clientX;if($<16)return this.$emit("collapsed");$=$<350?350:$,this.$emit("resized",$)}}};var _sfc_render$3E=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"live-preview-resizer",on:{mousedown:$.resizeStart}})},_sfc_staticRenderFns$3E=[],__component__$3F=normalizeComponent$2(_sfc_main$3E,_sfc_render$3E,_sfc_staticRenderFns$3E,!1,null,null,null,null);const Resizer=__component__$3F.exports,hasIframeSourceChanged=(M,$)=>(M=new URL(M),$=new URL($),M.searchParams.delete("live-preview"),$.searchParams.delete("live-preview"),M.toString()!==$.toString()),postMessageToIframe=(M,$,I)=>{var B;const N=/^https?:\/\//.test($)?(B=new URL($))==null?void 0:B.origin:window.origin;M.firstChild.contentWindow.postMessage({name:"statamic.preview.updated",url:$,...I},N)},UpdatesIframe={data(){return{previousUrl:null}},methods:{updateIframeContents(M,$,I){const N=document.createElement("iframe");N.setAttribute("frameborder","0"),N.setAttribute("src",M),N.setAttribute("id","live-preview-iframe"),this.setIframeAttributes(N);const B=this.$refs.contents;let j=new URL(M),U=j.host+j.pathname;if(!B.firstChild){B.appendChild(N),this.previousUrl=U;return}let q=$.refresh;if(hasIframeSourceChanged(B.firstChild.src,N.src)&&(q=!0),!q){postMessageToIframe(B,M,I);return}let K=(M.startsWith("/")||j.host===window.location.host)&&U===this.previousUrl,G=K?[B.firstChild.contentWindow.scrollX??0,B.firstChild.contentWindow.scrollY??0]:null;if(B.replaceChild(N,B.firstChild),K){let J=N.contentWindow;const Z=ee=>{J.scrollTo(...G)};J.addEventListener("DOMContentLoaded",Z,!0),J.addEventListener("load",Z,!0)}this.previousUrl=U},setIframeAttributes(M){}}};let source$3;const widthLocalStorageKey="statamic.live-preview.editor-width",_sfc_main$3D={mixins:[UpdatesIframe],components:{Provider,Resizer},props:{url:String,previewing:Boolean,targets:Array,values:Object,name:String,blueprint:String,reference:String},data(){return{portalEnabled:!1,panesVisible:!1,headerVisible:!1,editorWidth:null,editorResizing:!1,editorCollapsed:!1,previewDevice:null,provides:{storeName:this.name},channel:null,poppedOut:!1,popoutWindow:null,popoutResponded:!1,loading:!0,extras:{},keybinding:null,token:null,target:0,previousUrl:null}},computed:{payload(){return{blueprint:this.blueprint,preview:this.values,extras:this.extras}},targetSelectOptions(){return Object.values(_.mapObject(this.targets,(M,$)=>({value:$,label:__(M.label)})))},deviceSelectOptions(){let M=Object.values(_.mapObject(this.$config.get("livePreview.devices"),($,I)=>I==="Responsive"?{value:null,label:__("Responsive")}:{value:I,label:__(I)}));return M.filter($=>$.label===__("Responsive")).length===0&&M.unshift({value:null,label:__("Responsive")}),M},previewDeviceWidth(){if(this.previewDevice)return`${this.$config.get("livePreview.devices")[this.previewDevice].width}px`},previewDeviceHeight(){if(this.previewDevice)return`${this.$config.get("livePreview.devices")[this.previewDevice].height}px`},inputs(){return this.$config.get("livePreview.inputs",{})},livePreviewFieldsPortal(){return`live-preview-fields-${this.storeName}`},canPopOut(){return typeof BroadcastChannel=="function"},tokenizedUrl(){let M=this.url;return M+=(M.includes("?")?"&":"?")+`target=${this.target}`,this.token&&(M+=`&token=${this.token}`),M}},watch:{previewing(M,$){$&&!M?this.$nextTick(()=>this.portalEnabled=!1):this.portalEnabled=M,M&&(this.update(),this.animateIn())},payload:{deep:!0,handler(M){this.previewing&&this.update()}},target(){this.update()},previewDevice(){this.setIframeAttributes(document.getElementById("live-preview-iframe"))}},created(){this.previewDevice=this.deviceSelectOptions[0].value,this.editorWidth=localStorage.getItem(widthLocalStorageKey)||400,this.keybinding=this.$keys.bindGlobal("mod+shift+p",()=>{this.previewing?this.close():this.$emit("opened-via-keyboard")}),this.$events.$on(`live-preview.${this.name}.refresh`,()=>{this.update()})},beforeDestroy(){this.closePopout()},destroyed(){this.keybinding.destroy()},methods:{update:_.debounce(function(){source$3&&source$3.cancel(),source$3=this.$axios.CancelToken.source(),this.loading=!0,this.$axios.post(this.tokenizedUrl,this.payload,{cancelToken:source$3.token}).then(M=>{this.token=M.data.token;const $=M.data.url,I=this.targets[this.target],N={token:this.token,reference:this.reference};this.poppedOut?this.channel.postMessage({event:"updated",url:$,target:I,payload:N}):this.updateIframeContents($,I,N),this.loading=!1}).catch(M=>{if(!this.$axios.isCancel(M))throw M})},150),setIframeAttributes(M){M.setAttribute("frameborder","0"),M.setAttribute("class",this.previewDevice?"device":"responsive"),this.previewDevice?M.setAttribute("style",`width: ${this.previewDeviceWidth}; height: ${this.previewDeviceHeight}`):M.removeAttribute("style")},close(){this.poppedOut&&this.closePopout(),this.animateOut().then(()=>this.$emit("closed"))},animateIn(){return this.$wait(100).then(()=>(this.headerVisible=!0,this.$wait(200))).then(()=>(this.panesVisible=!0,this.$wait(300))).then(()=>{window.dispatchEvent(new Event("resize"))})},animateOut(){return this.panesVisible=!1,this.headerVisible=!1,this.$wait(300)},setEditorWidth(M){this.editorCollapsed=!1,this.editorWidth=M,localStorage.setItem(widthLocalStorageKey,M)},collapseEditor(){this.editorCollapsed=!0,this.editorWidth=16},popout(){this.poppedOut=!0,this.channel=this.channel||new BroadcastChannel("livepreview"),this.channel.onmessage=N=>{switch(N.data.event){case"popout.opened":this.listenForPopoutClose(),this.update();break;case"popout.closed":this.poppedOut=!1,this.update();case"popout.pong":this.popoutResponded=!0;break}};const M=this.$refs.contents.clientWidth,$=this.$refs.contents.clientHeight,I=screen.width-M;this.popoutWindow=window.open(this.url,"livepreview",`width=${M},height=${$},top=0,left=${I}`)},closePopout(){this.poppedOut&&this.popoutWindow.close()},listenForPopoutClose(){this.channel.postMessage({event:"ping"}),setTimeout(()=>{this.popoutResponded?this.listenForPopoutClose():(this.poppedOut=!1,this.update()),this.popoutResponded=!1},500)},componentUpdated(M,$){Vue$3.set(this.extras,M,$)}}};var _sfc_render$3D=function M(){var $=this,I=$._self._c;return I("div",[I("v-portal",{attrs:{to:$.livePreviewFieldsPortal,disabled:!$.portalEnabled}},[I("provider",{attrs:{variables:$.provides}},[$._t("default")],2)],1),$.previewing?I("portal",{attrs:{name:"live-preview","target-class":"live-preview-portal"}},[I("div",{staticClass:"live-preview fixed flex flex-col"},[I("transition",{attrs:{name:"live-preview-header-slide"}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.headerVisible,expression:"headerVisible"}],staticClass:"live-preview-header"},[I("div",{staticClass:"text-base text-gray-700 dark:text-dark-150 font-medium rtl:ml-4 ltr:mr-4"},[$._v($._s($.__("Live Preview")))]),I("div",{staticClass:"flex items-center"},[$.canPopOut&&!$.poppedOut?I("button",{staticClass:"btn",on:{click:$.popout}},[$._v($._s($.__("Pop out")))]):$._e(),$.poppedOut?I("button",{staticClass:"btn",on:{click:$.closePopout}},[$._v($._s($.__("Pop in")))]):$._e(),I("select-input",{directives:[{name:"show",rawName:"v-show",value:!$.poppedOut,expression:"!poppedOut"}],staticClass:"rtl:mr-4 ltr:ml-4",attrs:{options:$.deviceSelectOptions},model:{value:$.previewDevice,callback:function(N){$.previewDevice=N},expression:"previewDevice"}}),$.targets.length>1?I("select-input",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{options:$.targetSelectOptions},model:{value:$.target,callback:function(N){$.target=N},expression:"target"}}):$._e(),$._l($.inputs,function(N,B){return I(N,{key:B,tag:"component",staticClass:"rtl:mr-4 ltr:ml-4",attrs:{value:$.extras[B],loading:$.loading},on:{input:function(j){return $.componentUpdated(B,j)}}})}),$._t("buttons"),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:$.close}})],2)])]),I("div",{staticClass:"live-preview-main"},[I("transition",{attrs:{name:"live-preview-editor-slide"}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.panesVisible,expression:"panesVisible"}],staticClass:"live-preview-editor @container/live-preview",style:{width:$.poppedOut?"100%":`${$.editorWidth}px`}},[I("div",{staticClass:"live-preview-fields flex-1 h-full overflow-scroll"},[I("portal-target",{attrs:{name:$.livePreviewFieldsPortal}})],1),I("resizer",{directives:[{name:"show",rawName:"v-show",value:!$.poppedOut,expression:"!poppedOut"}],on:{resized:$.setEditorWidth,"resize-start":function(N){$.editorResizing=!0},"resize-end":function(N){$.editorResizing=!1},collapsed:$.collapseEditor}})],1)]),I("transition",{attrs:{name:"live-preview-contents-slide"}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.panesVisible,expression:"panesVisible"}],ref:"contents",staticClass:"live-preview-contents items-center justify-center overflow-auto",class:{"pointer-events-none":$.editorResizing}})])],1)],1)]):$._e()],1)},_sfc_staticRenderFns$3D=[],__component__$3E=normalizeComponent$2(_sfc_main$3D,_sfc_render$3D,_sfc_staticRenderFns$3D,!1,null,null,null,null);const LivePreview=__component__$3E.exports,_sfc_main$3C={mixins:[UpdatesIframe],data(){return{channel:null}},created(){this.channel=new BroadcastChannel("livepreview"),this.channel.onmessage=M=>{switch(M.data.event){case"updated":this.updateIframeContents(M.data.url,M.data.target,M.data.payload);break;case"ping":this.channel.postMessage({event:"popout.pong"});break}},this.channel.postMessage({event:"popout.opened"})},methods:{setIframeAttributes(M){M.setAttribute("class","min-h-screen")}}};var _sfc_render$3C=function M(){var $=this,I=$._self._c;return I("div",{ref:"contents",staticClass:"live-preview-contents min-h-screen"})},_sfc_staticRenderFns$3C=[],__component__$3D=normalizeComponent$2(_sfc_main$3C,_sfc_render$3C,_sfc_staticRenderFns$3C,!1,null,null,null,null);const Popout=__component__$3D.exports,_sfc_main$3B={props:{actions:Object,published:Boolean,collection:String,reference:String,publishContainer:String,canManagePublishState:Boolean},data(){return{action:this.canManagePublishState?"publish":"revision",revisionMessage:null,saving:!1}},computed:{options(){const M=[];return this.canManagePublishState&&(M.push({value:"publish",label:__("Publish Now")}),this.published&&M.push({value:"unpublish",label:__("Unpublish")})),M.push({value:"revision",label:__("Create Revision")}),M},actionInfoText(){switch(this.action){case"publish":return __("messages.publish_actions_publish");case"schedule":return __("messages.publish_actions_schedule");case"unpublish":return __("messages.publish_actions_unpublish");case"revision":return __("messages.publish_actions_create_revision")}},submitButtonText(){return _.findWhere(this.options,{value:this.action}).label}},methods:{submit(){this.saving=!0,this.$emit("saving");const M="submit"+this.action.charAt(0).toUpperCase()+this.action.substring(1);this[M]()},submitPublish(){this.runBeforePublishHook()},runBeforePublishHook(){Statamic.$hooks.run("entry.publishing",{collection:this.collection,message:this.revisionMessage,storeName:this.publishContainer}).then(this.performPublishRequest).catch(M=>{this.saving=!1,this.$toast.error(M||__("Something went wrong"))})},performPublishRequest(){const M={message:this.revisionMessage};this.$axios.post(this.actions.publish,M).then($=>{if(this.saving=!1,!$.data.saved)return this.$emit("failed"),this.$toast.error(__("Couldn't publish entry"));this.$toast.success(__("Published")),this.runAfterPublishHook($)}).catch($=>this.handleAxiosError($))},runAfterPublishHook(M){Statamic.$hooks.run("entry.published",{collection:this.collection,reference:this.reference,message:this.revisionMessage,response:M}).then(()=>{this.revisionMessage=null,this.$emit("saved",{published:!0,isWorkingCopy:!1,response:M})}).catch($=>{})},submitSchedule(){},submitUnpublish(){const M={message:this.revisionMessage};this.$axios.post(this.actions.unpublish,{data:M}).then($=>{if(this.saving=!1,!$.data.saved)return this.$emit("failed"),this.$toast.error(__("Couldn't unpublish entry"));this.$toast.success(__("Unpublished")),this.revisionMessage=null,this.$emit("saved",{published:!1,isWorkingCopy:!1,response:$})}).catch($=>this.handleAxiosError($))},submitRevision(){const M={message:this.revisionMessage};this.$axios.post(this.actions.createRevision,M).then($=>{this.$toast.success(__("Revision created")),this.revisionMessage=null,this.$emit("saved",{isWorkingCopy:!0,response:$})}).catch($=>this.handleAxiosError($))},handleAxiosError(M){if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.$reveal.invalid()}else M.response?this.$toast.error(M.response.data.message):this.$toast.error(M||"Something went wrong");this.saving=!1,this.$emit("failed")}}};var _sfc_render$3B=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"publish-options"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white dark:bg-dark-800 h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 dark:bg-dark-600 px-6 py-2 border-b border-gray-300 dark:border-dark-900 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Publish"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto p-6"},[$.saving?I("div",{staticClass:"flex h-full items-center justify-center loading"},[I("loading-graphic",{attrs:{text:""}})],1):[I("select-input",{staticClass:"mb-6",attrs:{options:$.options},model:{value:$.action,callback:function(B){$.action=B},expression:"action"}}),$.action?I("div",[$.action=="schedule"?I("date-fieldtype",{staticClass:"mb-6",attrs:{name:"publishTime",value:$.publishTime}}):$._e(),I("textarea-input",{staticClass:"mb-6 text-sm",attrs:{placeholder:$.__("Notes about this revision"),focus:!0},on:{keydown:function(B){return!B.type.indexOf("key")&&$._k(B.keyCode,"enter",13,B.key,"Enter")?null:$.submit.apply(null,arguments)}},model:{value:$.revisionMessage,callback:function(B){$.revisionMessage=B},expression:"revisionMessage"}}),I("button",{staticClass:"btn-primary w-full mb-6",domProps:{textContent:$._s($.submitButtonText)},on:{click:$.submit}}),I("div",{staticClass:"text-gray text-xs flex mb-6"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1",domProps:{textContent:$._s($.actionInfoText)}})]),$.action==="schedule"?I("div",{staticClass:"text-gray text-xs flex mb-6 text-red-500"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1",domProps:{textContent:$._s($.__("messages.publish_actions_current_becomes_draft_because_scheduled"))}})]):$._e()],1):$._e()]],2)])}}])})},_sfc_staticRenderFns$3B=[],__component__$3C=normalizeComponent$2(_sfc_main$3B,_sfc_render$3B,_sfc_staticRenderFns$3B,!1,null,null,null,null);const PublishActions$1=__component__$3C.exports,SaveButtonOptions_vue_vue_type_style_index_0_lang="",_sfc_main$3A={props:{showOptions:{type:Boolean,default:!0},buttonClass:{default:"btn-primary"},preferencesPrefix:{type:String,required:!0}},data(){return{currentOption:null}},computed:{options(){return{options:{listing:__("Go To Listing"),continue_editing:__("Continue Editing"),create_another:__("Create Another")}}},buttonIcon(){switch(!0){case this.currentOption==="listing":return{name:"micro/arrow-go-back",class:"w-3"};case this.currentOption==="continue_editing":return{name:"micro/chevron-down-xs",class:"w-2"};case this.currentOption==="create_another":return{name:"micro/add-circle",class:"w-3"}}},preferencesKey(){return`${this.preferencesPrefix}.after_save`}},mounted(){this.setInitialValue(),this.$watch("currentOption",M=>this.setPreference(M))},methods:{setInitialValue(){this.currentOption=this.$preferences.get(this.preferencesKey)||"listing"},setPreference(M){M!==this.$preferences.get(this.preferencesKey)&&(M==="listing"?this.$preferences.remove(this.preferencesKey):this.$preferences.set(this.preferencesKey,M))}}};var _sfc_render$3A=function M(){var $=this,I=$._self._c;return I("div",{class:{"btn-group":$.showOptions}},[$._t("default"),$.showOptions?I("dropdown-list",{staticClass:"rtl:text-right ltr:text-left",scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"rtl:rounded-r-none ltr:rounded-l-none",class:$.buttonClass},[$.buttonIcon?I("svg-icon",{class:$.buttonIcon.class,attrs:{name:$.buttonIcon.name}}):$._e()],1)]},proxy:!0}],null,!1,1229956584)},[I("h6",{staticClass:"p-2",domProps:{textContent:$._s($.__("After Saving"))}}),I("div",{staticClass:"publish-fields px-2 py-1"},[I("div",{staticClass:"publish-field save-and-continue-options radio-fieldtype"},[I("radio-fieldtype",{attrs:{handle:"save_and_continue_options",config:$.options},model:{value:$.currentOption,callback:function(N){$.currentOption=N},expression:"currentOption"}})],1)])]):$._e()],2)},_sfc_staticRenderFns$3A=[],__component__$3B=normalizeComponent$2(_sfc_main$3A,_sfc_render$3A,_sfc_staticRenderFns$3A,!1,null,null,null,null);const SaveButtonOptions=__component__$3B.exports,_sfc_main$3z={props:{revision:Object,url:String,reference:String},data(){return{confirming:!1}},methods:{restore(){const M={revision:this.revision.date};this.$axios.post(this.url,M).then($=>{Statamic.$hooks.run("revision.restored",{reference:this.reference}).then(()=>{this.$dirty.disableWarning(),window.location.reload()})})}}};var _sfc_render$3z=function M(){var $=this,I=$._self._c;return I("div",[I("button",{staticClass:"btn",domProps:{textContent:$._s($.__("Restore"))},on:{click:function(N){$.confirming=!0}}}),$.confirming?I("confirmation-modal",{attrs:{title:$.__("Restore Revision"),buttonText:$.__("Restore")},on:{confirm:$.restore,cancel:function(N){$.confirming=!1}}},[I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Are you sure you want to restore this revision?"))}}),I("p",{staticClass:"mb-6",domProps:{textContent:$._s($.__("Your working copy will be replaced by the contents of this revision."))}})]):$._e()],1)},_sfc_staticRenderFns$3z=[],__component__$3A=normalizeComponent$2(_sfc_main$3z,_sfc_render$3z,_sfc_staticRenderFns$3z,!1,null,null,null,null);const RestoreRevision=__component__$3A.exports,_sfc_main$3y={props:{component:String,componentProps:Object,stackSize:String},data(){return{loading:!0,readOnly:!1,componentPropValues:{}}},computed:{publishContainer(){return`relate-fieldtype-inline-${this._uid}`}},created(){this.getItem()},methods:{getItem(){this.$axios.get(this.itemUrl).then(M=>{for(const $ in this.componentProps){const I=data_get(M.data,this.componentProps[$]);this.$set(this.componentPropValues,$,I)}this.loading=!1}).catch(M=>{M.response.status===500&&(this.$toast.error(M.response.data.message),this.close()),M.response.status===403&&(this.$toast.error(__("This action is unauthorized.")),this.close())})},close(){this.$emit("closed")},confirmClose(){this.shouldClose()&&this.close()},shouldClose(){return!(this.$dirty.has(this.publishContainer)&&!confirm(__("Are you sure? Unsaved changes will be lost.")))}}};var _sfc_render$3y=function M(){var $=this,I=$._self._c;return I("div",[I("stack",{attrs:{name:"inline-editor","before-close":$.shouldClose,narrow:$.stackSize==="narrow",half:$.stackSize==="half",full:$.stackSize==="full"},on:{closed:$.close}},[I("div",{staticClass:"h-full overflow-scroll overflow-x-auto p-6 bg-gray-300 dark:bg-dark-800"},[$.loading?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),$.loading?$._e():I($.component,$._b({tag:"component",staticClass:"max-w-3xl mx-auto",attrs:{method:$.method,"is-creating":$.creating,"is-inline":!0,"publish-container":$.publishContainer},on:{saved:$.saved}},"component",$.componentPropValues,!1),[I("template",{slot:"action-buttons-right"},[$._t("action-buttons-right"),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:$.confirmClose}})],2)],2)],1)])],1)},_sfc_staticRenderFns$3y=[],__component__$3z=normalizeComponent$2(_sfc_main$3y,_sfc_render$3y,_sfc_staticRenderFns$3y,!1,null,null,null,null);const InlinePublishForm=__component__$3z.exports,_sfc_main$3x={mixins:[InlinePublishForm],props:{revision:Object},data(){return{creating:!1,readOnly:!0,method:"patch",action:"update",itemUrl:this.revision.attributes.item_url}},computed:{title(){var M;return((M=this.revision.attributes.data)==null?void 0:M.title)??""}},methods:{saved(M){}}},_sfc_render$3x=null,_sfc_staticRenderFns$3x=null;var __component__$3y=normalizeComponent$2(_sfc_main$3x,_sfc_render$3x,_sfc_staticRenderFns$3x,!1,null,null,null,null);const RevisionPreview=__component__$3y.exports,_sfc_main$3w={components:{RevisionPreview,RestoreRevision},props:{revision:Object,restoreUrl:String,reference:String,canRestoreRevisions:Boolean},data(){return{showDetails:!1,componentProps:{initialActions:"actions",collectionTitle:"collection.title",collectionUrl:"collection.url",initialTitle:"title",initialReference:"reference",initialFieldset:"blueprint",initialValues:"values",initialLocalizedFields:"localizedFields",initialMeta:"meta",initialPublished:"published",initialPermalink:"permalink",initialLocalizations:"localizations",initialHasOrigin:"hasOrigin",initialOriginValues:"originValues",initialOriginMeta:"originMeta",initialSite:"locale",initialIsWorkingCopy:"hasWorkingCopy",initialIsRoot:"isRoot",initialReadOnly:"readOnly"}}},computed:{date(){return moment.unix(this.revision.date)}},methods:{open(){if(this.revision.working){this.$emit("working-copy-selected");return}this.showDetails=!0}}};var _sfc_render$3w=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"revision-item",class:{"status-working-copy":$.revision.working,"status-published":$.revision.attributes.published},on:{click:$.open}},[$.revision.message?I("div",{staticClass:"revision-item-note truncate",domProps:{textContent:$._s($.revision.message)}}):$._e(),I("div",{staticClass:"flex items-center"},[$.revision.user?I("avatar",{staticClass:"shrink-0 rtl:ml-2 ltr:mr-2 w-6",attrs:{user:$.revision.user}}):$._e(),I("div",{staticClass:"revision-item-content w-full flex"},[I("div",{staticClass:"flex-1"},[I("div",{staticClass:"revision-author text-gray-700 dark:text-dark-150 text-2xs"},[$.revision.user?[$._v($._s($.revision.user.name||$.revision.user.email)+" –")]:$._e(),$._v(" "+$._s($.date.toDate().toLocaleTimeString($.$config.get("locale").replace("_","-"),{hour:"numeric",minute:"2-digit"}))+" ")],2)]),$.revision.working?I("span",{staticClass:"badge",domProps:{textContent:$._s($.__("Working Copy"))}}):I("span",{staticClass:"badge",class:$.revision.action,domProps:{textContent:$._s($.__($.revision.action))}}),$.revision.attributes.current?I("span",{staticClass:"badge bg-orange",domProps:{textContent:$._s($.__("Current"))}}):$._e(),$.showDetails?I("revision-preview",{attrs:{revision:$.revision,component:"entry-publish-form","component-props":$.componentProps},on:{closed:function(N){$.showDetails=!1}}},[I("template",{slot:"action-buttons-right"},[$.canRestoreRevisions?I("restore-revision",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{revision:$.revision,url:$.restoreUrl,reference:$.reference}}):$._e()],1)],2):$._e()],1)],1)])},_sfc_staticRenderFns$3w=[],__component__$3x=normalizeComponent$2(_sfc_main$3w,_sfc_render$3w,_sfc_staticRenderFns$3w,!1,null,null,null,null);const Revision=__component__$3x.exports,_sfc_main$3v={components:{Revision},props:{indexUrl:String,restoreUrl:String,reference:String,canRestoreRevisions:Boolean},data(){return{revisions:[],loading:!0,escBinding:null}},mounted(){this.$axios.get(this.indexUrl).then(M=>{this.loading=!1,this.revisions=M.data.reverse()}),this.escBinding=this.$keys.bindGlobal(["esc"],M=>{this.close()})},beforeDestroy(){this.escBinding.destroy()},methods:{close(){this.$emit("closed")}}};var _sfc_render$3v=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"bg-white dark:bg-dark-800 h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 dark:bg-dark-600 px-4 py-2 border-b border-gray-300 dark:border-dark-900 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Revision History"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:$.close}})]),I("div",{staticClass:"flex-1 overflow-auto"},[$.loading?I("div",{staticClass:"flex h-full items-center justify-center loading"},[I("loading-graphic")],1):$._e(),!$.loading&&$.revisions.length===0?I("div",{staticClass:"p-4 text-gray dark:text-dark-150 text-sm"},[$._v(" "+$._s($.__("No revisions"))+" ")]):$._e(),$._l($.revisions,function(N){return I("div",{key:N.day},[I("h6",{staticClass:"revision-date",domProps:{textContent:$._s($.$moment.unix(N.day).isBefore($.$moment().startOf("day"))?$.$moment.unix(N.day).toDate().toLocaleDateString($.$config.get("locale").replace("_","-"),{month:"long",day:"numeric",year:"numeric"}):$.__("Today"))}}),I("div",{staticClass:"revision-list"},$._l(N.revisions,function(B){return I("revision",{key:B.date,attrs:{revision:B,"restore-url":$.restoreUrl,reference:$.reference,"can-restore-revisions":$.canRestoreRevisions},on:{"working-copy-selected":$.close}})}),1)])})],2)])},_sfc_staticRenderFns$3v=[],__component__$3w=normalizeComponent$2(_sfc_main$3v,_sfc_render$3v,_sfc_staticRenderFns$3v,!1,null,null,null,null);const RevisionHistory=__component__$3w.exports,HasActions={props:{initialItemActions:{type:Array,default:()=>[]},itemActionUrl:String},data(){return{itemActions:this.initialItemActions}},computed:{hasItemActions(){return this.itemActions.length>0}},methods:{actionStarted(){this.saving=!0},actionCompleted(M=null,$){this.saving=!1,M!==!1&&(this.$events.$emit("reset-action-modals"),$.success===!1?this.$toast.error($.message||__("Action failed")):this.$toast.success($.message||__("Action completed")),$.data&&(this.itemActions=$.data.itemActions),this.afterActionSuccessfullyCompleted($))},afterActionSuccessfullyCompleted(M){}}},_sfc_main$3u={mixins:[HasPreferences,HasHiddenFields,HasActions],components:{PublishActions:PublishActions$1,SaveButtonOptions,RevisionHistory},props:{publishContainer:String,initialReference:String,initialFieldset:Object,initialValues:Object,initialExtraValues:Object,initialMeta:Object,initialTitle:String,initialLocalizations:Array,initialLocalizedFields:Array,originBehavior:String,initialHasOrigin:Boolean,initialOriginValues:Object,initialOriginMeta:Object,initialSite:String,initialIsWorkingCopy:Boolean,collectionHandle:String,breadcrumbs:Array,initialActions:Object,method:String,isCreating:Boolean,isInline:Boolean,initialReadOnly:Boolean,initialIsRoot:Boolean,initialPermalink:String,revisionsEnabled:Boolean,preloadedAssets:Array,canEditBlueprint:Boolean,canManagePublishState:Boolean,createAnotherUrl:String,initialListingUrl:String,collectionHasRoutes:Boolean,previewTargets:Array,autosaveInterval:Number},data(){return{actions:this.initialActions,saving:!1,localizing:!1,trackDirtyState:!0,fieldset:this.initialFieldset,title:this.initialTitle,values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),extraValues:_.clone(this.initialExtraValues),localizations:_.clone(this.initialLocalizations),localizedFields:this.initialLocalizedFields,hasOrigin:this.initialHasOrigin,originValues:this.initialOriginValues||{},originMeta:this.initialOriginMeta||{},site:this.initialSite,selectingOrigin:!1,selectedOrigin:null,isWorkingCopy:this.initialIsWorkingCopy,error:null,errors:{},isPreviewing:!1,tabsVisible:!0,state:"new",revisionMessage:null,showRevisionHistory:!1,preferencesPrefix:`collections.${this.collectionHandle}`,initialPublished:this.initialValues.published,confirmingPublish:!1,readOnly:this.initialReadOnly,isRoot:this.initialIsRoot,permalink:this.initialPermalink,saveKeyBinding:null,quickSaveKeyBinding:null,quickSave:!1,isAutosave:!1}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},somethingIsLoading(){return!this.$progress.isComplete()},canSave(){return!this.readOnly&&!this.somethingIsLoading},canPublish(){return!(!this.revisionsEnabled||this.readOnly||this.isCreating||this.somethingIsLoading||this.isDirty)},published(){return this.values.published},listingUrl(){return`${this.initialListingUrl}?site=${this.site}`},livePreviewUrl(){return _.findWhere(this.localizations,{active:!0}).livePreviewUrl},showLivePreviewButton(){return!this.isCreating&&this.isBase&&this.livePreviewUrl},showVisitUrlButton(){return!!this.permalink},isBase(){return this.publishContainer==="base"},isDirty(){return this.$dirty.has(this.publishContainer)},activeLocalization(){return _.findWhere(this.localizations,{active:!0})},saveText(){switch(!0){case this.revisionsEnabled:return __("Save Changes");case this.isUnpublishing:return __("Save & Unpublish");case this.isDraft:return __("Save Draft");default:return __("Save & Publish")}},publishButtonText(){return this.canManagePublishState?`${__("Publish")}…`:`${__("Create Revision")}…`},isUnpublishing(){return this.initialPublished&&!this.published&&!this.isCreating},isDraft(){return!this.published},saveButtonClass(){return{btn:this.revisionsEnabled,"btn-primary":this.isCreating||!this.revisionsEnabled}},afterSaveOption(){return this.getPreference("after_save")},originOptions(){return this.localizations.filter(M=>M.exists).map(M=>({value:M.handle,label:M.name}))},direction(){return this.$config.get("direction","ltr")}},watch:{saving(M){this.$progress.loading(`${this.publishContainer}-entry-publish-form`,M)},title(M){if(this.isBase){const $=this.direction==="ltr"?"‹":"›";document.title=`${M} ${$} ${this.breadcrumbs[1].text} ${$} ${this.breadcrumbs[0].text} ${$} ${__("Statamic")}`}}},methods:{clearErrors(){this.error=null,this.errors={}},save(){if(!this.canSave){this.quickSave=!1;return}this.saving=!0,this.clearErrors(),setTimeout(()=>this.runBeforeSaveHook(),151)},runBeforeSaveHook(){this.$refs.container.saving(),Statamic.$hooks.run("entry.saving",{collection:this.collectionHandle,values:this.values,container:this.$refs.container,storeName:this.publishContainer}).then(this.performSaveRequest).catch(M=>{this.saving=!1,this.$toast.error(M||"Something went wrong")})},performSaveRequest(){const M={...this.visibleValues,_blueprint:this.fieldset.handle,_localized:this.localizedFields};this.$axios[this.method](this.actions.save,M).then($=>{if(this.saving=!1,!$.data.saved)return this.$toast.error(__("Couldn't save entry"));this.title=$.data.data.title,this.isWorkingCopy=!0,this.revisionsEnabled||(this.permalink=$.data.data.permalink),!this.isCreating&&!this.isAutosave&&this.$toast.success(__("Saved")),this.$refs.container.saved(),this.runAfterSaveHook($)}).catch($=>this.handleAxiosError($))},runAfterSaveHook(M){Statamic.$hooks.run("entry.saved",{collection:this.collectionHandle,reference:this.initialReference,response:M}).then(()=>{if(this.revisionsEnabled){clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1,this.values=this.resetValuesFromResponse(M.data.data.values),this.extraValues=M.data.data.extraValues,this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,500),this.$nextTick(()=>this.$emit("saved",M));return}let $=this.quickSave||this.isAutosave?"continue_editing":this.afterSaveOption;!this.isInline&&$==="create_another"?window.location=this.createAnotherUrl:!this.isInline&&$===null?window.location=this.listingUrl:(clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1,this.values=this.resetValuesFromResponse(M.data.data.values),this.extraValues=M.data.data.extraValues,this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,500),this.initialPublished=M.data.data.published,this.activeLocalization.published=M.data.data.published,this.activeLocalization.status=M.data.data.status,this.$nextTick(()=>this.$emit("saved",M))),this.quickSave=!1,this.isAutosave=!1}).catch($=>console.error($))},confirmPublish(){this.canPublish&&(this.confirmingPublish=!0)},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.$reveal.invalid()}else M.response?this.$toast.error(M.response.data.message):this.$toast.error(M||"Something went wrong")},localizationSelected(M){if(!this.canSave){M.exists&&this.editLocalization(M);return}M.active||this.isDirty&&!confirm(__("Are you sure? Unsaved changes will be lost."))||(this.$dirty.remove(this.publishContainer),this.localizing=M,M.exists?this.editLocalization(M):this.localizations.length>2&&this.originBehavior==="select"?this.selectingOrigin=!0:this.createLocalization(M),this.isBase&&window.history.replaceState({},"",M.url))},editLocalization(M){return this.$axios.get(M.url).then($=>{clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1;const I=$.data;this.values=I.values,this.originValues=I.originValues,this.originMeta=I.originMeta,this.meta=I.meta,this.localizations=I.localizations,this.localizedFields=I.localizedFields,this.hasOrigin=I.hasOrigin,this.publishUrl=I.actions[this.action],this.collection=I.collection,this.title=I.editing?I.values.title:this.title,this.actions=I.actions,this.fieldset=I.blueprint,this.isRoot=I.isRoot,this.permalink=I.permalink,this.site=M.handle,this.localizing=!1,this.initialPublished=I.values.published,this.readOnly=I.readOnly,this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,500)})},createLocalization(M){if(this.selectingOrigin=!1,this.isCreating){this.$nextTick(()=>window.location=M.url);return}const I=this.localizations.find(N=>N.handle===this.selectedOrigin).url+"/localize";this.$axios.post(I,{site:M.handle}).then(N=>{this.editLocalization(N.data).then(()=>{this.$events.$emit("localization.created",{store:this.publishContainer}),this.originValues.published&&this.setFieldValue("published",!0)})})},cancelLocalization(){this.selectingOrigin=!1,this.localizing=!1},localizationStatusText(M){return M.exists?M.published?"This entry exists in this site, and is published.":"This entry exists in this site, but is not published.":"This entry does not exist for this site."},openLivePreview(){this.tabsVisible=!1,this.$wait(200).then(()=>(this.isPreviewing=!0,this.$wait(300))).then(()=>this.tabsVisible=!0)},closeLivePreview(){this.isPreviewing=!1,this.tabsVisible=!0},publishActionCompleted({published:M,isWorkingCopy:$,response:I}){this.saving=!1,M!==void 0&&(this.$refs.container.setFieldValue("published",M),this.initialPublished=M),this.$refs.container.saved(),this.isWorkingCopy=$,this.confirmingPublish=!1;let N=this.quickSave||this.isAutosave?"continue_editing":this.afterSaveOption;!this.isInline&&N==="create_another"?window.location=this.createAnotherUrl:!this.isInline&&N===null?window.location=this.listingUrl:(this.title=I.data.data.title,clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1,this.values=this.resetValuesFromResponse(I.data.data.values),this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,500),this.activeLocalization.title=I.data.data.title,this.activeLocalization.published=I.data.data.published,this.activeLocalization.status=I.data.data.status,this.permalink=I.data.data.permalink,this.$nextTick(()=>this.$emit("saved",I)))},publishActionFailed(){this.confirmPublish=!1,this.saving=!1},setFieldValue(M,$){this.hasOrigin&&this.desyncField(M),this.$refs.container.setFieldValue(M,$)},syncField(M){confirm("Are you sure? This field's value will be replaced by the value in the original entry.")&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()},setAutosaveInterval(){const M=setInterval(()=>{this.isDirty&&(this.isAutosave=!0,this.save())},this.autosaveInterval);this.$store.commit(`publish/${this.publishContainer}/setAutosaveInterval`,M)},afterActionSuccessfullyCompleted(M){M.data&&(this.title=M.data.title,this.revisionsEnabled||(this.permalink=M.data.permalink),clearTimeout(this.trackDirtyStateTimeout),this.trackDirtyState=!1,this.values=this.resetValuesFromResponse(M.data.values),this.trackDirtyStateTimeout=setTimeout(()=>this.trackDirtyState=!0,500),this.initialPublished=M.data.published,this.activeLocalization.published=M.data.published,this.activeLocalization.status=M.data.status,this.itemActions=M.data.itemActions)}},mounted(){this.saveKeyBinding=this.$keys.bindGlobal(["mod+return"],M=>{M.preventDefault(),!this.confirmingPublish&&this.save()}),this.quickSaveKeyBinding=this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),!this.confirmingPublish&&(this.quickSave=!0,this.save())}),this.$store.commit(`publish/${this.publishContainer}/setPreloadedAssets`,this.preloadedAssets),typeof this.autosaveInterval=="number"&&this.setAutosaveInterval()},created(){var M,$;window.history.replaceState({},document.title,document.location.href.replace("created=true","")),this.selectedOrigin=this.originBehavior==="active"?(M=this.localizations.find(I=>I.active))==null?void 0:M.handle:($=this.localizations.find(I=>I.root))==null?void 0:$.handle},unmounted(){clearTimeout(this.trackDirtyStateTimeout)},beforeDestroy(){this.$store.commit(`publish/${this.publishContainer}/clearAutosaveInterval`)},destroyed(){this.saveKeyBinding.destroy(),this.quickSaveKeyBinding.destroy()}};var _sfc_render$3u=function M(){var $=this,I=$._self._c;return I("div",[$.breadcrumbs?I("breadcrumb",{attrs:{url:$.breadcrumbs[1].url,title:$.breadcrumbs[1].text}}):$._e(),I("div",{staticClass:"flex items-baseline mb-6"},[I("h1",{staticClass:"flex-1 self-start rtl:ml-4 ltr:mr-4"},[I("div",{staticClass:"flex items-baseline"},[$.isCreating?$._e():I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__($.activeLocalization.status),expression:"__(activeLocalization.status)"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2 -top-1",class:$.activeLocalization.status}),I("span",{staticClass:"break-overflowing-words",domProps:{innerHTML:$._s($.$options.filters.striptags($.__($.title)))}})])]),$.canEditBlueprint||$.hasItemActions?I("dropdown-list",{staticClass:"rtl:ml-4 ltr:mr-4"},[$.canEditBlueprint?I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}}):$._e(),I("li",{staticClass:"divider"}),!$.isCreating&&$.hasItemActions?I("data-list-inline-actions",{attrs:{item:$.values.id,url:$.itemActionUrl,actions:$.itemActions,"is-dirty":$.isDirty},on:{started:$.actionStarted,completed:$.actionCompleted}}):$._e()],1):$._e(),$.readOnly?I("div",{staticClass:"pt-px text-2xs text-gray-600 flex rtl:ml-4 ltr:mr-4"},[I("svg-icon",{staticClass:"w-4 rtl:ml-1 ltr:mr-1 -mt-1",attrs:{name:"light/lock"}}),$._v(" "+$._s($.__("Read Only"))+" ")],1):$._e(),I("div",{staticClass:"hidden md:flex items-center"},[$.readOnly?$._e():I("save-button-options",{attrs:{"show-options":!$.revisionsEnabled&&!$.isInline,"button-class":$.saveButtonClass,"preferences-prefix":$.preferencesPrefix}},[I("button",{class:$.saveButtonClass,attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.saveText)},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})]),$.revisionsEnabled&&!$.isCreating?I("save-button-options",{attrs:{"show-options":!$.isInline,"button-class":"btn-primary","preferences-prefix":$.preferencesPrefix}},[I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-primary flex items-center",attrs:{disabled:!$.canPublish},domProps:{textContent:$._s($.publishButtonText)},on:{click:function(N){$.confirmingPublish=!0}}})]):$._e()],1),$._t("action-buttons-right")],2),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,"extra-values":$.extraValues,reference:$.initialReference,meta:$.meta,errors:$.errors,site:$.site,"localized-fields":$.localizedFields,"is-root":$.isRoot,"track-dirty-state":$.trackDirtyState},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,components:B,setFieldMeta:j}){return I("live-preview",{attrs:{name:$.publishContainer,url:$.livePreviewUrl,previewing:$.isPreviewing,targets:$.previewTargets,values:$.values,blueprint:$.fieldset.handle,reference:$.initialReference},on:{"opened-via-keyboard":$.openLivePreview,closed:$.closeLivePreview},scopedSlots:$._u([{key:"buttons",fn:function(){return[$.readOnly?$._e():I("button",{staticClass:"rtl:mr-4 ltr:ml-4",class:{btn:$.revisionsEnabled,"btn-primary":$.isCreating||!$.revisionsEnabled},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.saveText)},on:{click:function(U){return U.preventDefault(),$.save.apply(null,arguments)}}}),$.revisionsEnabled&&!$.isCreating?I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-primary flex items-center",attrs:{disabled:!$.canPublish},on:{click:function(U){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.publishButtonText)}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()]},proxy:!0}],null,!1,2386354402)},[I("div",[$._l(B,function(U){return I(U.name,$._g($._b({key:U.id,tag:"component",attrs:{container:N}},"component",U.props,!1),U.events))}),I("transition",{attrs:{name:"live-preview-tabs-drop"}},[I("publish-tabs",{directives:[{name:"show",rawName:"v-show",value:$.tabsVisible,expression:"tabsVisible"}],attrs:{"read-only":$.readOnly,syncable:$.hasOrigin},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}},scopedSlots:$._u([{key:"actions",fn:function({shouldShowSidebar:U}){return[I("div",{staticClass:"card p-0 mb-5"},[$.collectionHasRoutes?I("div",{class:{hi:!U}},[$.showLivePreviewButton||$.showVisitUrlButton?I("div",{staticClass:"p-3 flex items-center space-x-2 rtl:space-x-reverse"},[$.showLivePreviewButton?I("button",{staticClass:"flex items-center justify-center btn w-full",on:{click:$.openLivePreview}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 shrink-0",attrs:{name:"light/synchronize"}}),I("span",[$._v($._s($.__("Live Preview")))])],1):$._e(),$.showVisitUrlButton?I("a",{staticClass:"flex items-center justify-center btn w-full",attrs:{href:$.permalink,target:"_blank"}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2 shrink-0",attrs:{name:"light/external-link"}}),I("span",[$._v($._s($.__("Visit URL")))])],1):$._e()]):$._e()]):$._e(),$.revisionsEnabled?$._e():I("div",{staticClass:"flex items-center justify-between px-4 py-2",class:{"border-t dark:border-dark-900":$.showLivePreviewButton||$.showVisitUrlButton}},[I("label",{staticClass:"publish-field-label font-medium",domProps:{textContent:$._s($.__("Published"))}}),I("toggle-input",{attrs:{value:$.published,"read-only":!$.canManagePublishState},on:{input:function(q){return $.setFieldValue("published",q)}}})],1),$.revisionsEnabled&&!$.isCreating?I("div",{staticClass:"p-4",class:{"border-t dark:border-dark-900":$.showLivePreviewButton||$.showVisitUrlButton}},[I("label",{staticClass:"publish-field-label font-medium mb-2",domProps:{textContent:$._s($.__("Revisions"))}}),$.published?I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-green-600 w-6 text-center"},[$._v("✓")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("Entry has a published version"))}})]):I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-orange w-6 text-center"},[$._v("!")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("Entry has not been published"))}})]),!$.isWorkingCopy&&$.published?I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-green-600 w-6 text-center"},[$._v("✓")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("This is the published version"))}})]):$._e(),$.isDirty?I("div",{staticClass:"mb-1 flex items-center"},[I("span",{staticClass:"text-orange w-6 text-center"},[$._v("!")]),I("span",{staticClass:"text-2xs",domProps:{textContent:$._s($.__("Unsaved changes"))}})]):$._e(),!$.isCreating&&$.revisionsEnabled?I("button",{staticClass:"flex items-center justify-center mt-4 btn-flat px-2 w-full",on:{click:function(q){$.showRevisionHistory=!0}}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/history"}}),I("span",[$._v($._s($.__("View History")))])],1):$._e()]):$._e(),$.localizations.length>1?I("div",{staticClass:"p-4 border-t dark:border-dark-900"},[I("label",{staticClass:"publish-field-label font-medium mb-2",domProps:{textContent:$._s($.__("Sites"))}}),$._l($.localizations,function(q){return I("div",{key:q.handle,staticClass:"text-sm flex items-center -mx-4 px-4 py-2",class:[q.active?"bg-blue-100 dark:bg-dark-300":"hover:bg-gray-200 dark:hover:bg-dark-400",!$.canSave&&!q.exists?"cursor-not-allowed":"cursor-pointer"],on:{click:function(Y){return $.localizationSelected(q)}}},[I("div",{staticClass:"flex-1 flex items-center",class:{"line-through":!q.exists}},[I("span",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:{"bg-green-600":q.published,"bg-gray-500":!q.published,"bg-red-500":!q.exists}}),$._v(" "+$._s($.__(q.name))+" "),$.localizing&&$.localizing.handle===q.handle?I("loading-graphic",{staticClass:"rtl:mr-2 ltr:ml-2",attrs:{size:14,text:""}}):$._e()],1),q.origin?I("div",{staticClass:"badge-sm bg-orange dark:bg-orange-dark",domProps:{textContent:$._s($.__("Origin"))}}):$._e(),q.active?I("div",{staticClass:"badge-sm bg-blue dark:bg-dark-blue-175",domProps:{textContent:$._s($.__("Active"))}}):$._e(),q.root&&!q.origin&&!q.active?I("div",{staticClass:"badge-sm bg-purple dark:bg-purple-dark",domProps:{textContent:$._s($.__("Root"))}}):$._e()])})],2):$._e()])]}}],null,!0)})],1)],2)])}}],null,!1,3330964781)}):$._e(),I("div",{staticClass:"md:hidden mt-6 flex items-center"},[$.readOnly?$._e():I("button",{staticClass:"btn-lg",class:{"btn-primary w-full":!$.revisionsEnabled,"btn w-1/2 rtl:ml-4 ltr:mr-4":$.revisionsEnabled},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.__($.revisionsEnabled?"Save Changes":"Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$.revisionsEnabled?I("button",{staticClass:"rtl:mr-2 ltr:ml-2 btn btn-lg justify-center btn-primary flex items-center w-1/2",attrs:{disabled:!$.canPublish},on:{click:function(N){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.publishButtonText)}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()]),$.showRevisionHistory?I("stack",{attrs:{name:"revision-history",narrow:!0},on:{closed:function(N){$.showRevisionHistory=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("revision-history",{attrs:{"index-url":$.actions.revisions,"restore-url":$.actions.restore,reference:$.initialReference,"can-restore-revisions":!$.readOnly},on:{closed:N}})}}],null,!1,4254802003)}):$._e(),$.confirmingPublish?I("publish-actions",{attrs:{actions:$.actions,published:$.published,collection:$.collectionHandle,reference:$.initialReference,"publish-container":$.publishContainer,"can-manage-publish-state":$.canManagePublishState},on:{closed:function(N){$.confirmingPublish=!1},saving:function(N){$.saving=!0},saved:$.publishActionCompleted,failed:$.publishActionFailed}}):$._e(),$.selectingOrigin?I("confirmation-modal",{attrs:{title:$.__("Create Localization"),buttonText:$.__("Create")},on:{cancel:function(N){return $.cancelLocalization()},confirm:function(N){return $.createLocalization($.localizing)}}},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group publish-field field-w-full"},[I("label",{domProps:{textContent:$._s($.__("Origin"))}}),I("div",{staticClass:"help-block -mt-2",domProps:{textContent:$._s($.__("messages.entry_origin_instructions"))}}),I("select-input",{attrs:{options:$.originOptions,placeholder:!1},model:{value:$.selectedOrigin,callback:function(N){$.selectedOrigin=N},expression:"selectedOrigin"}})],1)])]):$._e()],1)},_sfc_staticRenderFns$3u=[],__component__$3v=normalizeComponent$2(_sfc_main$3u,_sfc_render$3u,_sfc_staticRenderFns$3u,!1,null,null,null,null);const EntryPublishForm=__component__$3v.exports,_sfc_main$3t={props:{actions:Object,published:Boolean,canManagePublishState:Boolean},data(){return{action:this.canManagePublishState?"publish":"revision",revisionMessage:null,saving:!1}},computed:{options(){const M=[];return this.canManagePublishState&&(M.push({value:"publish",label:__("Publish Now")}),this.published&&M.push({value:"unpublish",label:__("Unpublish")})),M.push({value:"revision",label:__("Create Revision")}),M},actionInfoText(){switch(this.action){case"publish":return"Changes to the working copy will applied to the entry and it will be published immediately.";case"schedule":return"Changes to the working copy will applied to the entry and it will be appear published on the selected date.";case"unpublish":return"The current revision will be unpublished.";case"revision":return"A revision will be created based off the working copy. The current revision will not change."}},submitButtonText(){return _.findWhere(this.options,{value:this.action}).label}},methods:{submit(){this.saving=!0,this.$emit("saving");const M="submit"+this.action.charAt(0).toUpperCase()+this.action.substring(1);this[M]()},submitPublish(){const M={message:this.revisionMessage};this.$axios.post(this.actions.publish,M).then($=>{this.$toast.success(__("Published")),this.revisionMessage=null,this.$emit("saved",{published:!0,isWorkingCopy:!1,response:$})}).catch($=>this.handleAxiosError($))},submitSchedule(){},submitUnpublish(){const M={message:this.revisionMessage};this.$axios.post(this.actions.unpublish,{data:M}).then($=>{this.$toast.success(__("Unpublished")),this.revisionMessage=null,this.$emit("saved",{published:!1,isWorkingCopy:!1,response:$})}).catch($=>this.handleAxiosError($))},submitRevision(){const M={message:this.revisionMessage};this.$axios.post(this.actions.createRevision,M).then($=>{this.$toast.success(__("Revision created")),this.revisionMessage=null,this.$emit("saved",{isWorkingCopy:!0,response:$})}).catch($=>this.handleAxiosError($))},handleAxiosError(M){this.saving=!1,this.$toast.error(__("Something went wrong"))}}};var _sfc_render$3t=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"publish-options"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white dark:bg-dark-800 h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 dark:bg-dark-600 px-6 py-2 border-b border-gray-300 dark:border-dark-900 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Publish"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto p-6"},[$.saving?I("div",{staticClass:"flex h-full items-center justify-center loading"},[I("loading-graphic",{attrs:{text:""}})],1):$._e(),I("select-input",{staticClass:"mb-6",attrs:{options:$.options},model:{value:$.action,callback:function(B){$.action=B},expression:"action"}}),$.action?I("div",[$.action=="schedule"?I("date-fieldtype",{staticClass:"mb-6",attrs:{name:"publishTime",value:$.publishTime}}):$._e(),I("textarea-input",{staticClass:"mb-6 text-sm",attrs:{placeholder:$.__("Notes about this revision"),focus:!0},on:{keydown:function(B){return!B.type.indexOf("key")&&$._k(B.keyCode,"enter",13,B.key,"Enter")?null:$.submit.apply(null,arguments)}},model:{value:$.revisionMessage,callback:function(B){$.revisionMessage=B},expression:"revisionMessage"}}),I("button",{staticClass:"btn-primary w-full mb-6",domProps:{textContent:$._s($.submitButtonText)},on:{click:$.submit}}),I("div",{staticClass:"text-gray text-xs flex mb-6"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1",domProps:{textContent:$._s($.actionInfoText)}})]),$.action==="schedule"?I("div",{staticClass:"text-gray text-xs flex mb-6 text-red-500"},[I("div",{staticClass:"pt-px w-4 rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"pt-px",attrs:{name:"info-circle"}})],1),I("div",{staticClass:"flex-1"},[$._v(" Since the current revision is published and you've selected a date in the future, once you submit, the revision will act like a draft until the selected date. ")])]):$._e()],1):$._e()],1)])}}])})},_sfc_staticRenderFns$3t=[],__component__$3u=normalizeComponent$2(_sfc_main$3t,_sfc_render$3t,_sfc_staticRenderFns$3t,!1,null,null,null,null);const PublishActions=__component__$3u.exports,_sfc_main$3s={mixins:[HasPreferences,HasHiddenFields,HasActions],components:{PublishActions,SaveButtonOptions,RevisionHistory},props:{publishContainer:String,initialReference:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialTitle:String,initialLocalizations:Array,initialLocalizedFields:Array,initialHasOrigin:Boolean,initialOriginValues:Object,initialOriginMeta:Object,initialSite:String,initialIsWorkingCopy:Boolean,taxonomyHandle:String,breadcrumbs:Array,initialActions:Object,method:String,initialPublished:Boolean,isCreating:Boolean,isInline:Boolean,initialReadOnly:Boolean,initialIsRoot:Boolean,initialPermalink:String,revisionsEnabled:Boolean,preloadedAssets:Array,canEditBlueprint:Boolean,createAnotherUrl:String,listingUrl:String,previewTargets:Array,hasTemplate:Boolean},data(){return{actions:this.initialActions,saving:!1,localizing:!1,fieldset:this.initialFieldset,title:this.initialTitle,values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),localizations:_.clone(this.initialLocalizations),localizedFields:this.initialLocalizedFields,hasOrigin:this.initialHasOrigin,originValues:this.initialOriginValues||{},originMeta:this.initialOriginMeta||{},site:this.initialSite,isWorkingCopy:this.initialIsWorkingCopy,error:null,errors:{},isPreviewing:!1,tabsVisible:!0,state:"new",revisionMessage:null,showRevisionHistory:!1,published:this.initialPublished,confirmingPublish:!1,readOnly:this.initialReadOnly,isRoot:this.initialIsRoot,permalink:this.initialPermalink,preferencesPrefix:`taxonomies.${this.taxonomyHandle}`,saveKeyBinding:null,quickSaveKeyBinding:null,quickSave:!1}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},somethingIsLoading(){return!this.$progress.isComplete()},canSave(){return!this.readOnly&&this.isDirty&&!this.somethingIsLoading},canPublish(){return this.revisionsEnabled?!this.readOnly&&!this.isCreating&&!this.canSave&&!this.somethingIsLoading&&this.isWorkingCopy:!1},livePreviewUrl(){return _.findWhere(this.localizations,{active:!0}).livePreviewUrl},showLivePreviewButton(){return!this.isCreating&&this.isBase&&this.livePreviewUrl&&this.showVisitUrlButton},showVisitUrlButton(){return!!this.permalink&&this.hasTemplate},isBase(){return this.publishContainer==="base"},isDirty(){return this.$dirty.has(this.publishContainer)},activeLocalization(){return _.findWhere(this.localizations,{active:!0})},saveText(){return this.revisionsEnabled?__("Save Changes"):this.published?__("Save & Publish"):!this.published&&this.initialPublished?__("Save & Unpublish"):__("Save")},saveButtonClass(){return{btn:this.revisionsEnabled,"btn-primary":!this.revisionsEnabled}},afterSaveOption(){return this.getPreference("after_save")}},watch:{published(M){this.$refs.container.dirty()},saving(M){this.$progress.loading(`${this.publishContainer}-entry-publish-form`,M)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){if(!this.canSave){this.quickSave=!1;return}this.saving=!0,this.clearErrors(),this.runBeforeSaveHook()},runBeforeSaveHook(){Statamic.$hooks.run("term.saving",{taxonomy:this.taxonomyHandle,values:this.values,container:this.$refs.container,storeName:this.publishContainer}).then(this.performSaveRequest).catch(M=>{this.saving=!1,this.$toast.error(M||"Something went wrong")})},performSaveRequest(){const M={...this.visibleValues,_blueprint:this.fieldset.handle,published:this.published,_localized:this.localizedFields};this.$axios[this.method](this.actions.save,M).then($=>{if(this.saving=!1,!$.data.saved)return this.$toast.error(__("Couldn't save term"));this.title=$.data.data.title,this.permalink=$.data.data.permalink,this.isWorkingCopy=!0,this.isCreating||this.$toast.success(__("Saved")),this.$refs.container.saved(),this.runAfterSaveHook($)}).catch($=>this.handleAxiosError($))},confirmPublish(){this.canPublish&&(this.confirmingPublish=!0)},runAfterSaveHook(M){Statamic.$hooks.run("term.saved",{taxonomy:this.taxonomyHandle,reference:this.initialReference,response:M}).then(()=>{if(this.revisionsEnabled){this.values=this.resetValuesFromResponse(M.data.data.values),this.$nextTick(()=>this.$emit("saved",M));return}let $=this.quickSave?"continue_editing":this.afterSaveOption;!this.isInline&&this.afterSaveOption==="create_another"?window.location=this.createAnotherUrl:!this.isInline&&$===null?window.location=this.listingUrl:(this.values=this.resetValuesFromResponse(M.data.data.values),this.$nextTick(()=>this.$emit("saved",M))),this.quickSave=!1}).catch($=>{})},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.$reveal.invalid()}else this.$toast.error(__("Something went wrong"))},localizationSelected(M){M.active||this.isDirty&&!confirm(__("Are you sure? Unsaved changes will be lost."))||(this.localizing=M.handle,M.exists?this.editLocalization(M):this.createLocalization(M),this.publishContainer==="base"&&window.history.replaceState({},"",M.url))},editLocalization(M){this.$axios.get(M.url).then($=>{const I=$.data;this.values=I.values,this.originValues=I.originValues,this.originMeta=I.originMeta,this.meta=I.meta,this.localizations=I.localizations,this.localizedFields=I.localizedFields,this.hasOrigin=I.hasOrigin,this.publishUrl=I.actions[this.action],this.taxonomy=I.taxonomy,this.title=I.editing?I.values.title:this.title,this.actions=I.actions,this.fieldset=I.blueprint,this.isRoot=I.isRoot,this.site=M.handle,this.localizing=!1,this.$nextTick(()=>this.$refs.container.clearDirtyState())})},createLocalization(M){const $=this.activeLocalization.url+"/localize";this.$axios.post($,{site:M.handle}).then(I=>{this.editLocalization(I.data)})},localizationStatusText(M){return M.exists?M.published?"This entry exists in this site, and is published.":"This entry exists in this site, but is not published.":"This entry does not exist for this site."},openLivePreview(){this.tabsVisible=!1,this.$wait(200).then(()=>(this.isPreviewing=!0,this.$wait(300))).then(()=>this.tabsVisible=!0)},closeLivePreview(){this.isPreviewing=!1,this.tabsVisible=!0},publishActionCompleted({published:M,isWorkingCopy:$,response:I}){this.saving=!1,this.$refs.container.saved(),M!==void 0&&(this.published=M),this.isWorkingCopy=$,this.confirmingPublish=!1,this.permalink=I.data.data.permalink,this.$nextTick(()=>this.$emit("saved",I))},setFieldValue(M,$){this.hasOrigin&&this.desyncField(M),this.$refs.container.setFieldValue(M,$)},syncField(M){confirm(__("Are you sure? This field's value will be replaced by the value in the original entry."))&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()},afterActionSuccessfullyCompleted(M){M.data&&(this.title=M.data.title,this.permalink=M.data.permalink,this.values=this.resetValuesFromResponse(M.data.values))}},mounted(){this.saveKeyBinding=this.$keys.bindGlobal(["mod+return"],M=>{M.preventDefault(),!this.confirmingPublish&&(this.canPublish?this.confirmPublish():this.save())}),this.quickSaveKeyBinding=this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),!this.confirmingPublish&&(this.quickSave=!0,this.canPublish?this.confirmPublish():this.save())}),this.$store.commit(`publish/${this.publishContainer}/setPreloadedAssets`,this.preloadedAssets)},created(){window.history.replaceState({},document.title,document.location.href.replace("created=true",""))},destroyed(){this.saveKeyBinding.destroy(),this.quickSaveKeyBinding.destroy()}};var _sfc_render$3s=function M(){var $=this,I=$._self._c;return I("div",[$.breadcrumbs?I("breadcrumb",{attrs:{url:$.breadcrumbs[1].url,title:$.breadcrumbs[1].text}}):$._e(),I("div",{staticClass:"flex items-baseline mb-6"},[I("h1",{staticClass:"flex-1 self-start rtl:ml-4 ltr:mr-4"},[I("div",{staticClass:"flex items-baseline"},[$.isCreating?$._e():I("span",{staticClass:"little-dot rtl:ml-2 ltr:mr-2 -top-1",class:{"bg-green-600":$.published,"bg-gray-600":!$.published}}),I("span",{staticClass:"break-overflowing-words",domProps:{innerHTML:$._s($.$options.filters.striptags($.title))}})])]),$.canEditBlueprint||$.hasItemActions?I("dropdown-list",{staticClass:"rtl:ml-4 ltr:mr-4"},[$.canEditBlueprint?I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}}):$._e(),I("li",{staticClass:"divider"}),!$.isCreating&&$.hasItemActions?I("data-list-inline-actions",{attrs:{item:$.values.id,url:$.itemActionUrl,actions:$.itemActions,"is-dirty":$.isDirty},on:{started:$.actionStarted,completed:$.actionCompleted}}):$._e()],1):$._e(),$.readOnly?I("div",{staticClass:"pt-px text-2xs text-gray-600 flex rtl:ml-4 ltr:mr-4"},[I("svg-icon",{staticClass:"w-4 rtl:ml-1 ltr:mr-1 -mt-1",attrs:{name:"light/lock"}}),$._v(" "+$._s($.__("Read Only"))+" ")],1):$._e(),I("div",{staticClass:"hidden md:flex items-center"},[$.readOnly?$._e():I("save-button-options",{attrs:{"show-options":!$.revisionsEnabled&&!$.isInline,"button-class":$.saveButtonClass,"preferences-prefix":$.preferencesPrefix}},[I("button",{class:$.saveButtonClass,attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.saveText)},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})]),$.revisionsEnabled?I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-primary flex items-center",attrs:{disabled:!$.canPublish},on:{click:function(N){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.__("Publish"))}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()],1),$._t("action-buttons-right")],2),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors,site:$.site,"localized-fields":$.localizedFields,"is-root":$.isRoot},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,components:B,setFieldMeta:j}){return I("live-preview",{attrs:{name:$.publishContainer,url:$.livePreviewUrl,previewing:$.isPreviewing,targets:$.previewTargets,values:$.values,blueprint:$.fieldset.handle,reference:$.initialReference},on:{"opened-via-keyboard":$.openLivePreview,closed:$.closeLivePreview}},[I("div",[$._l(B,function(U){return I(U.name,$._b({key:U.name,tag:"component",attrs:{container:N}},"component",U.props,!1))}),I("transition",{attrs:{name:"live-preview-tabs-drop"}},[I("publish-tabs",{directives:[{name:"show",rawName:"v-show",value:$.tabsVisible,expression:"tabsVisible"}],attrs:{"read-only":$.readOnly,syncable:$.hasOrigin},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}},scopedSlots:$._u([{key:"actions",fn:function({shouldShowSidebar:U}){return[I("div",{staticClass:"card p-0",class:{"mb-5":$.showLivePreviewButton||$.showVisitUrlButton||$.localizations.length>1}},[I("div",{class:{hi:!U}},[$.showLivePreviewButton||$.showVisitUrlButton?I("div",{staticClass:"p-3 flex items-center space-x-2"},[$.showLivePreviewButton?I("button",{staticClass:"flex items-center justify-center btn w-full",on:{click:$.openLivePreview}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 shrink-0",attrs:{name:"light/synchronize"}}),I("span",[$._v($._s($.__("Live Preview")))])],1):$._e(),$.showVisitUrlButton?I("a",{staticClass:"flex items-center justify-center btn w-full",attrs:{href:$.permalink,target:"_blank"}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2 shrink-0",attrs:{name:"light/external-link"}}),I("span",[$._v($._s($.__("Visit URL")))])],1):$._e()]):$._e()]),$.localizations.length>1?I("div",{staticClass:"p-4 border-t dark:border-dark-900"},[I("label",{staticClass:"publish-field-label font-medium mb-2",domProps:{textContent:$._s($.__("Sites"))}}),$._l($.localizations,function(q){return I("div",{key:q.handle,staticClass:"text-sm flex items-center -mx-4 px-4 py-2 cursor-pointer",class:q.active?"bg-blue-100 dark:bg-dark-300":"hover:bg-gray-200 dark:hover:bg-dark-400",on:{click:function(Y){return $.localizationSelected(q)}}},[I("div",{staticClass:"flex-1 flex items-center",class:{"line-through":!q.exists}},[I("span",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:{"bg-green-600":q.published,"bg-gray-500":!q.published,"bg-red-500":!q.exists}}),$._v(" "+$._s($.__(q.name))+" "),$.localizing===q.handle?I("loading-graphic",{staticClass:"rtl:mr-2 ltr:ml-2",attrs:{size:14,text:""}}):$._e()],1),q.origin?I("div",{staticClass:"badge-sm bg-orange",domProps:{textContent:$._s($.__("Origin"))}}):$._e(),q.active?I("div",{staticClass:"badge-sm bg-blue dark:bg-dark-blue-100",domProps:{textContent:$._s($.__("Active"))}}):$._e(),q.root&&!q.origin&&!q.active?I("div",{staticClass:"badge-sm bg-purple",domProps:{textContent:$._s($.__("Root"))}}):$._e()])})],2):$._e()])]}}],null,!0)})],1)],2)])}}],null,!1,4218460977)}):$._e(),I("div",{staticClass:"md:hidden mt-6 flex items-center"},[$.readOnly?$._e():I("button",{staticClass:"btn-lg",class:{"btn-primary w-full":!$.revisionsEnabled,"btn w-1/2 rtl:ml-4 ltr:mr-4":$.revisionsEnabled},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.__($.revisionsEnabled?"Save Changes":"Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$.revisionsEnabled?I("button",{staticClass:"rtl:mr-2 ltr:ml-2 btn-primary btn-lg justify-center flex items-center w-1/2",attrs:{disabled:!$.canPublish},on:{click:function(N){$.confirmingPublish=!0}}},[I("span",{domProps:{textContent:$._s($.__("Publish"))}}),I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 w-2",attrs:{name:"micro/chevron-down-xs"}})],1):$._e()]),$.showRevisionHistory?I("stack",{attrs:{name:"revision-history",narrow:!0},on:{closed:function(N){$.showRevisionHistory=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("revision-history",{attrs:{"index-url":$.actions.revisions,"restore-url":$.actions.restore},on:{closed:N}})}}],null,!1,1726120270)}):$._e(),$.confirmingPublish?I("publish-actions",{attrs:{actions:$.actions,published:$.published,"can-manage-publish-state":$.canManagePublishState},on:{closed:function(N){$.confirmingPublish=!1},saving:function(N){$.saving=!0},saved:$.publishActionCompleted}}):$._e()],1)},_sfc_staticRenderFns$3s=[],__component__$3t=normalizeComponent$2(_sfc_main$3s,_sfc_render$3s,_sfc_staticRenderFns$3s,!1,null,null,null,null);const TermPublishForm=__component__$3t.exports,_sfc_main$3r={props:{saveUrl:String,requiresCurrentPassword:Boolean},data(){return{saving:!1,error:null,errors:{},currentPassword:null,password:null,confirmation:null,reveal:!1}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},inputType(){return this.reveal?"text":"password"}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.saving=!0,this.$axios.patch(this.saveUrl,{current_password:this.currentPassword,password:this.password,password_confirmation:this.confirmation}).then(M=>{this.$toast.success(__("Password changed")),this.$refs.popper.close(),this.saving=!1,this.password=null,this.currentPassword=null,this.confirmation=null}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.saving=!1}else this.$toast.error(__("Unable to change password")),this.saving=!1})}}};var _sfc_render$3r=function M(){var $=this,I=$._self._c;return I("popover",{ref:"popper",attrs:{placement:"bottom"}},[I("button",{staticClass:"btn",attrs:{slot:"trigger"},domProps:{textContent:$._s($.__("Change Password"))},slot:"trigger"}),$.saving?I("div",{staticClass:"saving-overlay flex justify-center text-center"},[I("loading-graphic",{attrs:{text:$.__("Saving")}})],1):$._e(),I("div",{staticClass:"publish-fields p-4 pb-0 w-96"},[$.requiresCurrentPassword?I("form-group",{staticClass:"p-0 mb-6",attrs:{handle:"password",display:$.__("Current Password"),errors:$.errors.current_password,config:{input_type:this.inputType}},model:{value:$.currentPassword,callback:function(N){$.currentPassword=N},expression:"currentPassword"}}):$._e(),I("form-group",{staticClass:"p-0 mb-6",attrs:{handle:"password",display:$.__("Password"),errors:$.errors.password,config:{input_type:this.inputType}},model:{value:$.password,callback:function(N){$.password=N},expression:"password"}}),I("form-group",{staticClass:"p-0 mb-6",attrs:{handle:"confirmation",display:$.__("Password Confirmation"),config:{input_type:this.inputType}},model:{value:$.confirmation,callback:function(N){$.confirmation=N},expression:"confirmation"}})],1),I("div",{staticClass:"flex items-center bg-gray-21 dark:bg-dark-575 border-t dark:border-dark-900 rounded-b px-4 py-2"},[I("button",{staticClass:"btn-primary",on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}},[$._v($._s($.__("Change Password")))]),I("label",{staticClass:"rtl:mr-4 ltr:ml-4"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.reveal,expression:"reveal"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray($.reveal)?$._i($.reveal,null)>-1:$.reveal},on:{change:function(N){var B=$.reveal,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.reveal=B.concat([q])):Y>-1&&($.reveal=B.slice(0,Y).concat(B.slice(Y+1)))}else $.reveal=U}}}),$._v(" "+$._s($.__("Reveal Password"))+" ")])])])},_sfc_staticRenderFns$3r=[],__component__$3s=normalizeComponent$2(_sfc_main$3r,_sfc_render$3r,_sfc_staticRenderFns$3r,!1,null,null,null,null);const ChangePassword=__component__$3s.exports,_sfc_main$3q={mixins:[HasHiddenFields,HasActions],components:{ChangePassword},props:{publishContainer:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialReference:String,initialTitle:String,actions:Object,method:String,canEditPassword:Boolean,canEditBlueprint:Boolean,requiresCurrentPassword:Boolean},data(){return{fieldset:_.clone(this.initialFieldset),values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),error:null,errors:{},title:this.initialTitle}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},isDirty(){return this.$dirty.has(this.publishContainer)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.$axios[this.method](this.actions.save,this.visibleValues).then(M=>{if(this.title=M.data.title,this.values=this.resetValuesFromResponse(M.data.data.values),!M.data.saved)return this.$toast.error("Couldn't save user");this.isCreating||this.$toast.success(__("Saved")),this.$refs.container.saved(),this.$nextTick(()=>this.$emit("saved",M))}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($),this.$reveal.invalid()}else this.$toast.error(__("Something went wrong"))})},afterActionSuccessfullyCompleted(M){M.data&&(this.title=M.data.title,this.values=this.resetValuesFromResponse(M.data.values))}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$3q=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.cp_url("users"),title:$.__("Users")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.title)}}),$.canEditBlueprint||$.hasItemActions?I("dropdown-list",{staticClass:"rtl:ml-4 ltr:mr-4"},[$.canEditBlueprint?I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}}):$._e(),I("li",{staticClass:"divider"}),$.hasItemActions?I("data-list-inline-actions",{attrs:{item:$.values.id,url:$.itemActionUrl,actions:$.itemActions,"is-dirty":$.isDirty},on:{started:$.actionStarted,completed:$.actionCompleted}}):$._e()],1):$._e(),$.canEditPassword?I("change-password",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{"save-url":$.actions.password,"requires-current-password":$.requiresCurrentPassword}}):$._e(),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$._t("action-buttons-right")],2)],1),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,setFieldValue:B,setFieldMeta:j}){return I("div",{},[I("publish-tabs",{attrs:{"enable-sidebar":!1},on:{updated:B,"meta-updated":j,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}}})],1)}}],null,!1,1371828665)}):$._e()],1)},_sfc_staticRenderFns$3q=[],__component__$3r=normalizeComponent$2(_sfc_main$3q,_sfc_render$3q,_sfc_staticRenderFns$3q,!1,null,null,null,null);const UserPublishForm=__component__$3r.exports;function isArray$6(M){return Array.isArray?Array.isArray(M):getTag(M)==="[object Array]"}const INFINITY=1/0;function baseToString(M){if(typeof M=="string")return M;let $=M+"";return $=="0"&&1/M==-INFINITY?"-0":$}function toString$2(M){return M==null?"":baseToString(M)}function isString$3(M){return typeof M=="string"}function isNumber$2(M){return typeof M=="number"}function isBoolean$1(M){return M===!0||M===!1||isObjectLike(M)&&getTag(M)=="[object Boolean]"}function isObject$3(M){return typeof M=="object"}function isObjectLike(M){return isObject$3(M)&&M!==null}function isDefined(M){return M!=null}function isBlank(M){return!M.trim().length}function getTag(M){return M==null?M===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(M)}const EXTENDED_SEARCH_UNAVAILABLE="Extended search is not available",INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=M=>`Invalid value for key ${M}`,PATTERN_LENGTH_TOO_LARGE=M=>`Pattern length exceeds max of ${M}.`,MISSING_KEY_PROPERTY=M=>`Missing ${M} property in key`,INVALID_KEY_WEIGHT_VALUE=M=>`Property 'weight' in key '${M}' must be a positive integer`,hasOwn$3=Object.prototype.hasOwnProperty;class KeyStore{constructor($){this._keys=[],this._keyMap={};let I=0;$.forEach(N=>{let B=createKey(N);this._keys.push(B),this._keyMap[B.id]=B,I+=B.weight}),this._keys.forEach(N=>{N.weight/=I})}get($){return this._keyMap[$]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(M){let $=null,I=null,N=null,B=1,j=null;if(isString$3(M)||isArray$6(M))N=M,$=createKeyPath(M),I=createKeyId(M);else{if(!hasOwn$3.call(M,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const U=M.name;if(N=U,hasOwn$3.call(M,"weight")&&(B=M.weight,B<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(U));$=createKeyPath(U),I=createKeyId(U),j=M.getFn}return{path:$,id:I,weight:B,src:N,getFn:j}}function createKeyPath(M){return isArray$6(M)?M:M.split(".")}function createKeyId(M){return isArray$6(M)?M.join("."):M}function get$3(M,$){let I=[],N=!1;const B=(j,U,q)=>{if(isDefined(j))if(!U[q])I.push(j);else{let Y=U[q];const K=j[Y];if(!isDefined(K))return;if(q===U.length-1&&(isString$3(K)||isNumber$2(K)||isBoolean$1(K)))I.push(toString$2(K));else if(isArray$6(K)){N=!0;for(let G=0,J=K.length;G<J;G+=1)B(K[G],U,q+1)}else U.length&&B(K,U,q+1)}};return B(M,isString$3($)?$.split("."):$,0),N?I:I[0]}const MatchOptions={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},BasicOptions={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(M,$)=>M.score===$.score?M.idx<$.idx?-1:1:M.score<$.score?-1:1},FuzzyOptions={location:0,threshold:.6,distance:100},AdvancedOptions={useExtendedSearch:!1,getFn:get$3,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Config$1={...BasicOptions,...MatchOptions,...FuzzyOptions,...AdvancedOptions};const SPACE=/[^ ]+/g;function norm(M=1,$=3){const I=new Map,N=Math.pow(10,$);return{get(B){const j=B.match(SPACE).length;if(I.has(j))return I.get(j);const U=1/Math.pow(j,.5*M),q=parseFloat(Math.round(U*N)/N);return I.set(j,q),q},clear(){I.clear()}}}class FuseIndex{constructor({getFn:$=Config$1.getFn,fieldNormWeight:I=Config$1.fieldNormWeight}={}){this.norm=norm(I,3),this.getFn=$,this.isCreated=!1,this.setIndexRecords()}setSources($=[]){this.docs=$}setIndexRecords($=[]){this.records=$}setKeys($=[]){this.keys=$,this._keysMap={},$.forEach((I,N)=>{this._keysMap[I.id]=N})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString$3(this.docs[0])?this.docs.forEach(($,I)=>{this._addString($,I)}):this.docs.forEach(($,I)=>{this._addObject($,I)}),this.norm.clear())}add($){const I=this.size();isString$3($)?this._addString($,I):this._addObject($,I)}removeAt($){this.records.splice($,1);for(let I=$,N=this.size();I<N;I+=1)this.records[I].i-=1}getValueForItemAtKeyId($,I){return $[this._keysMap[I]]}size(){return this.records.length}_addString($,I){if(!isDefined($)||isBlank($))return;let N={v:$,i:I,n:this.norm.get($)};this.records.push(N)}_addObject($,I){let N={i:I,$:{}};this.keys.forEach((B,j)=>{let U=B.getFn?B.getFn($):this.getFn($,B.path);if(isDefined(U)){if(isArray$6(U)){let q=[];const Y=[{nestedArrIndex:-1,value:U}];for(;Y.length;){const{nestedArrIndex:K,value:G}=Y.pop();if(isDefined(G))if(isString$3(G)&&!isBlank(G)){let J={v:G,i:K,n:this.norm.get(G)};q.push(J)}else isArray$6(G)&&G.forEach((J,Z)=>{Y.push({nestedArrIndex:Z,value:J})})}N.$[j]=q}else if(isString$3(U)&&!isBlank(U)){let q={v:U,n:this.norm.get(U)};N.$[j]=q}}}),this.records.push(N)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(M,$,{getFn:I=Config$1.getFn,fieldNormWeight:N=Config$1.fieldNormWeight}={}){const B=new FuseIndex({getFn:I,fieldNormWeight:N});return B.setKeys(M.map(createKey)),B.setSources($),B.create(),B}function parseIndex(M,{getFn:$=Config$1.getFn,fieldNormWeight:I=Config$1.fieldNormWeight}={}){const{keys:N,records:B}=M,j=new FuseIndex({getFn:$,fieldNormWeight:I});return j.setKeys(N),j.setIndexRecords(B),j}function computeScore$1(M,{errors:$=0,currentLocation:I=0,expectedLocation:N=0,distance:B=Config$1.distance,ignoreLocation:j=Config$1.ignoreLocation}={}){const U=$/M.length;if(j)return U;const q=Math.abs(N-I);return B?U+q/B:q?1:U}function convertMaskToIndices(M=[],$=Config$1.minMatchCharLength){let I=[],N=-1,B=-1,j=0;for(let U=M.length;j<U;j+=1){let q=M[j];q&&N===-1?N=j:!q&&N!==-1&&(B=j-1,B-N+1>=$&&I.push([N,B]),N=-1)}return M[j-1]&&j-N>=$&&I.push([N,j-1]),I}const MAX_BITS=32;function search(M,$,I,{location:N=Config$1.location,distance:B=Config$1.distance,threshold:j=Config$1.threshold,findAllMatches:U=Config$1.findAllMatches,minMatchCharLength:q=Config$1.minMatchCharLength,includeMatches:Y=Config$1.includeMatches,ignoreLocation:K=Config$1.ignoreLocation}={}){if($.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const G=$.length,J=M.length,Z=Math.max(0,Math.min(N,J));let ee=j,te=Z;const se=q>1||Y,re=se?Array(J):[];let ne;for(;(ne=M.indexOf($,te))>-1;){let ge=computeScore$1($,{currentLocation:ne,expectedLocation:Z,distance:B,ignoreLocation:K});if(ee=Math.min(ge,ee),te=ne+G,se){let ye=0;for(;ye<G;)re[ne+ye]=1,ye+=1}}te=-1;let ce=[],me=1,ue=G+J;const _e=1<<G-1;for(let ge=0;ge<G;ge+=1){let ye=0,xe=ue;for(;ye<xe;)computeScore$1($,{errors:ge,currentLocation:Z+xe,expectedLocation:Z,distance:B,ignoreLocation:K})<=ee?ye=xe:ue=xe,xe=Math.floor((ue-ye)/2+ye);ue=xe;let le=Math.max(1,Z-xe+1),be=U?J:Math.min(Z+xe,J)+G,ve=Array(be+2);ve[be+1]=(1<<ge)-1;for(let Ae=be;Ae>=le;Ae-=1){let Se=Ae-1,Pe=I[M.charAt(Se)];if(se&&(re[Se]=+!!Pe),ve[Ae]=(ve[Ae+1]<<1|1)&Pe,ge&&(ve[Ae]|=(ce[Ae+1]|ce[Ae])<<1|1|ce[Ae+1]),ve[Ae]&_e&&(me=computeScore$1($,{errors:ge,currentLocation:Se,expectedLocation:Z,distance:B,ignoreLocation:K}),me<=ee)){if(ee=me,te=Se,te<=Z)break;le=Math.max(1,2*Z-te)}}if(computeScore$1($,{errors:ge+1,currentLocation:Z,expectedLocation:Z,distance:B,ignoreLocation:K})>ee)break;ce=ve}const fe={isMatch:te>=0,score:Math.max(.001,me)};if(se){const ge=convertMaskToIndices(re,q);ge.length?Y&&(fe.indices=ge):fe.isMatch=!1}return fe}function createPatternAlphabet(M){let $={};for(let I=0,N=M.length;I<N;I+=1){const B=M.charAt(I);$[B]=($[B]||0)|1<<N-I-1}return $}class BitapSearch{constructor($,{location:I=Config$1.location,threshold:N=Config$1.threshold,distance:B=Config$1.distance,includeMatches:j=Config$1.includeMatches,findAllMatches:U=Config$1.findAllMatches,minMatchCharLength:q=Config$1.minMatchCharLength,isCaseSensitive:Y=Config$1.isCaseSensitive,ignoreLocation:K=Config$1.ignoreLocation}={}){if(this.options={location:I,threshold:N,distance:B,includeMatches:j,findAllMatches:U,minMatchCharLength:q,isCaseSensitive:Y,ignoreLocation:K},this.pattern=Y?$:$.toLowerCase(),this.chunks=[],!this.pattern.length)return;const G=(Z,ee)=>{this.chunks.push({pattern:Z,alphabet:createPatternAlphabet(Z),startIndex:ee})},J=this.pattern.length;if(J>MAX_BITS){let Z=0;const ee=J%MAX_BITS,te=J-ee;for(;Z<te;)G(this.pattern.substr(Z,MAX_BITS),Z),Z+=MAX_BITS;if(ee){const se=J-MAX_BITS;G(this.pattern.substr(se),se)}}else G(this.pattern,0)}searchIn($){const{isCaseSensitive:I,includeMatches:N}=this.options;if(I||($=$.toLowerCase()),this.pattern===$){let te={isMatch:!0,score:0};return N&&(te.indices=[[0,$.length-1]]),te}const{location:B,distance:j,threshold:U,findAllMatches:q,minMatchCharLength:Y,ignoreLocation:K}=this.options;let G=[],J=0,Z=!1;this.chunks.forEach(({pattern:te,alphabet:se,startIndex:re})=>{const{isMatch:ne,score:ce,indices:me}=search($,te,se,{location:B+re,distance:j,threshold:U,findAllMatches:q,minMatchCharLength:Y,includeMatches:N,ignoreLocation:K});ne&&(Z=!0),J+=ce,ne&&me&&(G=[...G,...me])});let ee={isMatch:Z,score:Z?J/this.chunks.length:1};return Z&&N&&(ee.indices=G),ee}}class BaseMatch{constructor($){this.pattern=$}static isMultiMatch($){return getMatch($,this.multiRegex)}static isSingleMatch($){return getMatch($,this.singleRegex)}search(){}}function getMatch(M,$){const I=M.match($);return I?I[1]:null}class ExactMatch extends BaseMatch{constructor($){super($)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search($){const I=$===this.pattern;return{isMatch:I,score:I?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor($){super($)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search($){const N=$.indexOf(this.pattern)===-1;return{isMatch:N,score:N?0:1,indices:[0,$.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor($){super($)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search($){const I=$.startsWith(this.pattern);return{isMatch:I,score:I?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor($){super($)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search($){const I=!$.startsWith(this.pattern);return{isMatch:I,score:I?0:1,indices:[0,$.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor($){super($)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search($){const I=$.endsWith(this.pattern);return{isMatch:I,score:I?0:1,indices:[$.length-this.pattern.length,$.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor($){super($)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search($){const I=!$.endsWith(this.pattern);return{isMatch:I,score:I?0:1,indices:[0,$.length-1]}}}class FuzzyMatch extends BaseMatch{constructor($,{location:I=Config$1.location,threshold:N=Config$1.threshold,distance:B=Config$1.distance,includeMatches:j=Config$1.includeMatches,findAllMatches:U=Config$1.findAllMatches,minMatchCharLength:q=Config$1.minMatchCharLength,isCaseSensitive:Y=Config$1.isCaseSensitive,ignoreLocation:K=Config$1.ignoreLocation}={}){super($),this._bitapSearch=new BitapSearch($,{location:I,threshold:N,distance:B,includeMatches:j,findAllMatches:U,minMatchCharLength:q,isCaseSensitive:Y,ignoreLocation:K})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search($){return this._bitapSearch.searchIn($)}}class IncludeMatch extends BaseMatch{constructor($){super($)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search($){let I=0,N;const B=[],j=this.pattern.length;for(;(N=$.indexOf(this.pattern,I))>-1;)I=N+j,B.push([N,I-1]);const U=!!B.length;return{isMatch:U,score:U?0:1,indices:B}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(M,$={}){return M.split(OR_TOKEN).map(I=>{let N=I.trim().split(SPACE_RE).filter(j=>j&&!!j.trim()),B=[];for(let j=0,U=N.length;j<U;j+=1){const q=N[j];let Y=!1,K=-1;for(;!Y&&++K<searchersLen;){const G=searchers[K];let J=G.isMultiMatch(q);J&&(B.push(new G(J,$)),Y=!0)}if(!Y)for(K=-1;++K<searchersLen;){const G=searchers[K];let J=G.isSingleMatch(q);if(J){B.push(new G(J,$));break}}}return B})}const MultiMatchSet=new Set([FuzzyMatch.type,IncludeMatch.type]);class ExtendedSearch{constructor($,{isCaseSensitive:I=Config$1.isCaseSensitive,includeMatches:N=Config$1.includeMatches,minMatchCharLength:B=Config$1.minMatchCharLength,ignoreLocation:j=Config$1.ignoreLocation,findAllMatches:U=Config$1.findAllMatches,location:q=Config$1.location,threshold:Y=Config$1.threshold,distance:K=Config$1.distance}={}){this.query=null,this.options={isCaseSensitive:I,includeMatches:N,minMatchCharLength:B,findAllMatches:U,ignoreLocation:j,location:q,threshold:Y,distance:K},this.pattern=I?$:$.toLowerCase(),this.query=parseQuery(this.pattern,this.options)}static condition($,I){return I.useExtendedSearch}searchIn($){const I=this.query;if(!I)return{isMatch:!1,score:1};const{includeMatches:N,isCaseSensitive:B}=this.options;$=B?$:$.toLowerCase();let j=0,U=[],q=0;for(let Y=0,K=I.length;Y<K;Y+=1){const G=I[Y];U.length=0,j=0;for(let J=0,Z=G.length;J<Z;J+=1){const ee=G[J],{isMatch:te,indices:se,score:re}=ee.search($);if(te){if(j+=1,q+=re,N){const ne=ee.constructor.type;MultiMatchSet.has(ne)?U=[...U,...se]:U.push(se)}}else{q=0,j=0,U.length=0;break}}if(j){let J={isMatch:!0,score:q/j};return N&&(J.indices=U),J}}return{isMatch:!1,score:1}}}const registeredSearchers=[];function register(...M){registeredSearchers.push(...M)}function createSearcher(M,$){for(let I=0,N=registeredSearchers.length;I<N;I+=1){let B=registeredSearchers[I];if(B.condition(M,$))return new B(M,$)}return new BitapSearch(M,$)}const LogicalOperator={AND:"$and",OR:"$or"},KeyType={PATH:"$path",PATTERN:"$val"},isExpression=M=>!!(M[LogicalOperator.AND]||M[LogicalOperator.OR]),isPath=M=>!!M[KeyType.PATH],isLeaf=M=>!isArray$6(M)&&isObject$3(M)&&!isExpression(M),convertToExplicit=M=>({[LogicalOperator.AND]:Object.keys(M).map($=>({[$]:M[$]}))});function parse$2(M,$,{auto:I=!0}={}){const N=B=>{let j=Object.keys(B);const U=isPath(B);if(!U&&j.length>1&&!isExpression(B))return N(convertToExplicit(B));if(isLeaf(B)){const Y=U?B[KeyType.PATH]:j[0],K=U?B[KeyType.PATTERN]:B[Y];if(!isString$3(K))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(Y));const G={keyId:createKeyId(Y),pattern:K};return I&&(G.searcher=createSearcher(K,$)),G}let q={children:[],operator:j[0]};return j.forEach(Y=>{const K=B[Y];isArray$6(K)&&K.forEach(G=>{q.children.push(N(G))})}),q};return isExpression(M)||(M=convertToExplicit(M)),N(M)}function computeScore(M,{ignoreFieldNorm:$=Config$1.ignoreFieldNorm}){M.forEach(I=>{let N=1;I.matches.forEach(({key:B,norm:j,score:U})=>{const q=B?B.weight:null;N*=Math.pow(U===0&&q?Number.EPSILON:U,(q||1)*($?1:j))}),I.score=N})}function transformMatches(M,$){const I=M.matches;$.matches=[],isDefined(I)&&I.forEach(N=>{if(!isDefined(N.indices)||!N.indices.length)return;const{indices:B,value:j}=N;let U={indices:B,value:j};N.key&&(U.key=N.key.src),N.idx>-1&&(U.refIndex=N.idx),$.matches.push(U)})}function transformScore(M,$){$.score=M.score}function format$2(M,$,{includeMatches:I=Config$1.includeMatches,includeScore:N=Config$1.includeScore}={}){const B=[];return I&&B.push(transformMatches),N&&B.push(transformScore),M.map(j=>{const{idx:U}=j,q={item:$[U],refIndex:U};return B.length&&B.forEach(Y=>{Y(j,q)}),q})}class Fuse{constructor($,I={},N){this.options={...Config$1,...I},this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection($,N)}setCollection($,I){if(this._docs=$,I&&!(I instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=I||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add($){isDefined($)&&(this._docs.push($),this._myIndex.add($))}remove($=()=>!1){const I=[];for(let N=0,B=this._docs.length;N<B;N+=1){const j=this._docs[N];$(j,N)&&(this.removeAt(N),N-=1,B-=1,I.push(j))}return I}removeAt($){this._docs.splice($,1),this._myIndex.removeAt($)}getIndex(){return this._myIndex}search($,{limit:I=-1}={}){const{includeMatches:N,includeScore:B,shouldSort:j,sortFn:U,ignoreFieldNorm:q}=this.options;let Y=isString$3($)?isString$3(this._docs[0])?this._searchStringList($):this._searchObjectList($):this._searchLogical($);return computeScore(Y,{ignoreFieldNorm:q}),j&&Y.sort(U),isNumber$2(I)&&I>-1&&(Y=Y.slice(0,I)),format$2(Y,this._docs,{includeMatches:N,includeScore:B})}_searchStringList($){const I=createSearcher($,this.options),{records:N}=this._myIndex,B=[];return N.forEach(({v:j,i:U,n:q})=>{if(!isDefined(j))return;const{isMatch:Y,score:K,indices:G}=I.searchIn(j);Y&&B.push({item:j,idx:U,matches:[{score:K,value:j,norm:q,indices:G}]})}),B}_searchLogical($){const I=parse$2($,this.options),N=(q,Y,K)=>{if(!q.children){const{keyId:J,searcher:Z}=q,ee=this._findMatches({key:this._keyStore.get(J),value:this._myIndex.getValueForItemAtKeyId(Y,J),searcher:Z});return ee&&ee.length?[{idx:K,item:Y,matches:ee}]:[]}const G=[];for(let J=0,Z=q.children.length;J<Z;J+=1){const ee=q.children[J],te=N(ee,Y,K);if(te.length)G.push(...te);else if(q.operator===LogicalOperator.AND)return[]}return G},B=this._myIndex.records,j={},U=[];return B.forEach(({$:q,i:Y})=>{if(isDefined(q)){let K=N(I,q,Y);K.length&&(j[Y]||(j[Y]={idx:Y,item:q,matches:[]},U.push(j[Y])),K.forEach(({matches:G})=>{j[Y].matches.push(...G)}))}}),U}_searchObjectList($){const I=createSearcher($,this.options),{keys:N,records:B}=this._myIndex,j=[];return B.forEach(({$:U,i:q})=>{if(!isDefined(U))return;let Y=[];N.forEach((K,G)=>{Y.push(...this._findMatches({key:K,value:U[G],searcher:I}))}),Y.length&&j.push({idx:q,item:U,matches:Y})}),j}_findMatches({key:$,value:I,searcher:N}){if(!isDefined(I))return[];let B=[];if(isArray$6(I))I.forEach(({v:j,i:U,n:q})=>{if(!isDefined(j))return;const{isMatch:Y,score:K,indices:G}=N.searchIn(j);Y&&B.push({score:K,key:$,value:j,idx:U,norm:q,indices:G})});else{const{v:j,n:U}=I,{isMatch:q,score:Y,indices:K}=N.searchIn(j);q&&B.push({score:Y,key:$,value:j,norm:U,indices:K})}return B}}Fuse.version="7.0.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config$1;Fuse.parseQuery=parse$2;register(ExtendedSearch);const _sfc_main$3p={props:{columns:{type:Array,default:()=>[]},rows:{type:Array,required:!0},searchQuery:{type:String,default:""},selections:{type:Array,default:()=>[]},maxSelections:{type:Number},sort:{type:Boolean,default:!0},sortColumn:String,sortDirection:{type:String,default:"asc"}},provide(){return{sharedState:this.sharedState}},data(){return{sharedState:{searchQuery:this.searchQuery,columns:this.columns,sortColumn:null,sortDirection:this.sortDirection,rows:[],originalRows:this.rows,selections:this.selections,maxSelections:this.maxSelections}}},computed:{filteredRows(){let M=this.rows;return M=this.filterBySearch(M),this.sortRows(M)},visibleColumns(){return this.sharedState.columns.filter(M=>M.visible)},searchableColumns(){return this.visibleColumns.length?this.visibleColumns.map(M=>M.field):Object.keys(rows[0])}},watch:{filteredRows:{immediate:!0,handler:function(M){this.sharedState.rows=M}},selections(M){this.sharedState.selections=M},"sharedState.selections":function(M){this.$emit("selections-updated",M)},columns(M){this.sharedState.columns=M},sortColumn(M){this.sharedState.sortColumn=M},visibleColumns(M){this.$emit("visible-columns-updated",M)}},created(){this.setInitialSortColumn(),this.$events.$on("clear-selections",this.clearSelections)},destroyed(){this.$events.$off("clear-selections",this.clearSelections)},methods:{setInitialSortColumn(){const M=this.sharedState.columns;if(M.length===0)return;let $=this.visibleColumns[0];$=$?$.field:M[0].field,this.sharedState.sortColumn=this.sortColumn||(this.sort?$:null)},filterBySearch(M){return this.searchQuery?new Fuse(M,{findAllMatches:!0,threshold:.1,minMatchCharLength:2,keys:this.searchableColumns}).search(this.searchQuery).map(I=>I.item):M},sortRows(M){return!this.sort||!this.sharedState.sortColumn||(M=_.sortBy(M,this.sharedState.sortColumn),this.sharedState.sortDirection==="desc"&&(M=M.reverse())),M},clearSelections(){this.sharedState.selections=[]}},render(){return this.$scopedSlots.default({rows:this.filteredRows,hasSelections:this.sharedState.selections.length>0})}},_sfc_render$3p=null,_sfc_staticRenderFns$3p=null;var __component__$3q=normalizeComponent$2(_sfc_main$3p,_sfc_render$3p,_sfc_staticRenderFns$3p,!1,null,null,null,null);const DataList=__component__$3q.exports,_sfc_main$3o={props:{value:{required:!0}},data(){return{truncateAt:50}},computed:{text(){let M=this.value;return M===0?0:M?typeof M!="string"?JSON.stringify(M):(M=M.replace(/<\/?[^>]+(>|$)/g,""),M.length>this.truncateAt&&(M=M.substring(0,this.truncateAt)+"…"),M):""}},render(M){return M("div",{domProps:{innerHTML:this.text}})}},_sfc_render$3o=null,_sfc_staticRenderFns$3o=null;var __component__$3p=normalizeComponent$2(_sfc_main$3o,_sfc_render$3o,_sfc_staticRenderFns$3o,!1,null,null,null,null);const DefaultField=__component__$3p.exports,_sfc_main$3n={components:{DefaultField},props:{handle:{type:String,required:!0},value:{required:!0},values:{required:!0},fieldtype:String},computed:{component(){const M="DefaultField",$=`${this.fieldtype}-fieldtype-index`;return this.fieldtype&&Vue$3.options.components[$]?$:M},cssClass(){return this.fieldtype?`${this.fieldtype}-index-field`:""}}};var _sfc_render$3n=function M(){var $=this,I=$._self._c;return I("div",[I($.component,{tag:"component",class:$.cssClass,attrs:{handle:$.handle,value:$.value,values:$.values}})],1)},_sfc_staticRenderFns$3n=[],__component__$3o=normalizeComponent$2(_sfc_main$3n,_sfc_render$3n,_sfc_staticRenderFns$3n,!1,null,null,null,null);const TableField=__component__$3o.exports;var draggable_bundle={exports:{}};(function(M,$){(function(N,B){M.exports=B()})(window,function(){return function(I){var N={};function B(j){if(N[j])return N[j].exports;var U=N[j]={i:j,l:!1,exports:{}};return I[j].call(U.exports,U,U.exports,B),U.l=!0,U.exports}return B.m=I,B.c=N,B.d=function(j,U,q){B.o(j,U)||Object.defineProperty(j,U,{enumerable:!0,get:q})},B.r=function(j){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},B.t=function(j,U){if(U&1&&(j=B(j)),U&8||U&4&&typeof j=="object"&&j&&j.__esModule)return j;var q=Object.create(null);if(B.r(q),Object.defineProperty(q,"default",{enumerable:!0,value:j}),U&2&&typeof j!="string")for(var Y in j)B.d(q,Y,(function(K){return j[K]}).bind(null,Y));return q},B.n=function(j){var U=j&&j.__esModule?function(){return j.default}:function(){return j};return B.d(U,"a",U),U},B.o=function(j,U){return Object.prototype.hasOwnProperty.call(j,U)},B.p="",B(B.s=72)}([function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(66),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(70),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(57);Object.defineProperty(N,"closest",{enumerable:!0,get:function(){return K(j).default}});var U=B(55);Object.defineProperty(N,"requestNextAnimationFrame",{enumerable:!0,get:function(){return K(U).default}});var q=B(53);Object.defineProperty(N,"distance",{enumerable:!0,get:function(){return K(q).default}});var Y=B(51);Object.defineProperty(N,"touchCoords",{enumerable:!0,get:function(){return K(Y).default}});function K(G){return G&&G.__esModule?G:{default:G}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(46);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(49),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(14);Object.keys(j).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return j[Z]}})});var U=B(13);Object.keys(U).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return U[Z]}})});var q=B(12);Object.keys(q).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return q[Z]}})});var Y=B(6);Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return Y[Z]}})});var K=B(39),G=J(K);function J(Z){return Z&&Z.__esModule?Z:{default:Z}}N.default=G.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(4);Object.defineProperty(N,"Sensor",{enumerable:!0,get:function(){return J(j).default}});var U=B(48);Object.defineProperty(N,"MouseSensor",{enumerable:!0,get:function(){return J(U).default}});var q=B(45);Object.defineProperty(N,"TouchSensor",{enumerable:!0,get:function(){return J(q).default}});var Y=B(43);Object.defineProperty(N,"DragSensor",{enumerable:!0,get:function(){return J(Y).default}});var K=B(41);Object.defineProperty(N,"ForceTouchSensor",{enumerable:!0,get:function(){return J(K).default}});var G=B(3);Object.keys(G).forEach(function(Z){Z==="default"||Z==="__esModule"||Object.defineProperty(N,Z,{enumerable:!0,get:function(){return G[Z]}})});function J(Z){return Z&&Z.__esModule?Z:{default:Z}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(20);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(25);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(29);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(32);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(35);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(68);Object.defineProperty(N,"Announcement",{enumerable:!0,get:function(){return K(j).default}}),Object.defineProperty(N,"defaultAnnouncementOptions",{enumerable:!0,get:function(){return j.defaultOptions}});var U=B(65);Object.defineProperty(N,"Focusable",{enumerable:!0,get:function(){return K(U).default}});var q=B(63);Object.defineProperty(N,"Mirror",{enumerable:!0,get:function(){return K(q).default}}),Object.defineProperty(N,"defaultMirrorOptions",{enumerable:!0,get:function(){return q.defaultOptions}});var Y=B(59);Object.defineProperty(N,"Scrollable",{enumerable:!0,get:function(){return K(Y).default}}),Object.defineProperty(N,"defaultScrollableOptions",{enumerable:!0,get:function(){return Y.defaultOptions}});function K(G){return G&&G.__esModule?G:{default:G}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(69);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(71);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(se){for(var re=1;re<arguments.length;re++){var ne=arguments[re];for(var ce in ne)Object.prototype.hasOwnProperty.call(ne,ce)&&(se[ce]=ne[ce])}return se},U=B(0),q=Y(U);function Y(se){return se&&se.__esModule?se:{default:se}}const K=Symbol("onSortableSorted"),G=Symbol("onSortableSort"),J=N.defaultOptions={duration:150,easingFunction:"ease-in-out"};class Z extends q.default{constructor(re){super(re),this.options=j({},J,this.getOptions()),this.lastAnimationFrame=null,this.lastElements=[],this[K]=this[K].bind(this),this[G]=this[G].bind(this)}attach(){this.draggable.on("sortable:sort",this[G]),this.draggable.on("sortable:sorted",this[K])}detach(){this.draggable.off("sortable:sort",this[G]),this.draggable.off("sortable:sorted",this[K])}getOptions(){return this.draggable.options.sortAnimation||{}}[G]({dragEvent:re}){const{sourceContainer:ne}=re,ce=this.draggable.getDraggableElementsForContainer(ne);this.lastElements=Array.from(ce).map(me=>({domEl:me,offsetTop:me.offsetTop,offsetLeft:me.offsetLeft}))}[K]({oldIndex:re,newIndex:ne}){if(re===ne)return;const ce=[];let me,ue,_e;re>ne?(me=ne,ue=re-1,_e=1):(me=re+1,ue=ne,_e=-1);for(let fe=me;fe<=ue;fe++){const ge=this.lastElements[fe],ye=this.lastElements[fe+_e];ce.push({from:ge,to:ye})}cancelAnimationFrame(this.lastAnimationFrame),this.lastAnimationFrame=requestAnimationFrame(()=>{ce.forEach(fe=>ee(fe,this.options))})}}N.default=Z;function ee({from:se,to:re},{duration:ne,easingFunction:ce}){const me=se.domEl,ue=se.offsetLeft-re.offsetLeft,_e=se.offsetTop-re.offsetTop;me.style.pointerEvents="none",me.style.transform=`translate3d(${ue}px, ${_e}px, 0)`,requestAnimationFrame(()=>{me.addEventListener("transitionend",te),me.style.transition=`transform ${ne}ms ${ce}`,me.style.transform=""})}function te(se){se.target.style.transition="",se.target.style.pointerEvents="",se.target.removeEventListener("transitionend",te)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(15),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(te){for(var se=1;se<arguments.length;se++){var re=arguments[se];for(var ne in re)Object.prototype.hasOwnProperty.call(re,ne)&&(te[ne]=re[ne])}return te},U=B(0),q=Y(U);function Y(te){return te&&te.__esModule?te:{default:te}}const K=Symbol("onSortableSorted"),G=N.defaultOptions={duration:150,easingFunction:"ease-in-out",horizontal:!1};class J extends q.default{constructor(se){super(se),this.options=j({},G,this.getOptions()),this.lastAnimationFrame=null,this[K]=this[K].bind(this)}attach(){this.draggable.on("sortable:sorted",this[K])}detach(){this.draggable.off("sortable:sorted",this[K])}getOptions(){return this.draggable.options.swapAnimation||{}}[K]({oldIndex:se,newIndex:re,dragEvent:ne}){const{source:ce,over:me}=ne;cancelAnimationFrame(this.lastAnimationFrame),this.lastAnimationFrame=requestAnimationFrame(()=>{se>=re?Z(ce,me,this.options):Z(me,ce,this.options)})}}N.default=J;function Z(te,se,{duration:re,easingFunction:ne,horizontal:ce}){for(const me of[te,se])me.style.pointerEvents="none";if(ce){const me=te.offsetWidth;te.style.transform=`translate3d(${me}px, 0, 0)`,se.style.transform=`translate3d(-${me}px, 0, 0)`}else{const me=te.offsetHeight;te.style.transform=`translate3d(0, ${me}px, 0)`,se.style.transform=`translate3d(0, -${me}px, 0)`}requestAnimationFrame(()=>{for(const me of[te,se])me.addEventListener("transitionend",ee),me.style.transition=`transform ${re}ms ${ne}`,me.style.transform=""})}function ee(te){te.target.style.transition="",te.target.style.pointerEvents="",te.target.removeEventListener("transitionend",ee)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(17),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(0),U=Y(j),q=B(7);function Y(re){return re&&re.__esModule?re:{default:re}}const K=Symbol("onDragStart"),G=Symbol("onDragStop"),J=Symbol("onDragOver"),Z=Symbol("onDragOut"),ee=Symbol("onMirrorCreated"),te=Symbol("onMirrorDestroy");class se extends U.default{constructor(ne){super(ne),this.firstSource=null,this.mirror=null,this[K]=this[K].bind(this),this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this)}attach(){this.draggable.on("drag:start",this[K]).on("drag:stop",this[G]).on("drag:over",this[J]).on("drag:out",this[Z]).on("droppable:over",this[J]).on("droppable:out",this[Z]).on("mirror:created",this[ee]).on("mirror:destroy",this[te])}detach(){this.draggable.off("drag:start",this[K]).off("drag:stop",this[G]).off("drag:over",this[J]).off("drag:out",this[Z]).off("droppable:over",this[J]).off("droppable:out",this[Z]).off("mirror:created",this[ee]).off("mirror:destroy",this[te])}[K](ne){ne.canceled()||(this.firstSource=ne.source)}[G](){this.firstSource=null}[J](ne){if(ne.canceled())return;const ce=ne.source||ne.dragEvent.source;if(ce===this.firstSource){this.firstSource=null;return}const me=new q.SnapInEvent({dragEvent:ne,snappable:ne.over||ne.droppable});this.draggable.trigger(me),!me.canceled()&&(this.mirror&&(this.mirror.style.display="none"),ce.classList.remove(...this.draggable.getClassNamesFor("source:dragging")),ce.classList.add(...this.draggable.getClassNamesFor("source:placed")),setTimeout(()=>{ce.classList.remove(...this.draggable.getClassNamesFor("source:placed"))},this.draggable.options.placedTimeout))}[Z](ne){if(ne.canceled())return;const ce=ne.source||ne.dragEvent.source,me=new q.SnapOutEvent({dragEvent:ne,snappable:ne.over||ne.droppable});this.draggable.trigger(me),!me.canceled()&&(this.mirror&&(this.mirror.style.display=""),ce.classList.add(...this.draggable.getClassNamesFor("source:dragging")))}[ee]({mirror:ne}){this.mirror=ne}[te](){this.mirror=null}}N.default=se},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.SnapOutEvent=N.SnapInEvent=N.SnapEvent=void 0;var j=B(1),U=q(j);function q(J){return J&&J.__esModule?J:{default:J}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}get snappable(){return this.data.snappable}}N.SnapEvent=Y,Y.type="snap";class K extends Y{}N.SnapInEvent=K,K.type="snap:in",K.cancelable=!0;class G extends Y{}N.SnapOutEvent=G,G.type="snap:out",G.cancelable=!0},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(7);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(19),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(re){for(var ne=1;ne<arguments.length;ne++){var ce=arguments[ne];for(var me in ce)Object.prototype.hasOwnProperty.call(ce,me)&&(re[me]=ce[me])}return re},U=B(0),q=K(U),Y=B(2);function K(re){return re&&re.__esModule?re:{default:re}}const G=Symbol("onMirrorCreated"),J=Symbol("onMirrorDestroy"),Z=Symbol("onDragOver"),ee=Symbol("resize"),te=N.defaultOptions={};class se extends q.default{constructor(ne){super(ne),this.options=j({},te,this.getOptions()),this.lastWidth=0,this.lastHeight=0,this.mirror=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this)}attach(){this.draggable.on("mirror:created",this[G]).on("drag:over",this[Z]).on("drag:over:container",this[Z])}detach(){this.draggable.off("mirror:created",this[G]).off("mirror:destroy",this[J]).off("drag:over",this[Z]).off("drag:over:container",this[Z])}getOptions(){return this.draggable.options.resizeMirror||{}}[G]({mirror:ne}){this.mirror=ne}[J](){this.mirror=null}[Z](ne){this[ee](ne)}[ee]({overContainer:ne,over:ce}){requestAnimationFrame(()=>{if(!this.mirror.parentNode)return;this.mirror.parentNode!==ne&&ne.appendChild(this.mirror);const me=ce||this.draggable.getDraggableElementsForContainer(ne)[0];me&&(0,Y.requestNextAnimationFrame)(()=>{const ue=me.getBoundingClientRect();this.lastHeight===ue.height&&this.lastWidth===ue.width||(this.mirror.style.width=`${ue.width}px`,this.mirror.style.height=`${ue.height}px`,this.lastWidth=ue.width,this.lastHeight=ue.height)})})}}N.default=se},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(22),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(0),U=K(j),q=B(2),Y=B(8);function K(te){return te&&te.__esModule?te:{default:te}}const G=Symbol("onDragMove"),J=Symbol("onDragStop"),Z=Symbol("onRequestAnimationFrame");class ee extends U.default{constructor(se){super(se),this.currentlyCollidingElement=null,this.lastCollidingElement=null,this.currentAnimationFrame=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this)}attach(){this.draggable.on("drag:move",this[G]).on("drag:stop",this[J])}detach(){this.draggable.off("drag:move",this[G]).off("drag:stop",this[J])}getCollidables(){const se=this.draggable.options.collidables;return typeof se=="string"?Array.prototype.slice.call(document.querySelectorAll(se)):se instanceof NodeList||se instanceof Array?Array.prototype.slice.call(se):se instanceof HTMLElement?[se]:typeof se=="function"?se():[]}[G](se){const re=se.sensorEvent.target;this.currentAnimationFrame=requestAnimationFrame(this[Z](re)),this.currentlyCollidingElement&&se.cancel();const ne=new Y.CollidableInEvent({dragEvent:se,collidingElement:this.currentlyCollidingElement}),ce=new Y.CollidableOutEvent({dragEvent:se,collidingElement:this.lastCollidingElement}),me=!!(this.currentlyCollidingElement&&this.lastCollidingElement!==this.currentlyCollidingElement),ue=!!(!this.currentlyCollidingElement&&this.lastCollidingElement);me?(this.lastCollidingElement&&this.draggable.trigger(ce),this.draggable.trigger(ne)):ue&&this.draggable.trigger(ce),this.lastCollidingElement=this.currentlyCollidingElement}[J](se){const re=this.currentlyCollidingElement||this.lastCollidingElement,ne=new Y.CollidableOutEvent({dragEvent:se,collidingElement:re});re&&this.draggable.trigger(ne),this.lastCollidingElement=null,this.currentlyCollidingElement=null}[Z](se){return()=>{const re=this.getCollidables();this.currentlyCollidingElement=(0,q.closest)(se,ne=>re.includes(ne))}}}N.default=ee},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.CollidableOutEvent=N.CollidableInEvent=N.CollidableEvent=void 0;var j=B(1),U=q(j);function q(J){return J&&J.__esModule?J:{default:J}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.CollidableEvent=Y,Y.type="collidable";class K extends Y{get collidingElement(){return this.data.collidingElement}}N.CollidableInEvent=K,K.type="collidable:in";class G extends Y{get collidingElement(){return this.data.collidingElement}}N.CollidableOutEvent=G,G.type="collidable:out"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(8);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(24),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(26);Object.defineProperty(N,"Collidable",{enumerable:!0,get:function(){return G(j).default}});var U=B(23);Object.defineProperty(N,"ResizeMirror",{enumerable:!0,get:function(){return G(U).default}}),Object.defineProperty(N,"defaultResizeMirrorOptions",{enumerable:!0,get:function(){return U.defaultOptions}});var q=B(21);Object.defineProperty(N,"Snappable",{enumerable:!0,get:function(){return G(q).default}});var Y=B(18);Object.defineProperty(N,"SwapAnimation",{enumerable:!0,get:function(){return G(Y).default}}),Object.defineProperty(N,"defaultSwapAnimationOptions",{enumerable:!0,get:function(){return Y.defaultOptions}});var K=B(16);Object.defineProperty(N,"SortAnimation",{enumerable:!0,get:function(){return G(K).default}}),Object.defineProperty(N,"defaultSortAnimationOptions",{enumerable:!0,get:function(){return K.defaultOptions}});function G(J){return J&&J.__esModule?J:{default:J}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(fe){for(var ge=1;ge<arguments.length;ge++){var ye=arguments[ge];for(var xe in ye)Object.prototype.hasOwnProperty.call(ye,xe)&&(fe[xe]=ye[xe])}return fe},U=B(5),q=K(U),Y=B(9);function K(fe){return fe&&fe.__esModule?fe:{default:fe}}const G=Symbol("onDragStart"),J=Symbol("onDragOverContainer"),Z=Symbol("onDragOver"),ee=Symbol("onDragStop");function te({dragEvent:fe}){const ge=fe.source.textContent.trim()||fe.source.id||"sortable element";if(fe.over){const ye=fe.over.textContent.trim()||fe.over.id||"sortable element";return fe.source.compareDocumentPosition(fe.over)&Node.DOCUMENT_POSITION_FOLLOWING?`Placed ${ge} after ${ye}`:`Placed ${ge} before ${ye}`}else return`Placed ${ge} into a different container`}const se={"sortable:sorted":te};class re extends q.default{constructor(ge=[],ye={}){super(ge,j({},ye,{announcements:j({},se,ye.announcements||{})})),this.startIndex=null,this.startContainer=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this.on("drag:start",this[G]).on("drag:over:container",this[J]).on("drag:over",this[Z]).on("drag:stop",this[ee])}destroy(){super.destroy(),this.off("drag:start",this[G]).off("drag:over:container",this[J]).off("drag:over",this[Z]).off("drag:stop",this[ee])}index(ge){return this.getSortableElementsForContainer(ge.parentNode).indexOf(ge)}getSortableElementsForContainer(ge){return[...ge.querySelectorAll(this.options.draggable)].filter(xe=>xe!==this.originalSource&&xe!==this.mirror&&xe.parentNode===ge)}[G](ge){this.startContainer=ge.source.parentNode,this.startIndex=this.index(ge.source);const ye=new Y.SortableStartEvent({dragEvent:ge,startIndex:this.startIndex,startContainer:this.startContainer});this.trigger(ye),ye.canceled()&&ge.cancel()}[J](ge){if(ge.canceled())return;const{source:ye,over:xe,overContainer:le}=ge,be=this.index(ye),ve=new Y.SortableSortEvent({dragEvent:ge,currentIndex:be,source:ye,over:xe});if(this.trigger(ve),ve.canceled())return;const we=this.getSortableElementsForContainer(le),Ae=ce({source:ye,over:xe,overContainer:le,children:we});if(!Ae)return;const{oldContainer:Se,newContainer:Pe}=Ae,Me=this.index(ge.source),Be=new Y.SortableSortedEvent({dragEvent:ge,oldIndex:be,newIndex:Me,oldContainer:Se,newContainer:Pe});this.trigger(Be)}[Z](ge){if(ge.over===ge.originalSource||ge.over===ge.source)return;const{source:ye,over:xe,overContainer:le}=ge,be=this.index(ye),ve=new Y.SortableSortEvent({dragEvent:ge,currentIndex:be,source:ye,over:xe});if(this.trigger(ve),ve.canceled())return;const we=this.getDraggableElementsForContainer(le),Ae=ce({source:ye,over:xe,overContainer:le,children:we});if(!Ae)return;const{oldContainer:Se,newContainer:Pe}=Ae,Me=this.index(ye),Be=new Y.SortableSortedEvent({dragEvent:ge,oldIndex:be,newIndex:Me,oldContainer:Se,newContainer:Pe});this.trigger(Be)}[ee](ge){const ye=new Y.SortableStopEvent({dragEvent:ge,oldIndex:this.startIndex,newIndex:this.index(ge.source),oldContainer:this.startContainer,newContainer:ge.source.parentNode});this.trigger(ye),this.startIndex=null,this.startContainer=null}}N.default=re;function ne(fe){return Array.prototype.indexOf.call(fe.parentNode.children,fe)}function ce({source:fe,over:ge,overContainer:ye,children:xe}){const le=!xe.length,be=fe.parentNode!==ye,ve=ge&&fe.parentNode===ge.parentNode;return le?me(fe,ye):ve?ue(fe,ge):be?_e(fe,ge,ye):null}function me(fe,ge){const ye=fe.parentNode;return ge.appendChild(fe),{oldContainer:ye,newContainer:ge}}function ue(fe,ge){const ye=ne(fe),xe=ne(ge);return ye<xe?fe.parentNode.insertBefore(fe,ge.nextElementSibling):fe.parentNode.insertBefore(fe,ge),{oldContainer:fe.parentNode,newContainer:fe.parentNode}}function _e(fe,ge,ye){const xe=fe.parentNode;return ge?ge.parentNode.insertBefore(fe,ge):ye.appendChild(fe),{oldContainer:xe,newContainer:fe.parentNode}}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.SortableStopEvent=N.SortableSortedEvent=N.SortableSortEvent=N.SortableStartEvent=N.SortableEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.SortableEvent=Y,Y.type="sortable";class K extends Y{get startIndex(){return this.data.startIndex}get startContainer(){return this.data.startContainer}}N.SortableStartEvent=K,K.type="sortable:start",K.cancelable=!0;class G extends Y{get currentIndex(){return this.data.currentIndex}get over(){return this.data.over}get overContainer(){return this.data.dragEvent.overContainer}}N.SortableSortEvent=G,G.type="sortable:sort",G.cancelable=!0;class J extends Y{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}N.SortableSortedEvent=J,J.type="sortable:sorted";class Z extends Y{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}N.SortableStopEvent=Z,Z.type="sortable:stop"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(9);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(28),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(ce){for(var me=1;me<arguments.length;me++){var ue=arguments[me];for(var _e in ue)Object.prototype.hasOwnProperty.call(ue,_e)&&(ce[_e]=ue[_e])}return ce},U=B(5),q=K(U),Y=B(10);function K(ce){return ce&&ce.__esModule?ce:{default:ce}}const G=Symbol("onDragStart"),J=Symbol("onDragOver"),Z=Symbol("onDragStop");function ee({dragEvent:ce,swappedElement:me}){const ue=ce.source.textContent.trim()||ce.source.id||"swappable element",_e=me.textContent.trim()||me.id||"swappable element";return`Swapped ${ue} with ${_e}`}const te={"swappabled:swapped":ee};class se extends q.default{constructor(me=[],ue={}){super(me,j({},ue,{announcements:j({},te,ue.announcements||{})})),this.lastOver=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this.on("drag:start",this[G]).on("drag:over",this[J]).on("drag:stop",this[Z])}destroy(){super.destroy(),this.off("drag:start",this._onDragStart).off("drag:over",this._onDragOver).off("drag:stop",this._onDragStop)}[G](me){const ue=new Y.SwappableStartEvent({dragEvent:me});this.trigger(ue),ue.canceled()&&me.cancel()}[J](me){if(me.over===me.originalSource||me.over===me.source||me.canceled())return;const ue=new Y.SwappableSwapEvent({dragEvent:me,over:me.over,overContainer:me.overContainer});if(this.trigger(ue),ue.canceled())return;this.lastOver&&this.lastOver!==me.over&&ne(this.lastOver,me.source),this.lastOver===me.over?this.lastOver=null:this.lastOver=me.over,ne(me.source,me.over);const _e=new Y.SwappableSwappedEvent({dragEvent:me,swappedElement:me.over});this.trigger(_e)}[Z](me){const ue=new Y.SwappableStopEvent({dragEvent:me});this.trigger(ue),this.lastOver=null}}N.default=se;function re(ce){const me=document.createElement("div");ce(me),me.parentNode.removeChild(me)}function ne(ce,me){const ue=me.parentNode,_e=ce.parentNode;re(fe=>{_e.insertBefore(fe,ce),ue.insertBefore(ce,me),_e.insertBefore(me,fe)})}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.SwappableStopEvent=N.SwappableSwappedEvent=N.SwappableSwapEvent=N.SwappableStartEvent=N.SwappableEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.SwappableEvent=Y,Y.type="swappable";class K extends Y{}N.SwappableStartEvent=K,K.type="swappable:start",K.cancelable=!0;class G extends Y{get over(){return this.data.over}get overContainer(){return this.data.overContainer}}N.SwappableSwapEvent=G,G.type="swappable:swap",G.cancelable=!0;class J extends Y{get swappedElement(){return this.data.swappedElement}}N.SwappableSwappedEvent=J,J.type="swappable:swapped";class Z extends Y{}N.SwappableStopEvent=Z,Z.type="swappable:stop"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(10);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(31),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(ye){for(var xe=1;xe<arguments.length;xe++){var le=arguments[xe];for(var be in le)Object.prototype.hasOwnProperty.call(le,be)&&(ye[be]=le[be])}return ye},U=B(2),q=B(5),Y=G(q),K=B(11);function G(ye){return ye&&ye.__esModule?ye:{default:ye}}const J=Symbol("onDragStart"),Z=Symbol("onDragMove"),ee=Symbol("onDragStop"),te=Symbol("dropInDropZone"),se=Symbol("returnToOriginalDropzone"),re=Symbol("closestDropzone"),ne=Symbol("getDropzones");function ce({dragEvent:ye,dropzone:xe}){const le=ye.source.textContent.trim()||ye.source.id||"draggable element",be=xe.textContent.trim()||xe.id||"droppable element";return`Dropped ${le} into ${be}`}function me({dragEvent:ye,dropzone:xe}){const le=ye.source.textContent.trim()||ye.source.id||"draggable element",be=xe.textContent.trim()||xe.id||"droppable element";return`Returned ${le} from ${be}`}const ue={"droppable:dropped":ce,"droppable:returned":me},_e={"droppable:active":"draggable-dropzone--active","droppable:occupied":"draggable-dropzone--occupied"},fe={dropzone:".draggable-droppable"};class ge extends Y.default{constructor(xe=[],le={}){super(xe,j({},fe,le,{classes:j({},_e,le.classes||{}),announcements:j({},ue,le.announcements||{})})),this.dropzones=null,this.lastDropzone=null,this.initialDropzone=null,this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this.on("drag:start",this[J]).on("drag:move",this[Z]).on("drag:stop",this[ee])}destroy(){super.destroy(),this.off("drag:start",this[J]).off("drag:move",this[Z]).off("drag:stop",this[ee])}[J](xe){if(xe.canceled())return;this.dropzones=[...this[ne]()];const le=(0,U.closest)(xe.sensorEvent.target,this.options.dropzone);if(!le){xe.cancel();return}const be=new K.DroppableStartEvent({dragEvent:xe,dropzone:le});if(this.trigger(be),be.canceled()){xe.cancel();return}this.initialDropzone=le;for(const ve of this.dropzones)ve.classList.contains(this.getClassNameFor("droppable:occupied"))||ve.classList.add(...this.getClassNamesFor("droppable:active"))}[Z](xe){if(xe.canceled())return;const le=this[re](xe.sensorEvent.target);le&&!le.classList.contains(this.getClassNameFor("droppable:occupied"))&&this[te](xe,le)?this.lastDropzone=le:(!le||le===this.initialDropzone)&&this.lastDropzone&&(this[se](xe),this.lastDropzone=null)}[ee](xe){const le=new K.DroppableStopEvent({dragEvent:xe,dropzone:this.lastDropzone||this.initialDropzone});this.trigger(le);const be=this.getClassNamesFor("droppable:occupied");for(const ve of this.dropzones)ve.classList.remove(...this.getClassNamesFor("droppable:active"));this.lastDropzone&&this.lastDropzone!==this.initialDropzone&&this.initialDropzone.classList.remove(...be),this.dropzones=null,this.lastDropzone=null,this.initialDropzone=null}[te](xe,le){const be=new K.DroppableDroppedEvent({dragEvent:xe,dropzone:le});if(this.trigger(be),be.canceled())return!1;const ve=this.getClassNamesFor("droppable:occupied");return this.lastDropzone&&this.lastDropzone.classList.remove(...ve),le.appendChild(xe.source),le.classList.add(...ve),!0}[se](xe){const le=new K.DroppableReturnedEvent({dragEvent:xe,dropzone:this.lastDropzone});this.trigger(le),!le.canceled()&&(this.initialDropzone.appendChild(xe.source),this.lastDropzone.classList.remove(...this.getClassNamesFor("droppable:occupied")))}[re](xe){return this.dropzones?(0,U.closest)(xe,this.dropzones):null}[ne](){const xe=this.options.dropzone;return typeof xe=="string"?document.querySelectorAll(xe):xe instanceof NodeList||xe instanceof Array?xe:typeof xe=="function"?xe():[]}}N.default=ge},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DroppableStopEvent=N.DroppableReturnedEvent=N.DroppableDroppedEvent=N.DroppableStartEvent=N.DroppableEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get dragEvent(){return this.data.dragEvent}}N.DroppableEvent=Y,Y.type="droppable";class K extends Y{get dropzone(){return this.data.dropzone}}N.DroppableStartEvent=K,K.type="droppable:start",K.cancelable=!0;class G extends Y{get dropzone(){return this.data.dropzone}}N.DroppableDroppedEvent=G,G.type="droppable:dropped",G.cancelable=!0;class J extends Y{get dropzone(){return this.data.dropzone}}N.DroppableReturnedEvent=J,J.type="droppable:returned",J.cancelable=!0;class Z extends Y{get dropzone(){return this.data.dropzone}}N.DroppableStopEvent=Z,Z.type="droppable:stop",Z.cancelable=!0},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(11);Object.keys(j).forEach(function(K){K==="default"||K==="__esModule"||Object.defineProperty(N,K,{enumerable:!0,get:function(){return j[K]}})});var U=B(34),q=Y(U);function Y(K){return K&&K.__esModule?K:{default:K}}N.default=q.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});class j{constructor(){this.callbacks={}}on(q,...Y){return this.callbacks[q]||(this.callbacks[q]=[]),this.callbacks[q].push(...Y),this}off(q,Y){if(!this.callbacks[q])return null;const K=this.callbacks[q].slice(0);for(let G=0;G<K.length;G++)Y===K[G]&&this.callbacks[q].splice(G,1);return this}trigger(q){if(!this.callbacks[q.type])return null;const Y=[...this.callbacks[q.type]],K=[];for(let G=Y.length-1;G>=0;G--){const J=Y[G];try{J(q)}catch(Z){K.push(Z)}}return K.length&&console.error(`Draggable caught errors while triggering '${q.type}'`,K),this}}N.default=j},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(37),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(ye){for(var xe=1;xe<arguments.length;xe++){var le=arguments[xe];for(var be in le)Object.prototype.hasOwnProperty.call(le,be)&&(ye[be]=le[be])}return ye},U=B(2),q=B(12),Y=B(38),K=ee(Y),G=B(6),J=B(13),Z=B(14);function ee(ye){return ye&&ye.__esModule?ye:{default:ye}}const te=Symbol("onDragStart"),se=Symbol("onDragMove"),re=Symbol("onDragStop"),ne=Symbol("onDragPressure"),ce={"drag:start":ye=>`Picked up ${ye.source.textContent.trim()||ye.source.id||"draggable element"}`,"drag:stop":ye=>`Released ${ye.source.textContent.trim()||ye.source.id||"draggable element"}`},me={"container:dragging":"draggable-container--is-dragging","source:dragging":"draggable-source--is-dragging","source:placed":"draggable-source--placed","container:placed":"draggable-container--placed","body:dragging":"draggable--is-dragging","draggable:over":"draggable--over","container:over":"draggable-container--over","source:original":"draggable--original",mirror:"draggable-mirror"},ue=N.defaultOptions={draggable:".draggable-source",handle:null,delay:{},distance:0,placedTimeout:800,plugins:[],sensors:[],exclude:{plugins:[],sensors:[]}};class _e{constructor(xe=[document.body],le={}){if(xe instanceof NodeList||xe instanceof Array)this.containers=[...xe];else if(xe instanceof HTMLElement)this.containers=[xe];else throw new Error("Draggable containers are expected to be of type `NodeList`, `HTMLElement[]` or `HTMLElement`");this.options=j({},ue,le,{classes:j({},me,le.classes||{}),announcements:j({},ce,le.announcements||{}),exclude:{plugins:le.exclude&&le.exclude.plugins||[],sensors:le.exclude&&le.exclude.sensors||[]}}),this.emitter=new K.default,this.dragging=!1,this.plugins=[],this.sensors=[],this[te]=this[te].bind(this),this[se]=this[se].bind(this),this[re]=this[re].bind(this),this[ne]=this[ne].bind(this),document.addEventListener("drag:start",this[te],!0),document.addEventListener("drag:move",this[se],!0),document.addEventListener("drag:stop",this[re],!0),document.addEventListener("drag:pressure",this[ne],!0);const be=Object.values(_e.Plugins).filter(Ae=>!this.options.exclude.plugins.includes(Ae)),ve=Object.values(_e.Sensors).filter(Ae=>!this.options.exclude.sensors.includes(Ae));this.addPlugin(...be,...this.options.plugins),this.addSensor(...ve,...this.options.sensors);const we=new J.DraggableInitializedEvent({draggable:this});this.on("mirror:created",({mirror:Ae})=>this.mirror=Ae),this.on("mirror:destroy",()=>this.mirror=null),this.trigger(we)}destroy(){document.removeEventListener("drag:start",this[te],!0),document.removeEventListener("drag:move",this[se],!0),document.removeEventListener("drag:stop",this[re],!0),document.removeEventListener("drag:pressure",this[ne],!0);const xe=new J.DraggableDestroyEvent({draggable:this});this.trigger(xe),this.removePlugin(...this.plugins.map(le=>le.constructor)),this.removeSensor(...this.sensors.map(le=>le.constructor))}addPlugin(...xe){const le=xe.map(be=>new be(this));return le.forEach(be=>be.attach()),this.plugins=[...this.plugins,...le],this}removePlugin(...xe){return this.plugins.filter(be=>xe.includes(be.constructor)).forEach(be=>be.detach()),this.plugins=this.plugins.filter(be=>!xe.includes(be.constructor)),this}addSensor(...xe){const le=xe.map(be=>new be(this.containers,this.options));return le.forEach(be=>be.attach()),this.sensors=[...this.sensors,...le],this}removeSensor(...xe){return this.sensors.filter(be=>xe.includes(be.constructor)).forEach(be=>be.detach()),this.sensors=this.sensors.filter(be=>!xe.includes(be.constructor)),this}addContainer(...xe){return this.containers=[...this.containers,...xe],this.sensors.forEach(le=>le.addContainer(...xe)),this}removeContainer(...xe){return this.containers=this.containers.filter(le=>!xe.includes(le)),this.sensors.forEach(le=>le.removeContainer(...xe)),this}on(xe,...le){return this.emitter.on(xe,...le),this}off(xe,le){return this.emitter.off(xe,le),this}trigger(xe){return this.emitter.trigger(xe),this}getClassNameFor(xe){return this.getClassNamesFor(xe)[0]}getClassNamesFor(xe){const le=this.options.classes[xe];return le instanceof Array?le:typeof le=="string"||le instanceof String?[le]:[]}isDragging(){return!!this.dragging}getDraggableElements(){return this.containers.reduce((xe,le)=>[...xe,...this.getDraggableElementsForContainer(le)],[])}getDraggableElementsForContainer(xe){return[...xe.querySelectorAll(this.options.draggable)].filter(be=>be!==this.originalSource&&be!==this.mirror)}[te](xe){const le=fe(xe),{target:be,container:ve}=le;if(!this.containers.includes(ve))return;if(this.options.handle&&be&&!(0,U.closest)(be,this.options.handle)){le.cancel();return}if(this.originalSource=(0,U.closest)(be,this.options.draggable),this.sourceContainer=ve,!this.originalSource){le.cancel();return}this.lastPlacedSource&&this.lastPlacedContainer&&(clearTimeout(this.placedTimeoutID),this.lastPlacedSource.classList.remove(...this.getClassNamesFor("source:placed")),this.lastPlacedContainer.classList.remove(...this.getClassNamesFor("container:placed"))),this.source=this.originalSource.cloneNode(!0),this.originalSource.parentNode.insertBefore(this.source,this.originalSource),this.originalSource.style.display="none";const we=new Z.DragStartEvent({source:this.source,originalSource:this.originalSource,sourceContainer:ve,sensorEvent:le});if(this.trigger(we),this.dragging=!we.canceled(),we.canceled()){this.source.parentNode.removeChild(this.source),this.originalSource.style.display=null;return}this.originalSource.classList.add(...this.getClassNamesFor("source:original")),this.source.classList.add(...this.getClassNamesFor("source:dragging")),this.sourceContainer.classList.add(...this.getClassNamesFor("container:dragging")),document.body.classList.add(...this.getClassNamesFor("body:dragging")),ge(document.body,"none"),requestAnimationFrame(()=>{const Se=fe(xe).clone({target:this.source});this[se](j({},xe,{detail:Se}))})}[se](xe){if(!this.dragging)return;const le=fe(xe),{container:be}=le;let ve=le.target;const we=new Z.DragMoveEvent({source:this.source,originalSource:this.originalSource,sourceContainer:be,sensorEvent:le});this.trigger(we),we.canceled()&&le.cancel(),ve=(0,U.closest)(ve,this.options.draggable);const Ae=(0,U.closest)(le.target,this.containers),Se=le.overContainer||Ae,Pe=this.currentOverContainer&&Se!==this.currentOverContainer,Me=this.currentOver&&ve!==this.currentOver,Be=Se&&this.currentOverContainer!==Se,ze=Ae&&ve&&this.currentOver!==ve;if(Me){const Ze=new Z.DragOutEvent({source:this.source,originalSource:this.originalSource,sourceContainer:be,sensorEvent:le,over:this.currentOver,overContainer:this.currentOverContainer});this.currentOver.classList.remove(...this.getClassNamesFor("draggable:over")),this.currentOver=null,this.trigger(Ze)}if(Pe){const Ze=new Z.DragOutContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:be,sensorEvent:le,overContainer:this.currentOverContainer});this.currentOverContainer.classList.remove(...this.getClassNamesFor("container:over")),this.currentOverContainer=null,this.trigger(Ze)}if(Be){Se.classList.add(...this.getClassNamesFor("container:over"));const Ze=new Z.DragOverContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:be,sensorEvent:le,overContainer:Se});this.currentOverContainer=Se,this.trigger(Ze)}if(ze){ve.classList.add(...this.getClassNamesFor("draggable:over"));const Ze=new Z.DragOverEvent({source:this.source,originalSource:this.originalSource,sourceContainer:be,sensorEvent:le,overContainer:Se,over:ve});this.currentOver=ve,this.trigger(Ze)}}[re](xe){if(!this.dragging)return;this.dragging=!1;const le=new Z.DragStopEvent({source:this.source,originalSource:this.originalSource,sensorEvent:xe.sensorEvent,sourceContainer:this.sourceContainer});this.trigger(le),this.source.parentNode.insertBefore(this.originalSource,this.source),this.source.parentNode.removeChild(this.source),this.originalSource.style.display="",this.source.classList.remove(...this.getClassNamesFor("source:dragging")),this.originalSource.classList.remove(...this.getClassNamesFor("source:original")),this.originalSource.classList.add(...this.getClassNamesFor("source:placed")),this.sourceContainer.classList.add(...this.getClassNamesFor("container:placed")),this.sourceContainer.classList.remove(...this.getClassNamesFor("container:dragging")),document.body.classList.remove(...this.getClassNamesFor("body:dragging")),ge(document.body,""),this.currentOver&&this.currentOver.classList.remove(...this.getClassNamesFor("draggable:over")),this.currentOverContainer&&this.currentOverContainer.classList.remove(...this.getClassNamesFor("container:over")),this.lastPlacedSource=this.originalSource,this.lastPlacedContainer=this.sourceContainer,this.placedTimeoutID=setTimeout(()=>{this.lastPlacedSource&&this.lastPlacedSource.classList.remove(...this.getClassNamesFor("source:placed")),this.lastPlacedContainer&&this.lastPlacedContainer.classList.remove(...this.getClassNamesFor("container:placed")),this.lastPlacedSource=null,this.lastPlacedContainer=null},this.options.placedTimeout);const be=new Z.DragStoppedEvent({source:this.source,originalSource:this.originalSource,sensorEvent:xe.sensorEvent,sourceContainer:this.sourceContainer});this.trigger(be),this.source=null,this.originalSource=null,this.currentOverContainer=null,this.currentOver=null,this.sourceContainer=null}[ne](xe){if(!this.dragging)return;const le=fe(xe),be=this.source||(0,U.closest)(le.originalEvent.target,this.options.draggable),ve=new Z.DragPressureEvent({sensorEvent:le,source:be,pressure:le.pressure});this.trigger(ve)}}N.default=_e,_e.Plugins={Announcement:q.Announcement,Focusable:q.Focusable,Mirror:q.Mirror,Scrollable:q.Scrollable},_e.Sensors={MouseSensor:G.MouseSensor,TouchSensor:G.TouchSensor};function fe(ye){return ye.detail}function ge(ye,xe){ye.style.webkitUserSelect=xe,ye.style.mozUserSelect=xe,ye.style.msUserSelect=xe,ye.style.oUserSelect=xe,ye.style.userSelect=xe}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(4),U=Y(j),q=B(3);function Y(ne){return ne&&ne.__esModule?ne:{default:ne}}const K=Symbol("onMouseForceWillBegin"),G=Symbol("onMouseForceDown"),J=Symbol("onMouseDown"),Z=Symbol("onMouseForceChange"),ee=Symbol("onMouseMove"),te=Symbol("onMouseUp"),se=Symbol("onMouseForceGlobalChange");class re extends U.default{constructor(ce=[],me={}){super(ce,me),this.mightDrag=!1,this[K]=this[K].bind(this),this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this)}attach(){for(const ce of this.containers)ce.addEventListener("webkitmouseforcewillbegin",this[K],!1),ce.addEventListener("webkitmouseforcedown",this[G],!1),ce.addEventListener("mousedown",this[J],!0),ce.addEventListener("webkitmouseforcechanged",this[Z],!1);document.addEventListener("mousemove",this[ee]),document.addEventListener("mouseup",this[te])}detach(){for(const ce of this.containers)ce.removeEventListener("webkitmouseforcewillbegin",this[K],!1),ce.removeEventListener("webkitmouseforcedown",this[G],!1),ce.removeEventListener("mousedown",this[J],!0),ce.removeEventListener("webkitmouseforcechanged",this[Z],!1);document.removeEventListener("mousemove",this[ee]),document.removeEventListener("mouseup",this[te])}[K](ce){ce.preventDefault(),this.mightDrag=!0}[G](ce){if(this.dragging)return;const me=document.elementFromPoint(ce.clientX,ce.clientY),ue=ce.currentTarget,_e=new q.DragStartSensorEvent({clientX:ce.clientX,clientY:ce.clientY,target:me,container:ue,originalEvent:ce});this.trigger(ue,_e),this.currentContainer=ue,this.dragging=!_e.canceled(),this.mightDrag=!1}[te](ce){if(!this.dragging)return;const me=new q.DragStopSensorEvent({clientX:ce.clientX,clientY:ce.clientY,target:null,container:this.currentContainer,originalEvent:ce});this.trigger(this.currentContainer,me),this.currentContainer=null,this.dragging=!1,this.mightDrag=!1}[J](ce){this.mightDrag&&(ce.stopPropagation(),ce.stopImmediatePropagation(),ce.preventDefault())}[ee](ce){if(!this.dragging)return;const me=document.elementFromPoint(ce.clientX,ce.clientY),ue=new q.DragMoveSensorEvent({clientX:ce.clientX,clientY:ce.clientY,target:me,container:this.currentContainer,originalEvent:ce});this.trigger(this.currentContainer,ue)}[Z](ce){if(this.dragging)return;const me=ce.target,ue=ce.currentTarget,_e=new q.DragPressureSensorEvent({pressure:ce.webkitForce,clientX:ce.clientX,clientY:ce.clientY,target:me,container:ue,originalEvent:ce});this.trigger(ue,_e)}[se](ce){if(!this.dragging)return;const me=ce.target,ue=new q.DragPressureSensorEvent({pressure:ce.webkitForce,clientX:ce.clientX,clientY:ce.clientY,target:me,container:this.currentContainer,originalEvent:ce});this.trigger(this.currentContainer,ue)}}N.default=re},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(40),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(2),U=B(4),q=K(U),Y=B(3);function K(ce){return ce&&ce.__esModule?ce:{default:ce}}const G=Symbol("onMouseDown"),J=Symbol("onMouseUp"),Z=Symbol("onDragStart"),ee=Symbol("onDragOver"),te=Symbol("onDragEnd"),se=Symbol("onDrop"),re=Symbol("reset");class ne extends q.default{constructor(me=[],ue={}){super(me,ue),this.mouseDownTimeout=null,this.draggableElement=null,this.nativeDraggableElement=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this),this[se]=this[se].bind(this)}attach(){document.addEventListener("mousedown",this[G],!0)}detach(){document.removeEventListener("mousedown",this[G],!0)}[Z](me){me.dataTransfer.setData("text",""),me.dataTransfer.effectAllowed=this.options.type;const ue=document.elementFromPoint(me.clientX,me.clientY);if(this.currentContainer=(0,j.closest)(me.target,this.containers),!this.currentContainer)return;const _e=new Y.DragStartSensorEvent({clientX:me.clientX,clientY:me.clientY,target:ue,container:this.currentContainer,originalEvent:me});setTimeout(()=>{this.trigger(this.currentContainer,_e),_e.canceled()?this.dragging=!1:this.dragging=!0},0)}[ee](me){if(!this.dragging)return;const ue=document.elementFromPoint(me.clientX,me.clientY),_e=this.currentContainer,fe=new Y.DragMoveSensorEvent({clientX:me.clientX,clientY:me.clientY,target:ue,container:_e,originalEvent:me});this.trigger(_e,fe),fe.canceled()||(me.preventDefault(),me.dataTransfer.dropEffect=this.options.type)}[te](me){if(!this.dragging)return;document.removeEventListener("mouseup",this[J],!0);const ue=document.elementFromPoint(me.clientX,me.clientY),_e=this.currentContainer,fe=new Y.DragStopSensorEvent({clientX:me.clientX,clientY:me.clientY,target:ue,container:_e,originalEvent:me});this.trigger(_e,fe),this.dragging=!1,this.startEvent=null,this[re]()}[se](me){me.preventDefault()}[G](me){if(me.target&&(me.target.form||me.target.contenteditable))return;const ue=(0,j.closest)(me.target,fe=>fe.draggable);ue&&(ue.draggable=!1,this.nativeDraggableElement=ue),document.addEventListener("mouseup",this[J],!0),document.addEventListener("dragstart",this[Z],!1),document.addEventListener("dragover",this[ee],!1),document.addEventListener("dragend",this[te],!1),document.addEventListener("drop",this[se],!1);const _e=(0,j.closest)(me.target,this.options.draggable);_e&&(this.startEvent=me,this.mouseDownTimeout=setTimeout(()=>{_e.draggable=!0,this.draggableElement=_e},this.delay.drag))}[J](){this[re]()}[re](){clearTimeout(this.mouseDownTimeout),document.removeEventListener("mouseup",this[J],!0),document.removeEventListener("dragstart",this[Z],!1),document.removeEventListener("dragover",this[ee],!1),document.removeEventListener("dragend",this[te],!1),document.removeEventListener("drop",this[se],!1),this.nativeDraggableElement&&(this.nativeDraggableElement.draggable=!0,this.nativeDraggableElement=null),this.draggableElement&&(this.draggableElement.draggable=!1,this.draggableElement=null)}}N.default=ne},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(42),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(2),U=B(4),q=K(U),Y=B(3);function K(ce){return ce&&ce.__esModule?ce:{default:ce}}const G=Symbol("onTouchStart"),J=Symbol("onTouchEnd"),Z=Symbol("onTouchMove"),ee=Symbol("startDrag"),te=Symbol("onDistanceChange");let se=!1;window.addEventListener("touchmove",ce=>{se&&ce.preventDefault()},{passive:!1});class re extends q.default{constructor(me=[],ue={}){super(me,ue),this.currentScrollableParent=null,this.tapTimeout=null,this.touchMoved=!1,this.pageX=null,this.pageY=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this)}attach(){document.addEventListener("touchstart",this[G])}detach(){document.removeEventListener("touchstart",this[G])}[G](me){const ue=(0,j.closest)(me.target,this.containers);if(!ue)return;const{distance:_e=0}=this.options,{delay:fe}=this,{pageX:ge,pageY:ye}=(0,j.touchCoords)(me);Object.assign(this,{pageX:ge,pageY:ye}),this.onTouchStartAt=Date.now(),this.startEvent=me,this.currentContainer=ue,document.addEventListener("touchend",this[J]),document.addEventListener("touchcancel",this[J]),document.addEventListener("touchmove",this[te]),ue.addEventListener("contextmenu",ne),_e&&(se=!0),this.tapTimeout=window.setTimeout(()=>{this[te]({touches:[{pageX:this.pageX,pageY:this.pageY}]})},fe.touch)}[ee](){const me=this.startEvent,ue=this.currentContainer,_e=(0,j.touchCoords)(me),fe=new Y.DragStartSensorEvent({clientX:_e.pageX,clientY:_e.pageY,target:me.target,container:ue,originalEvent:me});this.trigger(this.currentContainer,fe),this.dragging=!fe.canceled(),this.dragging&&document.addEventListener("touchmove",this[Z]),se=this.dragging}[te](me){const{distance:ue}=this.options,{startEvent:_e,delay:fe}=this,ge=(0,j.touchCoords)(_e),ye=(0,j.touchCoords)(me),xe=Date.now()-this.onTouchStartAt,le=(0,j.distance)(ge.pageX,ge.pageY,ye.pageX,ye.pageY);Object.assign(this,ye),clearTimeout(this.tapTimeout),xe<fe.touch?document.removeEventListener("touchmove",this[te]):le>=ue&&(document.removeEventListener("touchmove",this[te]),this[ee]())}[Z](me){if(!this.dragging)return;const{pageX:ue,pageY:_e}=(0,j.touchCoords)(me),fe=document.elementFromPoint(ue-window.scrollX,_e-window.scrollY),ge=new Y.DragMoveSensorEvent({clientX:ue,clientY:_e,target:fe,container:this.currentContainer,originalEvent:me});this.trigger(this.currentContainer,ge)}[J](me){if(clearTimeout(this.tapTimeout),se=!1,document.removeEventListener("touchend",this[J]),document.removeEventListener("touchcancel",this[J]),document.removeEventListener("touchmove",this[te]),this.currentContainer&&this.currentContainer.removeEventListener("contextmenu",ne),!this.dragging)return;document.removeEventListener("touchmove",this[Z]);const{pageX:ue,pageY:_e}=(0,j.touchCoords)(me),fe=document.elementFromPoint(ue-window.scrollX,_e-window.scrollY);me.preventDefault();const ge=new Y.DragStopSensorEvent({clientX:ue,clientY:_e,target:fe,container:this.currentContainer,originalEvent:me});this.trigger(this.currentContainer,ge),this.currentContainer=null,this.dragging=!1,this.startEvent=null}}N.default=re;function ne(ce){ce.preventDefault(),ce.stopPropagation()}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(44),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DragPressureSensorEvent=N.DragStopSensorEvent=N.DragMoveSensorEvent=N.DragStartSensorEvent=N.SensorEvent=void 0;var j=B(1),U=q(j);function q(ee){return ee&&ee.__esModule?ee:{default:ee}}class Y extends U.default{get originalEvent(){return this.data.originalEvent}get clientX(){return this.data.clientX}get clientY(){return this.data.clientY}get target(){return this.data.target}get container(){return this.data.container}get pressure(){return this.data.pressure}}N.SensorEvent=Y;class K extends Y{}N.DragStartSensorEvent=K,K.type="drag:start";class G extends Y{}N.DragMoveSensorEvent=G,G.type="drag:move";class J extends Y{}N.DragStopSensorEvent=J,J.type="drag:stop";class Z extends Y{}N.DragPressureSensorEvent=Z,Z.type="drag:pressure"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(2),U=B(4),q=K(U),Y=B(3);function K(ce){return ce&&ce.__esModule?ce:{default:ce}}const G=Symbol("onContextMenuWhileDragging"),J=Symbol("onMouseDown"),Z=Symbol("onMouseMove"),ee=Symbol("onMouseUp"),te=Symbol("startDrag"),se=Symbol("onDistanceChange");class re extends q.default{constructor(me=[],ue={}){super(me,ue),this.mouseDownTimeout=null,this.pageX=null,this.pageY=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this),this[se]=this[se].bind(this)}attach(){document.addEventListener("mousedown",this[J],!0)}detach(){document.removeEventListener("mousedown",this[J],!0)}[J](me){if(me.button!==0||me.ctrlKey||me.metaKey)return;const ue=(0,j.closest)(me.target,this.containers);if(!ue)return;const{delay:_e}=this,{pageX:fe,pageY:ge}=me;Object.assign(this,{pageX:fe,pageY:ge}),this.onMouseDownAt=Date.now(),this.startEvent=me,this.currentContainer=ue,document.addEventListener("mouseup",this[ee]),document.addEventListener("dragstart",ne),document.addEventListener("mousemove",this[se]),this.mouseDownTimeout=window.setTimeout(()=>{this[se]({pageX:this.pageX,pageY:this.pageY})},_e.mouse)}[te](){const me=this.startEvent,ue=this.currentContainer,_e=new Y.DragStartSensorEvent({clientX:me.clientX,clientY:me.clientY,target:me.target,container:ue,originalEvent:me});this.trigger(this.currentContainer,_e),this.dragging=!_e.canceled(),this.dragging&&(document.addEventListener("contextmenu",this[G],!0),document.addEventListener("mousemove",this[Z]))}[se](me){const{pageX:ue,pageY:_e}=me,{distance:fe}=this.options,{startEvent:ge,delay:ye}=this;if(Object.assign(this,{pageX:ue,pageY:_e}),!this.currentContainer)return;const xe=Date.now()-this.onMouseDownAt,le=(0,j.distance)(ge.pageX,ge.pageY,ue,_e)||0;clearTimeout(this.mouseDownTimeout),xe<ye.mouse?document.removeEventListener("mousemove",this[se]):le>=fe&&(document.removeEventListener("mousemove",this[se]),this[te]())}[Z](me){if(!this.dragging)return;const ue=document.elementFromPoint(me.clientX,me.clientY),_e=new Y.DragMoveSensorEvent({clientX:me.clientX,clientY:me.clientY,target:ue,container:this.currentContainer,originalEvent:me});this.trigger(this.currentContainer,_e)}[ee](me){if(clearTimeout(this.mouseDownTimeout),me.button!==0||(document.removeEventListener("mouseup",this[ee]),document.removeEventListener("dragstart",ne),document.removeEventListener("mousemove",this[se]),!this.dragging))return;const ue=document.elementFromPoint(me.clientX,me.clientY),_e=new Y.DragStopSensorEvent({clientX:me.clientX,clientY:me.clientY,target:ue,container:this.currentContainer,originalEvent:me});this.trigger(this.currentContainer,_e),document.removeEventListener("contextmenu",this[G],!0),document.removeEventListener("mousemove",this[Z]),this.currentContainer=null,this.dragging=!1,this.startEvent=null}[G](me){me.preventDefault()}}N.default=re;function ne(ce){ce.preventDefault()}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(47),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(K){for(var G=1;G<arguments.length;G++){var J=arguments[G];for(var Z in J)Object.prototype.hasOwnProperty.call(J,Z)&&(K[Z]=J[Z])}return K};const U={mouse:0,drag:0,touch:100};class q{constructor(G=[],J={}){this.containers=[...G],this.options=j({},J),this.dragging=!1,this.currentContainer=null,this.startEvent=null,this.delay=Y(J.delay)}attach(){return this}detach(){return this}addContainer(...G){this.containers=[...this.containers,...G]}removeContainer(...G){this.containers=this.containers.filter(J=>!G.includes(J))}trigger(G,J){const Z=document.createEvent("Event");return Z.detail=J,Z.initEvent(J.type,!0,!0),G.dispatchEvent(Z),this.lastEvent=J,J}}N.default=q;function Y(K){const G={};if(K===void 0)return j({},U);if(typeof K=="number"){for(const J in U)U.hasOwnProperty(J)&&(G[J]=K);return G}for(const J in U)U.hasOwnProperty(J)&&(K[J]===void 0?G[J]=U[J]:G[J]=K[J]);return G}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=j;function j(U={}){const{touches:q,changedTouches:Y}=U;return q&&q[0]||Y&&Y[0]}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(50),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=j;function j(U,q,Y,K){return Math.sqrt((Y-U)**2+(K-q)**2)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(52),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=j;function j(U){return requestAnimationFrame(()=>{requestAnimationFrame(U)})}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(54),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.default=U;const j=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector;function U(q,Y){if(!q)return null;const K=Y,G=Y,J=Y,Z=Y,ee=typeof Y=="string",te=typeof Y=="function",se=Y instanceof NodeList||Y instanceof Array,re=Y instanceof HTMLElement;function ne(me){return me&&(ee?j.call(me,K):se?[...J].includes(me):re?Z===me:te?G(me):null)}let ce=q;do{if(ce=ce.correspondingUseElement||ce.correspondingElement||ce,ne(ce))return ce;ce=ce.parentNode}while(ce&&ce!==document.body&&ce!==document);return null}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(56),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=N.scroll=N.onDragStop=N.onDragMove=N.onDragStart=void 0;var j=Object.assign||function(ue){for(var _e=1;_e<arguments.length;_e++){var fe=arguments[_e];for(var ge in fe)Object.prototype.hasOwnProperty.call(fe,ge)&&(ue[ge]=fe[ge])}return ue},U=B(0),q=K(U),Y=B(2);function K(ue){return ue&&ue.__esModule?ue:{default:ue}}const G=N.onDragStart=Symbol("onDragStart"),J=N.onDragMove=Symbol("onDragMove"),Z=N.onDragStop=Symbol("onDragStop"),ee=N.scroll=Symbol("scroll"),te=N.defaultOptions={speed:6,sensitivity:50,scrollableElements:[]};class se extends q.default{constructor(_e){super(_e),this.options=j({},te,this.getOptions()),this.currentMousePosition=null,this.scrollAnimationFrame=null,this.scrollableElement=null,this.findScrollableElementFrame=null,this[G]=this[G].bind(this),this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this)}attach(){this.draggable.on("drag:start",this[G]).on("drag:move",this[J]).on("drag:stop",this[Z])}detach(){this.draggable.off("drag:start",this[G]).off("drag:move",this[J]).off("drag:stop",this[Z])}getOptions(){return this.draggable.options.scrollable||{}}getScrollableElement(_e){return this.hasDefinedScrollableElements()?(0,Y.closest)(_e,this.options.scrollableElements)||document.documentElement:ce(_e)}hasDefinedScrollableElements(){return this.options.scrollableElements.length!==0}[G](_e){this.findScrollableElementFrame=requestAnimationFrame(()=>{this.scrollableElement=this.getScrollableElement(_e.source)})}[J](_e){if(this.findScrollableElementFrame=requestAnimationFrame(()=>{this.scrollableElement=this.getScrollableElement(_e.sensorEvent.target)}),!this.scrollableElement)return;const fe=_e.sensorEvent,ge={x:0,y:0};"ontouchstart"in window&&(ge.y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ge.x=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),this.currentMousePosition={clientX:fe.clientX-ge.x,clientY:fe.clientY-ge.y},this.scrollAnimationFrame=requestAnimationFrame(this[ee])}[Z](){cancelAnimationFrame(this.scrollAnimationFrame),cancelAnimationFrame(this.findScrollableElementFrame),this.scrollableElement=null,this.scrollAnimationFrame=null,this.findScrollableElementFrame=null,this.currentMousePosition=null}[ee](){if(!this.scrollableElement||!this.currentMousePosition)return;cancelAnimationFrame(this.scrollAnimationFrame);const{speed:_e,sensitivity:fe}=this.options,ge=this.scrollableElement.getBoundingClientRect(),ye=ge.bottom>window.innerHeight,le=ge.top<0||ye,be=me(),ve=this.scrollableElement,we=this.currentMousePosition.clientX,Ae=this.currentMousePosition.clientY;if(ve!==document.body&&ve!==document.documentElement&&!le){const{offsetHeight:Se,offsetWidth:Pe}=ve;ge.top+Se-Ae<fe?ve.scrollTop+=_e:Ae-ge.top<fe&&(ve.scrollTop-=_e),ge.left+Pe-we<fe?ve.scrollLeft+=_e:we-ge.left<fe&&(ve.scrollLeft-=_e)}else{const{innerHeight:Se,innerWidth:Pe}=window;Ae<fe?be.scrollTop-=_e:Se-Ae<fe&&(be.scrollTop+=_e),we<fe?be.scrollLeft-=_e:Pe-we<fe&&(be.scrollLeft+=_e)}this.scrollAnimationFrame=requestAnimationFrame(this[ee])}}N.default=se;function re(ue){const _e=/(auto|scroll)/,fe=getComputedStyle(ue,null),ge=fe.getPropertyValue("overflow")+fe.getPropertyValue("overflow-y")+fe.getPropertyValue("overflow-x");return _e.test(ge)}function ne(ue){return getComputedStyle(ue).getPropertyValue("position")==="static"}function ce(ue){if(!ue)return me();const _e=getComputedStyle(ue).getPropertyValue("position"),fe=_e==="absolute",ge=(0,Y.closest)(ue,ye=>fe&&ne(ye)?!1:re(ye));return _e==="fixed"||!ge?me():ge}function me(){return document.scrollingElement||document.documentElement}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(58),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.MirrorDestroyEvent=N.MirrorMoveEvent=N.MirrorAttachedEvent=N.MirrorCreatedEvent=N.MirrorCreateEvent=N.MirrorEvent=void 0;var j=B(1),U=q(j);function q(te){return te&&te.__esModule?te:{default:te}}class Y extends U.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get dragEvent(){return this.data.dragEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}N.MirrorEvent=Y;class K extends Y{}N.MirrorCreateEvent=K,K.type="mirror:create";class G extends Y{get mirror(){return this.data.mirror}}N.MirrorCreatedEvent=G,G.type="mirror:created";class J extends Y{get mirror(){return this.data.mirror}}N.MirrorAttachedEvent=J,J.type="mirror:attached";class Z extends Y{get mirror(){return this.data.mirror}get passedThreshX(){return this.data.passedThreshX}get passedThreshY(){return this.data.passedThreshY}}N.MirrorMoveEvent=Z,Z.type="mirror:move",Z.cancelable=!0;class ee extends Y{get mirror(){return this.data.mirror}}N.MirrorDestroyEvent=ee,ee.type="mirror:destroy",ee.cancelable=!0},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(60);Object.keys(j).forEach(function(U){U==="default"||U==="__esModule"||Object.defineProperty(N,U,{enumerable:!0,get:function(){return j[U]}})})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=N.getAppendableContainer=N.onScroll=N.onMirrorMove=N.onMirrorCreated=N.onDragStop=N.onDragMove=N.onDragStart=void 0;var j=Object.assign||function(ve){for(var we=1;we<arguments.length;we++){var Ae=arguments[we];for(var Se in Ae)Object.prototype.hasOwnProperty.call(Ae,Se)&&(ve[Se]=Ae[Se])}return ve},U=B(0),q=K(U),Y=B(61);function K(ve){return ve&&ve.__esModule?ve:{default:ve}}function G(ve,we){var Ae={};for(var Se in ve)we.indexOf(Se)>=0||Object.prototype.hasOwnProperty.call(ve,Se)&&(Ae[Se]=ve[Se]);return Ae}const J=N.onDragStart=Symbol("onDragStart"),Z=N.onDragMove=Symbol("onDragMove"),ee=N.onDragStop=Symbol("onDragStop"),te=N.onMirrorCreated=Symbol("onMirrorCreated"),se=N.onMirrorMove=Symbol("onMirrorMove"),re=N.onScroll=Symbol("onScroll"),ne=N.getAppendableContainer=Symbol("getAppendableContainer"),ce=N.defaultOptions={constrainDimensions:!1,xAxis:!0,yAxis:!0,cursorOffsetX:null,cursorOffsetY:null,thresholdX:null,thresholdY:null};class me extends q.default{constructor(we){super(we),this.options=j({},ce,this.getOptions()),this.scrollOffset={x:0,y:0},this.initialScrollOffset={x:window.scrollX,y:window.scrollY},this[J]=this[J].bind(this),this[Z]=this[Z].bind(this),this[ee]=this[ee].bind(this),this[te]=this[te].bind(this),this[se]=this[se].bind(this),this[re]=this[re].bind(this)}attach(){this.draggable.on("drag:start",this[J]).on("drag:move",this[Z]).on("drag:stop",this[ee]).on("mirror:created",this[te]).on("mirror:move",this[se])}detach(){this.draggable.off("drag:start",this[J]).off("drag:move",this[Z]).off("drag:stop",this[ee]).off("mirror:created",this[te]).off("mirror:move",this[se])}getOptions(){return this.draggable.options.mirror||{}}[J](we){if(we.canceled())return;"ontouchstart"in window&&document.addEventListener("scroll",this[re],!0),this.initialScrollOffset={x:window.scrollX,y:window.scrollY};const{source:Ae,originalSource:Se,sourceContainer:Pe,sensorEvent:Me}=we;this.lastMirrorMovedClient={x:Me.clientX,y:Me.clientY};const Be=new Y.MirrorCreateEvent({source:Ae,originalSource:Se,sourceContainer:Pe,sensorEvent:Me,dragEvent:we});if(this.draggable.trigger(Be),be(Me)||Be.canceled())return;const ze=this[ne](Ae)||Pe;this.mirror=Ae.cloneNode(!0);const Ze=new Y.MirrorCreatedEvent({source:Ae,originalSource:Se,sourceContainer:Pe,sensorEvent:Me,dragEvent:we,mirror:this.mirror}),ft=new Y.MirrorAttachedEvent({source:Ae,originalSource:Se,sourceContainer:Pe,sensorEvent:Me,dragEvent:we,mirror:this.mirror});this.draggable.trigger(Ze),ze.appendChild(this.mirror),this.draggable.trigger(ft)}[Z](we){if(!this.mirror||we.canceled())return;const{source:Ae,originalSource:Se,sourceContainer:Pe,sensorEvent:Me}=we;let Be=!0,ze=!0;if(this.options.thresholdX||this.options.thresholdY){const{x:ft,y:Ye}=this.lastMirrorMovedClient;if(Math.abs(ft-Me.clientX)<this.options.thresholdX?Be=!1:this.lastMirrorMovedClient.x=Me.clientX,Math.abs(Ye-Me.clientY)<this.options.thresholdY?ze=!1:this.lastMirrorMovedClient.y=Me.clientY,!Be&&!ze)return}const Ze=new Y.MirrorMoveEvent({source:Ae,originalSource:Se,sourceContainer:Pe,sensorEvent:Me,dragEvent:we,mirror:this.mirror,passedThreshX:Be,passedThreshY:ze});this.draggable.trigger(Ze)}[ee](we){if("ontouchstart"in window&&document.removeEventListener("scroll",this[re],!0),this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},!this.mirror)return;const{source:Ae,sourceContainer:Se,sensorEvent:Pe}=we,Me=new Y.MirrorDestroyEvent({source:Ae,mirror:this.mirror,sourceContainer:Se,sensorEvent:Pe,dragEvent:we});this.draggable.trigger(Me),Me.canceled()||this.mirror.parentNode.removeChild(this.mirror)}[re](){this.scrollOffset={x:window.scrollX-this.initialScrollOffset.x,y:window.scrollY-this.initialScrollOffset.y}}[te]({mirror:we,source:Ae,sensorEvent:Se}){const Pe=this.draggable.getClassNamesFor("mirror"),Me=ze=>{let{mirrorOffset:Ze,initialX:ft,initialY:Ye}=ze,Ve=G(ze,["mirrorOffset","initialX","initialY"]);return this.mirrorOffset=Ze,this.initialX=ft,this.initialY=Ye,this.lastMovedX=ft,this.lastMovedY=Ye,j({mirrorOffset:Ze,initialX:ft,initialY:Ye},Ve)};we.style.display="none";const Be={mirror:we,source:Ae,sensorEvent:Se,mirrorClasses:Pe,scrollOffset:this.scrollOffset,options:this.options,passedThreshX:!0,passedThreshY:!0};return Promise.resolve(Be).then(ue).then(_e).then(fe).then(ge).then(xe({initial:!0})).then(ye).then(Me)}[se](we){if(we.canceled())return null;const Ae=Pe=>{let{lastMovedX:Me,lastMovedY:Be}=Pe,ze=G(Pe,["lastMovedX","lastMovedY"]);return this.lastMovedX=Me,this.lastMovedY=Be,j({lastMovedX:Me,lastMovedY:Be},ze)},Se={mirror:we.mirror,sensorEvent:we.sensorEvent,mirrorOffset:this.mirrorOffset,options:this.options,initialX:this.initialX,initialY:this.initialY,scrollOffset:this.scrollOffset,passedThreshX:we.passedThreshX,passedThreshY:we.passedThreshY,lastMovedX:this.lastMovedX,lastMovedY:this.lastMovedY};return Promise.resolve(Se).then(xe({raf:!0})).then(Ae)}[ne](we){const Ae=this.options.appendTo;return typeof Ae=="string"?document.querySelector(Ae):Ae instanceof HTMLElement?Ae:typeof Ae=="function"?Ae(we):we.parentNode}}N.default=me;function ue(ve){let{source:we}=ve,Ae=G(ve,["source"]);return le(Se=>{const Pe=we.getBoundingClientRect();Se(j({source:we,sourceRect:Pe},Ae))})}function _e(ve){let{sensorEvent:we,sourceRect:Ae,options:Se}=ve,Pe=G(ve,["sensorEvent","sourceRect","options"]);return le(Me=>{const Be=Se.cursorOffsetY===null?we.clientY-Ae.top:Se.cursorOffsetY,ze=Se.cursorOffsetX===null?we.clientX-Ae.left:Se.cursorOffsetX;Me(j({sensorEvent:we,sourceRect:Ae,mirrorOffset:{top:Be,left:ze},options:Se},Pe))})}function fe(ve){let{mirror:we,source:Ae,options:Se}=ve,Pe=G(ve,["mirror","source","options"]);return le(Me=>{let Be,ze;if(Se.constrainDimensions){const Ze=getComputedStyle(Ae);Be=Ze.getPropertyValue("height"),ze=Ze.getPropertyValue("width")}we.style.display=null,we.style.position="fixed",we.style.pointerEvents="none",we.style.top=0,we.style.left=0,we.style.margin=0,Se.constrainDimensions&&(we.style.height=Be,we.style.width=ze),Me(j({mirror:we,source:Ae,options:Se},Pe))})}function ge(ve){let{mirror:we,mirrorClasses:Ae}=ve,Se=G(ve,["mirror","mirrorClasses"]);return le(Pe=>{we.classList.add(...Ae),Pe(j({mirror:we,mirrorClasses:Ae},Se))})}function ye(ve){let{mirror:we}=ve,Ae=G(ve,["mirror"]);return le(Se=>{we.removeAttribute("id"),delete we.id,Se(j({mirror:we},Ae))})}function xe({withFrame:ve=!1,initial:we=!1}={}){return Ae=>{let{mirror:Se,sensorEvent:Pe,mirrorOffset:Me,initialY:Be,initialX:ze,scrollOffset:Ze,options:ft,passedThreshX:Ye,passedThreshY:Ve,lastMovedX:Dt,lastMovedY:Nt}=Ae,Vt=G(Ae,["mirror","sensorEvent","mirrorOffset","initialY","initialX","scrollOffset","options","passedThreshX","passedThreshY","lastMovedX","lastMovedY"]);return le(Wt=>{const Gt=j({mirror:Se,sensorEvent:Pe,mirrorOffset:Me,options:ft},Vt);if(Me){const tn=Ye?Math.round((Pe.clientX-Me.left-Ze.x)/(ft.thresholdX||1))*(ft.thresholdX||1):Math.round(Dt),Qt=Ve?Math.round((Pe.clientY-Me.top-Ze.y)/(ft.thresholdY||1))*(ft.thresholdY||1):Math.round(Nt);ft.xAxis&&ft.yAxis||we?Se.style.transform=`translate3d(${tn}px, ${Qt}px, 0)`:ft.xAxis&&!ft.yAxis?Se.style.transform=`translate3d(${tn}px, ${Be}px, 0)`:ft.yAxis&&!ft.xAxis&&(Se.style.transform=`translate3d(${ze}px, ${Qt}px, 0)`),we&&(Gt.initialX=tn,Gt.initialY=Qt),Gt.lastMovedX=tn,Gt.lastMovedY=Qt}Wt(Gt)},{frame:ve})}}function le(ve,{raf:we=!1}={}){return new Promise((Ae,Se)=>{we?requestAnimationFrame(()=>{ve(Ae,Se)}):ve(Ae,Se)})}function be(ve){return/^drag/.test(ve.originalEvent.type)}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(62),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(re){for(var ne=1;ne<arguments.length;ne++){var ce=arguments[ne];for(var me in ce)Object.prototype.hasOwnProperty.call(ce,me)&&(re[me]=ce[me])}return re},U=B(0),q=Y(U);function Y(re){return re&&re.__esModule?re:{default:re}}const K=Symbol("onInitialize"),G=Symbol("onDestroy"),J={};class Z extends q.default{constructor(ne){super(ne),this.options=j({},J,this.getOptions()),this[K]=this[K].bind(this),this[G]=this[G].bind(this)}attach(){this.draggable.on("draggable:initialize",this[K]).on("draggable:destroy",this[G])}detach(){this.draggable.off("draggable:initialize",this[K]).off("draggable:destroy",this[G]),this[G]()}getOptions(){return this.draggable.options.focusable||{}}getElements(){return[...this.draggable.containers,...this.draggable.getDraggableElements()]}[K](){requestAnimationFrame(()=>{this.getElements().forEach(ne=>te(ne))})}[G](){requestAnimationFrame(()=>{this.getElements().forEach(ne=>se(ne))})}}N.default=Z;const ee=[];function te(re){!re.getAttribute("tabindex")&&re.tabIndex===-1&&(ee.push(re),re.tabIndex=0)}function se(re){const ne=ee.indexOf(re);ne!==-1&&(re.tabIndex=-1,ee.splice(ne,1))}},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=B(64),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});class j{constructor(q){this.draggable=q}attach(){throw new Error("Not Implemented")}detach(){throw new Error("Not Implemented")}}N.default=j},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=Object.assign||function(fe){for(var ge=1;ge<arguments.length;ge++){var ye=arguments[ge];for(var xe in ye)Object.prototype.hasOwnProperty.call(ye,xe)&&(fe[xe]=ye[xe])}return fe},U=B(0),q=Y(U);function Y(fe){return fe&&fe.__esModule?fe:{default:fe}}const K=Symbol("onInitialize"),G=Symbol("onDestroy"),J=Symbol("announceEvent"),Z=Symbol("announceMessage"),ee="aria-relevant",te="aria-atomic",se="aria-live",re="role",ne=N.defaultOptions={expire:7e3};class ce extends q.default{constructor(ge){super(ge),this.options=j({},ne,this.getOptions()),this.originalTriggerMethod=this.draggable.trigger,this[K]=this[K].bind(this),this[G]=this[G].bind(this)}attach(){this.draggable.on("draggable:initialize",this[K])}detach(){this.draggable.off("draggable:destroy",this[G])}getOptions(){return this.draggable.options.announcements||{}}[J](ge){const ye=this.options[ge.type];ye&&typeof ye=="string"&&this[Z](ye),ye&&typeof ye=="function"&&this[Z](ye(ge))}[Z](ge){ue(ge,{expire:this.options.expire})}[K](){this.draggable.trigger=ge=>{try{this[J](ge)}finally{this.originalTriggerMethod.call(this.draggable,ge)}}}[G](){this.draggable.trigger=this.originalTriggerMethod}}N.default=ce;const me=_e();function ue(fe,{expire:ge}){const ye=document.createElement("div");return ye.textContent=fe,me.appendChild(ye),setTimeout(()=>{me.removeChild(ye)},ge)}function _e(){const fe=document.createElement("div");return fe.setAttribute("id","draggable-live-region"),fe.setAttribute(ee,"additions"),fe.setAttribute(te,"true"),fe.setAttribute(se,"assertive"),fe.setAttribute(re,"log"),fe.style.position="fixed",fe.style.width="1px",fe.style.height="1px",fe.style.top="-1px",fe.style.overflow="hidden",fe}document.addEventListener("DOMContentLoaded",()=>{document.body.appendChild(me)})},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.defaultOptions=void 0;var j=B(67),U=q(j);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}N.default=U.default,N.defaultOptions=j.defaultOptions},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DraggableDestroyEvent=N.DraggableInitializedEvent=N.DraggableEvent=void 0;var j=B(1),U=q(j);function q(J){return J&&J.__esModule?J:{default:J}}class Y extends U.default{get draggable(){return this.data.draggable}}N.DraggableEvent=Y,Y.type="draggable";class K extends Y{}N.DraggableInitializedEvent=K,K.type="draggable:initialize";class G extends Y{}N.DraggableDestroyEvent=G,G.type="draggable:destroy"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0});var j=Object.assign||function(Y){for(var K=1;K<arguments.length;K++){var G=arguments[K];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(Y[J]=G[J])}return Y};const U=Symbol("canceled");class q{constructor(K){this[U]=!1,this.data=K}get type(){return this.constructor.type}get cancelable(){return this.constructor.cancelable}cancel(){this[U]=!0}canceled(){return!!this[U]}clone(K){return new this.constructor(j({},this.data,K))}}N.default=q,q.type="event",q.cancelable=!1},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.DragStoppedEvent=N.DragStopEvent=N.DragPressureEvent=N.DragOutContainerEvent=N.DragOverContainerEvent=N.DragOutEvent=N.DragOverEvent=N.DragMoveEvent=N.DragStartEvent=N.DragEvent=void 0;var j=B(1),U=q(j);function q(ce){return ce&&ce.__esModule?ce:{default:ce}}class Y extends U.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get mirror(){return this.data.mirror}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}N.DragEvent=Y,Y.type="drag";class K extends Y{}N.DragStartEvent=K,K.type="drag:start",K.cancelable=!0;class G extends Y{}N.DragMoveEvent=G,G.type="drag:move";class J extends Y{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}N.DragOverEvent=J,J.type="drag:over",J.cancelable=!0;class Z extends Y{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}N.DragOutEvent=Z,Z.type="drag:out";class ee extends Y{get overContainer(){return this.data.overContainer}}N.DragOverContainerEvent=ee,ee.type="drag:over:container";class te extends Y{get overContainer(){return this.data.overContainer}}N.DragOutContainerEvent=te,te.type="drag:out:container";class se extends Y{get pressure(){return this.data.pressure}}N.DragPressureEvent=se,se.type="drag:pressure";class re extends Y{}N.DragStopEvent=re,re.type="drag:stop";class ne extends Y{}N.DragStoppedEvent=ne,ne.type="drag:stopped"},function(I,N,B){Object.defineProperty(N,"__esModule",{value:!0}),N.Plugins=N.Sensors=N.Sortable=N.Swappable=N.Droppable=N.Draggable=N.BasePlugin=N.BaseEvent=void 0;var j=B(5);Object.defineProperty(N,"Draggable",{enumerable:!0,get:function(){return ce(j).default}});var U=B(36);Object.defineProperty(N,"Droppable",{enumerable:!0,get:function(){return ce(U).default}});var q=B(33);Object.defineProperty(N,"Swappable",{enumerable:!0,get:function(){return ce(q).default}});var Y=B(30);Object.defineProperty(N,"Sortable",{enumerable:!0,get:function(){return ce(Y).default}});var K=B(1),G=ce(K),J=B(0),Z=ce(J),ee=B(6),te=ne(ee),se=B(27),re=ne(se);function ne(me){if(me&&me.__esModule)return me;var ue={};if(me!=null)for(var _e in me)Object.prototype.hasOwnProperty.call(me,_e)&&(ue[_e]=me[_e]);return ue.default=me,ue}function ce(me){return me&&me.__esModule?me:{default:me}}N.BaseEvent=G.default,N.BasePlugin=Z.default,N.Sensors=te,N.Plugins=re}])})})(draggable_bundle);var draggable_bundleExports=draggable_bundle.exports;function move(M,$,I){const N=[...M.slice(0,$),...M.slice($+1,M.length)];return[...N.slice(0,I),M[$],...N.slice(I,N.length)]}const _sfc_main$3m={props:{value:{required:!0},itemClass:{default:"sortable-item"},handleClass:{default:"sortable-handle"},mirror:{type:Boolean,default:!0},appendTo:{default:null},options:{default:()=>{}},vertical:{type:Boolean},constrainDimensions:{type:Boolean},delay:{type:Number,default:0},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},animate:{type:Boolean,default:!0}},data(){return{sortable:null}},computed:{computedOptions(){let M=[];this.animate&&M.push(draggable_bundleExports.Plugins.SwapAnimation);let $=Object.assign({},{draggable:`.${CSS.escape(this.itemClass)}`,handle:`.${CSS.escape(this.handleClass)}`,delay:this.delay,distance:this.distance,swapAnimation:{vertical:this.vertical,horizontal:!this.vertical},plugins:M,mirror:{constrainDimensions:this.constrainDimensions}},this.options);return this.vertical&&($.mirror.xAxis=!1),this.appendTo&&($.mirror.appendTo=this.appendTo),$}},provide(){return{itemClass:this.itemClass,handleClass:this.handleClass}},render(){return this.$scopedSlots.default({items:this.value})},mounted(){this.disabled||this.setupSortableList()},methods:{setupSortableList(){this.sortable=new draggable_bundleExports.Sortable(this.$el,this.computedOptions),this.sortable.on("drag:start",()=>this.$emit("dragstart")),this.sortable.on("drag:stop",()=>this.$emit("dragend")),this.sortable.on("sortable:stop",({oldIndex:M,newIndex:$})=>{this.$emit("input",move(this.value,M,$))}),this.$on("hook:destroyed",()=>{this.sortable.destroy()}),this.mirror===!1&&this.sortable.on("mirror:create",M=>M.cancel())},destroySortableList(){this.sortable.destroy()}},watch:{disabled(M){M?this.destroySortableList():this.setupSortableList()}}},_sfc_render$3m=null,_sfc_staticRenderFns$3m=null;var __component__$3n=normalizeComponent$2(_sfc_main$3m,_sfc_render$3m,_sfc_staticRenderFns$3m,!1,null,null,null,null);const SortableList=__component__$3n.exports,_sfc_main$3l={components:{TableField,SortableList},data(){return{shifting:!1,lastItemClicked:null}},props:{loading:{type:Boolean,default:!1},allowBulkActions:{default:!1,type:Boolean},toggleSelectionOnRowClick:{type:Boolean,default:!1},sortable:{type:Boolean,default:!0},reorderable:{type:Boolean,default:!1},type:{type:String}},inject:["sharedState"],computed:{rows:{get(){return this.sharedState.rows},set(M){this.sharedState.rows=M}},reachedSelectionLimit(){return this.sharedState.selections.length===this.sharedState.maxSelections},relativeColumnsSize(){return this.visibleColumns.length<=4?"sm":this.visibleColumns.length<=8?"md":this.visibleColumns.length>=12?"lx":"xl"},singleSelect(){return this.sharedState.maxSelections===1},visibleColumns(){const M=this.sharedState.columns.filter($=>$.visible);return M.length?M:this.sharedState.columns},sortableColumns(){return this.sharedState.columns.filter(M=>M.sortable).map(M=>M.field)}},methods:{changeSortColumn(M){this.sortable&&this.sortableColumns.includes(M)&&(this.sharedState.sortColumn===M?this.swapSortDirection():this.getFieldtype(M)!=="date"&&(this.sharedState.sortDirection="asc"),this.sharedState.currentPage=1,this.sharedState.sortColumn=M,this.$emit("sorted",this.sharedState.sortColumn,this.sharedState.sortDirection))},swapSortDirection(){this.sharedState.currentPage=1,this.sharedState.sortDirection=this.sharedState.sortDirection==="asc"?"desc":"asc"},getFieldtype(M){return _.find(this.sharedState.columns,function(I){return M===I.field}).fieldtype},actualIndex(M){return _.findIndex(this.sharedState.originalRows,M)},rowClicked(M,$,I){I.shiftKey&&this.lastItemClicked!==null?this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$)):this.toggleSelectionOnRowClick&&this.toggleSelection(M.id,$),this.lastItemClicked=$},selectRange(M,$){for(var I=M;I<=$;I++){let N=this.sharedState.rows[I].id;!this.sharedState.selections.includes(N)&&!this.reachedSelectionLimit&&this.sharedState.selections.push(N)}},isSelected(M){return this.sharedState.selections.includes(M)},toggleSelection(M){const $=this.sharedState.selections.indexOf(M);if($>-1){this.sharedState.selections.splice($,1);return}this.singleSelect&&this.sharedState.selections.pop(),this.reachedSelectionLimit||this.sharedState.selections.push(M)},shiftDown(){this.shifting=!0},clearShift(){this.shifting=!1},checkboxClicked(M,$,I){I.shiftKey&&this.lastItemClicked!==null?(this.$refs.table.focus(),this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$))):this.toggleSelection(M.id,$),I.target.checked&&(this.lastItemClicked=$)}}};var _sfc_render$3l=function M(){var $=this,I=$._self._c;return I("table",{ref:"table",staticClass:"data-table",class:{"select-none":$.shifting},attrs:{"data-size":$.relativeColumnsSize,tabindex:"0"},on:{keydown:function(N){return N.shiftKey?$.shiftDown.apply(null,arguments):null},keyup:$.clearShift}},[$.allowBulkActions||$.visibleColumns.length>1?I("thead",[I("tr",[$.allowBulkActions||$.reorderable?I("th",{staticClass:"rounded-none",class:{"checkbox-column":!$.reorderable,"handle-column":$.reorderable}},[$.allowBulkActions&&!$.singleSelect?I("data-list-toggle-all",{ref:"toggleAll"}):$._e()],1):$._e(),$._l($.visibleColumns,function(N){return I("th",{key:N.field,staticClass:"group rounded-none",class:{"current-column":$.sharedState.sortColumn===N.field,"sortable-column":N.sortable===!0,"cursor-not-allowed":!$.sortable,"rtl:text-left ltr:text-right rtl:pl-8 ltr:pr-8":N.numeric},on:{click:function(B){return B.preventDefault(),$.changeSortColumn(N.field)}}},[I("span",{domProps:{textContent:$._s($.__(N.label))}}),N.sortable?I("svg",{staticClass:"rtl:mr-1 ltr:ml-1 opacity-0 group-hover:opacity-100",class:[$.sharedState.sortDirection,{"opacity-100 pointer-events-none":$.sharedState.sortColumn===N.field}],attrs:{height:"8",width:"8",viewBox:"0 0 10 6.5"}},[I("path",{attrs:{d:"M9.9,1.4L5,6.4L0,1.4L1.4,0L5,3.5L8.5,0L9.9,1.4z",fill:"currentColor"}})]):$._e()])}),$.type?I("th",{staticClass:"type-column"},[$.type==="entries"?[$._v($._s($.__("Collection")))]:$._e(),$.type==="terms"?[$._v($._s($.__("Taxonomy")))]:$._e()],2):$._e(),I("th",{staticClass:"actions-column rounded-none"})],2)]):$._e(),I("sortable-list",{attrs:{value:$.rows,vertical:!0,mirror:!1,"item-class":"sortable-row","handle-class":"table-drag-handle"},on:{input:function(N){return $.$emit("reordered",N)}}},[I("tbody",[$._t("tbody-start"),$._l($.rows,function(N,B){return I("tr",{key:N.id,staticClass:"sortable-row outline-none",class:{"row-selected":$.sharedState.selections.includes(N.id)}},[$.reorderable?I("td",{staticClass:"table-drag-handle"}):$._e(),$.allowBulkActions&&!$.reorderable?I("th",{staticClass:"checkbox-column"},[$.reorderable?$._e():I("input",{attrs:{type:"checkbox",disabled:$.reachedSelectionLimit&&!$.singleSelect&&!$.isSelected(N.id),id:`checkbox-${N.id}`},domProps:{value:N.id,checked:$.isSelected(N.id)},on:{click:function(j){return $.checkboxClicked(N,B,j)}}})]):$._e(),$._l($.visibleColumns,function(j){return I("td",{key:j.field,class:{"rtl:text-left ltr:text-right rtl:pl-8 ltr:pr-8":j.numeric},attrs:{width:j.width},on:{click:function(U){return $.rowClicked(N,B,U)}}},[$._t(`cell-${j.field}`,function(){return[I("table-field",{key:j.field,attrs:{handle:j.field,value:N[j.value||j.field],values:N,fieldtype:j.fieldtype}})]},{value:N[j.value||j.field],values:N,row:N,index:$.actualIndex(N),displayIndex:B,checkboxId:`checkbox-${N.id}`})],2)}),$.type?I("td",{staticClass:"type-column"},[$.type==="entries"||$.type==="terms"?I("span",{staticClass:"rounded px-1 py-px text-2xs uppercase bg-gray-200 dark:bg-dark-400 text-gray dark:text-dark-150"},[$.type==="entries"?[$._v($._s($.__(N.collection.title)))]:$._e(),$.type==="terms"?[$._v($._s($.__(N.taxonomy.title)))]:$._e()],2):$._e()]):$._e(),I("th",{staticClass:"actions-column"},[$._t("actions",null,{row:N,index:$.actualIndex(N),displayIndex:B})],2)],2)})],2)])],1)},_sfc_staticRenderFns$3l=[],__component__$3m=normalizeComponent$2(_sfc_main$3l,_sfc_render$3l,_sfc_staticRenderFns$3l,!1,null,null,null,null);const Table$1=__component__$3m.exports,_sfc_main$3k={props:["value"],props:{placeholder:{type:String,default:"Search..."},value:{type:String,default:""}},methods:{emitEvent:_.debounce(function(M){this.$emit("input",M.target.value)},300),reset(){this.$emit("input","")},focus(){this.$refs.input.focus()}}};var _sfc_render$3k=function M(){var $=this,I=$._self._c;return I("input",{ref:"input",staticClass:"input-text flex-1 bg-white dark:bg-dark-600 text-sm focus:border-blue-300 dark:focus:border-dark-blue-125 outline-0",attrs:{type:"text",placeholder:$.__($.placeholder),autofocus:""},domProps:{value:$.value},on:{input:$.emitEvent,keyup:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:$.reset.apply(null,arguments)}}})},_sfc_staticRenderFns$3k=[],__component__$3l=normalizeComponent$2(_sfc_main$3k,_sfc_render$3k,_sfc_staticRenderFns$3k,!1,null,null,null,null);const Search=__component__$3l.exports,_sfc_main$3j={mixins:[Actions],inject:["sharedState"],props:{context:{type:Object,default:()=>{}},showAlways:{type:Boolean,default:!1}},data(){return{actions:[]}},computed:{selections(){return this.sharedState.selections},hasSelections(){return this.selections.length>0}},watch:{selections:"getActions"},methods:{getActions(){if(this.selections.length===0){this.actions=[];return}let M={selections:this.selections};this.context&&(M.context=this.context),this.$axios.post(this.url+"/list",M).then($=>{this.actions=$.data})}}};var _sfc_render$3j=function M(){var $=this,I=$._self._c;return $.showAlways||$.hasSelections?I("div",{staticClass:"data-list-bulk-actions"},[I("div",{staticClass:"input-group input-group-sm relative"},[I("div",{staticClass:"input-group-prepend"},[I("div",{staticClass:"text-gray-700 dark:text-dark-175 hidden md:inline-block",domProps:{textContent:$._s($.__n(":count item selected|:count items selected",$.selections.length))}}),I("div",{staticClass:"text-gray-700 dark:text-dark-175 md:hidden",domProps:{textContent:$._s($.selections.length)}})]),$._l($.sortedActions,function(N,B){return $.hasSelections?I("data-list-action",{key:N.handle,attrs:{action:N,selections:$.selections.length,errors:$.errors},on:{selected:$.run},scopedSlots:$._u([{key:"default",fn:function({action:j,select:U}){return I("button",{staticClass:"input-group-item",class:{"text-red-500":j.dangerous,"ltr:rounded-r rtl:rounded-l":B+1===$.sortedActions.length},domProps:{textContent:$._s($.__(j.title))},on:{click:U}})}}],null,!0)}):$._e()})],2)]):$._e()},_sfc_staticRenderFns$3j=[],__component__$3k=normalizeComponent$2(_sfc_main$3j,_sfc_render$3j,_sfc_staticRenderFns$3j,!1,null,null,null,null);const BulkActions=__component__$3k.exports,_sfc_main$3i={mixins:[Actions],props:{actions:Array,item:{required:!0},isDirty:{type:Boolean,default:!1}},computed:{selections(){return[this.item]}}};var _sfc_render$3i=function M(){var $=this,I=$._self._c;return I("div",$._l($.sortedActions,function(N){return I("data-list-action",{key:N.handle,attrs:{action:N,selections:1,errors:$.errors,"is-dirty":$.isDirty},on:{selected:$.run},scopedSlots:$._u([{key:"default",fn:function({action:B,select:j}){return I("div",{},[I("button",{class:{warning:B.dangerous},domProps:{textContent:$._s($.__(B.title))},on:{click:j}})])}}],null,!0)})}),1)},_sfc_staticRenderFns$3i=[],__component__$3j=normalizeComponent$2(_sfc_main$3i,_sfc_render$3i,_sfc_staticRenderFns$3i,!1,null,null,null,null);const InlineActions=__component__$3j.exports,_sfc_main$3h={render(){return this.$slots.default[0]},inject:["itemClass"],mounted(){this.$el.classList.add(this.itemClass)}},_sfc_render$3h=null,_sfc_staticRenderFns$3h=null;var __component__$3i=normalizeComponent$2(_sfc_main$3h,_sfc_render$3h,_sfc_staticRenderFns$3h,!1,null,null,null,null);const SortableItem=__component__$3i.exports;class SortableKeyValue{constructor($=null,I=null){this._id=uniqid$1(),this.key=$,this.value=I}}const SortableHelpers={methods:{newSortableValue(M=null,$=null){return new SortableKeyValue($,M)},objectToSortable(M){return _.map(clone(M),($,I)=>new SortableKeyValue(I,$))},arrayToSortable(M){return _.map(clone(M),$=>new SortableKeyValue(null,$))},sortableToObject(M){let $={};return _.each(M,I=>$[I.key]=I.value),$},sortableToArray(M){let $=[];return _.each(M,I=>$.push(I.value)),$}}},_sfc_main$3g={components:{SortableList},props:{preferencesKey:String},inject:["sharedState"],data(){return{saving:!1,selectedColumns:[],hiddenColumns:[],open:!1}},created(){this.setLocalColumns()},watch:{selectedColumns:{deep:!0,handler(){this.setSharedStateColumns()}}},methods:{setLocalColumns(){this.selectedColumns=this.sharedState.columns.filter($=>$.visible);let M=this.sharedState.columns.filter($=>!$.visible);this.hiddenColumns=_.sortBy(M,$=>$.label.toLowerCase())},setSharedStateColumns(){this.sharedState.columns=[...this.selectedColumns,...this.hiddenColumns]},columnToggled(M){let $=M.visible?this.hiddenColumns:this.selectedColumns,I=M.visible?this.selectedColumns:this.hiddenColumns,N=_.findIndex($,{field:M.field});I.push($[N]),$.splice(N,1),this.hiddenColumns=_.sortBy(this.hiddenColumns,B=>B.label.toLowerCase())},save(){this.saving=!0,this.$preferences.set(this.preferencesKey,this.selectedColumns.map(M=>M.field)).then(M=>{this.saving=!1,this.open=!1,this.$toast.success(__("These are now your default columns."))}).catch(M=>{this.saving=!1,this.$toast.error(__("Unable to save column preferences."))})},reset(){this.sharedState.columns.forEach(M=>M.visible=M.defaultVisibility),this.sharedState.columns=_.sortBy(this.sharedState.columns,M=>M.defaultOrder),this.setLocalColumns(),this.saving=!0,this.$preferences.remove(this.preferencesKey).then(M=>{this.saving=!1,this.open=!1,this.$toast.success(__("Columns have been reset to their defaults."))}).catch(M=>{this.saving=!1,this.$toast.error(__("Unable to save column preferences."))})}}};var _sfc_render$3g=function M(){var $=this,I=$._self._c;return I("div",[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Customize Columns"),expression:"__('Customize Columns')"}],staticClass:"btn py-1 px-1 h-8 w-8 flex items-center justify-center",on:{click:function(N){$.open=!0}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/settings-horizontal"}})],1),$.open?I("modal",{attrs:{name:"column-picker",draggable:".modal-drag-handle","click-to-close":""},on:{closed:function(N){$.open=!1}}},[I("div",{staticClass:"flex flex-col h-full -max-h-screen-px"},[I("header",{staticClass:"modal-drag-handle p-4 bg-gray-200 dark:bg-dark-650 border-b dark:border-dark-900 flex items-center justify-between cursor-grab active:cursor-grabbing"},[I("h2",[$._v($._s($.__("Customize Columns")))]),I("button",{staticClass:"btn-close",attrs:{"aria-label":$.__("Close Editor")},on:{click:function(N){$.open=!1}}},[$._v("×")])]),I("div",{staticClass:"flex grow min-h-0 rounded-t-md bg-gray-100 dark:bg-dark-600"},[I("div",{staticClass:"outline-none rtl:text-right ltr:text-left w-1/2 rtl:border-l ltr:border-r dark:border-dark-900 flex flex-col"},[I("header",{staticClass:"border-b dark:border-dark-900 py-2 px-3 text-sm bg-white dark:bg-dark-700 font-medium",domProps:{textContent:$._s($.__("Available Columns"))}}),I("div",{staticClass:"flex flex-1 flex-col space-y-1 py-2 px-3 select-none shadow-inner overflow-y-scroll"},$._l($.hiddenColumns,function(N){return $.hiddenColumns.length?I("div",{key:N.field,staticClass:"column-picker-item"},[I("label",{staticClass:"flex items-center cursor-pointer"},[I("input",{directives:[{name:"model",rawName:"v-model",value:N.visible,expression:"column.visible"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(N.visible)?$._i(N.visible,null)>-1:N.visible},on:{change:[function(B){var j=N.visible,U=B.target,q=!!U.checked;if(Array.isArray(j)){var Y=null,K=$._i(j,Y);U.checked?K<0&&$.$set(N,"visible",j.concat([Y])):K>-1&&$.$set(N,"visible",j.slice(0,K).concat(j.slice(K+1)))}else $.$set(N,"visible",q)},function(B){return $.columnToggled(N)}]}}),$._v(" "+$._s($.__(N.label))+" ")])]):$._e()}),0)]),I("div",{staticClass:"w-1/2 flex flex-col"},[I("header",{staticClass:"border-b dark:border-dark-900 px-3 py-2 text-sm bg-white dark:bg-dark-700 font-medium flex-none",domProps:{textContent:$._s($.__("Displayed Columns"))}}),I("div",{staticClass:"grow overflow-y-scroll shadow-inner"},[I("sortable-list",{attrs:{vertical:!0,distance:5,"item-class":"item","handle-class":"item","append-to":".modal-body","constrain-dimensions":""},model:{value:$.selectedColumns,callback:function(N){$.selectedColumns=N},expression:"selectedColumns"}},[I("div",{staticClass:"space-y-1 px-3 p-3 select-none"},$._l($.selectedColumns,function(N){return I("div",{key:N.field,staticClass:"item sortable cursor-grab",attrs:{tabindex:"-1"}},[I("div",{staticClass:"item-move py-1"},[$._v(" ")]),I("div",{staticClass:"flex flex-1 rtl:mr-2 ltr:ml-2 items-center p-0"},[I("input",{directives:[{name:"model",rawName:"v-model",value:N.visible,expression:"column.visible"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox",disabled:$.selectedColumns.length===1},domProps:{checked:Array.isArray(N.visible)?$._i(N.visible,null)>-1:N.visible},on:{change:[function(B){var j=N.visible,U=B.target,q=!!U.checked;if(Array.isArray(j)){var Y=null,K=$._i(j,Y);U.checked?K<0&&$.$set(N,"visible",j.concat([Y])):K>-1&&$.$set(N,"visible",j.slice(0,K).concat(j.slice(K+1)))}else $.$set(N,"visible",q)},function(B){return $.columnToggled(N)}]}}),$._v(" "+$._s($.__(N.label))+" ")])])}),0)])],1)])]),$.preferencesKey?I("footer",{staticClass:"px-3 py-2 border-t dark:bg-dark-700 dark:border-dark-900 flex items-center justify-end"},[I("button",{staticClass:"btn",attrs:{disabled:$.saving},domProps:{textContent:$._s($.__("Reset"))},on:{click:$.reset}}),I("button",{staticClass:"rtl:mr-3 ltr:ml-3 btn-primary",attrs:{disabled:$.saving},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}})]):$._e()])]):$._e()],1)},_sfc_staticRenderFns$3g=[],__component__$3h=normalizeComponent$2(_sfc_main$3g,_sfc_render$3g,_sfc_staticRenderFns$3g,!1,null,null,null,null);const ColumnPicker=__component__$3h.exports,_sfc_main$3f={inject:["sharedState"],computed:{anyItemsChecked(){return this.sharedState.selections.length>0}},methods:{toggle(){this.anyItemsChecked?this.uncheckAllItems():this.checkMaximumAmountOfItems()},checkMaximumAmountOfItems(){this.sharedState.selections=_.chain(this.sharedState.rows).map(M=>M.id).first(this.sharedState.maxSelections??1/0).value()},uncheckAllItems(){this.sharedState.selections=[]}}};var _sfc_render$3f=function M(){var $=this,I=$._self._c;return I("label",{staticClass:"flex items-center justify-center relative cursor-pointer",attrs:{for:"checkerOfAllBoxes"}},[I("input",{staticClass:"relative top-0",attrs:{type:"checkbox",id:"checkerOfAllBoxes"},domProps:{checked:$.anyItemsChecked},on:{change:$.toggle}})])},_sfc_staticRenderFns$3f=[],__component__$3g=normalizeComponent$2(_sfc_main$3f,_sfc_render$3f,_sfc_staticRenderFns$3f,!1,null,null,null,null);const ToggleAll=__component__$3g.exports,onEachSide=3,_sfc_main$3e={mixins:[HasInputOptions],props:{inline:{type:Boolean,default:!1},showTotals:{type:Boolean,default:!1},perPage:{type:Number},resourceMeta:{type:Object,required:!0},scrollToTop:{type:Boolean,default:!0},showPageLinks:{type:Boolean,default:!0}},data(){return{onEachSide,window:onEachSide*2}},computed:{totalPages(){return this.resourceMeta.last_page},pages(){const M=this.elements;let $=[M.first,M.slider?"separator":null,M.slider,M.last?"separator":null,M.last].filter(I=>I!==null);return _.flatten($)},elements(){return this.lastPage<this.onEachSide*2+6?this.getSmallSlider():this.currentPage<=this.window?this.getSliderTooCloseToBeginning():this.currentPage>this.lastPage-this.window?this.getSliderTooCloseToEnding():this.getFullSlider()},currentPage(){return this.resourceMeta.current_page},lastPage(){return this.resourceMeta.last_page},hasMultiplePages(){return this.totalPages>1},hasPrevious(){return this.currentPage>1},hasNext(){return this.currentPage<this.totalPages},perPageOptions(){let M=Statamic.$config.get("paginationSize"),$=Statamic.$config.get("paginationSizeOptions").filter(N=>N!==M),I=this.normalizeInputOptions($);return I.push({value:M,label:`${M}`}),_.sortBy(I,"value")},isPerPageEvenUseful(){return this.resourceMeta.total>this.perPageOptions[0].value},fromItem(){return this.resourceMeta.from||0},toItem(){return this.resourceMeta.to||0},totalItems(){return this.resourceMeta.total},direction(){return this.$config.get("direction","ltr")}},methods:{selectPage(M){M!==this.currentPage&&(this.$emit("page-selected",M),this.scrollToTop&&window.scrollTo(0,0))},selectPreviousPage(){this.selectPage(this.currentPage-1)},selectNextPage(){this.selectPage(this.currentPage+1)},getSmallSlider(){return{first:this.getRange(1,this.lastPage),slider:null,last:null}},getFullSlider(){return{first:this.getStart(),slider:this.getAdjacentRange(),last:this.getFinish()}},getSliderTooCloseToBeginning(){return{first:this.getRange(1,this.window+2),slider:null,last:this.getFinish()}},getSliderTooCloseToEnding(){const M=this.getRange(this.lastPage-(this.window+2),this.lastPage);return{first:this.getStart(),slider:null,last:M}},getStart(){return this.getRange(1,2)},getFinish(){return this.getRange(this.lastPage-1,this.lastPage)},getAdjacentRange(){return this.getRange(this.currentPage-this.onEachSide,this.currentPage+this.onEachSide)},getRange(M,$){return _.range(M,$+1)}}};var _sfc_render$3e=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full flex"},[$.inline?$._e():I("div",{staticClass:"flex flex-1 items-center"},[$.showTotals&&$.totalItems>0?I("div",{staticClass:"text-xs text-gray-700"},[$._v(" "+$._s($.__(":start-:end of :total",{start:$.fromItem,end:$.toItem,total:$.totalItems}))+" ")]):$._e()]),$.hasMultiplePages?I("ul",{staticClass:"pagination",class:{"pagination-inline":$.inline}},[$.hasPrevious?I("li",[I("a",{on:{click:$.selectPreviousPage}},[I("span",{staticClass:"text-xs",domProps:{innerHTML:$._s($.direction==="ltr"?"←":"→")}})])]):$._e(),$._l($.pages,function(N,B){return $.showPageLinks?I("li",{key:B,class:{current:N==$.currentPage}},[N==="separator"?I("span",{staticClass:"unclickable"},[$._v("...")]):I("a",{on:{click:function(j){return $.selectPage(N)}}},[$._v($._s(N))])]):$._e()}),$.hasNext?I("li",[I("a",{on:{click:$.selectNextPage}},[I("span",{staticClass:"text-xs",domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})])]):$._e()],2):$._e(),I("div",{staticClass:"flex flex-1"},[I("div",{staticClass:"flex-1"}),$.perPage&&$.isPerPageEvenUseful?I("select-input",{staticClass:"rtl:mr-6 ltr:ml-6",attrs:{name:"perPage",placeholder:$.__("Per Page"),options:$.perPageOptions,value:$.perPage},on:{input:function(N){return $.$emit("per-page-changed",N)}}}):$._e()],1)])},_sfc_staticRenderFns$3e=[],__component__$3f=normalizeComponent$2(_sfc_main$3e,_sfc_render$3e,_sfc_staticRenderFns$3e,!1,null,null,null,null);const Pagination=__component__$3f.exports,_sfc_main$3d={components:{PublishFields:Fields$1},props:{filter:Object,values:Object},data(){return{meta:{}}},computed:{defaultValues(){return this.filter.values||{}},containerValues(){return clone(this.values||this.defaultValues)}},methods:{updateValues(M){let $=clone(M);Object.keys(M).forEach(I=>{(M[I]===null||M[I]===void 0)&&delete $[I]}),this.$emit("changed",$)},resetAll(){this.$emit("changed",null),this.$emit("cleared")},updateMeta(M){this.meta=M},close(){this.$emit("closed")}}};var _sfc_render$3d=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full no-label"},[$.filter.fields.length?I("publish-container",{staticClass:"p-3",attrs:{name:`filter-${$.filter.handle}`,meta:$.meta,values:$.containerValues,"track-dirty-state":!1},on:{updated:$.updateValues},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N}){return I("publish-fields",{attrs:{fields:$.filter.fields,"name-prefix":`filter-${$.filter.handle}`},on:{updated:N,"meta-updated":$.updateMeta}})}}],null,!1,3178185070)}):$._e(),I("div",{staticClass:"flex border-t dark:border-dark-900"},[I("button",{staticClass:"p-2 hover:bg-gray-100 dark:hover:bg-dark-600 rtl:rounded-br ltr:rounded-bl text-xs flex-1",domProps:{textContent:$._s($.__("Clear"))},on:{click:$.resetAll}}),I("button",{staticClass:"p-2 hover:bg-gray-100 dark:hover:bg-dark-600 flex-1 rtl:rounded-bl ltr:rounded-br rtl:border-r ltr:border-l dark:border-dark-900 text-xs",domProps:{textContent:$._s($.__("Close"))},on:{click:function(N){return $.$emit("closed")}}})])],1)},_sfc_staticRenderFns$3d=[],__component__$3e=normalizeComponent$2(_sfc_main$3d,_sfc_render$3d,_sfc_staticRenderFns$3d,!1,null,null,null,null);const DataListFilter=__component__$3e.exports,_sfc_main$3c={components:{PublishField},props:{config:Object,values:Object,badges:Object},data(){return{initialValues:this.values,containerValues:{},filter:null,field:null,fieldValues:null}},computed:{availableFieldFilters(){return this.config?this.config.extra.filter(M=>!this.initialValues[M.handle]):[]},hasAvailableFieldFilters(){return!!this.availableFieldFilters.length},fieldOptions(){let M=this.availableFieldFilters.map($=>({value:$.handle,label:$.display}));return _.sortBy(M,$=>$.label)},showFieldFilter(){return this.field},isFilterComplete(){if(!this.filter)return!1;let M=_.chain(this.filter.fields).filter(function(I){return new Validator(I,this.fieldValues).passesConditions()},this).mapObject(I=>I.handle).values().value(),$=_.chain(this.fieldValues).filter((I,N)=>M.includes(N)&&I).values().value().length===M.length;return this.field!==null&&$},newValues(){let M=clone(this.values);return delete M[this.field],M[this.field]=this.isFilterComplete?this.fieldValues:null,M}},watch:{field:"update",fieldValues:{deep:!0,handler(){this.update()}}},mounted(){this.hasAvailableFieldFilters&&(this.reset(),this.$refs.fieldSelect.$refs.search.focus())},methods:{popoverClosed(){this.badges[this.field]||this.resetAll()},reset(){this.field&&this.$emit("changed",this.initialValues),this.containerValues={},this.filter=null,this.field=null,this.fieldValues=null},resetAll(){this.reset(),this.$emit("cleared")},resetInitialValues(){this.initialValues=this.values,this.reset()},createFilter(M){this.field&&this.$emit("changed",this.initialValues),this.reset(),this.setFilter(M),this.setDefaultValues(),this.field=M},setFilter(M){this.filter=_.find(this.availableFieldFilters,$=>$.handle===M)},setDefaultValues(){if(!this.filter)return;let M={};this.filter.fields.filter($=>$.default).forEach($=>M[$.handle]=$.default),this.updateValues(M)},updateValues(M){this.updateContainerValues(M),this.updateFieldValues(M)},updateContainerValues(M){this.containerValues=clone(M)},updateFieldValues:_.debounce(function(M){this.fieldValues=clone(M)},300),update(){this.$emit("changed",this.newValues)}}};var _sfc_render$3c=function M(){var $=this,I=$._self._c;return I("div",[$.hasAvailableFieldFilters?I("div",[I("div",{staticClass:"flex flex-col p-3"},[I("v-select",{ref:"fieldSelect",attrs:{placeholder:$.__("Field"),options:$.fieldOptions,reduce:N=>N.value,value:$.field},on:{input:$.createFilter}}),$.showFieldFilter?I("publish-container",{staticClass:"filter-fields mt-2",attrs:{name:"filter-field",meta:{},values:$.containerValues,"track-dirty-state":!1},on:{updated:$.updateValues},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("publish-fields",{staticClass:"w-full no-label",attrs:{fields:$.filter.fields,"name-prefix":"filter-field"},on:{updated:N,"meta-updated":B}})}}],null,!1,2555427817)}):$._e()],1),I("div",{staticClass:"flex border-t dark:border-dark-900 text-gray-800 dark:text-dark-150"},[I("button",{staticClass:"p-2 hover:bg-gray-100 dark:hover:bg-dark-600 rtl:rounded-br ltr:rounded-bl text-xs flex-1",domProps:{textContent:$._s($.__("Clear"))},on:{click:$.resetAll}}),I("button",{staticClass:"p-2 hover:bg-gray-100 dark:hover:bg-dark-600 flex-1 rtl:rounded-bl ltr:rounded-br rtl:border-r ltr:border-l dark:border-dark-900 text-xs",domProps:{textContent:$._s($.__("Close"))},on:{click:function(N){return $.$emit("closed")}}})])]):I("v-select",{attrs:{disabled:!0,placeholder:$.__("No available filters")}})],1)},_sfc_staticRenderFns$3c=[],__component__$3d=normalizeComponent$2(_sfc_main$3c,_sfc_render$3c,_sfc_staticRenderFns$3c,!1,null,null,null,null);const FieldFilter=__component__$3d.exports,_sfc_main$3b={components:{DataListFilter,FieldFilter},props:{filters:{type:Array,default:()=>[]},activePreset:String,activePresetPayload:Object,activeFilters:Object,activeFilterBadges:Object,activeCount:Number,searchQuery:String,savesPresets:Boolean,preferencesPrefix:String,isSearching:Boolean},data(){return{filtering:!1,creating:!1,saving:!1,deleting:!1,savingPresetName:null,presets:[]}},inject:["sharedState"],watch:{activePresetPayload:{deep:!0,handler(M){this.savingPresetName=M.display||null}}},computed:{fieldFilter(){return this.filters.find(M=>M.handle==="fields")},standardFilters(){return this.filters.filter(M=>M.handle!=="fields")},pinnedFilters(){return this.standardFilters.filter(M=>M.pinned)},unpinnedFilters(){return this.standardFilters.filter(M=>!M.pinned)},creatingFilter(){return _.find(this.unpinnedFilters,M=>M.handle===this.creating)},creatingFilterHeader(){let M=data_get(this.creatingFilter,"title","Filter where");return __(M)+":"},showUnpinnedFilterSelection(){return!this.creating},fieldFilterBadges(){return data_get(this.activeFilterBadges,"fields",{})},standardBadges(){return _.omit(this.activeFilterBadges,"fields")},isFiltering(){return!_.isEmpty(this.activeFilters)||this.searchQuery||this.activePreset},isDirty(){return this.isFiltering?this.activePreset?this.activePresetPayload.query!=this.searchQuery||!_.isEqual(this.activePresetPayload.filters||{},this.activeFilters):!0:!1},canSave(){return this.savesPresets&&this.isDirty&&this.preferencesPrefix},savingPresetHandle(){return snake_case(this.savingPresetName)},isUpdatingPreset(){return this.savingPresetHandle===this.activePreset},preferencesKey(){let M=this.savingPresetHandle||this.activePreset;return!this.preferencesPrefix||!M?null:`${this.preferencesPrefix}.filters.${M}`},preferencesPayload(){if(!this.savingPresetName)return null;let M={display:this.savingPresetName};return this.searchQuery&&(M.query=this.searchQuery),this.activeCount&&(M.filters=clone(this.activeFilters)),M}},methods:{resetFilterPopover(){this.creating=!1,setTimeout(()=>{var M;return(M=this.$refs.fieldFilter)==null?void 0:M.resetInitialValues()},100)},fieldFilterClosed(){this.$refs.fieldFilter.popoverClosed()},removeFieldFilter(M){let $=clone(this.activeFilters.fields);delete $[M],this.$emit("changed",{handle:"fields",values:$})},removeStandardFilter(M){this.$emit("changed",{handle:M,values:null})},save(){!this.canSave||!this.preferencesPayload||(this.saving=!0,this.$preferences.set(this.preferencesKey,this.preferencesPayload).then(M=>{this.$refs.savePopover.close(),this.$emit("saved",this.savingPresetHandle),this.$toast.success(this.isUpdatingPreset?__("Filter preset updated"):__("Filter preset saved")),this.savingPresetName=null,this.saving=!1}).catch(M=>{this.$toast.error(this.isUpdatingPreset?__("Unable to update filter preset"):__("Unable to save filter preset")),this.saving=!1}))},remove(){this.$preferences.remove(this.preferencesKey).then(M=>{this.$emit("deleted",this.activePreset),this.$toast.success(__("Filter preset deleted")),this.deleting=!1}).catch(M=>{this.$toast.error(__("Unable to delete filter preset")),this.deleting=!1})}}};var _sfc_render$3b=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"shadow-inner bg-gray-300 dark:bg-dark-600"},[I("div",{staticClass:"flex items-center flex-wrap px-3 border-b dark:border-dark-900 pt-2"},[$.fieldFilter?I("popover",{attrs:{placement:"bottom-start"},on:{closed:$.fieldFilterClosed},scopedSlots:$._u([{key:"default",fn:function({close:N}){return[I("div",{staticClass:"flex flex-col rtl:text-right ltr:text-left min-w-[18rem]"},[I("div",{staticClass:"filter-fields text-sm"},[I("field-filter",{ref:"fieldFilter",attrs:{config:$.fieldFilter,values:$.activeFilters.fields||{},badges:$.fieldFilterBadges},on:{changed:function(B){return $.$emit("changed",{handle:"fields",values:B})},cleared:function(B){$.creating=!1},closed:N}})],1)])]}}],null,!1,3767859409)},[I("template",{slot:"trigger"},[I("button",{staticClass:"filter-badge filter-badge-control rtl:ml-2 ltr:mr-2 mb-2",on:{click:$.resetFilterPopover}},[$._v(" "+$._s($.fieldFilter.title)+" "),I("svg-icon",{staticClass:"w-2 h-2 mx-2",attrs:{name:"micro/chevron-down-xs"}})],1)])],2):$._e(),$._l($.pinnedFilters,function(N){return $.pinnedFilters.length?I("popover",{key:N.handle,attrs:{placement:"bottom-start","stop-propagation":!1},scopedSlots:$._u([{key:"default",fn:function({close:B}){return[I("div",{staticClass:"filter-fields w-64"},[I("data-list-filter",{key:N.handle,attrs:{filter:N,values:$.activeFilters[N.handle]},on:{changed:function(j){return $.$emit("changed",{handle:N.handle,values:j})},closed:B}})],1)]}}],null,!0)},[I("template",{slot:"trigger"},[I("button",{staticClass:"filter-badge filter-badge-control rtl:ml-2 ltr:mr-2 mb-2"},[$._v(" "+$._s(N.title)+" "),I("svg-icon",{staticClass:"w-2 h-2 mx-2",attrs:{name:"micro/chevron-down-xs"}})],1)])],2):$._e()}),$.unpinnedFilters.length?I("popover",{attrs:{placement:"bottom-start","stop-propagation":!1},scopedSlots:$._u([{key:"default",fn:function({close:N}){return[I("div",{staticClass:"filter-fields w-64"},[I("h6",{staticClass:"p-3 pb-0",domProps:{textContent:$._s($.creatingFilterHeader)}}),$.showUnpinnedFilterSelection?I("div",{staticClass:"p-3 pt-1"},$._l($.unpinnedFilters,function(B){return I("button",{key:B.handle,staticClass:"btn w-full mt-1",domProps:{textContent:$._s(B.title)},on:{click:function(j){$.creating=B.handle}}})}),0):I("div",$._l($.unpinnedFilters,function(B){return $.creating===B.handle?I("data-list-filter",{key:B.handle,attrs:{filter:B,values:$.activeFilters[B.handle]},on:{changed:function(j){return $.$emit("changed",{handle:B.handle,values:j})},cleared:function(j){$.creating=!1},closed:N}}):$._e()}),1)])]}}],null,!1,1858792327)},[I("template",{slot:"trigger"},[I("button",{staticClass:"filter-badge filter-badge-control rtl:ml-2 ltr:mr-2 mb-2",on:{click:$.resetFilterPopover}},[$._v(" "+$._s($.__("Filter"))+" "),I("svg-icon",{staticClass:"w-2 h-2 mx-2",attrs:{name:"micro/chevron-down-xs"}})],1)])],2):$._e(),$._l($.fieldFilterBadges,function(N,B){return I("div",{staticClass:"filter-badge rtl:ml-2 ltr:mr-2 mb-2"},[I("span",[$._v($._s(N))]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Remove Filter"),expression:"__('Remove Filter')"}],on:{click:function(j){return $.removeFieldFilter(B)}}},[$._v("×")])])}),$._l($.standardBadges,function(N,B){return I("div",{staticClass:"filter-badge rtl:ml-2 ltr:mr-2 mb-2"},[I("span",[$._v($._s(N))]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Remove Filter"),expression:"__('Remove Filter')"}],on:{click:function(j){return $.removeStandardFilter(B)}}},[$._v("×")])])})],2)])},_sfc_staticRenderFns$3b=[],__component__$3c=normalizeComponent$2(_sfc_main$3b,_sfc_render$3b,_sfc_staticRenderFns$3b,!1,null,null,null,null);const Filters=__component__$3c.exports,_sfc_main$3a={props:{activeFilters:Object,activePreset:String,activePresetPayload:Object,hasActiveFilters:Boolean,preferencesPrefix:String,searchQuery:String},data(){return{presets:[],showCreateModal:!1,showRenameModal:!1,showDeleteModal:!1,savingPresetName:null,test:"hello!"}},computed:{preferencesKey(){return this.preferencesPrefix?`${this.preferencesPrefix}.filters`:null},presetPreferencesPayload(){let M={display:this.savingPresetName||this.activePresetPayload.display};return this.searchQuery&&(M.query=this.searchQuery),this.hasActiveFilters&&(M.filters=clone(this.activeFilters)),M},savingPresetSlug(){return snake_case(this.savingPresetName)}},created(){this.preferencesKey&&this.getPresets()},methods:{getPresets(){this.presets=this.$preferences.get(this.preferencesKey)},setPreset(M){this.getPresets(),this.viewPreset(M)},refreshPresets(){this.getPresets(),this.viewAll()},refreshPreset(){this.activePreset?this.setPreset(this.activePreset):this.viewAll()},canRenamePreset(M){return!this.$preferences.hasDefault(`${this.preferencesKey}.${M}`)},canDeletePreset(M){return!this.$preferences.hasDefault(`${this.preferencesKey}.${M}`)},viewAll(){this.$emit("reset")},viewPreset(M){this.$emit("selected",M,this.presets[M])},createPreset(){this.savingPresetName=null,this.showCreateModal=!0},renamePreset(){this.savingPresetName=this.activePresetPayload.display,this.showRenameModal=!0},savePreset(M){let $=M||this.activePreset;if(!$){this.showCreateModal=!0;return}if(this.showRenameModal){let I=this.$preferences.get(`${this.preferencesKey}`);I=Object.fromEntries(Object.entries(I).map(([N,B])=>N===this.activePreset?[this.savingPresetSlug,this.presetPreferencesPayload]:[N,B])),this.$preferences.set(`${this.preferencesKey}`,I).then(N=>{this.$toast.success(__("View renamed")),this.$emit("deleted",this.activePreset),this.showRenameModal=!1,this.refreshPresets()}).catch(N=>{this.$toast.error(__("Unable to rename view")),this.showRenameModal=!1});return}this.$preferences.set(`${this.preferencesKey}.${$}`,this.presetPreferencesPayload).then(I=>{this.$toast.success(__("View saved")),this.showCreateModal=!1,this.savingPresetName=null,this.setPreset($)}).catch(I=>{this.$toast.error(__("Unable to save view")),this.showCreateModal=!1,this.showRenameModal=!1,this.savingPresetName=null})},deletePreset(){this.$preferences.remove(`${this.preferencesKey}.${this.activePreset}`).then(M=>{this.$emit("deleted",this.activePreset),this.$toast.success(__("View deleted")),this.showDeleteModal=!1,this.refreshPresets()}).catch(M=>{this.$toast.error(__("Unable to delete view")),this.showDeleteModal=!1})}}};var _sfc_render$3a=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"pt-2 rtl:pl-2 ltr:pr-2"},[I("div",{staticClass:"flex flex-wrap items-center"},[I("button",{staticClass:"pill-tab rtl:ml-1 ltr:mr-1",class:{active:!$.activePreset},domProps:{textContent:$._s($.__("All"))},on:{click:$.viewAll}}),$._l($.presets,function(N,B){return[B===$.activePreset?I("button",{staticClass:"pill-tab active rtl:ml-1 ltr:mr-1"},[$._v(" "+$._s(N.display)+" "),I("dropdown-list",{staticClass:"rtl:mr-2 ltr:ml-2",attrs:{placement:"bottom-start"},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"opacity-50 hover:opacity-100"},[I("svg-icon",{staticClass:"w-2 h-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!0)},[I("dropdown-item",{attrs:{text:$.__("Duplicate")},on:{click:$.createPreset}}),$.canRenamePreset(B)?I("dropdown-item",{attrs:{text:$.__("Rename")},on:{click:$.renamePreset}}):$._e(),I("div",{staticClass:"divider"}),$.canDeletePreset(B)?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(j){$.showDeleteModal=!0}}}):$._e()],1)],1):I("button",{staticClass:"pill-tab rtl:ml-1 ltr:mr-1",on:{click:function(j){return $.viewPreset(B)}}},[$._v(" "+$._s(N.display)+" ")])]}),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Create New View"),expression:"__('Create New View')"}],staticClass:"pill-tab",on:{click:$.createPreset}},[I("svg-icon",{staticClass:"w-3 h-3",attrs:{name:"add"}})],1)],2),$.showCreateModal?I("confirmation-modal",{attrs:{title:$.__("Create New View"),buttonText:$.__("Create")},on:{cancel:function(N){$.showCreateModal=!1},confirm:function(N){return $.savePreset($.savingPresetSlug)}}},[I("text-input",{attrs:{focus:!0},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:$.savePreset($.savingPresetSlug)}},model:{value:$.savingPresetName,callback:function(N){$.savingPresetName=N},expression:"savingPresetName"}}),$.presets&&Object.keys($.presets).includes($.savingPresetSlug)?I("div",[I("small",{staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s($.__("messages.filters_view_already_exists"))}})]):$._e()],1):$._e(),$.showRenameModal?I("confirmation-modal",{attrs:{title:$.__("Rename View"),buttonText:$.__("Rename")},on:{cancel:function(N){$.showRenameModal=!1},confirm:function(N){return $.savePreset($.savingPresetSlug)}}},[I("text-input",{attrs:{focus:!0},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:$.savePreset($.savingPresetSlug)}},model:{value:$.savingPresetName,callback:function(N){$.savingPresetName=N},expression:"savingPresetName"}}),Object.keys($.presets).filter(N=>N!==$.activePreset).includes($.savingPresetSlug)?I("div",[I("small",{staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s($.__("messages.filters_view_already_exists"))}})]):$._e()],1):$._e(),$.showDeleteModal?I("confirmation-modal",{attrs:{title:$.__("Delete View"),bodyText:$.__("Are you sure you want to delete this view?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:$.deletePreset,cancel:function(N){$.showDeleteModal=!1}}}):$._e()],1)},_sfc_staticRenderFns$3a=[],__component__$3b=normalizeComponent$2(_sfc_main$3a,_sfc_render$3a,_sfc_staticRenderFns$3a,!1,null,null,null,null);const FilterPresets=__component__$3b.exports,_sfc_main$39={mixins:[Listing],props:{collection:String,reordering:Boolean,reorderUrl:String,site:String},data(){return{listingKey:"entries",preferencesPrefix:`collections.${this.collection}`,requestUrl:cp_url(`collections/${this.collection}/entries`),currentSite:this.site,initialSite:this.site,pushQuery:!0,previousFilters:null}},computed:{actionContext(){return{collection:this.collection}}},watch:{reordering(M,$){M!==$&&(M?this.reorder():this.cancelReordering())},activeFilters:{deep:!0,handler(M){this.currentSite=M.site?M.site.site:null}},site(M){this.currentSite=M},currentSite(M){this.setSiteFilter(M),this.$emit("site-changed",M)}},methods:{getStatusClass(M){return M.published&&M.private?"bg-transparent border border-gray-600":M.published?"bg-green-600":"bg-gray-400 dark:bg-dark-200"},getStatusLabel(M){if(M.status==="published")return __("Published");if(M.status==="scheduled")return __("Scheduled");if(M.status==="expired")return __("Expired");if(M.status==="draft")return __("Draft")},getStatusTooltip(M){if(M.status==="published")return M.collection.dated?__("messages.status_published_with_date",{date:M.date}):null;if(M.status==="scheduled")return __("messages.status_scheduled_with_date",{date:M.date});if(M.status==="expired")return __("messages.status_expired_with_date",{date:M.date});if(M.status==="draft")return null},reorder(){this.previousFilters=this.activeFilters,this.filtersReset(),this.setSiteFilter(this.currentSite||this.initialSite),this.page=1,this.sortColumn="order",this.sortDirection="asc"},cancelReordering(){this.resetToPreviousFilters(),this.request()},columnShowing(M){return this.visibleColumns.find($=>$.field===M)},reordered(M){this.items=M},setSiteFilter(M){this.filterChanged({handle:"site",values:{site:M}})},saveOrder(){const M={ids:this.items.map($=>$.id),page:this.page,perPage:this.perPage,site:this.currentSite};this.$axios.post(this.reorderUrl,M).then($=>{this.$emit("reordered"),this.$toast.success(__("Entries successfully reordered"))}).catch($=>{console.log($),this.$toast.error(__("Something went wrong"))})},resetToPreviousFilters(){this.filtersReset(),this.previousFilters&&this.filtersChanged(this.previousFilters),this.previousFilters=null}}};var _sfc_render$39=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"visible-columns-updated":function(N){$.visibleColumns=N}},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card overflow-hidden p-0 relative"},[$.reordering?$._e():I("div",{staticClass:"flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b dark:border-dark-900"},[I("data-list-filter-presets",{ref:"presets",attrs:{"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"has-active-filters":$.hasActiveFilters,"preferences-prefix":$.preferencesPrefix,"search-query":$.searchQuery},on:{selected:$.selectPreset,reset:$.filtersReset}}),I("data-list-search",{ref:"search",staticClass:"h-8 mt-2 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("div",{staticClass:"flex space-x-2 rtl:space-x-reverse mt-2"},[I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Reset"))},on:{click:function(B){return $.$refs.presets.refreshPreset()}}}),I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save"))},on:{click:function(B){return $.$refs.presets.savePreset()}}}),I("data-list-column-picker",{attrs:{"preferences-key":$.preferencesKey("columns")}})],1)],1),I("div",{directives:[{name:"show",rawName:"v-show",value:!$.reordering,expression:"!reordering"}]},[I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery,"is-searching":!0,"saves-presets":!0,"preferences-prefix":$.preferencesPrefix},on:{changed:$.filterChanged,saved:function(B){return $.$refs.presets.setPreset(B)},deleted:function(B){return $.$refs.presets.refreshPresets()}}})],1),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[I("data-list-table",{directives:[{name:"show",rawName:"v-show",value:$.items.length,expression:"items.length"}],attrs:{"allow-bulk-actions":!$.reordering,loading:$.loading,reorderable:$.reordering,sortable:!$.reordering,"toggle-selection-on-row-click":!0},on:{sorted:$.sorted,reordered:$.reordered},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{staticClass:"title-index-field inline-flex items-center",attrs:{href:B.edit_url},on:{click:function(j){j.stopPropagation()}}},[$.columnShowing("status")?$._e():I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusLabel(B),expression:"getStatusLabel(entry)"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.getStatusClass(B)}),I("span",{domProps:{textContent:$._s(B.title)}})])]}},{key:"cell-status",fn:function({row:B}){return[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusTooltip(B),expression:"getStatusTooltip(entry)"}],staticClass:"status-index-field select-none",class:`status-${B.status}`,domProps:{textContent:$._s($.getStatusLabel(B))}})]}},{key:"cell-slug",fn:function({row:B}){return[I("div",{staticClass:"slug-index-field",attrs:{title:B.slug}},[$._v($._s(B.slug))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[B.viewable&&B.permalink?I("dropdown-item",{attrs:{text:$.__("View"),"external-link":B.permalink}}):$._e(),B.editable?I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}):$._e(),B.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)})],1)],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}],null,!1,77205868)})],1)},_sfc_staticRenderFns$39=[],__component__$3a=normalizeComponent$2(_sfc_main$39,_sfc_render$39,_sfc_staticRenderFns$39,!1,null,null,null,null);const EntryListing=__component__$3a.exports,_sfc_main$38={mixins:[Listing],props:{initialRows:Array,initialColumns:Array},data(){return{initializedRequest:!1,items:this.initialRows,requestUrl:cp_url("collections")}},methods:{request(){if(!this.initializedRequest){this.loading=!1,this.initializedRequest=!0;return}Listing.methods.request.call(this)}}};var _sfc_render$38=function M(){var $=this,I=$._self._c;return I("data-list",{ref:"dataList",attrs:{columns:$.columns,rows:$.items},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card overflow-hidden p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.available_in_selected_site?B.entries_url:B.edit_url}},[$._v($._s($.__(B.title)))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.entries_url}}),B.url?I("dropdown-item",{attrs:{text:$.__("Visit URL"),"external-link":B.url}}):$._e(),B.editable?I("dropdown-item",{attrs:{text:$.__("Edit Collection"),redirect:B.edit_url}}):$._e(),B.blueprint_editable?I("dropdown-item",{attrs:{text:$.__("Edit Blueprints"),redirect:B.blueprints_url}}):$._e(),B.editable?I("dropdown-item",{attrs:{text:$.__("Scaffold Views"),redirect:B.scaffold_url}}):$._e(),I("data-list-inline-actions",{attrs:{item:B.id,url:B.actions_url,actions:B.actions},on:{completed:$.actionCompleted}})],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$38=[],__component__$39=normalizeComponent$2(_sfc_main$38,_sfc_render$38,_sfc_staticRenderFns$38,!1,null,null,null,null);const CollectionListing=__component__$39.exports,_sfc_main$37={mixins:[Listing],props:["initial-rows","initial-columns"],data(){return{rows:this.initialRows,columns:this.initialColumns}}};var _sfc_render$37=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{columns:$.columns,rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.terms_url}},[$._v($._s($.__(B.title)))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("dropdown-item",{attrs:{text:$.__("Edit Blueprints"),redirect:B.blueprints_url}}),B.deleteable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$37=[],__component__$38=normalizeComponent$2(_sfc_main$37,_sfc_render$37,_sfc_staticRenderFns$37,!1,null,null,null,null);const TaxonomyListing=__component__$38.exports,_sfc_main$36={mixins:[Listing],props:{taxonomy:String},data(){return{listingKey:"terms",preferencesPrefix:`taxonomies.${this.taxonomy}`,requestUrl:cp_url(`taxonomies/${this.taxonomy}/terms`),pushQuery:!0}},computed:{actionContext(){return{taxonomy:this.taxonomy}}},methods:{preferencesKey(M){return`taxonomies.${this.taxonomy}.${M}`}}};var _sfc_render$36=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"visible-columns-updated":function(N){$.visibleColumns=N}},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("div",{staticClass:"flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b dark:border-dark-900"},[I("data-list-filter-presets",{ref:"presets",attrs:{"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"has-active-filters":$.hasActiveFilters,"preferences-prefix":$.preferencesPrefix,"search-query":$.searchQuery},on:{selected:$.selectPreset,reset:$.filtersReset}}),I("data-list-search",{ref:"search",staticClass:"h-8 mt-2 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("div",{staticClass:"flex space-x-2 rtl:space-x-reverse mt-2"},[I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Reset"))},on:{click:function(B){return $.$refs.presets.refreshPreset()}}}),I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save"))},on:{click:function(B){return $.$refs.presets.savePreset()}}}),I("data-list-column-picker",{attrs:{"preferences-key":$.preferencesKey("columns")}})],1)],1),I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery,"is-searching":!0,"saves-presets":!0,"preferences-prefix":$.preferencesPrefix},on:{changed:$.filterChanged,saved:function(B){return $.$refs.presets.setPreset(B)},deleted:function(B){return $.$refs.presets.refreshPresets()}}}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("data-list-table",{directives:[{name:"show",rawName:"v-show",value:$.items.length,expression:"items.length"}],attrs:{loading:$.loading,"allow-bulk-actions":!0,"allow-column-picker":!0,"column-preferences-key":$.preferencesKey("columns")},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("div",{staticClass:"flex items-center"},[I("a",{attrs:{href:B.edit_url}},[$._v($._s(B.title))])])]}},{key:"cell-slug",fn:function({row:B}){return[I("span",{staticClass:"font-mono text-2xs"},[$._v($._s(B.slug))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"left-start"}},[I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.permalink}}),I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("div",{staticClass:"divider"}),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)})],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}],null,!1,3676792106)})],1)},_sfc_staticRenderFns$36=[],__component__$37=normalizeComponent$2(_sfc_main$36,_sfc_render$36,_sfc_staticRenderFns$36,!1,null,null,null,null);const TermListing=__component__$37.exports,_sfc_main$35={props:["initial-rows","columns","visible-columns"],data(){return{rows:this.initialRows}},methods:{destroy(M,$){confirm(__("Are you sure?"))&&this.$axios.delete(M.delete_url).then(I=>{this.rows.splice($,1)})}}};var _sfc_render$35=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.visibleColumns,columns:$.columns,rows:$.initialRows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.edit_url}},[$._v($._s(B.title))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){return $.destroy(B,j)}}})],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$35=[],__component__$36=normalizeComponent$2(_sfc_main$35,_sfc_render$35,_sfc_staticRenderFns$35,!1,null,null,null,null);const AssetContainerList=__component__$36.exports,AddonList_vue_vue_type_style_index_0_lang="",_sfc_main$34={props:["domain","endpoints","installCount"],data(){return{initializing:!0,loading:!0,rows:[],meta:{},searchQuery:"",filter:"all",page:1,showingAddon:!1,error:!1,unlisted:[]}},computed:{params(){return{page:this.page,q:this.searchQuery,installed:this.filter==="installed"?1:0}},loaded(){return!this.loading&&!this.error}},watch:{page(){this.getAddons()},searchQuery(){this.page=1,this.getAddons()},filter(){this.page=1,this.getAddons()},loading:{immediate:!0,handler(M){this.$progress.loading("addon-list",M)}}},created(){this.rows=this.getAddons(),this.$events.$on("composer-finished",this.getAddons)},methods:{getAddons(){this.loading=!0,this.$axios.get(cp_url("/api/addons"),{params:this.params}).then(M=>{this.loading=!1,this.initializing=!1,this.rows=M.data.data,this.meta=M.data.meta,this.unlisted=M.data.unlisted??[],this.showingAddon&&this.refreshShowingAddon()}).catch(M=>{this.loading=!1,this.error=!0,this.$toast.error(__("Something went wrong"))})},setPage(M){this.page=M},refreshShowingAddon(){this.showingAddon=_.findWhere(this.rows,{id:this.showingAddon.id}),this.$events.$emit("addon-refreshed")},getCover(M){return M.assets.length?M.assets[0].url:"https://statamic.com/images/img/marketplace/placeholder-addon.png"},getPriceRange(M){let[$,I]=M.price_range;return $=$?`$${$}`:"Free",I=I?`$${I}`:"Free",$==I?$:`${$} - ${I}`},showAddon(M){this.showingAddon=M,window.scrollTo(0,0)}}};var _sfc_render$34=function M(){var $=this,I=$._self._c;return I("div",[$.showingAddon?I("div",{staticClass:"breadcrumb flex"},[I("button",{staticClass:"flex-initial flex p-2 -m-2 items-center text-xs text-gray-700 dark:text-dark-175 hover:text-gray-900 dark:hover:text-dark-100",on:{click:function(N){$.showingAddon=!1}}},[I("svg-icon",{staticClass:"h-6 w-4 rotate-180",attrs:{name:"micro/chevron-right"}}),I("span",{domProps:{textContent:$._s($.__("Addons"))}})],1)]):$._e(),$.showingAddon?$._e():I("div",{staticClass:"flex mb-6"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__("Addons"))}})]),$.error?I("div",{staticClass:"card text-sm"},[$._v(" "+$._s($.__("messages.addon_list_loading_error"))+" ")]):$._e(),$.initializing?I("div",{staticClass:"card p-6 text-center"},[I("loading-graphic")],1):$._e(),!$.initializing&&!$.showingAddon?I("data-list",{attrs:{rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({rows:N}){return I("div",{},[I("div",{staticClass:"card p-0"},[I("div",{staticClass:"border-b dark:border-dark-900 px-4 text-sm"},[I("button",{staticClass:"data-list-filter-link",class:{active:$.filter==="all"},domProps:{textContent:$._s($.__("All"))},on:{click:function(B){$.filter="all"}}}),I("button",{staticClass:"data-list-filter-link",class:{active:$.filter==="installed"},on:{click:function(B){$.filter="installed"}}},[$._v(" "+$._s($.__("Installed"))+" "),$.installCount?I("span",{staticClass:"badge"},[$._v($._s($.installCount))]):$._e()])]),I("div",{staticClass:"p-2"},[I("data-list-search",{ref:"search",model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}})],1)]),I("div",{staticClass:"addon-grid my-8",class:{"opacity-50":$.loading}},$._l(N,function(B){return I("div",{key:B.id,staticClass:"addon-card bg-white dark:bg-dark-600 text-gray-800 dark:text-dark-150 h-full shadow dark:shadow-dark rounded cursor-pointer relative",on:{click:function(j){return $.showAddon(B)}}},[B.installed?I("span",{staticClass:"badge absolute top-0 rtl:right-0 ltr:left-0 mt-2 rtl:mr-2 ltr:ml-2"},[$._v("Installed")]):$._e(),I("div",{staticClass:"h-48 rounded-t bg-cover bg-center",style:"background-image: url('"+$.getCover(B)+"')"}),I("div",{staticClass:"px-6 mb-4 relative text-center"},[I("a",{staticClass:"relative",attrs:{href:B.seller.website}},[I("img",{staticClass:"rounded-full h-14 w-14 bg-white dark:bg-dark-600 relative -mt-8 border-2 border-white dark:border-dark-600 inline",attrs:{src:B.seller.avatar,alt:B.seller.name}})]),I("div",{staticClass:"addon-card-title mb-2 text-lg font-bold text-center"},[$._v($._s(B.name))]),I("p",{staticClass:"text-gray dark:text-dark-175 mb-4",domProps:{textContent:$._s($.getPriceRange(B))}}),I("p",{staticClass:"text-sm",domProps:{textContent:$._s(B.summary)}})])])}),0),I("data-list-pagination",{attrs:{"resource-meta":$.meta},on:{"page-selected":$.setPage}})],1)}}],null,!1,3499130387)}):$._e(),$.unlisted.length&&!$.showingAddon?[I("h6",{staticClass:"mt-8"},[$._v($._s($.__("Unlisted Addons")))]),I("div",{staticClass:"card p-0 mt-2"},[I("table",{staticClass:"data-table"},[I("tbody",$._l($.unlisted,function(N){return I("tr",{key:N.package},[I("td",{domProps:{textContent:$._s(N.name)}}),I("td",{domProps:{textContent:$._s(N.package)}})])}),0)])])]:$._e(),$.showingAddon?I("addon-details",{attrs:{addon:$.showingAddon,cover:$.getCover($.showingAddon)}}):$._e()],2)},_sfc_staticRenderFns$34=[],__component__$35=normalizeComponent$2(_sfc_main$34,_sfc_render$34,_sfc_staticRenderFns$34,!1,null,null,null,null);const AddonList=__component__$35.exports,_sfc_main$33={props:{addon:{type:Object,required:!0}},data(){return{selected:this.addon.edition,saving:!1}},watch:{saving(M){this.$progress.loading(M)},"addon.edition":function(M){this.selected=M}},methods:{select(M){this.saving=!0,this.$axios.post(cp_url("addons/editions"),{addon:this.addon.package,edition:M.handle}).then($=>{this.selected=M.handle,this.saving=!1})},label(M){const $=__("Free"),I=M.price===0?$:`$${M.price}`;return I===$&&M.name===$?M.name:`${M.name} (${I})`},buttonDisabled(M){return!this.addon.installed||M.handle===this.selected}}};var _sfc_render$33=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"card mb-6"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Editions"))}}),I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"btn-group"},$._l($.addon.editions,function(N){return I("button",{key:N.handle,staticClass:"btn px-4",class:{disabled:$.buttonDisabled(N)},attrs:{disabled:$.buttonDisabled(N)},domProps:{textContent:$._s($.label(N))},on:{click:function(B){return $.select(N)}}})}),0),$.saving?I("loading-graphic",{staticClass:"rtl:mr-4 ltr:ml-4",attrs:{inline:"",text:""}}):$._e()],1)])},_sfc_staticRenderFns$33=[],__component__$34=normalizeComponent$2(_sfc_main$33,_sfc_render$33,_sfc_staticRenderFns$33,!1,null,null,null,null);const AddonEditions=__component__$34.exports,_sfc_main$32={components:{AddonEditions},props:["addon"],data(){return{waitingForRefresh:!1,modalOpen:!1,downloads:null}},computed:{package(){return this.addon.package},description(){return this.addon.description},priceRange(){let[M,$]=this.addon.price_range;return M=M?`$${M}`:__("Free"),$=$?`$${$}`:__("Free"),M==$?M:`${M} - ${$}`},link(){return __("Learn more about :link",{link:`<a href="https://statamic.dev/addons" target="_blank">${__("Addons")}</a>`})+"."},installCommand(){switch(this.package){case"statamic/collaboration":return"php please install:collaboration";case"statamic/eloquent-driver":return"php please install:eloquent-driver";case"statamic/ssg":return"php please install:ssg";default:return`composer require ${this.package}`}}},created(){this.$events.$on("addon-refreshed",this.addonRefreshed),this.getDownloadCount()},destroyed(){this.$events.$off("addon-refreshed",this.addonRefreshed)},methods:{addonRefreshed(){this.waitingForRefresh=!1},getDownloadCount(){this.$axios.get(`https://packagist.org/packages/${this.addon.package}.json`).then(M=>{this.downloads=M.data.package.downloads.total})}}};var _sfc_render$32=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.addon.name)}}),I("a",{staticClass:"btn",attrs:{href:$.addon.url,target:"_blank"}},[I("svg-icon",{staticClass:"w-3 h-3 rtl:ml-2 ltr:mr-2 shrink-0",attrs:{name:"light/external-link"}}),$._v(" "+$._s($.__("View on Marketplace"))+" ")],1)]),I("div",{staticClass:"flex flex-col-reverse xl:grid xl:grid-cols-3 space-y-6 xl:space-y-0 gap-6"},[I("div",{staticClass:"lg:col-span-2"},[I("div",{staticClass:"card prose max-w-full p-6",domProps:{innerHTML:$._s($.description)}})]),I("div",{staticClass:"xl:col-span-1 flex flex-col space-y-6"},[I("div",{staticClass:"card flex flex-col space-y-6 p-6"},[I("div",{staticClass:"flex-1 text-lg"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Seller"))}}),I("a",{staticClass:"relative flex items-center",attrs:{href:$.addon.seller.website,target:"_blank"}},[I("img",{staticClass:"rounded-full w-6 rtl:ml-2 ltr:mr-2",attrs:{src:$.addon.seller.avatar,alt:$.addon.seller.name}}),I("span",{staticClass:"font-bold"},[$._v($._s($.addon.seller.name))])])]),I("div",{staticClass:"flex-1 text-lg"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Price"))}}),I("div",{staticClass:"font-bold",domProps:{textContent:$._s($.priceRange)}})]),$.downloads?I("div",{staticClass:"flex-1 text-lg"},[I("div",{staticClass:"little-heading p-0 mb-2 text-gray-700",domProps:{textContent:$._s($.__("Downloads"))}}),I("div",{staticClass:"font-bold"},[$._v($._s($.downloads))])]):$._e()]),I("div",{staticClass:"card p-6"},[I("div",{staticClass:"prose"},[$.addon.installed?[I("p",{staticClass:"leading-snug",domProps:{textContent:$._s(`${$.__("messages.addon_uninstall_command")}:`)}}),I("code-block",{staticClass:"text-xs",attrs:{copyable:"",text:`composer remove ${$.package}`}})]:[I("p",{domProps:{textContent:$._s(`${$.__("messages.addon_install_command")}:`)}}),I("code-block",{attrs:{copyable:"",text:$.installCommand}})],I("p",{domProps:{innerHTML:$._s($.link)}})],2)]),$.addon.editions.length?I("addon-editions",{attrs:{addon:$.addon}}):$._e()],1)])])},_sfc_staticRenderFns$32=[],__component__$33=normalizeComponent$2(_sfc_main$32,_sfc_render$32,_sfc_staticRenderFns$32,!1,null,null,null,null);const AddonDetails=__component__$33.exports,_sfc_main$31={mixins:[Listing],props:{collection:String,additionalColumns:Array},data(){return{cols:[{label:"Title",field:"title",visible:!0},...this.additionalColumns],listingKey:"entries",requestUrl:cp_url(`collections/${this.collection}/entries`)}},methods:{getStatusClass(M){return M.published&&M.private?"bg-transparent border border-gray-600":M.published?"bg-green-600":"bg-gray-400 dark:bg-dark-200"},getStatusLabel(M){if(M.status==="published")return __("Published");if(M.status==="scheduled")return __("Scheduled");if(M.status==="expired")return __("Expired");if(M.status==="draft")return __("Draft")},getStatusTooltip(M){if(M.status==="published")return M.collection.dated?__("messages.status_published_with_date",{date:M.date}):null;if(M.status==="scheduled")return __("messages.status_scheduled_with_date",{date:M.date});if(M.status==="expired")return __("messages.status_expired_with_date",{date:M.date});if(M.status==="draft")return null},columnShowing(M){return this.cols.find($=>$.field===M)}}};var _sfc_render$31=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full"},[$.initializing?I("div",{staticClass:"loading"},[I("loading-graphic")],1):$._e(),!$.initializing&&$.items.length?I("data-list",{staticClass:"h-full flex flex-col justify-between",attrs:{rows:$.items,columns:$.cols,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{},[I("data-list-table",{attrs:{loading:$.loading},scopedSlots:$._u([{key:"cell-title",fn:function({row:N}){return[I("div",{staticClass:"flex items-center"},[$.columnShowing("status")?$._e():I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusLabel(N),expression:"getStatusLabel(entry)"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.getStatusClass(N)}),I("a",{attrs:{href:N.edit_url}},[$._v($._s(N.title))])])]}},{key:"cell-status",fn:function({row:N}){return[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusTooltip(N),expression:"getStatusTooltip(entry)"}],staticClass:"status-index-field select-none",class:`status-${N.status}`,domProps:{textContent:$._s($.getStatusLabel(N))}})]}}],null,!0)}),$.meta.last_page!=1?I("data-list-pagination",{staticClass:"py-2 border-t bg-gray-200 rounded-b-lg text-sm dark:bg-dark-650 dark:border-gray-900",attrs:{"resource-meta":$.meta,"scroll-to-top":!1,"show-page-links":!1},on:{"page-selected":$.selectPage}}):$._e()],1)}}],null,!1,1154571969)}):!$.initializing&&!$.items.length?I("p",{staticClass:"p-4 pt-2 text-sm text-gray-600"},[$._v(" "+$._s($.__("There are no entries in this collection"))+" ")]):$._e()],1)},_sfc_staticRenderFns$31=[],__component__$32=normalizeComponent$2(_sfc_main$31,_sfc_render$31,_sfc_staticRenderFns$31,!1,null,null,null,null);const CollectionWidget=__component__$32.exports,__variableDynamicImportRuntimeHelper=(M,$)=>{const I=M[$];return I?typeof I=="function"?I():Promise.resolve(I):new Promise((N,B)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(B.bind(null,new Error("Unknown variable dynamic import: "+$)))})},_sfc_main$30={props:{name:String,default:String,directory:String},data(){return{icon:null}},mounted(){this.icon=this.evaluateIcon()},watch:{name(){this.icon=this.evaluateIcon()}},computed:{customIcon(){if(!this.directory)return;let M=this.directory,$=null,I=this.name;return this.name.includes("/")&&([$,I]=this.name.split("/"),M=M+"/"+$),data_get$1(this.$config.get("customSvgIcons")||{},`${M}.${I}`)}},methods:{evaluateIcon(){return this.customIcon?defineAsyncComponent(()=>new Promise(M=>M({template:this.customIcon}))):this.name.startsWith("<svg")?defineAsyncComponent(()=>new Promise(M=>M({template:this.name}))):defineAsyncComponent(()=>{const[M,$]=this.splitIcon(this.name);return __variableDynamicImportRuntimeHelper(Object.assign({"../../svg/icons/light/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-4a172fe1.js"),[],import.meta.url),"../../svg/icons/light/add.svg":()=>__vitePreload(()=>import("./add-9bd64b65.js"),[],import.meta.url),"../../svg/icons/light/addons.svg":()=>__vitePreload(()=>import("./addons-0a4dd4d7.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets-dots.svg":()=>__vitePreload(()=>import("./angle-brackets-dots-55f4583d.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets.svg":()=>__vitePreload(()=>import("./angle-brackets-e3b98394.js"),[],import.meta.url),"../../svg/icons/light/arrange-letter.svg":()=>__vitePreload(()=>import("./arrange-letter-28c5d925.js"),[],import.meta.url),"../../svg/icons/light/arrange-number.svg":()=>__vitePreload(()=>import("./arrange-number-2c6d43ac.js"),[],import.meta.url),"../../svg/icons/light/array.svg":()=>__vitePreload(()=>import("./array-3505d86f.js"),[],import.meta.url),"../../svg/icons/light/arrow-right-thin.svg":()=>__vitePreload(()=>import("./arrow-right-thin-cc94456c.js"),[],import.meta.url),"../../svg/icons/light/assets.svg":()=>__vitePreload(()=>import("./assets-a10adea6.js"),[],import.meta.url),"../../svg/icons/light/bard.svg":()=>__vitePreload(()=>import("./bard-ae061db3.js"),[],import.meta.url),"../../svg/icons/light/blueprint.svg":()=>__vitePreload(()=>import("./blueprint-007ca3ee.js"),[],import.meta.url),"../../svg/icons/light/blueprints.svg":()=>__vitePreload(()=>import("./blueprints-6cb8a7d1.js"),[],import.meta.url),"../../svg/icons/light/book-open.svg":()=>__vitePreload(()=>import("./book-open-44934d56.js"),[],import.meta.url),"../../svg/icons/light/book-pages.svg":()=>__vitePreload(()=>import("./book-pages-52bc7119.js"),[],import.meta.url),"../../svg/icons/light/browser-com.svg":()=>__vitePreload(()=>import("./browser-com-b7b2122e.js"),[],import.meta.url),"../../svg/icons/light/burger.svg":()=>__vitePreload(()=>import("./burger-519ad6f5.js"),[],import.meta.url),"../../svg/icons/light/button_group.svg":()=>__vitePreload(()=>import("./button_group-8606443e.js"),[],import.meta.url),"../../svg/icons/light/cache.svg":()=>__vitePreload(()=>import("./cache-5ce04083.js"),[],import.meta.url),"../../svg/icons/light/calendar.svg":()=>__vitePreload(()=>import("./calendar-dcec1b9c.js"),[],import.meta.url),"../../svg/icons/light/charts.svg":()=>__vitePreload(()=>import("./charts-87d83ff9.js"),[],import.meta.url),"../../svg/icons/light/check.svg":()=>__vitePreload(()=>import("./check-b06def82.js"),[],import.meta.url),"../../svg/icons/light/checkboxes.svg":()=>__vitePreload(()=>import("./checkboxes-c673747c.js"),[],import.meta.url),"../../svg/icons/light/close.svg":()=>__vitePreload(()=>import("./close-ad87c2a4.js"),[],import.meta.url),"../../svg/icons/light/code.svg":()=>__vitePreload(()=>import("./code-e487637e.js"),[],import.meta.url),"../../svg/icons/light/cog.svg":()=>__vitePreload(()=>import("./cog-7adb88f0.js"),[],import.meta.url),"../../svg/icons/light/collection.svg":()=>__vitePreload(()=>import("./collection-5b99aa2c.js"),[],import.meta.url),"../../svg/icons/light/collections.svg":()=>__vitePreload(()=>import("./collections-6e6967ab.js"),[],import.meta.url),"../../svg/icons/light/color.svg":()=>__vitePreload(()=>import("./color-8c201f9a.js"),[],import.meta.url),"../../svg/icons/light/content-writing.svg":()=>__vitePreload(()=>import("./content-writing-0b42dd39.js"),[],import.meta.url),"../../svg/icons/light/crane.svg":()=>__vitePreload(()=>import("./crane-01a69a63.js"),[],import.meta.url),"../../svg/icons/light/date.svg":()=>__vitePreload(()=>import("./date-6fddfc69.js"),[],import.meta.url),"../../svg/icons/light/dictionary.svg":()=>__vitePreload(()=>import("./dictionary-b8229bb2.js"),[],import.meta.url),"../../svg/icons/light/download.svg":()=>__vitePreload(()=>import("./download-13d1cb2c.js"),[],import.meta.url),"../../svg/icons/light/drag-dots.svg":()=>__vitePreload(()=>import("./drag-dots-5aeb4cfe.js"),[],import.meta.url),"../../svg/icons/light/drawer-file.svg":()=>__vitePreload(()=>import("./drawer-file-788c0365.js"),[],import.meta.url),"../../svg/icons/light/duplicate-ids.svg":()=>__vitePreload(()=>import("./duplicate-ids-f25f735e.js"),[],import.meta.url),"../../svg/icons/light/duplicate.svg":()=>__vitePreload(()=>import("./duplicate-e06d08d8.js"),[],import.meta.url),"../../svg/icons/light/earth.svg":()=>__vitePreload(()=>import("./earth-bf12bee8.js"),[],import.meta.url),"../../svg/icons/light/email-utility.svg":()=>__vitePreload(()=>import("./email-utility-5c2c1e0f.js"),[],import.meta.url),"../../svg/icons/light/entries.svg":()=>__vitePreload(()=>import("./entries-7ac2388c.js"),[],import.meta.url),"../../svg/icons/light/expand-diagonal.svg":()=>__vitePreload(()=>import("./expand-diagonal-bcb29dce.js"),[],import.meta.url),"../../svg/icons/light/expand-vertical.svg":()=>__vitePreload(()=>import("./expand-vertical-8df9132f.js"),[],import.meta.url),"../../svg/icons/light/external-link.svg":()=>__vitePreload(()=>import("./external-link-0c81b049.js"),[],import.meta.url),"../../svg/icons/light/eye.svg":()=>__vitePreload(()=>import("./eye-785bfb5b.js"),[],import.meta.url),"../../svg/icons/light/fieldsets.svg":()=>__vitePreload(()=>import("./fieldsets-fda8f7b3.js"),[],import.meta.url),"../../svg/icons/light/fieldtype.svg":()=>__vitePreload(()=>import("./fieldtype-daeff2f2.js"),[],import.meta.url),"../../svg/icons/light/file-code.svg":()=>__vitePreload(()=>import("./file-code-4397fde8.js"),[],import.meta.url),"../../svg/icons/light/file-text.svg":()=>__vitePreload(()=>import("./file-text-41ad25e1.js"),[],import.meta.url),"../../svg/icons/light/filter-lines.svg":()=>__vitePreload(()=>import("./filter-lines-5049d781.js"),[],import.meta.url),"../../svg/icons/light/filter.svg":()=>__vitePreload(()=>import("./filter-7bf78174.js"),[],import.meta.url),"../../svg/icons/light/flag.svg":()=>__vitePreload(()=>import("./flag-6bb63494.js"),[],import.meta.url),"../../svg/icons/light/float.svg":()=>__vitePreload(()=>import("./float-1677f349.js"),[],import.meta.url),"../../svg/icons/light/form.svg":()=>__vitePreload(()=>import("./form-a899a3b1.js"),[],import.meta.url),"../../svg/icons/light/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-3e7319f1.js"),[],import.meta.url),"../../svg/icons/light/git.svg":()=>__vitePreload(()=>import("./git-a0310b23.js"),[],import.meta.url),"../../svg/icons/light/grid.svg":()=>__vitePreload(()=>import("./grid-3e1f6818.js"),[],import.meta.url),"../../svg/icons/light/group.svg":()=>__vitePreload(()=>import("./group-95d5e899.js"),[],import.meta.url),"../../svg/icons/light/hammer-wrench.svg":()=>__vitePreload(()=>import("./hammer-wrench-38a73504.js"),[],import.meta.url),"../../svg/icons/light/hidden.svg":()=>__vitePreload(()=>import("./hidden-bf89c1b6.js"),[],import.meta.url),"../../svg/icons/light/hierarchy-files.svg":()=>__vitePreload(()=>import("./hierarchy-files-d8f8fca8.js"),[],import.meta.url),"../../svg/icons/light/history.svg":()=>__vitePreload(()=>import("./history-d1491618.js"),[],import.meta.url),"../../svg/icons/light/html.svg":()=>__vitePreload(()=>import("./html-2e851dfc.js"),[],import.meta.url),"../../svg/icons/light/hyperlink-broken.svg":()=>__vitePreload(()=>import("./hyperlink-broken-3ae6e951.js"),[],import.meta.url),"../../svg/icons/light/hyperlink.svg":()=>__vitePreload(()=>import("./hyperlink-6e336b4b.js"),[],import.meta.url),"../../svg/icons/light/icon_picker.svg":()=>__vitePreload(()=>import("./icon_picker-8c14e4be.js"),[],import.meta.url),"../../svg/icons/light/integer.svg":()=>__vitePreload(()=>import("./integer-7843f18f.js"),[],import.meta.url),"../../svg/icons/light/licensing.svg":()=>__vitePreload(()=>import("./licensing-cc27c886.js"),[],import.meta.url),"../../svg/icons/light/link.svg":()=>__vitePreload(()=>import("./link-07bdb6d1.js"),[],import.meta.url),"../../svg/icons/light/list-bullets.svg":()=>__vitePreload(()=>import("./list-bullets-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/list.svg":()=>__vitePreload(()=>import("./list-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/loading-bar.svg":()=>__vitePreload(()=>import("./loading-bar-58f38056.js"),[],import.meta.url),"../../svg/icons/light/lock.svg":()=>__vitePreload(()=>import("./lock-b225bb68.js"),[],import.meta.url),"../../svg/icons/light/magnifying-glass.svg":()=>__vitePreload(()=>import("./magnifying-glass-6cfeaa30.js"),[],import.meta.url),"../../svg/icons/light/markdown.svg":()=>__vitePreload(()=>import("./markdown-1b257ee1.js"),[],import.meta.url),"../../svg/icons/light/nav-preferences.svg":()=>__vitePreload(()=>import("./nav-preferences-f00d229c.js"),[],import.meta.url),"../../svg/icons/light/partial.svg":()=>__vitePreload(()=>import("./partial-94971ad0.js"),[],import.meta.url),"../../svg/icons/light/php.svg":()=>__vitePreload(()=>import("./php-16db75a9.js"),[],import.meta.url),"../../svg/icons/light/picker.svg":()=>__vitePreload(()=>import("./picker-18ee48e1.js"),[],import.meta.url),"../../svg/icons/light/pin.svg":()=>__vitePreload(()=>import("./pin-b07b6d75.js"),[],import.meta.url),"../../svg/icons/light/playground.svg":()=>__vitePreload(()=>import("./playground-bfd699a8.js"),[],import.meta.url),"../../svg/icons/light/pro-ribbon.svg":()=>__vitePreload(()=>import("./pro-ribbon-bcbf323b.js"),[],import.meta.url),"../../svg/icons/light/pull-down.svg":()=>__vitePreload(()=>import("./pull-down-96f88daf.js"),[],import.meta.url),"../../svg/icons/light/radio.svg":()=>__vitePreload(()=>import("./radio-c9ebc51b.js"),[],import.meta.url),"../../svg/icons/light/range.svg":()=>__vitePreload(()=>import("./range-a4272066.js"),[],import.meta.url),"../../svg/icons/light/replicator.svg":()=>__vitePreload(()=>import("./replicator-f4236336.js"),[],import.meta.url),"../../svg/icons/light/revealer.svg":()=>__vitePreload(()=>import("./revealer-b5fabe54.js"),[],import.meta.url),"../../svg/icons/light/search-utility.svg":()=>__vitePreload(()=>import("./search-utility-011043ba.js"),[],import.meta.url),"../../svg/icons/light/search.svg":()=>__vitePreload(()=>import("./search-858bf202.js"),[],import.meta.url),"../../svg/icons/light/section.svg":()=>__vitePreload(()=>import("./section-0660cf61.js"),[],import.meta.url),"../../svg/icons/light/select.svg":()=>__vitePreload(()=>import("./select-ef552557.js"),[],import.meta.url),"../../svg/icons/light/seo-search-graph.svg":()=>__vitePreload(()=>import("./seo-search-graph-8cc1ca71.js"),[],import.meta.url),"../../svg/icons/light/settings-horizontal.svg":()=>__vitePreload(()=>import("./settings-horizontal-507fbc32.js"),[],import.meta.url),"../../svg/icons/light/settings-slider.svg":()=>__vitePreload(()=>import("./settings-slider-d0056519.js"),[],import.meta.url),"../../svg/icons/light/settings.svg":()=>__vitePreload(()=>import("./settings-57e1db31.js"),[],import.meta.url),"../../svg/icons/light/shield-key.svg":()=>__vitePreload(()=>import("./shield-key-969a463d.js"),[],import.meta.url),"../../svg/icons/light/shrink.svg":()=>__vitePreload(()=>import("./shrink-c9676c82.js"),[],import.meta.url),"../../svg/icons/light/sites.svg":()=>__vitePreload(()=>import("./sites-3e1a937f.js"),[],import.meta.url),"../../svg/icons/light/slug.svg":()=>__vitePreload(()=>import("./slug-5b67b259.js"),[],import.meta.url),"../../svg/icons/light/structures.svg":()=>__vitePreload(()=>import("./structures-11c546fd.js"),[],import.meta.url),"../../svg/icons/light/synchronize.svg":()=>__vitePreload(()=>import("./synchronize-127de686.js"),[],import.meta.url),"../../svg/icons/light/table.svg":()=>__vitePreload(()=>import("./table-252a03eb.js"),[],import.meta.url),"../../svg/icons/light/tags.svg":()=>__vitePreload(()=>import("./tags-98173656.js"),[],import.meta.url),"../../svg/icons/light/taxonomies.svg":()=>__vitePreload(()=>import("./taxonomies-5e5a9c10.js"),[],import.meta.url),"../../svg/icons/light/taxonomy.svg":()=>__vitePreload(()=>import("./taxonomy-a9ca4c2e.js"),[],import.meta.url),"../../svg/icons/light/template.svg":()=>__vitePreload(()=>import("./template-f7258fc9.js"),[],import.meta.url),"../../svg/icons/light/text.svg":()=>__vitePreload(()=>import("./text-d6ab75a9.js"),[],import.meta.url),"../../svg/icons/light/textarea.svg":()=>__vitePreload(()=>import("./textarea-837f6a05.js"),[],import.meta.url),"../../svg/icons/light/time.svg":()=>__vitePreload(()=>import("./time-2e8ca427.js"),[],import.meta.url),"../../svg/icons/light/title.svg":()=>__vitePreload(()=>import("./title-79f169ea.js"),[],import.meta.url),"../../svg/icons/light/toggle.svg":()=>__vitePreload(()=>import("./toggle-3bae8661.js"),[],import.meta.url),"../../svg/icons/light/user-edit.svg":()=>__vitePreload(()=>import("./user-edit-7b9ae6e8.js"),[],import.meta.url),"../../svg/icons/light/user.svg":()=>__vitePreload(()=>import("./user-9b4bab98.js"),[],import.meta.url),"../../svg/icons/light/user_groups.svg":()=>__vitePreload(()=>import("./user_groups-375cd4f9.js"),[],import.meta.url),"../../svg/icons/light/user_roles.svg":()=>__vitePreload(()=>import("./user_roles-ada25224.js"),[],import.meta.url),"../../svg/icons/light/users-box.svg":()=>__vitePreload(()=>import("./users-box-81a035ed.js"),[],import.meta.url),"../../svg/icons/light/users-multiple.svg":()=>__vitePreload(()=>import("./users-multiple-353c36c4.js"),[],import.meta.url),"../../svg/icons/light/users.svg":()=>__vitePreload(()=>import("./users-9b84f17b.js"),[],import.meta.url),"../../svg/icons/light/video.svg":()=>__vitePreload(()=>import("./video-d6557d2b.js"),[],import.meta.url),"../../svg/icons/light/width.svg":()=>__vitePreload(()=>import("./width-b783c381.js"),[],import.meta.url),"../../svg/icons/light/wireframe.svg":()=>__vitePreload(()=>import("./wireframe-3e8da586.js"),[],import.meta.url),"../../svg/icons/light/yaml.svg":()=>__vitePreload(()=>import("./yaml-820d08c0.js"),[],import.meta.url),"../../svg/icons/micro/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-6578a8b1.js"),[],import.meta.url),"../../svg/icons/micro/arrow-go-back.svg":()=>__vitePreload(()=>import("./arrow-go-back-565e2131.js"),[],import.meta.url),"../../svg/icons/micro/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-dc7e3363.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-small.svg":()=>__vitePreload(()=>import("./chevron-down-small-24a46dad.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-xs.svg":()=>__vitePreload(()=>import("./chevron-down-xs-91cef22d.js"),[],import.meta.url),"../../svg/icons/micro/chevron-left.svg":()=>__vitePreload(()=>import("./chevron-left-fc1e5663.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right-thin.svg":()=>__vitePreload(()=>import("./chevron-right-thin-10805dd1.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right.svg":()=>__vitePreload(()=>import("./chevron-right-be1a36f6.js"),[],import.meta.url),"../../svg/icons/micro/circle-help.svg":()=>__vitePreload(()=>import("./circle-help-74709df1.js"),[],import.meta.url),"../../svg/icons/micro/circle-with-cross.svg":()=>__vitePreload(()=>import("./circle-with-cross-6caf6914.js"),[],import.meta.url),"../../svg/icons/micro/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-535fad9d.js"),[],import.meta.url),"../../svg/icons/micro/folder.svg":()=>__vitePreload(()=>import("./folder-53db7195.js"),[],import.meta.url),"../../svg/icons/micro/pencil.svg":()=>__vitePreload(()=>import("./pencil-49c2fd68.js"),[],import.meta.url),"../../svg/icons/micro/plus.svg":()=>__vitePreload(()=>import("./plus-ce68ae64.js"),[],import.meta.url),"../../svg/icons/micro/sharp-pencil.svg":()=>__vitePreload(()=>import("./sharp-pencil-29f9fe88.js"),[],import.meta.url),"../../svg/icons/micro/sharp-trash.svg":()=>__vitePreload(()=>import("./sharp-trash-7573b683.js"),[],import.meta.url),"../../svg/icons/micro/trash.svg":()=>__vitePreload(()=>import("./trash-044f26dd.js"),[],import.meta.url),"../../svg/icons/micro/warning.svg":()=>__vitePreload(()=>import("./warning-b7e837f6.js"),[],import.meta.url),"../../svg/icons/plump/addon-boxes-stack.svg":()=>__vitePreload(()=>import("./addon-boxes-stack-6ce4c795.js"),[],import.meta.url),"../../svg/icons/plump/alert-alarm-bell.svg":()=>__vitePreload(()=>import("./alert-alarm-bell-fc1148d8.js"),[],import.meta.url),"../../svg/icons/plump/alert-help-question.svg":()=>__vitePreload(()=>import("./alert-help-question-a231566c.js"),[],import.meta.url),"../../svg/icons/plump/alert-warning-exclamation-mark.svg":()=>__vitePreload(()=>import("./alert-warning-exclamation-mark-fd803ce5.js"),[],import.meta.url),"../../svg/icons/plump/align-left.svg":()=>__vitePreload(()=>import("./align-left-2f38b489.js"),[],import.meta.url),"../../svg/icons/plump/align-object-bottom.svg":()=>__vitePreload(()=>import("./align-object-bottom-10d9b070.js"),[],import.meta.url),"../../svg/icons/plump/align-object-center.svg":()=>__vitePreload(()=>import("./align-object-center-0f9a0b76.js"),[],import.meta.url),"../../svg/icons/plump/align-object-top.svg":()=>__vitePreload(()=>import("./align-object-top-5e7ec7a9.js"),[],import.meta.url),"../../svg/icons/plump/align-right.svg":()=>__vitePreload(()=>import("./align-right-b3bd3023.js"),[],import.meta.url),"../../svg/icons/plump/arrow-left.svg":()=>__vitePreload(()=>import("./arrow-left-6789983f.js"),[],import.meta.url),"../../svg/icons/plump/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-98e5a177.js"),[],import.meta.url),"../../svg/icons/plump/arrow-roadmap-path-flow.svg":()=>__vitePreload(()=>import("./arrow-roadmap-path-flow-e0cb9f66.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-height.svg":()=>__vitePreload(()=>import("./arrows-fit-to-height-ecc46200.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-width.svg":()=>__vitePreload(()=>import("./arrows-fit-to-width-dbbf7d70.js"),[],import.meta.url),"../../svg/icons/plump/bookmark.svg":()=>__vitePreload(()=>import("./bookmark-73874bf7.js"),[],import.meta.url),"../../svg/icons/plump/calendar-date.svg":()=>__vitePreload(()=>import("./calendar-date-6bfb1441.js"),[],import.meta.url),"../../svg/icons/plump/computer-desktop.svg":()=>__vitePreload(()=>import("./computer-desktop-35dbd877.js"),[],import.meta.url),"../../svg/icons/plump/computer-logo-communication-zoom.svg":()=>__vitePreload(()=>import("./computer-logo-communication-zoom-356e7a41.js"),[],import.meta.url),"../../svg/icons/plump/computer-voice-mail-microphone.svg":()=>__vitePreload(()=>import("./computer-voice-mail-microphone-10e6eff6.js"),[],import.meta.url),"../../svg/icons/plump/content-book-open.svg":()=>__vitePreload(()=>import("./content-book-open-0b03b86d.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-2.svg":()=>__vitePreload(()=>import("./dashboard-layout-2-db1753b7.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-3.svg":()=>__vitePreload(()=>import("./dashboard-layout-3-9c917850.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout.svg":()=>__vitePreload(()=>import("./dashboard-layout-5f55876b.js"),[],import.meta.url),"../../svg/icons/plump/direction-buttons.svg":()=>__vitePreload(()=>import("./direction-buttons-62c3a471.js"),[],import.meta.url),"../../svg/icons/plump/download-arrow-down.svg":()=>__vitePreload(()=>import("./download-arrow-down-79b0ec3b.js"),[],import.meta.url),"../../svg/icons/plump/edit-design-compare-ab-testing.svg":()=>__vitePreload(()=>import("./edit-design-compare-ab-testing-f8a5a223.js"),[],import.meta.url),"../../svg/icons/plump/edit-paint-palette.svg":()=>__vitePreload(()=>import("./edit-paint-palette-93f3a989.js"),[],import.meta.url),"../../svg/icons/plump/edit-pen.svg":()=>__vitePreload(()=>import("./edit-pen-cbf1a427.js"),[],import.meta.url),"../../svg/icons/plump/edit-pin.svg":()=>__vitePreload(()=>import("./edit-pin-45ecef90.js"),[],import.meta.url),"../../svg/icons/plump/favorite-award.svg":()=>__vitePreload(()=>import("./favorite-award-330f67e1.js"),[],import.meta.url),"../../svg/icons/plump/favorite-heart.svg":()=>__vitePreload(()=>import("./favorite-heart-c1f8d959.js"),[],import.meta.url),"../../svg/icons/plump/favorite-like.svg":()=>__vitePreload(()=>import("./favorite-like-edda77d0.js"),[],import.meta.url),"../../svg/icons/plump/favorite-star.svg":()=>__vitePreload(()=>import("./favorite-star-7463bd8c.js"),[],import.meta.url),"../../svg/icons/plump/file-content-list.svg":()=>__vitePreload(()=>import("./file-content-list-29b04654.js"),[],import.meta.url),"../../svg/icons/plump/file-zip.svg":()=>__vitePreload(()=>import("./file-zip-ef2d8268.js"),[],import.meta.url),"../../svg/icons/plump/fire-flame-burn-hot.svg":()=>__vitePreload(()=>import("./fire-flame-burn-hot-40cd10d0.js"),[],import.meta.url),"../../svg/icons/plump/flash-bolt-lightning.svg":()=>__vitePreload(()=>import("./flash-bolt-lightning-1e8cfb07.js"),[],import.meta.url),"../../svg/icons/plump/food-menu-book.svg":()=>__vitePreload(()=>import("./food-menu-book-56ff22dc.js"),[],import.meta.url),"../../svg/icons/plump/form-address-field.svg":()=>__vitePreload(()=>import("./form-address-field-2fcc0cf5.js"),[],import.meta.url),"../../svg/icons/plump/form-date-picker.svg":()=>__vitePreload(()=>import("./form-date-picker-abbc91aa.js"),[],import.meta.url),"../../svg/icons/plump/form-drop-down-menu.svg":()=>__vitePreload(()=>import("./form-drop-down-menu-55a5725e.js"),[],import.meta.url),"../../svg/icons/plump/form-text-field.svg":()=>__vitePreload(()=>import("./form-text-field-4b647b3e.js"),[],import.meta.url),"../../svg/icons/plump/globe-world-wide-web.svg":()=>__vitePreload(()=>import("./globe-world-wide-web-087c1d38.js"),[],import.meta.url),"../../svg/icons/plump/hierarchy-vertical-nav-flow.svg":()=>__vitePreload(()=>import("./hierarchy-vertical-nav-flow-320d967b.js"),[],import.meta.url),"../../svg/icons/plump/home-house.svg":()=>__vitePreload(()=>import("./home-house-d2939636.js"),[],import.meta.url),"../../svg/icons/plump/id-face-scan.svg":()=>__vitePreload(()=>import("./id-face-scan-e7814ced.js"),[],import.meta.url),"../../svg/icons/plump/labs-idea-experimental-flask.svg":()=>__vitePreload(()=>import("./labs-idea-experimental-flask-bfd9a212.js"),[],import.meta.url),"../../svg/icons/plump/layout-carousel-horizontal.svg":()=>__vitePreload(()=>import("./layout-carousel-horizontal-eab0bb6e.js"),[],import.meta.url),"../../svg/icons/plump/layout-display-split-quarters.svg":()=>__vitePreload(()=>import("./layout-display-split-quarters-ed52a1f9.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-down.svg":()=>__vitePreload(()=>import("./layout-flip-down-5efbb12a.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-left.svg":()=>__vitePreload(()=>import("./layout-flip-left-dfbddccc.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-right.svg":()=>__vitePreload(()=>import("./layout-flip-right-0d57afb1.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-up.svg":()=>__vitePreload(()=>import("./layout-flip-up-7b22f5fb.js"),[],import.meta.url),"../../svg/icons/plump/layout-grid-dots.svg":()=>__vitePreload(()=>import("./layout-grid-dots-41d27f32.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-left-15190966.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-right-378c0145.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-split.svg":()=>__vitePreload(()=>import("./layout-header-split-88e5cc6f.js"),[],import.meta.url),"../../svg/icons/plump/layout-header.svg":()=>__vitePreload(()=>import("./layout-header-094a6af6.js"),[],import.meta.url),"../../svg/icons/plump/layout-page-break.svg":()=>__vitePreload(()=>import("./layout-page-break-f05d606b.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-left-90a52a56.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-right-4370128f.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-left-c32d7fd9.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-right-f495564b.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-horizontal.svg":()=>__vitePreload(()=>import("./layout-split-horizontal-3fd32388.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-right.svg":()=>__vitePreload(()=>import("./layout-split-right-63ae8bed.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-verical.svg":()=>__vitePreload(()=>import("./layout-split-verical-1d5ad158.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-column-insert.svg":()=>__vitePreload(()=>import("./layout-table-column-insert-6a022d8a.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-row-insert.svg":()=>__vitePreload(()=>import("./layout-table-row-insert-1accb7ef.js"),[],import.meta.url),"../../svg/icons/plump/layout-three-columns.svg":()=>__vitePreload(()=>import("./layout-three-columns-de4bf4bc.js"),[],import.meta.url),"../../svg/icons/plump/layout-two-columns.svg":()=>__vitePreload(()=>import("./layout-two-columns-289edba7.js"),[],import.meta.url),"../../svg/icons/plump/link-external.svg":()=>__vitePreload(()=>import("./link-external-18f49cf2.js"),[],import.meta.url),"../../svg/icons/plump/link.svg":()=>__vitePreload(()=>import("./link-b5a35c50.js"),[],import.meta.url),"../../svg/icons/plump/login-key-2.svg":()=>__vitePreload(()=>import("./login-key-2-5b218b3a.js"),[],import.meta.url),"../../svg/icons/plump/mail-chat-bubble-text.svg":()=>__vitePreload(()=>import("./mail-chat-bubble-text-ee6fc0a3.js"),[],import.meta.url),"../../svg/icons/plump/mail-inbox-content.svg":()=>__vitePreload(()=>import("./mail-inbox-content-67bc0376.js"),[],import.meta.url),"../../svg/icons/plump/mail-send-email-attachment-document.svg":()=>__vitePreload(()=>import("./mail-send-email-attachment-document-acee8a1f.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-at.svg":()=>__vitePreload(()=>import("./mail-sign-at-50afa3a4.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-hashtag.svg":()=>__vitePreload(()=>import("./mail-sign-hashtag-b9cf5f14.js"),[],import.meta.url),"../../svg/icons/plump/media-computer-screen-tv.svg":()=>__vitePreload(()=>import("./media-computer-screen-tv-c8961765.js"),[],import.meta.url),"../../svg/icons/plump/media-image-camera.svg":()=>__vitePreload(()=>import("./media-image-camera-d72e8ea3.js"),[],import.meta.url),"../../svg/icons/plump/media-image-photo-focus-frame.svg":()=>__vitePreload(()=>import("./media-image-photo-focus-frame-3417a5be.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-gallery.svg":()=>__vitePreload(()=>import("./media-image-picture-gallery-af393898.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-orientation.svg":()=>__vitePreload(()=>import("./media-image-picture-orientation-96bc42e0.js"),[],import.meta.url),"../../svg/icons/plump/media-music-notes.svg":()=>__vitePreload(()=>import("./media-music-notes-82c7f223.js"),[],import.meta.url),"../../svg/icons/plump/media-music-sound-equalizer.svg":()=>__vitePreload(()=>import("./media-music-sound-equalizer-3d9d7000.js"),[],import.meta.url),"../../svg/icons/plump/media-news-paper.svg":()=>__vitePreload(()=>import("./media-news-paper-4d32690a.js"),[],import.meta.url),"../../svg/icons/plump/media-playlist.svg":()=>__vitePreload(()=>import("./media-playlist-a56bea8e.js"),[],import.meta.url),"../../svg/icons/plump/media-ticket.svg":()=>__vitePreload(()=>import("./media-ticket-70f2eee9.js"),[],import.meta.url),"../../svg/icons/plump/media-webcam-video.svg":()=>__vitePreload(()=>import("./media-webcam-video-ec6c9764.js"),[],import.meta.url),"../../svg/icons/plump/money-atm-card.svg":()=>__vitePreload(()=>import("./money-atm-card-bcceab2f.js"),[],import.meta.url),"../../svg/icons/plump/money-bank.svg":()=>__vitePreload(()=>import("./money-bank-e8892e17.js"),[],import.meta.url),"../../svg/icons/plump/money-cash-bill.svg":()=>__vitePreload(()=>import("./money-cash-bill-1ffb3ec5.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-bar-code.svg":()=>__vitePreload(()=>import("./money-cashier-bar-code-52ecd9af.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-calculator.svg":()=>__vitePreload(()=>import("./money-cashier-calculator-71869318.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-price-tag.svg":()=>__vitePreload(()=>import("./money-cashier-price-tag-213e2d66.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-bar-increase.svg":()=>__vitePreload(()=>import("./money-graph-bar-increase-3d59b9cb.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-pie-chart.svg":()=>__vitePreload(()=>import("./money-graph-pie-chart-9f49cf2a.js"),[],import.meta.url),"../../svg/icons/plump/nature-leaf.svg":()=>__vitePreload(()=>import("./nature-leaf-5924d163.js"),[],import.meta.url),"../../svg/icons/plump/phone-contact-phonebook.svg":()=>__vitePreload(()=>import("./phone-contact-phonebook-048ee9df.js"),[],import.meta.url),"../../svg/icons/plump/phone-mode-airplane-enabled.svg":()=>__vitePreload(()=>import("./phone-mode-airplane-enabled-cf5514c0.js"),[],import.meta.url),"../../svg/icons/plump/phone-telephone-call.svg":()=>__vitePreload(()=>import("./phone-telephone-call-b2642fb1.js"),[],import.meta.url),"../../svg/icons/plump/presentation-board.svg":()=>__vitePreload(()=>import("./presentation-board-fd46ddaa.js"),[],import.meta.url),"../../svg/icons/plump/programming-module-box-cube.svg":()=>__vitePreload(()=>import("./programming-module-box-cube-1232e11c.js"),[],import.meta.url),"../../svg/icons/plump/programming-rss-feed.svg":()=>__vitePreload(()=>import("./programming-rss-feed-dbb7b631.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code-brackets.svg":()=>__vitePreload(()=>import("./programming-script-code-brackets-628f4f27.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code.svg":()=>__vitePreload(()=>import("./programming-script-code-8e64c07e.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-complete.svg":()=>__vitePreload(()=>import("./puzzle-complete-2f7d2219.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-piece.svg":()=>__vitePreload(()=>import("./puzzle-piece-05281329.js"),[],import.meta.url),"../../svg/icons/plump/search-magnifying-glass.svg":()=>__vitePreload(()=>import("./search-magnifying-glass-5257ed33.js"),[],import.meta.url),"../../svg/icons/plump/security-lock.svg":()=>__vitePreload(()=>import("./security-lock-2dbb4545.js"),[],import.meta.url),"../../svg/icons/plump/security-unlock.svg":()=>__vitePreload(()=>import("./security-unlock-eb163678.js"),[],import.meta.url),"../../svg/icons/plump/setting-cog-gear.svg":()=>__vitePreload(()=>import("./setting-cog-gear-a44f9b1c.js"),[],import.meta.url),"../../svg/icons/plump/setting-menu-horizontal-dots.svg":()=>__vitePreload(()=>import("./setting-menu-horizontal-dots-5ee49d27.js"),[],import.meta.url),"../../svg/icons/plump/setting-slider-vertical.svg":()=>__vitePreload(()=>import("./setting-slider-vertical-fd027f5d.js"),[],import.meta.url),"../../svg/icons/plump/share-mega-phone.svg":()=>__vitePreload(()=>import("./share-mega-phone-f1e1c0fe.js"),[],import.meta.url),"../../svg/icons/plump/shopping-cart.svg":()=>__vitePreload(()=>import("./shopping-cart-14fc7a98.js"),[],import.meta.url),"../../svg/icons/plump/shopping-catergories-shirt.svg":()=>__vitePreload(()=>import("./shopping-catergories-shirt-e891f60e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-jewelry-diamond-gem.svg":()=>__vitePreload(()=>import("./shopping-jewelry-diamond-gem-f4bb5f5d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-discount-percent.svg":()=>__vitePreload(()=>import("./shopping-store-discount-percent-4d01612d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-signage.svg":()=>__vitePreload(()=>import("./shopping-store-signage-e7b3111e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store.svg":()=>__vitePreload(()=>import("./shopping-store-2abf0ec1.js"),[],import.meta.url),"../../svg/icons/plump/social-facebook.svg":()=>__vitePreload(()=>import("./social-facebook-d2d2dd7e.js"),[],import.meta.url),"../../svg/icons/plump/social-github.svg":()=>__vitePreload(()=>import("./social-github-f86a3389.js"),[],import.meta.url),"../../svg/icons/plump/social-instagram.svg":()=>__vitePreload(()=>import("./social-instagram-c384817e.js"),[],import.meta.url),"../../svg/icons/plump/social-linkedin.svg":()=>__vitePreload(()=>import("./social-linkedin-9a9063dd.js"),[],import.meta.url),"../../svg/icons/plump/social-mail-send-email-message.svg":()=>__vitePreload(()=>import("./social-mail-send-email-message-3a494938.js"),[],import.meta.url),"../../svg/icons/plump/social-mastodon.svg":()=>__vitePreload(()=>import("./social-mastodon-315dbc7f.js"),[],import.meta.url),"../../svg/icons/plump/social-pinterest.svg":()=>__vitePreload(()=>import("./social-pinterest-7f9c41fd.js"),[],import.meta.url),"../../svg/icons/plump/social-share.svg":()=>__vitePreload(()=>import("./social-share-39d56370.js"),[],import.meta.url),"../../svg/icons/plump/social-twitter.svg":()=>__vitePreload(()=>import("./social-twitter-f506d7ee.js"),[],import.meta.url),"../../svg/icons/plump/social-vimeo.svg":()=>__vitePreload(()=>import("./social-vimeo-77481fdc.js"),[],import.meta.url),"../../svg/icons/plump/social-youtube.svg":()=>__vitePreload(()=>import("./social-youtube-533fe0f2.js"),[],import.meta.url),"../../svg/icons/plump/tag-free.svg":()=>__vitePreload(()=>import("./tag-free-56e0debe.js"),[],import.meta.url),"../../svg/icons/plump/tag-new.svg":()=>__vitePreload(()=>import("./tag-new-84da2a59.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-all-caps.svg":()=>__vitePreload(()=>import("./text-formatting-all-caps-6c9fb305.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-ampersand.svg":()=>__vitePreload(()=>import("./text-formatting-ampersand-c8fb922d.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-bottom.svg":()=>__vitePreload(()=>import("./text-formatting-image-bottom-19dba5bb.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-image-left-7cad1aa7.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-image-right-6f72a61f.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-top.svg":()=>__vitePreload(()=>import("./text-formatting-image-top-4f8444ac.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-initial-letter.svg":()=>__vitePreload(()=>import("./text-formatting-initial-letter-94ec98a6.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-input-signature.svg":()=>__vitePreload(()=>import("./text-formatting-input-signature-dad94fe2.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-layer-style.svg":()=>__vitePreload(()=>import("./text-formatting-layer-style-f6ad993a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-markdown.svg":()=>__vitePreload(()=>import("./text-formatting-markdown-1e7f2a11.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-paragraph.svg":()=>__vitePreload(()=>import("./text-formatting-paragraph-e31cf013.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-quotation.svg":()=>__vitePreload(()=>import("./text-formatting-quotation-f9d244c4.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-shadow-text.svg":()=>__vitePreload(()=>import("./text-formatting-shadow-text-59c4b543.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-text-box-1.svg":()=>__vitePreload(()=>import("./text-formatting-text-box-1-a1ee8607.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-type-cursor.svg":()=>__vitePreload(()=>import("./text-formatting-type-cursor-779e1918.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-around-bounding-box.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-around-bounding-box-30967217.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-left-af281461.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-left-ab899ff1.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-right-583fa74a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-right-85ff9d70.js"),[],import.meta.url),"../../svg/icons/plump/time-clock.svg":()=>__vitePreload(()=>import("./time-clock-1a09e6c2.js"),[],import.meta.url),"../../svg/icons/plump/travel-map.svg":()=>__vitePreload(()=>import("./travel-map-d7edbe34.js"),[],import.meta.url),"../../svg/icons/plump/upload-arrow-up.svg":()=>__vitePreload(()=>import("./upload-arrow-up-ddaad6df.js"),[],import.meta.url),"../../svg/icons/plump/user-avatar.svg":()=>__vitePreload(()=>import("./user-avatar-3a439844.js"),[],import.meta.url),"../../svg/icons/plump/user-multiple.svg":()=>__vitePreload(()=>import("./user-multiple-c10883e6.js"),[],import.meta.url),"../../svg/icons/plump/user-security-lock.svg":()=>__vitePreload(()=>import("./user-security-lock-628f35df.js"),[],import.meta.url),"../../svg/icons/regular/add-col-after.svg":()=>__vitePreload(()=>import("./add-col-after-ef55e804.js"),[],import.meta.url),"../../svg/icons/regular/add-col-before.svg":()=>__vitePreload(()=>import("./add-col-before-3e0604fa.js"),[],import.meta.url),"../../svg/icons/regular/add-row-after.svg":()=>__vitePreload(()=>import("./add-row-after-79fb5bd4.js"),[],import.meta.url),"../../svg/icons/regular/add-row-before.svg":()=>__vitePreload(()=>import("./add-row-before-ae1c572a.js"),[],import.meta.url),"../../svg/icons/regular/add-table.svg":()=>__vitePreload(()=>import("./add-table-4500973b.js"),[],import.meta.url),"../../svg/icons/regular/add.svg":()=>__vitePreload(()=>import("./add-62d8d9ba.js"),[],import.meta.url),"../../svg/icons/regular/alert.svg":()=>__vitePreload(()=>import("./alert-1a8dd5c5.js"),[],import.meta.url),"../../svg/icons/regular/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-a8901ad9.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-collapse.svg":()=>__vitePreload(()=>import("./arrows-horizontal-collapse-40d5fe10.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-expand.svg":()=>__vitePreload(()=>import("./arrows-horizontal-expand-48fbc52d.js"),[],import.meta.url),"../../svg/icons/regular/arrows-shrink.svg":()=>__vitePreload(()=>import("./arrows-shrink-9620cfb7.js"),[],import.meta.url),"../../svg/icons/regular/asset-folder.svg":()=>__vitePreload(()=>import("./asset-folder-5e5084a4.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-grid.svg":()=>__vitePreload(()=>import("./assets-mode-grid-61de1550.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-table.svg":()=>__vitePreload(()=>import("./assets-mode-table-367a696d.js"),[],import.meta.url),"../../svg/icons/regular/code-block.svg":()=>__vitePreload(()=>import("./code-block-ba017171.js"),[],import.meta.url),"../../svg/icons/regular/code-inline.svg":()=>__vitePreload(()=>import("./code-inline-d10f54ae.js"),[],import.meta.url),"../../svg/icons/regular/combine-cells.svg":()=>__vitePreload(()=>import("./combine-cells-715a38a4.js"),[],import.meta.url),"../../svg/icons/regular/dark-mode.svg":()=>__vitePreload(()=>import("./dark-mode-23b1473a.js"),[],import.meta.url),"../../svg/icons/regular/data-table.svg":()=>__vitePreload(()=>import("./data-table-84739f8b.js"),[],import.meta.url),"../../svg/icons/regular/delete-col.svg":()=>__vitePreload(()=>import("./delete-col-5e8bea80.js"),[],import.meta.url),"../../svg/icons/regular/delete-row.svg":()=>__vitePreload(()=>import("./delete-row-4351f211.js"),[],import.meta.url),"../../svg/icons/regular/delete-table.svg":()=>__vitePreload(()=>import("./delete-table-e4db6584.js"),[],import.meta.url),"../../svg/icons/regular/download-desktop.svg":()=>__vitePreload(()=>import("./download-desktop-881a331b.js"),[],import.meta.url),"../../svg/icons/regular/eraser.svg":()=>__vitePreload(()=>import("./eraser-0302515e.js"),[],import.meta.url),"../../svg/icons/regular/expand-bold.svg":()=>__vitePreload(()=>import("./expand-bold-9d6e3af4.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical-2.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-2-d4378588.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-718171d9.js"),[],import.meta.url),"../../svg/icons/regular/expand-vertical-bold.svg":()=>__vitePreload(()=>import("./expand-vertical-bold-00aaa8a8.js"),[],import.meta.url),"../../svg/icons/regular/expand.svg":()=>__vitePreload(()=>import("./expand-b75b6bd4.js"),[],import.meta.url),"../../svg/icons/regular/filter-text.svg":()=>__vitePreload(()=>import("./filter-text-ec6181ba.js"),[],import.meta.url),"../../svg/icons/regular/flip-vertical.svg":()=>__vitePreload(()=>import("./flip-vertical-be984c15.js"),[],import.meta.url),"../../svg/icons/regular/focal-point.svg":()=>__vitePreload(()=>import("./focal-point-70338ac3.js"),[],import.meta.url),"../../svg/icons/regular/folder-add.svg":()=>__vitePreload(()=>import("./folder-add-fc763287.js"),[],import.meta.url),"../../svg/icons/regular/folder-generic.svg":()=>__vitePreload(()=>import("./folder-generic-d613d736.js"),[],import.meta.url),"../../svg/icons/regular/folder-home.svg":()=>__vitePreload(()=>import("./folder-home-cce39b8e.js"),[],import.meta.url),"../../svg/icons/regular/folder-image.svg":()=>__vitePreload(()=>import("./folder-image-5fc121fe.js"),[],import.meta.url),"../../svg/icons/regular/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-45bce860.js"),[],import.meta.url),"../../svg/icons/regular/folder.svg":()=>__vitePreload(()=>import("./folder-65681b32.js"),[],import.meta.url),"../../svg/icons/regular/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-e69e9265.js"),[],import.meta.url),"../../svg/icons/regular/h1.svg":()=>__vitePreload(()=>import("./h1-a0b63968.js"),[],import.meta.url),"../../svg/icons/regular/h2.svg":()=>__vitePreload(()=>import("./h2-bd303b0d.js"),[],import.meta.url),"../../svg/icons/regular/h3.svg":()=>__vitePreload(()=>import("./h3-55450d58.js"),[],import.meta.url),"../../svg/icons/regular/h4.svg":()=>__vitePreload(()=>import("./h4-d09559c2.js"),[],import.meta.url),"../../svg/icons/regular/h5.svg":()=>__vitePreload(()=>import("./h5-33b13867.js"),[],import.meta.url),"../../svg/icons/regular/h6.svg":()=>__vitePreload(()=>import("./h6-0730417d.js"),[],import.meta.url),"../../svg/icons/regular/hidden.svg":()=>__vitePreload(()=>import("./hidden-cbd0ab43.js"),[],import.meta.url),"../../svg/icons/regular/home-page.svg":()=>__vitePreload(()=>import("./home-page-827fa2af.js"),[],import.meta.url),"../../svg/icons/regular/horizon.svg":()=>__vitePreload(()=>import("./horizon-0f7b4082.js"),[],import.meta.url),"../../svg/icons/regular/image-file.svg":()=>__vitePreload(()=>import("./image-file-9258e288.js"),[],import.meta.url),"../../svg/icons/regular/image-picture.svg":()=>__vitePreload(()=>import("./image-picture-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/image.svg":()=>__vitePreload(()=>import("./image-7e103d75.js"),[],import.meta.url),"../../svg/icons/regular/info-circle.svg":()=>__vitePreload(()=>import("./info-circle-6b19cac0.js"),[],import.meta.url),"../../svg/icons/regular/insert-image.svg":()=>__vitePreload(()=>import("./insert-image-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/insert-link.svg":()=>__vitePreload(()=>import("./insert-link-158aa1a4.js"),[],import.meta.url),"../../svg/icons/regular/light-mode.svg":()=>__vitePreload(()=>import("./light-mode-db4e6a04.js"),[],import.meta.url),"../../svg/icons/regular/list-ol.svg":()=>__vitePreload(()=>import("./list-ol-c88bac13.js"),[],import.meta.url),"../../svg/icons/regular/list-ul-2.svg":()=>__vitePreload(()=>import("./list-ul-2-3079492f.js"),[],import.meta.url),"../../svg/icons/regular/list-ul.svg":()=>__vitePreload(()=>import("./list-ul-5b0a6720.js"),[],import.meta.url),"../../svg/icons/regular/markdown-icon.svg":()=>__vitePreload(()=>import("./markdown-icon-fb3c3cbf.js"),[],import.meta.url),"../../svg/icons/regular/move-file.svg":()=>__vitePreload(()=>import("./move-file-2ec513c0.js"),[],import.meta.url),"../../svg/icons/regular/new-window.svg":()=>__vitePreload(()=>import("./new-window-58699c80.js"),[],import.meta.url),"../../svg/icons/regular/nova.svg":()=>__vitePreload(()=>import("./nova-a13a1c24.js"),[],import.meta.url),"../../svg/icons/regular/pages.svg":()=>__vitePreload(()=>import("./pages-9a7c5ae2.js"),[],import.meta.url),"../../svg/icons/regular/paperclip.svg":()=>__vitePreload(()=>import("./paperclip-2e70da2c.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-center.svg":()=>__vitePreload(()=>import("./paragraph-align-center-608b0756.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-justified.svg":()=>__vitePreload(()=>import("./paragraph-align-justified-edb480cc.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-left.svg":()=>__vitePreload(()=>import("./paragraph-align-left-21ff72c8.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-right.svg":()=>__vitePreload(()=>import("./paragraph-align-right-8422a6d6.js"),[],import.meta.url),"../../svg/icons/regular/pencil.svg":()=>__vitePreload(()=>import("./pencil-8c2b4c0f.js"),[],import.meta.url),"../../svg/icons/regular/performance-decrease.svg":()=>__vitePreload(()=>import("./performance-decrease-d3091d15.js"),[],import.meta.url),"../../svg/icons/regular/performance-increase.svg":()=>__vitePreload(()=>import("./performance-increase-93126e96.js"),[],import.meta.url),"../../svg/icons/regular/pulse.svg":()=>__vitePreload(()=>import("./pulse-fe14689b.js"),[],import.meta.url),"../../svg/icons/regular/quote.svg":()=>__vitePreload(()=>import("./quote-42c6ac19.js"),[],import.meta.url),"../../svg/icons/regular/radio-deselected.svg":()=>__vitePreload(()=>import("./radio-deselected-4c748b55.js"),[],import.meta.url),"../../svg/icons/regular/radio-selected.svg":()=>__vitePreload(()=>import("./radio-selected-9639aafa.js"),[],import.meta.url),"../../svg/icons/regular/relationship.svg":()=>__vitePreload(()=>import("./relationship-6143ceff.js"),[],import.meta.url),"../../svg/icons/regular/rename-file.svg":()=>__vitePreload(()=>import("./rename-file-40c0fedb.js"),[],import.meta.url),"../../svg/icons/regular/sd-card.svg":()=>__vitePreload(()=>import("./sd-card-fa5c533b.js"),[],import.meta.url),"../../svg/icons/regular/settings-vertical.svg":()=>__vitePreload(()=>import("./settings-vertical-a526ec11.js"),[],import.meta.url),"../../svg/icons/regular/show-source.svg":()=>__vitePreload(()=>import("./show-source-31355249.js"),[],import.meta.url),"../../svg/icons/regular/shrink-all.svg":()=>__vitePreload(()=>import("./shrink-all-e6ce9365.js"),[],import.meta.url),"../../svg/icons/regular/shrink-vertical.svg":()=>__vitePreload(()=>import("./shrink-vertical-546198f7.js"),[],import.meta.url),"../../svg/icons/regular/sort-numeric.svg":()=>__vitePreload(()=>import("./sort-numeric-2729de20.js"),[],import.meta.url),"../../svg/icons/regular/subscript.svg":()=>__vitePreload(()=>import("./subscript-cb1a9069.js"),[],import.meta.url),"../../svg/icons/regular/subtract.svg":()=>__vitePreload(()=>import("./subtract-629e074e.js"),[],import.meta.url),"../../svg/icons/regular/suggest.svg":()=>__vitePreload(()=>import("./suggest-cc137454.js"),[],import.meta.url),"../../svg/icons/regular/superscript.svg":()=>__vitePreload(()=>import("./superscript-89e7f98d.js"),[],import.meta.url),"../../svg/icons/regular/swap.svg":()=>__vitePreload(()=>import("./swap-8620179e.js"),[],import.meta.url),"../../svg/icons/regular/syringe.svg":()=>__vitePreload(()=>import("./syringe-39cac2b4.js"),[],import.meta.url),"../../svg/icons/regular/system.svg":()=>__vitePreload(()=>import("./system-267f57ce.js"),[],import.meta.url),"../../svg/icons/regular/telescope.svg":()=>__vitePreload(()=>import("./telescope-3e0f8434.js"),[],import.meta.url),"../../svg/icons/regular/text-bold.svg":()=>__vitePreload(()=>import("./text-bold-e973ff83.js"),[],import.meta.url),"../../svg/icons/regular/text-italic.svg":()=>__vitePreload(()=>import("./text-italic-e29bac95.js"),[],import.meta.url),"../../svg/icons/regular/text-small.svg":()=>__vitePreload(()=>import("./text-small-1fd0b180.js"),[],import.meta.url),"../../svg/icons/regular/text-strike-through.svg":()=>__vitePreload(()=>import("./text-strike-through-20a184cd.js"),[],import.meta.url),"../../svg/icons/regular/text-underline.svg":()=>__vitePreload(()=>import("./text-underline-c1eebeaf.js"),[],import.meta.url),"../../svg/icons/regular/theme.svg":()=>__vitePreload(()=>import("./theme-52bbae73.js"),[],import.meta.url),"../../svg/icons/regular/thumbprint.svg":()=>__vitePreload(()=>import("./thumbprint-b56383b1.js"),[],import.meta.url),"../../svg/icons/regular/translate.svg":()=>__vitePreload(()=>import("./translate-1bb18ed0.js"),[],import.meta.url),"../../svg/icons/regular/trash.svg":()=>__vitePreload(()=>import("./trash-95a383df.js"),[],import.meta.url),"../../svg/icons/regular/upload-cloud.svg":()=>__vitePreload(()=>import("./upload-cloud-f1a7a3b4.js"),[],import.meta.url),"../../svg/icons/regular/upload.svg":()=>__vitePreload(()=>import("./upload-f32156ee.js"),[],import.meta.url)}),`../../svg/icons/${M}/${$}.svg`).catch(I=>{if(!this.default)return this.fallbackIconImport();const[N,B]=this.splitIcon(this.default);return __variableDynamicImportRuntimeHelper(Object.assign({"../../svg/icons/light/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-4a172fe1.js"),[],import.meta.url),"../../svg/icons/light/add.svg":()=>__vitePreload(()=>import("./add-9bd64b65.js"),[],import.meta.url),"../../svg/icons/light/addons.svg":()=>__vitePreload(()=>import("./addons-0a4dd4d7.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets-dots.svg":()=>__vitePreload(()=>import("./angle-brackets-dots-55f4583d.js"),[],import.meta.url),"../../svg/icons/light/angle-brackets.svg":()=>__vitePreload(()=>import("./angle-brackets-e3b98394.js"),[],import.meta.url),"../../svg/icons/light/arrange-letter.svg":()=>__vitePreload(()=>import("./arrange-letter-28c5d925.js"),[],import.meta.url),"../../svg/icons/light/arrange-number.svg":()=>__vitePreload(()=>import("./arrange-number-2c6d43ac.js"),[],import.meta.url),"../../svg/icons/light/array.svg":()=>__vitePreload(()=>import("./array-3505d86f.js"),[],import.meta.url),"../../svg/icons/light/arrow-right-thin.svg":()=>__vitePreload(()=>import("./arrow-right-thin-cc94456c.js"),[],import.meta.url),"../../svg/icons/light/assets.svg":()=>__vitePreload(()=>import("./assets-a10adea6.js"),[],import.meta.url),"../../svg/icons/light/bard.svg":()=>__vitePreload(()=>import("./bard-ae061db3.js"),[],import.meta.url),"../../svg/icons/light/blueprint.svg":()=>__vitePreload(()=>import("./blueprint-007ca3ee.js"),[],import.meta.url),"../../svg/icons/light/blueprints.svg":()=>__vitePreload(()=>import("./blueprints-6cb8a7d1.js"),[],import.meta.url),"../../svg/icons/light/book-open.svg":()=>__vitePreload(()=>import("./book-open-44934d56.js"),[],import.meta.url),"../../svg/icons/light/book-pages.svg":()=>__vitePreload(()=>import("./book-pages-52bc7119.js"),[],import.meta.url),"../../svg/icons/light/browser-com.svg":()=>__vitePreload(()=>import("./browser-com-b7b2122e.js"),[],import.meta.url),"../../svg/icons/light/burger.svg":()=>__vitePreload(()=>import("./burger-519ad6f5.js"),[],import.meta.url),"../../svg/icons/light/button_group.svg":()=>__vitePreload(()=>import("./button_group-8606443e.js"),[],import.meta.url),"../../svg/icons/light/cache.svg":()=>__vitePreload(()=>import("./cache-5ce04083.js"),[],import.meta.url),"../../svg/icons/light/calendar.svg":()=>__vitePreload(()=>import("./calendar-dcec1b9c.js"),[],import.meta.url),"../../svg/icons/light/charts.svg":()=>__vitePreload(()=>import("./charts-87d83ff9.js"),[],import.meta.url),"../../svg/icons/light/check.svg":()=>__vitePreload(()=>import("./check-b06def82.js"),[],import.meta.url),"../../svg/icons/light/checkboxes.svg":()=>__vitePreload(()=>import("./checkboxes-c673747c.js"),[],import.meta.url),"../../svg/icons/light/close.svg":()=>__vitePreload(()=>import("./close-ad87c2a4.js"),[],import.meta.url),"../../svg/icons/light/code.svg":()=>__vitePreload(()=>import("./code-e487637e.js"),[],import.meta.url),"../../svg/icons/light/cog.svg":()=>__vitePreload(()=>import("./cog-7adb88f0.js"),[],import.meta.url),"../../svg/icons/light/collection.svg":()=>__vitePreload(()=>import("./collection-5b99aa2c.js"),[],import.meta.url),"../../svg/icons/light/collections.svg":()=>__vitePreload(()=>import("./collections-6e6967ab.js"),[],import.meta.url),"../../svg/icons/light/color.svg":()=>__vitePreload(()=>import("./color-8c201f9a.js"),[],import.meta.url),"../../svg/icons/light/content-writing.svg":()=>__vitePreload(()=>import("./content-writing-0b42dd39.js"),[],import.meta.url),"../../svg/icons/light/crane.svg":()=>__vitePreload(()=>import("./crane-01a69a63.js"),[],import.meta.url),"../../svg/icons/light/date.svg":()=>__vitePreload(()=>import("./date-6fddfc69.js"),[],import.meta.url),"../../svg/icons/light/dictionary.svg":()=>__vitePreload(()=>import("./dictionary-b8229bb2.js"),[],import.meta.url),"../../svg/icons/light/download.svg":()=>__vitePreload(()=>import("./download-13d1cb2c.js"),[],import.meta.url),"../../svg/icons/light/drag-dots.svg":()=>__vitePreload(()=>import("./drag-dots-5aeb4cfe.js"),[],import.meta.url),"../../svg/icons/light/drawer-file.svg":()=>__vitePreload(()=>import("./drawer-file-788c0365.js"),[],import.meta.url),"../../svg/icons/light/duplicate-ids.svg":()=>__vitePreload(()=>import("./duplicate-ids-f25f735e.js"),[],import.meta.url),"../../svg/icons/light/duplicate.svg":()=>__vitePreload(()=>import("./duplicate-e06d08d8.js"),[],import.meta.url),"../../svg/icons/light/earth.svg":()=>__vitePreload(()=>import("./earth-bf12bee8.js"),[],import.meta.url),"../../svg/icons/light/email-utility.svg":()=>__vitePreload(()=>import("./email-utility-5c2c1e0f.js"),[],import.meta.url),"../../svg/icons/light/entries.svg":()=>__vitePreload(()=>import("./entries-7ac2388c.js"),[],import.meta.url),"../../svg/icons/light/expand-diagonal.svg":()=>__vitePreload(()=>import("./expand-diagonal-bcb29dce.js"),[],import.meta.url),"../../svg/icons/light/expand-vertical.svg":()=>__vitePreload(()=>import("./expand-vertical-8df9132f.js"),[],import.meta.url),"../../svg/icons/light/external-link.svg":()=>__vitePreload(()=>import("./external-link-0c81b049.js"),[],import.meta.url),"../../svg/icons/light/eye.svg":()=>__vitePreload(()=>import("./eye-785bfb5b.js"),[],import.meta.url),"../../svg/icons/light/fieldsets.svg":()=>__vitePreload(()=>import("./fieldsets-fda8f7b3.js"),[],import.meta.url),"../../svg/icons/light/fieldtype.svg":()=>__vitePreload(()=>import("./fieldtype-daeff2f2.js"),[],import.meta.url),"../../svg/icons/light/file-code.svg":()=>__vitePreload(()=>import("./file-code-4397fde8.js"),[],import.meta.url),"../../svg/icons/light/file-text.svg":()=>__vitePreload(()=>import("./file-text-41ad25e1.js"),[],import.meta.url),"../../svg/icons/light/filter-lines.svg":()=>__vitePreload(()=>import("./filter-lines-5049d781.js"),[],import.meta.url),"../../svg/icons/light/filter.svg":()=>__vitePreload(()=>import("./filter-7bf78174.js"),[],import.meta.url),"../../svg/icons/light/flag.svg":()=>__vitePreload(()=>import("./flag-6bb63494.js"),[],import.meta.url),"../../svg/icons/light/float.svg":()=>__vitePreload(()=>import("./float-1677f349.js"),[],import.meta.url),"../../svg/icons/light/form.svg":()=>__vitePreload(()=>import("./form-a899a3b1.js"),[],import.meta.url),"../../svg/icons/light/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-3e7319f1.js"),[],import.meta.url),"../../svg/icons/light/git.svg":()=>__vitePreload(()=>import("./git-a0310b23.js"),[],import.meta.url),"../../svg/icons/light/grid.svg":()=>__vitePreload(()=>import("./grid-3e1f6818.js"),[],import.meta.url),"../../svg/icons/light/group.svg":()=>__vitePreload(()=>import("./group-95d5e899.js"),[],import.meta.url),"../../svg/icons/light/hammer-wrench.svg":()=>__vitePreload(()=>import("./hammer-wrench-38a73504.js"),[],import.meta.url),"../../svg/icons/light/hidden.svg":()=>__vitePreload(()=>import("./hidden-bf89c1b6.js"),[],import.meta.url),"../../svg/icons/light/hierarchy-files.svg":()=>__vitePreload(()=>import("./hierarchy-files-d8f8fca8.js"),[],import.meta.url),"../../svg/icons/light/history.svg":()=>__vitePreload(()=>import("./history-d1491618.js"),[],import.meta.url),"../../svg/icons/light/html.svg":()=>__vitePreload(()=>import("./html-2e851dfc.js"),[],import.meta.url),"../../svg/icons/light/hyperlink-broken.svg":()=>__vitePreload(()=>import("./hyperlink-broken-3ae6e951.js"),[],import.meta.url),"../../svg/icons/light/hyperlink.svg":()=>__vitePreload(()=>import("./hyperlink-6e336b4b.js"),[],import.meta.url),"../../svg/icons/light/icon_picker.svg":()=>__vitePreload(()=>import("./icon_picker-8c14e4be.js"),[],import.meta.url),"../../svg/icons/light/integer.svg":()=>__vitePreload(()=>import("./integer-7843f18f.js"),[],import.meta.url),"../../svg/icons/light/licensing.svg":()=>__vitePreload(()=>import("./licensing-cc27c886.js"),[],import.meta.url),"../../svg/icons/light/link.svg":()=>__vitePreload(()=>import("./link-07bdb6d1.js"),[],import.meta.url),"../../svg/icons/light/list-bullets.svg":()=>__vitePreload(()=>import("./list-bullets-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/list.svg":()=>__vitePreload(()=>import("./list-9e07163c.js"),[],import.meta.url),"../../svg/icons/light/loading-bar.svg":()=>__vitePreload(()=>import("./loading-bar-58f38056.js"),[],import.meta.url),"../../svg/icons/light/lock.svg":()=>__vitePreload(()=>import("./lock-b225bb68.js"),[],import.meta.url),"../../svg/icons/light/magnifying-glass.svg":()=>__vitePreload(()=>import("./magnifying-glass-6cfeaa30.js"),[],import.meta.url),"../../svg/icons/light/markdown.svg":()=>__vitePreload(()=>import("./markdown-1b257ee1.js"),[],import.meta.url),"../../svg/icons/light/nav-preferences.svg":()=>__vitePreload(()=>import("./nav-preferences-f00d229c.js"),[],import.meta.url),"../../svg/icons/light/partial.svg":()=>__vitePreload(()=>import("./partial-94971ad0.js"),[],import.meta.url),"../../svg/icons/light/php.svg":()=>__vitePreload(()=>import("./php-16db75a9.js"),[],import.meta.url),"../../svg/icons/light/picker.svg":()=>__vitePreload(()=>import("./picker-18ee48e1.js"),[],import.meta.url),"../../svg/icons/light/pin.svg":()=>__vitePreload(()=>import("./pin-b07b6d75.js"),[],import.meta.url),"../../svg/icons/light/playground.svg":()=>__vitePreload(()=>import("./playground-bfd699a8.js"),[],import.meta.url),"../../svg/icons/light/pro-ribbon.svg":()=>__vitePreload(()=>import("./pro-ribbon-bcbf323b.js"),[],import.meta.url),"../../svg/icons/light/pull-down.svg":()=>__vitePreload(()=>import("./pull-down-96f88daf.js"),[],import.meta.url),"../../svg/icons/light/radio.svg":()=>__vitePreload(()=>import("./radio-c9ebc51b.js"),[],import.meta.url),"../../svg/icons/light/range.svg":()=>__vitePreload(()=>import("./range-a4272066.js"),[],import.meta.url),"../../svg/icons/light/replicator.svg":()=>__vitePreload(()=>import("./replicator-f4236336.js"),[],import.meta.url),"../../svg/icons/light/revealer.svg":()=>__vitePreload(()=>import("./revealer-b5fabe54.js"),[],import.meta.url),"../../svg/icons/light/search-utility.svg":()=>__vitePreload(()=>import("./search-utility-011043ba.js"),[],import.meta.url),"../../svg/icons/light/search.svg":()=>__vitePreload(()=>import("./search-858bf202.js"),[],import.meta.url),"../../svg/icons/light/section.svg":()=>__vitePreload(()=>import("./section-0660cf61.js"),[],import.meta.url),"../../svg/icons/light/select.svg":()=>__vitePreload(()=>import("./select-ef552557.js"),[],import.meta.url),"../../svg/icons/light/seo-search-graph.svg":()=>__vitePreload(()=>import("./seo-search-graph-8cc1ca71.js"),[],import.meta.url),"../../svg/icons/light/settings-horizontal.svg":()=>__vitePreload(()=>import("./settings-horizontal-507fbc32.js"),[],import.meta.url),"../../svg/icons/light/settings-slider.svg":()=>__vitePreload(()=>import("./settings-slider-d0056519.js"),[],import.meta.url),"../../svg/icons/light/settings.svg":()=>__vitePreload(()=>import("./settings-57e1db31.js"),[],import.meta.url),"../../svg/icons/light/shield-key.svg":()=>__vitePreload(()=>import("./shield-key-969a463d.js"),[],import.meta.url),"../../svg/icons/light/shrink.svg":()=>__vitePreload(()=>import("./shrink-c9676c82.js"),[],import.meta.url),"../../svg/icons/light/sites.svg":()=>__vitePreload(()=>import("./sites-3e1a937f.js"),[],import.meta.url),"../../svg/icons/light/slug.svg":()=>__vitePreload(()=>import("./slug-5b67b259.js"),[],import.meta.url),"../../svg/icons/light/structures.svg":()=>__vitePreload(()=>import("./structures-11c546fd.js"),[],import.meta.url),"../../svg/icons/light/synchronize.svg":()=>__vitePreload(()=>import("./synchronize-127de686.js"),[],import.meta.url),"../../svg/icons/light/table.svg":()=>__vitePreload(()=>import("./table-252a03eb.js"),[],import.meta.url),"../../svg/icons/light/tags.svg":()=>__vitePreload(()=>import("./tags-98173656.js"),[],import.meta.url),"../../svg/icons/light/taxonomies.svg":()=>__vitePreload(()=>import("./taxonomies-5e5a9c10.js"),[],import.meta.url),"../../svg/icons/light/taxonomy.svg":()=>__vitePreload(()=>import("./taxonomy-a9ca4c2e.js"),[],import.meta.url),"../../svg/icons/light/template.svg":()=>__vitePreload(()=>import("./template-f7258fc9.js"),[],import.meta.url),"../../svg/icons/light/text.svg":()=>__vitePreload(()=>import("./text-d6ab75a9.js"),[],import.meta.url),"../../svg/icons/light/textarea.svg":()=>__vitePreload(()=>import("./textarea-837f6a05.js"),[],import.meta.url),"../../svg/icons/light/time.svg":()=>__vitePreload(()=>import("./time-2e8ca427.js"),[],import.meta.url),"../../svg/icons/light/title.svg":()=>__vitePreload(()=>import("./title-79f169ea.js"),[],import.meta.url),"../../svg/icons/light/toggle.svg":()=>__vitePreload(()=>import("./toggle-3bae8661.js"),[],import.meta.url),"../../svg/icons/light/user-edit.svg":()=>__vitePreload(()=>import("./user-edit-7b9ae6e8.js"),[],import.meta.url),"../../svg/icons/light/user.svg":()=>__vitePreload(()=>import("./user-9b4bab98.js"),[],import.meta.url),"../../svg/icons/light/user_groups.svg":()=>__vitePreload(()=>import("./user_groups-375cd4f9.js"),[],import.meta.url),"../../svg/icons/light/user_roles.svg":()=>__vitePreload(()=>import("./user_roles-ada25224.js"),[],import.meta.url),"../../svg/icons/light/users-box.svg":()=>__vitePreload(()=>import("./users-box-81a035ed.js"),[],import.meta.url),"../../svg/icons/light/users-multiple.svg":()=>__vitePreload(()=>import("./users-multiple-353c36c4.js"),[],import.meta.url),"../../svg/icons/light/users.svg":()=>__vitePreload(()=>import("./users-9b84f17b.js"),[],import.meta.url),"../../svg/icons/light/video.svg":()=>__vitePreload(()=>import("./video-d6557d2b.js"),[],import.meta.url),"../../svg/icons/light/width.svg":()=>__vitePreload(()=>import("./width-b783c381.js"),[],import.meta.url),"../../svg/icons/light/wireframe.svg":()=>__vitePreload(()=>import("./wireframe-3e8da586.js"),[],import.meta.url),"../../svg/icons/light/yaml.svg":()=>__vitePreload(()=>import("./yaml-820d08c0.js"),[],import.meta.url),"../../svg/icons/micro/add-circle.svg":()=>__vitePreload(()=>import("./add-circle-6578a8b1.js"),[],import.meta.url),"../../svg/icons/micro/arrow-go-back.svg":()=>__vitePreload(()=>import("./arrow-go-back-565e2131.js"),[],import.meta.url),"../../svg/icons/micro/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-dc7e3363.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-small.svg":()=>__vitePreload(()=>import("./chevron-down-small-24a46dad.js"),[],import.meta.url),"../../svg/icons/micro/chevron-down-xs.svg":()=>__vitePreload(()=>import("./chevron-down-xs-91cef22d.js"),[],import.meta.url),"../../svg/icons/micro/chevron-left.svg":()=>__vitePreload(()=>import("./chevron-left-fc1e5663.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right-thin.svg":()=>__vitePreload(()=>import("./chevron-right-thin-10805dd1.js"),[],import.meta.url),"../../svg/icons/micro/chevron-right.svg":()=>__vitePreload(()=>import("./chevron-right-be1a36f6.js"),[],import.meta.url),"../../svg/icons/micro/circle-help.svg":()=>__vitePreload(()=>import("./circle-help-74709df1.js"),[],import.meta.url),"../../svg/icons/micro/circle-with-cross.svg":()=>__vitePreload(()=>import("./circle-with-cross-6caf6914.js"),[],import.meta.url),"../../svg/icons/micro/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-535fad9d.js"),[],import.meta.url),"../../svg/icons/micro/folder.svg":()=>__vitePreload(()=>import("./folder-53db7195.js"),[],import.meta.url),"../../svg/icons/micro/pencil.svg":()=>__vitePreload(()=>import("./pencil-49c2fd68.js"),[],import.meta.url),"../../svg/icons/micro/plus.svg":()=>__vitePreload(()=>import("./plus-ce68ae64.js"),[],import.meta.url),"../../svg/icons/micro/sharp-pencil.svg":()=>__vitePreload(()=>import("./sharp-pencil-29f9fe88.js"),[],import.meta.url),"../../svg/icons/micro/sharp-trash.svg":()=>__vitePreload(()=>import("./sharp-trash-7573b683.js"),[],import.meta.url),"../../svg/icons/micro/trash.svg":()=>__vitePreload(()=>import("./trash-044f26dd.js"),[],import.meta.url),"../../svg/icons/micro/warning.svg":()=>__vitePreload(()=>import("./warning-b7e837f6.js"),[],import.meta.url),"../../svg/icons/plump/addon-boxes-stack.svg":()=>__vitePreload(()=>import("./addon-boxes-stack-6ce4c795.js"),[],import.meta.url),"../../svg/icons/plump/alert-alarm-bell.svg":()=>__vitePreload(()=>import("./alert-alarm-bell-fc1148d8.js"),[],import.meta.url),"../../svg/icons/plump/alert-help-question.svg":()=>__vitePreload(()=>import("./alert-help-question-a231566c.js"),[],import.meta.url),"../../svg/icons/plump/alert-warning-exclamation-mark.svg":()=>__vitePreload(()=>import("./alert-warning-exclamation-mark-fd803ce5.js"),[],import.meta.url),"../../svg/icons/plump/align-left.svg":()=>__vitePreload(()=>import("./align-left-2f38b489.js"),[],import.meta.url),"../../svg/icons/plump/align-object-bottom.svg":()=>__vitePreload(()=>import("./align-object-bottom-10d9b070.js"),[],import.meta.url),"../../svg/icons/plump/align-object-center.svg":()=>__vitePreload(()=>import("./align-object-center-0f9a0b76.js"),[],import.meta.url),"../../svg/icons/plump/align-object-top.svg":()=>__vitePreload(()=>import("./align-object-top-5e7ec7a9.js"),[],import.meta.url),"../../svg/icons/plump/align-right.svg":()=>__vitePreload(()=>import("./align-right-b3bd3023.js"),[],import.meta.url),"../../svg/icons/plump/arrow-left.svg":()=>__vitePreload(()=>import("./arrow-left-6789983f.js"),[],import.meta.url),"../../svg/icons/plump/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-98e5a177.js"),[],import.meta.url),"../../svg/icons/plump/arrow-roadmap-path-flow.svg":()=>__vitePreload(()=>import("./arrow-roadmap-path-flow-e0cb9f66.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-height.svg":()=>__vitePreload(()=>import("./arrows-fit-to-height-ecc46200.js"),[],import.meta.url),"../../svg/icons/plump/arrows-fit-to-width.svg":()=>__vitePreload(()=>import("./arrows-fit-to-width-dbbf7d70.js"),[],import.meta.url),"../../svg/icons/plump/bookmark.svg":()=>__vitePreload(()=>import("./bookmark-73874bf7.js"),[],import.meta.url),"../../svg/icons/plump/calendar-date.svg":()=>__vitePreload(()=>import("./calendar-date-6bfb1441.js"),[],import.meta.url),"../../svg/icons/plump/computer-desktop.svg":()=>__vitePreload(()=>import("./computer-desktop-35dbd877.js"),[],import.meta.url),"../../svg/icons/plump/computer-logo-communication-zoom.svg":()=>__vitePreload(()=>import("./computer-logo-communication-zoom-356e7a41.js"),[],import.meta.url),"../../svg/icons/plump/computer-voice-mail-microphone.svg":()=>__vitePreload(()=>import("./computer-voice-mail-microphone-10e6eff6.js"),[],import.meta.url),"../../svg/icons/plump/content-book-open.svg":()=>__vitePreload(()=>import("./content-book-open-0b03b86d.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-2.svg":()=>__vitePreload(()=>import("./dashboard-layout-2-db1753b7.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout-3.svg":()=>__vitePreload(()=>import("./dashboard-layout-3-9c917850.js"),[],import.meta.url),"../../svg/icons/plump/dashboard-layout.svg":()=>__vitePreload(()=>import("./dashboard-layout-5f55876b.js"),[],import.meta.url),"../../svg/icons/plump/direction-buttons.svg":()=>__vitePreload(()=>import("./direction-buttons-62c3a471.js"),[],import.meta.url),"../../svg/icons/plump/download-arrow-down.svg":()=>__vitePreload(()=>import("./download-arrow-down-79b0ec3b.js"),[],import.meta.url),"../../svg/icons/plump/edit-design-compare-ab-testing.svg":()=>__vitePreload(()=>import("./edit-design-compare-ab-testing-f8a5a223.js"),[],import.meta.url),"../../svg/icons/plump/edit-paint-palette.svg":()=>__vitePreload(()=>import("./edit-paint-palette-93f3a989.js"),[],import.meta.url),"../../svg/icons/plump/edit-pen.svg":()=>__vitePreload(()=>import("./edit-pen-cbf1a427.js"),[],import.meta.url),"../../svg/icons/plump/edit-pin.svg":()=>__vitePreload(()=>import("./edit-pin-45ecef90.js"),[],import.meta.url),"../../svg/icons/plump/favorite-award.svg":()=>__vitePreload(()=>import("./favorite-award-330f67e1.js"),[],import.meta.url),"../../svg/icons/plump/favorite-heart.svg":()=>__vitePreload(()=>import("./favorite-heart-c1f8d959.js"),[],import.meta.url),"../../svg/icons/plump/favorite-like.svg":()=>__vitePreload(()=>import("./favorite-like-edda77d0.js"),[],import.meta.url),"../../svg/icons/plump/favorite-star.svg":()=>__vitePreload(()=>import("./favorite-star-7463bd8c.js"),[],import.meta.url),"../../svg/icons/plump/file-content-list.svg":()=>__vitePreload(()=>import("./file-content-list-29b04654.js"),[],import.meta.url),"../../svg/icons/plump/file-zip.svg":()=>__vitePreload(()=>import("./file-zip-ef2d8268.js"),[],import.meta.url),"../../svg/icons/plump/fire-flame-burn-hot.svg":()=>__vitePreload(()=>import("./fire-flame-burn-hot-40cd10d0.js"),[],import.meta.url),"../../svg/icons/plump/flash-bolt-lightning.svg":()=>__vitePreload(()=>import("./flash-bolt-lightning-1e8cfb07.js"),[],import.meta.url),"../../svg/icons/plump/food-menu-book.svg":()=>__vitePreload(()=>import("./food-menu-book-56ff22dc.js"),[],import.meta.url),"../../svg/icons/plump/form-address-field.svg":()=>__vitePreload(()=>import("./form-address-field-2fcc0cf5.js"),[],import.meta.url),"../../svg/icons/plump/form-date-picker.svg":()=>__vitePreload(()=>import("./form-date-picker-abbc91aa.js"),[],import.meta.url),"../../svg/icons/plump/form-drop-down-menu.svg":()=>__vitePreload(()=>import("./form-drop-down-menu-55a5725e.js"),[],import.meta.url),"../../svg/icons/plump/form-text-field.svg":()=>__vitePreload(()=>import("./form-text-field-4b647b3e.js"),[],import.meta.url),"../../svg/icons/plump/globe-world-wide-web.svg":()=>__vitePreload(()=>import("./globe-world-wide-web-087c1d38.js"),[],import.meta.url),"../../svg/icons/plump/hierarchy-vertical-nav-flow.svg":()=>__vitePreload(()=>import("./hierarchy-vertical-nav-flow-320d967b.js"),[],import.meta.url),"../../svg/icons/plump/home-house.svg":()=>__vitePreload(()=>import("./home-house-d2939636.js"),[],import.meta.url),"../../svg/icons/plump/id-face-scan.svg":()=>__vitePreload(()=>import("./id-face-scan-e7814ced.js"),[],import.meta.url),"../../svg/icons/plump/labs-idea-experimental-flask.svg":()=>__vitePreload(()=>import("./labs-idea-experimental-flask-bfd9a212.js"),[],import.meta.url),"../../svg/icons/plump/layout-carousel-horizontal.svg":()=>__vitePreload(()=>import("./layout-carousel-horizontal-eab0bb6e.js"),[],import.meta.url),"../../svg/icons/plump/layout-display-split-quarters.svg":()=>__vitePreload(()=>import("./layout-display-split-quarters-ed52a1f9.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-down.svg":()=>__vitePreload(()=>import("./layout-flip-down-5efbb12a.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-left.svg":()=>__vitePreload(()=>import("./layout-flip-left-dfbddccc.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-right.svg":()=>__vitePreload(()=>import("./layout-flip-right-0d57afb1.js"),[],import.meta.url),"../../svg/icons/plump/layout-flip-up.svg":()=>__vitePreload(()=>import("./layout-flip-up-7b22f5fb.js"),[],import.meta.url),"../../svg/icons/plump/layout-grid-dots.svg":()=>__vitePreload(()=>import("./layout-grid-dots-41d27f32.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-left-15190966.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-header-sidebar-right-378c0145.js"),[],import.meta.url),"../../svg/icons/plump/layout-header-split.svg":()=>__vitePreload(()=>import("./layout-header-split-88e5cc6f.js"),[],import.meta.url),"../../svg/icons/plump/layout-header.svg":()=>__vitePreload(()=>import("./layout-header-094a6af6.js"),[],import.meta.url),"../../svg/icons/plump/layout-page-break.svg":()=>__vitePreload(()=>import("./layout-page-break-f05d606b.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-left-90a52a56.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-right-4370128f.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-left.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-left-c32d7fd9.js"),[],import.meta.url),"../../svg/icons/plump/layout-sidebar-split-right.svg":()=>__vitePreload(()=>import("./layout-sidebar-split-right-f495564b.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-horizontal.svg":()=>__vitePreload(()=>import("./layout-split-horizontal-3fd32388.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-right.svg":()=>__vitePreload(()=>import("./layout-split-right-63ae8bed.js"),[],import.meta.url),"../../svg/icons/plump/layout-split-verical.svg":()=>__vitePreload(()=>import("./layout-split-verical-1d5ad158.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-column-insert.svg":()=>__vitePreload(()=>import("./layout-table-column-insert-6a022d8a.js"),[],import.meta.url),"../../svg/icons/plump/layout-table-row-insert.svg":()=>__vitePreload(()=>import("./layout-table-row-insert-1accb7ef.js"),[],import.meta.url),"../../svg/icons/plump/layout-three-columns.svg":()=>__vitePreload(()=>import("./layout-three-columns-de4bf4bc.js"),[],import.meta.url),"../../svg/icons/plump/layout-two-columns.svg":()=>__vitePreload(()=>import("./layout-two-columns-289edba7.js"),[],import.meta.url),"../../svg/icons/plump/link-external.svg":()=>__vitePreload(()=>import("./link-external-18f49cf2.js"),[],import.meta.url),"../../svg/icons/plump/link.svg":()=>__vitePreload(()=>import("./link-b5a35c50.js"),[],import.meta.url),"../../svg/icons/plump/login-key-2.svg":()=>__vitePreload(()=>import("./login-key-2-5b218b3a.js"),[],import.meta.url),"../../svg/icons/plump/mail-chat-bubble-text.svg":()=>__vitePreload(()=>import("./mail-chat-bubble-text-ee6fc0a3.js"),[],import.meta.url),"../../svg/icons/plump/mail-inbox-content.svg":()=>__vitePreload(()=>import("./mail-inbox-content-67bc0376.js"),[],import.meta.url),"../../svg/icons/plump/mail-send-email-attachment-document.svg":()=>__vitePreload(()=>import("./mail-send-email-attachment-document-acee8a1f.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-at.svg":()=>__vitePreload(()=>import("./mail-sign-at-50afa3a4.js"),[],import.meta.url),"../../svg/icons/plump/mail-sign-hashtag.svg":()=>__vitePreload(()=>import("./mail-sign-hashtag-b9cf5f14.js"),[],import.meta.url),"../../svg/icons/plump/media-computer-screen-tv.svg":()=>__vitePreload(()=>import("./media-computer-screen-tv-c8961765.js"),[],import.meta.url),"../../svg/icons/plump/media-image-camera.svg":()=>__vitePreload(()=>import("./media-image-camera-d72e8ea3.js"),[],import.meta.url),"../../svg/icons/plump/media-image-photo-focus-frame.svg":()=>__vitePreload(()=>import("./media-image-photo-focus-frame-3417a5be.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-gallery.svg":()=>__vitePreload(()=>import("./media-image-picture-gallery-af393898.js"),[],import.meta.url),"../../svg/icons/plump/media-image-picture-orientation.svg":()=>__vitePreload(()=>import("./media-image-picture-orientation-96bc42e0.js"),[],import.meta.url),"../../svg/icons/plump/media-music-notes.svg":()=>__vitePreload(()=>import("./media-music-notes-82c7f223.js"),[],import.meta.url),"../../svg/icons/plump/media-music-sound-equalizer.svg":()=>__vitePreload(()=>import("./media-music-sound-equalizer-3d9d7000.js"),[],import.meta.url),"../../svg/icons/plump/media-news-paper.svg":()=>__vitePreload(()=>import("./media-news-paper-4d32690a.js"),[],import.meta.url),"../../svg/icons/plump/media-playlist.svg":()=>__vitePreload(()=>import("./media-playlist-a56bea8e.js"),[],import.meta.url),"../../svg/icons/plump/media-ticket.svg":()=>__vitePreload(()=>import("./media-ticket-70f2eee9.js"),[],import.meta.url),"../../svg/icons/plump/media-webcam-video.svg":()=>__vitePreload(()=>import("./media-webcam-video-ec6c9764.js"),[],import.meta.url),"../../svg/icons/plump/money-atm-card.svg":()=>__vitePreload(()=>import("./money-atm-card-bcceab2f.js"),[],import.meta.url),"../../svg/icons/plump/money-bank.svg":()=>__vitePreload(()=>import("./money-bank-e8892e17.js"),[],import.meta.url),"../../svg/icons/plump/money-cash-bill.svg":()=>__vitePreload(()=>import("./money-cash-bill-1ffb3ec5.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-bar-code.svg":()=>__vitePreload(()=>import("./money-cashier-bar-code-52ecd9af.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-calculator.svg":()=>__vitePreload(()=>import("./money-cashier-calculator-71869318.js"),[],import.meta.url),"../../svg/icons/plump/money-cashier-price-tag.svg":()=>__vitePreload(()=>import("./money-cashier-price-tag-213e2d66.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-bar-increase.svg":()=>__vitePreload(()=>import("./money-graph-bar-increase-3d59b9cb.js"),[],import.meta.url),"../../svg/icons/plump/money-graph-pie-chart.svg":()=>__vitePreload(()=>import("./money-graph-pie-chart-9f49cf2a.js"),[],import.meta.url),"../../svg/icons/plump/nature-leaf.svg":()=>__vitePreload(()=>import("./nature-leaf-5924d163.js"),[],import.meta.url),"../../svg/icons/plump/phone-contact-phonebook.svg":()=>__vitePreload(()=>import("./phone-contact-phonebook-048ee9df.js"),[],import.meta.url),"../../svg/icons/plump/phone-mode-airplane-enabled.svg":()=>__vitePreload(()=>import("./phone-mode-airplane-enabled-cf5514c0.js"),[],import.meta.url),"../../svg/icons/plump/phone-telephone-call.svg":()=>__vitePreload(()=>import("./phone-telephone-call-b2642fb1.js"),[],import.meta.url),"../../svg/icons/plump/presentation-board.svg":()=>__vitePreload(()=>import("./presentation-board-fd46ddaa.js"),[],import.meta.url),"../../svg/icons/plump/programming-module-box-cube.svg":()=>__vitePreload(()=>import("./programming-module-box-cube-1232e11c.js"),[],import.meta.url),"../../svg/icons/plump/programming-rss-feed.svg":()=>__vitePreload(()=>import("./programming-rss-feed-dbb7b631.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code-brackets.svg":()=>__vitePreload(()=>import("./programming-script-code-brackets-628f4f27.js"),[],import.meta.url),"../../svg/icons/plump/programming-script-code.svg":()=>__vitePreload(()=>import("./programming-script-code-8e64c07e.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-complete.svg":()=>__vitePreload(()=>import("./puzzle-complete-2f7d2219.js"),[],import.meta.url),"../../svg/icons/plump/puzzle-piece.svg":()=>__vitePreload(()=>import("./puzzle-piece-05281329.js"),[],import.meta.url),"../../svg/icons/plump/search-magnifying-glass.svg":()=>__vitePreload(()=>import("./search-magnifying-glass-5257ed33.js"),[],import.meta.url),"../../svg/icons/plump/security-lock.svg":()=>__vitePreload(()=>import("./security-lock-2dbb4545.js"),[],import.meta.url),"../../svg/icons/plump/security-unlock.svg":()=>__vitePreload(()=>import("./security-unlock-eb163678.js"),[],import.meta.url),"../../svg/icons/plump/setting-cog-gear.svg":()=>__vitePreload(()=>import("./setting-cog-gear-a44f9b1c.js"),[],import.meta.url),"../../svg/icons/plump/setting-menu-horizontal-dots.svg":()=>__vitePreload(()=>import("./setting-menu-horizontal-dots-5ee49d27.js"),[],import.meta.url),"../../svg/icons/plump/setting-slider-vertical.svg":()=>__vitePreload(()=>import("./setting-slider-vertical-fd027f5d.js"),[],import.meta.url),"../../svg/icons/plump/share-mega-phone.svg":()=>__vitePreload(()=>import("./share-mega-phone-f1e1c0fe.js"),[],import.meta.url),"../../svg/icons/plump/shopping-cart.svg":()=>__vitePreload(()=>import("./shopping-cart-14fc7a98.js"),[],import.meta.url),"../../svg/icons/plump/shopping-catergories-shirt.svg":()=>__vitePreload(()=>import("./shopping-catergories-shirt-e891f60e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-jewelry-diamond-gem.svg":()=>__vitePreload(()=>import("./shopping-jewelry-diamond-gem-f4bb5f5d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-discount-percent.svg":()=>__vitePreload(()=>import("./shopping-store-discount-percent-4d01612d.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store-signage.svg":()=>__vitePreload(()=>import("./shopping-store-signage-e7b3111e.js"),[],import.meta.url),"../../svg/icons/plump/shopping-store.svg":()=>__vitePreload(()=>import("./shopping-store-2abf0ec1.js"),[],import.meta.url),"../../svg/icons/plump/social-facebook.svg":()=>__vitePreload(()=>import("./social-facebook-d2d2dd7e.js"),[],import.meta.url),"../../svg/icons/plump/social-github.svg":()=>__vitePreload(()=>import("./social-github-f86a3389.js"),[],import.meta.url),"../../svg/icons/plump/social-instagram.svg":()=>__vitePreload(()=>import("./social-instagram-c384817e.js"),[],import.meta.url),"../../svg/icons/plump/social-linkedin.svg":()=>__vitePreload(()=>import("./social-linkedin-9a9063dd.js"),[],import.meta.url),"../../svg/icons/plump/social-mail-send-email-message.svg":()=>__vitePreload(()=>import("./social-mail-send-email-message-3a494938.js"),[],import.meta.url),"../../svg/icons/plump/social-mastodon.svg":()=>__vitePreload(()=>import("./social-mastodon-315dbc7f.js"),[],import.meta.url),"../../svg/icons/plump/social-pinterest.svg":()=>__vitePreload(()=>import("./social-pinterest-7f9c41fd.js"),[],import.meta.url),"../../svg/icons/plump/social-share.svg":()=>__vitePreload(()=>import("./social-share-39d56370.js"),[],import.meta.url),"../../svg/icons/plump/social-twitter.svg":()=>__vitePreload(()=>import("./social-twitter-f506d7ee.js"),[],import.meta.url),"../../svg/icons/plump/social-vimeo.svg":()=>__vitePreload(()=>import("./social-vimeo-77481fdc.js"),[],import.meta.url),"../../svg/icons/plump/social-youtube.svg":()=>__vitePreload(()=>import("./social-youtube-533fe0f2.js"),[],import.meta.url),"../../svg/icons/plump/tag-free.svg":()=>__vitePreload(()=>import("./tag-free-56e0debe.js"),[],import.meta.url),"../../svg/icons/plump/tag-new.svg":()=>__vitePreload(()=>import("./tag-new-84da2a59.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-all-caps.svg":()=>__vitePreload(()=>import("./text-formatting-all-caps-6c9fb305.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-ampersand.svg":()=>__vitePreload(()=>import("./text-formatting-ampersand-c8fb922d.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-bottom.svg":()=>__vitePreload(()=>import("./text-formatting-image-bottom-19dba5bb.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-image-left-7cad1aa7.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-image-right-6f72a61f.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-image-top.svg":()=>__vitePreload(()=>import("./text-formatting-image-top-4f8444ac.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-initial-letter.svg":()=>__vitePreload(()=>import("./text-formatting-initial-letter-94ec98a6.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-input-signature.svg":()=>__vitePreload(()=>import("./text-formatting-input-signature-dad94fe2.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-layer-style.svg":()=>__vitePreload(()=>import("./text-formatting-layer-style-f6ad993a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-markdown.svg":()=>__vitePreload(()=>import("./text-formatting-markdown-1e7f2a11.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-paragraph.svg":()=>__vitePreload(()=>import("./text-formatting-paragraph-e31cf013.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-quotation.svg":()=>__vitePreload(()=>import("./text-formatting-quotation-f9d244c4.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-shadow-text.svg":()=>__vitePreload(()=>import("./text-formatting-shadow-text-59c4b543.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-text-box-1.svg":()=>__vitePreload(()=>import("./text-formatting-text-box-1-a1ee8607.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-type-cursor.svg":()=>__vitePreload(()=>import("./text-formatting-type-cursor-779e1918.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-around-bounding-box.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-around-bounding-box-30967217.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-left-af281461.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-left.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-left-ab899ff1.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-margin-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-margin-right-583fa74a.js"),[],import.meta.url),"../../svg/icons/plump/text-formatting-wrap-image-right.svg":()=>__vitePreload(()=>import("./text-formatting-wrap-image-right-85ff9d70.js"),[],import.meta.url),"../../svg/icons/plump/time-clock.svg":()=>__vitePreload(()=>import("./time-clock-1a09e6c2.js"),[],import.meta.url),"../../svg/icons/plump/travel-map.svg":()=>__vitePreload(()=>import("./travel-map-d7edbe34.js"),[],import.meta.url),"../../svg/icons/plump/upload-arrow-up.svg":()=>__vitePreload(()=>import("./upload-arrow-up-ddaad6df.js"),[],import.meta.url),"../../svg/icons/plump/user-avatar.svg":()=>__vitePreload(()=>import("./user-avatar-3a439844.js"),[],import.meta.url),"../../svg/icons/plump/user-multiple.svg":()=>__vitePreload(()=>import("./user-multiple-c10883e6.js"),[],import.meta.url),"../../svg/icons/plump/user-security-lock.svg":()=>__vitePreload(()=>import("./user-security-lock-628f35df.js"),[],import.meta.url),"../../svg/icons/regular/add-col-after.svg":()=>__vitePreload(()=>import("./add-col-after-ef55e804.js"),[],import.meta.url),"../../svg/icons/regular/add-col-before.svg":()=>__vitePreload(()=>import("./add-col-before-3e0604fa.js"),[],import.meta.url),"../../svg/icons/regular/add-row-after.svg":()=>__vitePreload(()=>import("./add-row-after-79fb5bd4.js"),[],import.meta.url),"../../svg/icons/regular/add-row-before.svg":()=>__vitePreload(()=>import("./add-row-before-ae1c572a.js"),[],import.meta.url),"../../svg/icons/regular/add-table.svg":()=>__vitePreload(()=>import("./add-table-4500973b.js"),[],import.meta.url),"../../svg/icons/regular/add.svg":()=>__vitePreload(()=>import("./add-62d8d9ba.js"),[],import.meta.url),"../../svg/icons/regular/alert.svg":()=>__vitePreload(()=>import("./alert-1a8dd5c5.js"),[],import.meta.url),"../../svg/icons/regular/arrow-right.svg":()=>__vitePreload(()=>import("./arrow-right-a8901ad9.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-collapse.svg":()=>__vitePreload(()=>import("./arrows-horizontal-collapse-40d5fe10.js"),[],import.meta.url),"../../svg/icons/regular/arrows-horizontal-expand.svg":()=>__vitePreload(()=>import("./arrows-horizontal-expand-48fbc52d.js"),[],import.meta.url),"../../svg/icons/regular/arrows-shrink.svg":()=>__vitePreload(()=>import("./arrows-shrink-9620cfb7.js"),[],import.meta.url),"../../svg/icons/regular/asset-folder.svg":()=>__vitePreload(()=>import("./asset-folder-5e5084a4.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-grid.svg":()=>__vitePreload(()=>import("./assets-mode-grid-61de1550.js"),[],import.meta.url),"../../svg/icons/regular/assets-mode-table.svg":()=>__vitePreload(()=>import("./assets-mode-table-367a696d.js"),[],import.meta.url),"../../svg/icons/regular/code-block.svg":()=>__vitePreload(()=>import("./code-block-ba017171.js"),[],import.meta.url),"../../svg/icons/regular/code-inline.svg":()=>__vitePreload(()=>import("./code-inline-d10f54ae.js"),[],import.meta.url),"../../svg/icons/regular/combine-cells.svg":()=>__vitePreload(()=>import("./combine-cells-715a38a4.js"),[],import.meta.url),"../../svg/icons/regular/dark-mode.svg":()=>__vitePreload(()=>import("./dark-mode-23b1473a.js"),[],import.meta.url),"../../svg/icons/regular/data-table.svg":()=>__vitePreload(()=>import("./data-table-84739f8b.js"),[],import.meta.url),"../../svg/icons/regular/delete-col.svg":()=>__vitePreload(()=>import("./delete-col-5e8bea80.js"),[],import.meta.url),"../../svg/icons/regular/delete-row.svg":()=>__vitePreload(()=>import("./delete-row-4351f211.js"),[],import.meta.url),"../../svg/icons/regular/delete-table.svg":()=>__vitePreload(()=>import("./delete-table-e4db6584.js"),[],import.meta.url),"../../svg/icons/regular/download-desktop.svg":()=>__vitePreload(()=>import("./download-desktop-881a331b.js"),[],import.meta.url),"../../svg/icons/regular/eraser.svg":()=>__vitePreload(()=>import("./eraser-0302515e.js"),[],import.meta.url),"../../svg/icons/regular/expand-bold.svg":()=>__vitePreload(()=>import("./expand-bold-9d6e3af4.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical-2.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-2-d4378588.js"),[],import.meta.url),"../../svg/icons/regular/expand-collapse-vertical.svg":()=>__vitePreload(()=>import("./expand-collapse-vertical-718171d9.js"),[],import.meta.url),"../../svg/icons/regular/expand-vertical-bold.svg":()=>__vitePreload(()=>import("./expand-vertical-bold-00aaa8a8.js"),[],import.meta.url),"../../svg/icons/regular/expand.svg":()=>__vitePreload(()=>import("./expand-b75b6bd4.js"),[],import.meta.url),"../../svg/icons/regular/filter-text.svg":()=>__vitePreload(()=>import("./filter-text-ec6181ba.js"),[],import.meta.url),"../../svg/icons/regular/flip-vertical.svg":()=>__vitePreload(()=>import("./flip-vertical-be984c15.js"),[],import.meta.url),"../../svg/icons/regular/focal-point.svg":()=>__vitePreload(()=>import("./focal-point-70338ac3.js"),[],import.meta.url),"../../svg/icons/regular/folder-add.svg":()=>__vitePreload(()=>import("./folder-add-fc763287.js"),[],import.meta.url),"../../svg/icons/regular/folder-generic.svg":()=>__vitePreload(()=>import("./folder-generic-d613d736.js"),[],import.meta.url),"../../svg/icons/regular/folder-home.svg":()=>__vitePreload(()=>import("./folder-home-cce39b8e.js"),[],import.meta.url),"../../svg/icons/regular/folder-image.svg":()=>__vitePreload(()=>import("./folder-image-5fc121fe.js"),[],import.meta.url),"../../svg/icons/regular/folder-open.svg":()=>__vitePreload(()=>import("./folder-open-45bce860.js"),[],import.meta.url),"../../svg/icons/regular/folder.svg":()=>__vitePreload(()=>import("./folder-65681b32.js"),[],import.meta.url),"../../svg/icons/regular/generic-field.svg":()=>__vitePreload(()=>import("./generic-field-e69e9265.js"),[],import.meta.url),"../../svg/icons/regular/h1.svg":()=>__vitePreload(()=>import("./h1-a0b63968.js"),[],import.meta.url),"../../svg/icons/regular/h2.svg":()=>__vitePreload(()=>import("./h2-bd303b0d.js"),[],import.meta.url),"../../svg/icons/regular/h3.svg":()=>__vitePreload(()=>import("./h3-55450d58.js"),[],import.meta.url),"../../svg/icons/regular/h4.svg":()=>__vitePreload(()=>import("./h4-d09559c2.js"),[],import.meta.url),"../../svg/icons/regular/h5.svg":()=>__vitePreload(()=>import("./h5-33b13867.js"),[],import.meta.url),"../../svg/icons/regular/h6.svg":()=>__vitePreload(()=>import("./h6-0730417d.js"),[],import.meta.url),"../../svg/icons/regular/hidden.svg":()=>__vitePreload(()=>import("./hidden-cbd0ab43.js"),[],import.meta.url),"../../svg/icons/regular/home-page.svg":()=>__vitePreload(()=>import("./home-page-827fa2af.js"),[],import.meta.url),"../../svg/icons/regular/horizon.svg":()=>__vitePreload(()=>import("./horizon-0f7b4082.js"),[],import.meta.url),"../../svg/icons/regular/image-file.svg":()=>__vitePreload(()=>import("./image-file-9258e288.js"),[],import.meta.url),"../../svg/icons/regular/image-picture.svg":()=>__vitePreload(()=>import("./image-picture-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/image.svg":()=>__vitePreload(()=>import("./image-7e103d75.js"),[],import.meta.url),"../../svg/icons/regular/info-circle.svg":()=>__vitePreload(()=>import("./info-circle-6b19cac0.js"),[],import.meta.url),"../../svg/icons/regular/insert-image.svg":()=>__vitePreload(()=>import("./insert-image-d0e9a371.js"),[],import.meta.url),"../../svg/icons/regular/insert-link.svg":()=>__vitePreload(()=>import("./insert-link-158aa1a4.js"),[],import.meta.url),"../../svg/icons/regular/light-mode.svg":()=>__vitePreload(()=>import("./light-mode-db4e6a04.js"),[],import.meta.url),"../../svg/icons/regular/list-ol.svg":()=>__vitePreload(()=>import("./list-ol-c88bac13.js"),[],import.meta.url),"../../svg/icons/regular/list-ul-2.svg":()=>__vitePreload(()=>import("./list-ul-2-3079492f.js"),[],import.meta.url),"../../svg/icons/regular/list-ul.svg":()=>__vitePreload(()=>import("./list-ul-5b0a6720.js"),[],import.meta.url),"../../svg/icons/regular/markdown-icon.svg":()=>__vitePreload(()=>import("./markdown-icon-fb3c3cbf.js"),[],import.meta.url),"../../svg/icons/regular/move-file.svg":()=>__vitePreload(()=>import("./move-file-2ec513c0.js"),[],import.meta.url),"../../svg/icons/regular/new-window.svg":()=>__vitePreload(()=>import("./new-window-58699c80.js"),[],import.meta.url),"../../svg/icons/regular/nova.svg":()=>__vitePreload(()=>import("./nova-a13a1c24.js"),[],import.meta.url),"../../svg/icons/regular/pages.svg":()=>__vitePreload(()=>import("./pages-9a7c5ae2.js"),[],import.meta.url),"../../svg/icons/regular/paperclip.svg":()=>__vitePreload(()=>import("./paperclip-2e70da2c.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-center.svg":()=>__vitePreload(()=>import("./paragraph-align-center-608b0756.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-justified.svg":()=>__vitePreload(()=>import("./paragraph-align-justified-edb480cc.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-left.svg":()=>__vitePreload(()=>import("./paragraph-align-left-21ff72c8.js"),[],import.meta.url),"../../svg/icons/regular/paragraph-align-right.svg":()=>__vitePreload(()=>import("./paragraph-align-right-8422a6d6.js"),[],import.meta.url),"../../svg/icons/regular/pencil.svg":()=>__vitePreload(()=>import("./pencil-8c2b4c0f.js"),[],import.meta.url),"../../svg/icons/regular/performance-decrease.svg":()=>__vitePreload(()=>import("./performance-decrease-d3091d15.js"),[],import.meta.url),"../../svg/icons/regular/performance-increase.svg":()=>__vitePreload(()=>import("./performance-increase-93126e96.js"),[],import.meta.url),"../../svg/icons/regular/pulse.svg":()=>__vitePreload(()=>import("./pulse-fe14689b.js"),[],import.meta.url),"../../svg/icons/regular/quote.svg":()=>__vitePreload(()=>import("./quote-42c6ac19.js"),[],import.meta.url),"../../svg/icons/regular/radio-deselected.svg":()=>__vitePreload(()=>import("./radio-deselected-4c748b55.js"),[],import.meta.url),"../../svg/icons/regular/radio-selected.svg":()=>__vitePreload(()=>import("./radio-selected-9639aafa.js"),[],import.meta.url),"../../svg/icons/regular/relationship.svg":()=>__vitePreload(()=>import("./relationship-6143ceff.js"),[],import.meta.url),"../../svg/icons/regular/rename-file.svg":()=>__vitePreload(()=>import("./rename-file-40c0fedb.js"),[],import.meta.url),"../../svg/icons/regular/sd-card.svg":()=>__vitePreload(()=>import("./sd-card-fa5c533b.js"),[],import.meta.url),"../../svg/icons/regular/settings-vertical.svg":()=>__vitePreload(()=>import("./settings-vertical-a526ec11.js"),[],import.meta.url),"../../svg/icons/regular/show-source.svg":()=>__vitePreload(()=>import("./show-source-31355249.js"),[],import.meta.url),"../../svg/icons/regular/shrink-all.svg":()=>__vitePreload(()=>import("./shrink-all-e6ce9365.js"),[],import.meta.url),"../../svg/icons/regular/shrink-vertical.svg":()=>__vitePreload(()=>import("./shrink-vertical-546198f7.js"),[],import.meta.url),"../../svg/icons/regular/sort-numeric.svg":()=>__vitePreload(()=>import("./sort-numeric-2729de20.js"),[],import.meta.url),"../../svg/icons/regular/subscript.svg":()=>__vitePreload(()=>import("./subscript-cb1a9069.js"),[],import.meta.url),"../../svg/icons/regular/subtract.svg":()=>__vitePreload(()=>import("./subtract-629e074e.js"),[],import.meta.url),"../../svg/icons/regular/suggest.svg":()=>__vitePreload(()=>import("./suggest-cc137454.js"),[],import.meta.url),"../../svg/icons/regular/superscript.svg":()=>__vitePreload(()=>import("./superscript-89e7f98d.js"),[],import.meta.url),"../../svg/icons/regular/swap.svg":()=>__vitePreload(()=>import("./swap-8620179e.js"),[],import.meta.url),"../../svg/icons/regular/syringe.svg":()=>__vitePreload(()=>import("./syringe-39cac2b4.js"),[],import.meta.url),"../../svg/icons/regular/system.svg":()=>__vitePreload(()=>import("./system-267f57ce.js"),[],import.meta.url),"../../svg/icons/regular/telescope.svg":()=>__vitePreload(()=>import("./telescope-3e0f8434.js"),[],import.meta.url),"../../svg/icons/regular/text-bold.svg":()=>__vitePreload(()=>import("./text-bold-e973ff83.js"),[],import.meta.url),"../../svg/icons/regular/text-italic.svg":()=>__vitePreload(()=>import("./text-italic-e29bac95.js"),[],import.meta.url),"../../svg/icons/regular/text-small.svg":()=>__vitePreload(()=>import("./text-small-1fd0b180.js"),[],import.meta.url),"../../svg/icons/regular/text-strike-through.svg":()=>__vitePreload(()=>import("./text-strike-through-20a184cd.js"),[],import.meta.url),"../../svg/icons/regular/text-underline.svg":()=>__vitePreload(()=>import("./text-underline-c1eebeaf.js"),[],import.meta.url),"../../svg/icons/regular/theme.svg":()=>__vitePreload(()=>import("./theme-52bbae73.js"),[],import.meta.url),"../../svg/icons/regular/thumbprint.svg":()=>__vitePreload(()=>import("./thumbprint-b56383b1.js"),[],import.meta.url),"../../svg/icons/regular/translate.svg":()=>__vitePreload(()=>import("./translate-1bb18ed0.js"),[],import.meta.url),"../../svg/icons/regular/trash.svg":()=>__vitePreload(()=>import("./trash-95a383df.js"),[],import.meta.url),"../../svg/icons/regular/upload-cloud.svg":()=>__vitePreload(()=>import("./upload-cloud-f1a7a3b4.js"),[],import.meta.url),"../../svg/icons/regular/upload.svg":()=>__vitePreload(()=>import("./upload-f32156ee.js"),[],import.meta.url)}),`../../svg/icons/${N}/${B}.svg`).catch(j=>this.fallbackIconImport())})})},splitIcon(M){return M.includes("/")||(M="regular/"+M),M.split("/")},fallbackIconImport(){return __vitePreload(()=>import("./image-7e103d75.js"),[],import.meta.url)}}};var _sfc_render$30=function M(){var $=this,I=$._self._c;return $.icon?I($.icon,{tag:"component"}):$._e()},_sfc_staticRenderFns$30=[],__component__$31=normalizeComponent$2(_sfc_main$30,_sfc_render$30,_sfc_staticRenderFns$30,!1,null,null,null,null);const SvgIcon=__component__$31.exports,_sfc_main$2$={props:{extension:String},computed:{name(){switch(this.extension.toLowerCase()){case"folder":return"folder";case"7z":case"pkg":case"rar":case"tar":case"tar.zg":case"z":case"zip":return"archive";case"aac":case"aif":case"cda":case"flac":case"m4a":case"mp3":case"mp4a":case"mpa":case"ogg":case"mid":case"midi":case"wav":case"wma":return"audio";case"doc":case"docx":case"epub":case"mobi":return"doc";case"xls":case"xlsx":return"excel";case"json":return"json";case"ai":case"eps":case"fig":case"indb":case"psd":case"sketch":return"layered";case"pdf":return"pdf";case"key":case"odp":case"pps":case"ppt":case"pptx":return"presentation";case"3g2":case"3gp":case"avi":case"flv":case"h264":case"m4v":case"mvk":case"mp4":case"mpg":case"mpeg":case"mov":case"rm":case"swf":case"vob":case"wmv":return"video";case"xml":return"xml";case"avif":case"bmp":case"gif":case"ico":case"jpg":case"jpeg":case"png":case"raw":case"nef":case"tiff":case"webp":return"image";default:return"generic"}},icon(){return defineAsyncComponent(()=>__variableDynamicImportRuntimeHelper(Object.assign({"../../svg/filetypes/archive.svg":()=>__vitePreload(()=>import("./archive-70f1954a.js"),[],import.meta.url),"../../svg/filetypes/audio.svg":()=>__vitePreload(()=>import("./audio-84b44c8e.js"),[],import.meta.url),"../../svg/filetypes/doc.svg":()=>__vitePreload(()=>import("./doc-089d6edb.js"),[],import.meta.url),"../../svg/filetypes/excel.svg":()=>__vitePreload(()=>import("./excel-a7f1543d.js"),[],import.meta.url),"../../svg/filetypes/folder.svg":()=>__vitePreload(()=>import("./folder-ed0663b0.js"),[],import.meta.url),"../../svg/filetypes/generic.svg":()=>__vitePreload(()=>import("./generic-1db37107.js"),[],import.meta.url),"../../svg/filetypes/image.svg":()=>__vitePreload(()=>import("./image-7ef0b0a8.js"),[],import.meta.url),"../../svg/filetypes/json.svg":()=>__vitePreload(()=>import("./json-cf9e04eb.js"),[],import.meta.url),"../../svg/filetypes/layered.svg":()=>__vitePreload(()=>import("./layered-df1b1c1e.js"),[],import.meta.url),"../../svg/filetypes/pdf.svg":()=>__vitePreload(()=>import("./pdf-abffa6b6.js"),[],import.meta.url),"../../svg/filetypes/picture.svg":()=>__vitePreload(()=>import("./picture-625311ca.js"),[],import.meta.url),"../../svg/filetypes/presentation.svg":()=>__vitePreload(()=>import("./presentation-79d93f05.js"),[],import.meta.url),"../../svg/filetypes/video.svg":()=>__vitePreload(()=>import("./video-7472590a.js"),[],import.meta.url),"../../svg/filetypes/xml.svg":()=>__vitePreload(()=>import("./xml-fb41b421.js"),[],import.meta.url)}),`../../svg/filetypes/${this.name}.svg`))}}};var _sfc_render$2$=function M(){var $=this,I=$._self._c;return $.icon?I($.icon,{tag:"component"}):$._e()},_sfc_staticRenderFns$2$=[],__component__$30=normalizeComponent$2(_sfc_main$2$,_sfc_render$2$,_sfc_staticRenderFns$2$,!1,null,null,null,null);const FileIcon=__component__$30.exports,_sfc_main$2_={props:{text:{type:String,default:"Loading"},size:{type:Number},inline:{type:Boolean,default:!1}},computed:{computedSize(){return this.size?this.size:this.inline?16:24}}};var _sfc_render$2_=function M(){var $=this,I=$._self._c;return I("div",{class:{"flex items-center leading-loose":$.inline}},[I("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:`${$.computedSize}px`,height:`${$.computedSize}px`,viewBox:"0 0 40 40",stroke:"#737f8c"}},[I("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[I("g",{attrs:{transform:"translate(2 2)","stroke-width":"4"}},[I("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),I("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[I("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})],1)])])]),$.text?I("div",{class:{"ml-2 text-sm text-gray dark:text-dark-175":$.inline,"mt-2":!$.inline}},[$._v($._s($.__($.text)))]):$._e()])},_sfc_staticRenderFns$2_=[],__component__$2$=normalizeComponent$2(_sfc_main$2_,_sfc_render$2_,_sfc_staticRenderFns$2_,!1,null,null,null,null);const LoadingGraphic=__component__$2$.exports,_sfc_main$2Z={props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom-end"},autoclose:{type:Boolean,default:!1},offset:{type:Array,default:()=>[10,0]}},computed:{strategy(){return this.scroll?"fixed":"absolute"}}};var _sfc_render$2Z=function M(){var $=this,I=$._self._c;return I("popover",{staticClass:"dropdown-list",attrs:{disabled:$.disabled,placement:$.placement,autoclose:$.autoclose,offset:$.offset},on:{opened:function(N){return $.$emit("opened")},closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"trigger",fn:function(){return[$._t("trigger",function(){return[I("button",{staticClass:"rotating-dots-button",attrs:{"aria-label":$.__("Open Dropdown"),type:"button"}},[I("svg",{staticClass:"rotating-dots fill-current",attrs:{width:"12",viewBox:"0 0 24 24"}},[I("circle",{attrs:{cx:"3",cy:"12",r:"3"}}),I("circle",{attrs:{cx:"12",cy:"12",r:"3"}}),I("circle",{attrs:{cx:"21",cy:"12",r:"3"}})])])]})]},proxy:!0},{key:"default",fn:function(){return[$._t("default")]},proxy:!0}],null,!0)})},_sfc_staticRenderFns$2Z=[],__component__$2_=normalizeComponent$2(_sfc_main$2Z,_sfc_render$2Z,_sfc_staticRenderFns$2Z,!1,null,null,null,null);const DropdownList=__component__$2_.exports,_sfc_main$2Y={props:["text","redirect","externalLink"],inject:["popover"],computed:{href(){return this.redirect||this.externalLink},target(){return this.externalLink?"_blank":null}},methods:{selectAndClose(M){this.href||(this.$emit("click",M),this.popover.vm.close())}}};var _sfc_render$2Y=function M(){var $=this,I=$._self._c;return I("a",{attrs:{href:$.href,target:$.target},on:{click:$.selectAndClose}},[$.text?[$._v($._s($.text))]:$._e(),$._t("default")],2)},_sfc_staticRenderFns$2Y=[],__component__$2Z=normalizeComponent$2(_sfc_main$2Y,_sfc_render$2Y,_sfc_staticRenderFns$2Y,!1,null,null,null,null);const DropdownItem=__component__$2Z.exports,_sfc_main$2X={props:{errors:{type:Object,required:!0}},computed:{hasErrors(){return Object.keys(this.errors).length>0},flattenedErrors(){return _.chain(this.errors).map(_.values).flatten().value()}}};var _sfc_render$2X=function M(){var $=this,I=$._self._c;return $.hasErrors?I("div",{staticClass:"bg-red-500 text-white p-4 rounded-md shadow mb-4"},$._l($.flattenedErrors,function(N,B){return I("p",{key:B},[$._v($._s(N))])}),0):$._e()},_sfc_staticRenderFns$2X=[],__component__$2Y=normalizeComponent$2(_sfc_main$2X,_sfc_render$2X,_sfc_staticRenderFns$2X,!1,null,null,null,null);const ValidationErrors=__component__$2Y.exports,_sfc_main$2W={model:{prop:"to",event:"slugified"},props:{from:String,to:String,language:String,separator:{type:String,default:"-"},enabled:{type:Boolean,default:!0},async:{type:Boolean,default:!0}},data(){let M=this.$slug.in(this.language).separatedBy(this.separator);return this.async&&M.async(),{slugifier:M,slug:null,shouldSlugify:this.enabled&&!this.to}},watch:{from:{immediate:!0,handler(){this.shouldSlugify?this.from?this.slugify():this.slug="":this.slug=this.to}},to(M){M!==this.slug&&(this.shouldSlugify=!1)},slug(M){this.$emit("slugified",M)}},render(){return this.$scopedSlots.default({})},methods:{reset(){if(!this.enabled)return Promise.resolve();const M=this.slug;return this.slugify().then(()=>{this.shouldSlugify=!0,this.slug===M&&this.$emit("slugified",this.slug)})},slugify(){return this.async?new Promise((M,$)=>{this.$emit("slugifying"),this.slugifier.create(this.from).then(I=>{this.slug=I,M(I)}).catch(I=>$(I))}):new Promise((M,$)=>{const I=this.slugifier.create(this.from);this.slug=I,M(I)})}}},_sfc_render$2W=null,_sfc_staticRenderFns$2W=null;var __component__$2X=normalizeComponent$2(_sfc_main$2W,_sfc_render$2W,_sfc_staticRenderFns$2W,!1,null,null,null,null);const Slugify=__component__$2X.exports;var MapShim=function(){if(typeof Map<"u")return Map;function M($,I){var N=-1;return $.some(function(B,j){return B[0]===I?(N=j,!0):!1}),N}return function(){function $(){this.__entries__=[]}return Object.defineProperty($.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),$.prototype.get=function(I){var N=M(this.__entries__,I),B=this.__entries__[N];return B&&B[1]},$.prototype.set=function(I,N){var B=M(this.__entries__,I);~B?this.__entries__[B][1]=N:this.__entries__.push([I,N])},$.prototype.delete=function(I){var N=this.__entries__,B=M(N,I);~B&&N.splice(B,1)},$.prototype.has=function(I){return!!~M(this.__entries__,I)},$.prototype.clear=function(){this.__entries__.splice(0)},$.prototype.forEach=function(I,N){N===void 0&&(N=null);for(var B=0,j=this.__entries__;B<j.length;B++){var U=j[B];I.call(N,U[1],U[0])}},$}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(M){return setTimeout(function(){return M(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(M,$){var I=!1,N=!1,B=0;function j(){I&&(I=!1,M()),N&&q()}function U(){requestAnimationFrame$1(j)}function q(){var Y=Date.now();if(I){if(Y-B<trailingTimeout)return;N=!0}else I=!0,N=!1,setTimeout(U,$);B=Y}return q}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function M(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return M.prototype.addObserver=function($){~this.observers_.indexOf($)||this.observers_.push($),this.connected_||this.connect_()},M.prototype.removeObserver=function($){var I=this.observers_,N=I.indexOf($);~N&&I.splice(N,1),!I.length&&this.connected_&&this.disconnect_()},M.prototype.refresh=function(){var $=this.updateObservers_();$&&this.refresh()},M.prototype.updateObservers_=function(){var $=this.observers_.filter(function(I){return I.gatherActive(),I.hasActive()});return $.forEach(function(I){return I.broadcastActive()}),$.length>0},M.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},M.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},M.prototype.onTransitionEnd_=function($){var I=$.propertyName,N=I===void 0?"":I,B=transitionKeys.some(function(j){return!!~N.indexOf(j)});B&&this.refresh()},M.getInstance=function(){return this.instance_||(this.instance_=new M),this.instance_},M.instance_=null,M}(),defineConfigurable=function(M,$){for(var I=0,N=Object.keys($);I<N.length;I++){var B=N[I];Object.defineProperty(M,B,{value:$[B],enumerable:!1,writable:!1,configurable:!0})}return M},getWindowOf=function(M){var $=M&&M.ownerDocument&&M.ownerDocument.defaultView;return $||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(M){return parseFloat(M)||0}function getBordersSize(M){for(var $=[],I=1;I<arguments.length;I++)$[I-1]=arguments[I];return $.reduce(function(N,B){var j=M["border-"+B+"-width"];return N+toFloat(j)},0)}function getPaddings(M){for(var $=["top","right","bottom","left"],I={},N=0,B=$;N<B.length;N++){var j=B[N],U=M["padding-"+j];I[j]=toFloat(U)}return I}function getSVGContentRect(M){var $=M.getBBox();return createRectInit(0,0,$.width,$.height)}function getHTMLElementContentRect(M){var $=M.clientWidth,I=M.clientHeight;if(!$&&!I)return emptyRect;var N=getWindowOf(M).getComputedStyle(M),B=getPaddings(N),j=B.left+B.right,U=B.top+B.bottom,q=toFloat(N.width),Y=toFloat(N.height);if(N.boxSizing==="border-box"&&(Math.round(q+j)!==$&&(q-=getBordersSize(N,"left","right")+j),Math.round(Y+U)!==I&&(Y-=getBordersSize(N,"top","bottom")+U)),!isDocumentElement(M)){var K=Math.round(q+j)-$,G=Math.round(Y+U)-I;Math.abs(K)!==1&&(q-=K),Math.abs(G)!==1&&(Y-=G)}return createRectInit(B.left,B.top,q,Y)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(M){return M instanceof getWindowOf(M).SVGGraphicsElement}:function(M){return M instanceof getWindowOf(M).SVGElement&&typeof M.getBBox=="function"}}();function isDocumentElement(M){return M===getWindowOf(M).document.documentElement}function getContentRect(M){return isBrowser?isSVGGraphicsElement(M)?getSVGContentRect(M):getHTMLElementContentRect(M):emptyRect}function createReadOnlyRect(M){var $=M.x,I=M.y,N=M.width,B=M.height,j=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,U=Object.create(j.prototype);return defineConfigurable(U,{x:$,y:I,width:N,height:B,top:I,right:$+N,bottom:B+I,left:$}),U}function createRectInit(M,$,I,N){return{x:M,y:$,width:I,height:N}}var ResizeObservation=function(){function M($){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=$}return M.prototype.isActive=function(){var $=getContentRect(this.target);return this.contentRect_=$,$.width!==this.broadcastWidth||$.height!==this.broadcastHeight},M.prototype.broadcastRect=function(){var $=this.contentRect_;return this.broadcastWidth=$.width,this.broadcastHeight=$.height,$},M}(),ResizeObserverEntry=function(){function M($,I){var N=createReadOnlyRect(I);defineConfigurable(this,{target:$,contentRect:N})}return M}(),ResizeObserverSPI=function(){function M($,I,N){if(this.activeObservations_=[],this.observations_=new MapShim,typeof $!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=$,this.controller_=I,this.callbackCtx_=N}return M.prototype.observe=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!($ instanceof getWindowOf($).Element))throw new TypeError('parameter 1 is not of type "Element".');var I=this.observations_;I.has($)||(I.set($,new ResizeObservation($)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!($ instanceof getWindowOf($).Element))throw new TypeError('parameter 1 is not of type "Element".');var I=this.observations_;I.has($)&&(I.delete($),I.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var $=this;this.clearActive(),this.observations_.forEach(function(I){I.isActive()&&$.activeObservations_.push(I)})},M.prototype.broadcastActive=function(){if(this.hasActive()){var $=this.callbackCtx_,I=this.activeObservations_.map(function(N){return new ResizeObserverEntry(N.target,N.broadcastRect())});this.callback_.call($,I,$),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0},M}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function M($){if(!(this instanceof M))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var I=ResizeObserverController.getInstance(),N=new ResizeObserverSPI($,I,this);observers.set(this,N)}return M}();["observe","unobserve","disconnect"].forEach(function(M){ResizeObserver$1.prototype[M]=function(){var $;return($=observers.get(this))[M].apply($,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}();const _sfc_main$2V={data(){return{width:null}},render(){return this.$scopedSlots.default({})},mounted(){new index$1(_.throttle($=>{this.width=$[0].contentRect.width},200)).observe(this.$el)},watch:{width(M){this.$emit("resized",{width:M})}}},_sfc_render$2V=null,_sfc_staticRenderFns$2V=null;var __component__$2W=normalizeComponent$2(_sfc_main$2V,_sfc_render$2V,_sfc_staticRenderFns$2V,!1,null,null,null,null);const ElementContainer=__component__$2W.exports,_sfc_main$2U={props:{user:Object},data(){return{hasAvatarError:!1}},computed:{initials(){return this.user.initials||"?"},useAvatar(){return this.hasAvatar&&!this.hasAvatarError},hasAvatar(){return!!this.user.avatar},avatarSrc(){return this.hasAvatar?this.user.avatar.permalink||this.user.avatar:null},useInitials(){return!this.hasAvatar||this.hasAvatarError}}};var _sfc_render$2U=function M(){var $=this,I=$._self._c;return I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.user.name,expression:"user.name"}],staticClass:"rounded-full overflow-hidden"},[$.useAvatar?I("img",{staticClass:"block",attrs:{src:$.avatarSrc},on:{error:function(N){$.hasAvatarError=!0}}}):$._e(),$.useInitials?I("div",{staticClass:"text-center flex items-center justify-center h-full w-full bg-pink text-white"},[I("span",[$._v($._s($.initials))])]):$._e()])},_sfc_staticRenderFns$2U=[],__component__$2V=normalizeComponent$2(_sfc_main$2U,_sfc_render$2U,_sfc_staticRenderFns$2U,!1,null,null,null,null);const Avatar=__component__$2V.exports,_sfc_main$2T={props:{url:String,title:String}};var _sfc_render$2T=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"breadcrumb flex"},[I("a",{staticClass:"flex-initial flex p-2 -m-2 items-center text-xs text-gray-700 dark:text-dark-175 hover:text-gray-900 dark:hover:text-dark-100",attrs:{href:$.url}},[I("svg-icon",{staticClass:"h-6 w-4 rotate-180",attrs:{name:"micro/chevron-right"}}),I("span",{domProps:{textContent:$._s($.__($.title))}})],1)])},_sfc_staticRenderFns$2T=[],__component__$2U=normalizeComponent$2(_sfc_main$2T,_sfc_render$2T,_sfc_staticRenderFns$2T,!1,null,null,null,null);const Breadcrumb=__component__$2U.exports,_sfc_main$2S={props:{crumbs:Array}};var _sfc_render$2S=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"subhead"},$._l($.crumbs,function(N,B){return I("span",{key:B},[I("a",{staticClass:"font-bold hover:text-blue",attrs:{href:N.url},domProps:{textContent:$._s(N.text)}}),B<$.crumbs.length-1?I("span",{staticClass:"px-1"},[$._v("›")]):$._e()])}),0)},_sfc_staticRenderFns$2S=[],__component__$2T=normalizeComponent$2(_sfc_main$2S,_sfc_render$2S,_sfc_staticRenderFns$2S,!1,null,null,null,null);const Breadcrumbs=__component__$2T.exports,_sfc_main$2R={props:{url:String,blueprints:Array,text:{type:String,default:()=>__("Create Entry")},buttonClass:{type:String,default:"btn"}},computed:{hasMultipleBlueprints(){return this.blueprints.length>1}},methods:{create(M){this.blueprints.length===1&&this.select(null,M)},select(M,$){let I=this.url;M&&(I=I+=`?blueprint=${M}`),$.metaKey?window.open(I):window.location=I}}};var _sfc_render$2R=function M(){var $=this,I=$._self._c;return I("dropdown-list",{staticClass:"inline-block",attrs:{disabled:!$.hasMultipleBlueprints},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{class:[$.buttonClass,{"flex items-center rtl:pl-4 ltr:pr-4":$.hasMultipleBlueprints}],on:{click:$.create}},[$._v(" "+$._s($.text)+" "),$.hasMultipleBlueprints?I("svg-icon",{staticClass:"w-2 rtl:mr-2 ltr:ml-2",attrs:{name:"micro/chevron-down-xs"}}):$._e()],1)]},proxy:!0}])},[I("h6",{staticClass:"p-2",domProps:{textContent:$._s($.__("Choose Blueprint"))}}),I("div",{staticClass:"max-h-[75vh] overflow-y-auto"},$._l($.blueprints,function(N){return I("div",{key:N.handle},[I("dropdown-item",{attrs:{text:N.title},on:{click:function(B){return $.select(N.handle,B)}}})],1)}),0)])},_sfc_staticRenderFns$2R=[],__component__$2S=normalizeComponent$2(_sfc_main$2R,_sfc_render$2R,_sfc_staticRenderFns$2R,!1,null,null,null,null);const CreateEntryButton=__component__$2S.exports;var Vue$2=require$$0$1;Vue$2="default"in Vue$2?Vue$2.default:Vue$2;var version$2="2.2.2",compatible=/^2\./.test(Vue$2.version);compatible||Vue$2.util.warn("VueClickaway "+version$2+" only supports Vue 2.x, and does not support Vue "+Vue$2.version);var HANDLER="_vue_clickaway_handler";function bind$3(M,$,I){unbind(M);var N=I.context,B=$.value;if(typeof B=="function"){var j=!1;setTimeout(function(){j=!0},0),M[HANDLER]=function(U){var q=U.path||(U.composedPath?U.composedPath():void 0);if(j&&(q?q.indexOf(M)<0:!M.contains(U.target)))return B.call(N,U)},document.documentElement.addEventListener("click",M[HANDLER],!1)}}function unbind(M){document.documentElement.removeEventListener("click",M[HANDLER],!1),delete M[HANDLER]}var directive={bind:bind$3,update:function(M,$){$.value!==$.oldValue&&bind$3(M,$)},unbind},mixin={directives:{onClickaway:directive}},mixin_1=mixin;function t(M){return M.split("-")[1]}function e(M){return M==="y"?"height":"width"}function n$1(M){return M.split("-")[0]}function o$1(M){return["top","bottom"].includes(n$1(M))?"x":"y"}function i$1(M,$,I){let{reference:N,floating:B}=M;const j=N.x+N.width/2-B.width/2,U=N.y+N.height/2-B.height/2,q=o$1($),Y=e(q),K=N[Y]/2-B[Y]/2,G=q==="x";let J;switch(n$1($)){case"top":J={x:j,y:N.y-B.height};break;case"bottom":J={x:j,y:N.y+N.height};break;case"right":J={x:N.x+N.width,y:U};break;case"left":J={x:N.x-B.width,y:U};break;default:J={x:N.x,y:N.y}}switch(t($)){case"start":J[q]-=K*(I&&G?-1:1);break;case"end":J[q]+=K*(I&&G?-1:1)}return J}const r$2=async(M,$,I)=>{const{placement:N="bottom",strategy:B="absolute",middleware:j=[],platform:U}=I,q=j.filter(Boolean),Y=await(U.isRTL==null?void 0:U.isRTL($));let K=await U.getElementRects({reference:M,floating:$,strategy:B}),{x:G,y:J}=i$1(K,N,Y),Z=N,ee={},te=0;for(let se=0;se<q.length;se++){const{name:re,fn:ne}=q[se],{x:ce,y:me,data:ue,reset:_e}=await ne({x:G,y:J,initialPlacement:N,placement:Z,strategy:B,middlewareData:ee,rects:K,platform:U,elements:{reference:M,floating:$}});G=ce??G,J=me??J,ee={...ee,[re]:{...ee[re],...ue}},_e&&te<=50&&(te++,typeof _e=="object"&&(_e.placement&&(Z=_e.placement),_e.rects&&(K=_e.rects===!0?await U.getElementRects({reference:M,floating:$,strategy:B}):_e.rects),{x:G,y:J}=i$1(K,Z,Y)),se=-1)}return{x:G,y:J,placement:Z,strategy:B,middlewareData:ee}};function a$1(M){return typeof M!="number"?function($){return{top:0,right:0,bottom:0,left:0,...$}}(M):{top:M,right:M,bottom:M,left:M}}function l$1(M){return{...M,top:M.y,left:M.x,right:M.x+M.width,bottom:M.y+M.height}}async function s$1(M,$){var I;$===void 0&&($={});const{x:N,y:B,platform:j,rects:U,elements:q,strategy:Y}=M,{boundary:K="clippingAncestors",rootBoundary:G="viewport",elementContext:J="floating",altBoundary:Z=!1,padding:ee=0}=$,te=a$1(ee),se=q[Z?J==="floating"?"reference":"floating":J],re=l$1(await j.getClippingRect({element:(I=await(j.isElement==null?void 0:j.isElement(se)))==null||I?se:se.contextElement||await(j.getDocumentElement==null?void 0:j.getDocumentElement(q.floating)),boundary:K,rootBoundary:G,strategy:Y})),ne=J==="floating"?{...U.floating,x:N,y:B}:U.reference,ce=await(j.getOffsetParent==null?void 0:j.getOffsetParent(q.floating)),me=await(j.isElement==null?void 0:j.isElement(ce))&&await(j.getScale==null?void 0:j.getScale(ce))||{x:1,y:1},ue=l$1(j.convertOffsetParentRelativeRectToViewportRelativeRect?await j.convertOffsetParentRelativeRectToViewportRelativeRect({rect:ne,offsetParent:ce,strategy:Y}):ne);return{top:(re.top-ue.top+te.top)/me.y,bottom:(ue.bottom-re.bottom+te.bottom)/me.y,left:(re.left-ue.left+te.left)/me.x,right:(ue.right-re.right+te.right)/me.x}}const c$2=Math.min,f$1=Math.max;function m$1(M,$,I){return f$1(M,c$2($,I))}const g$1=["top","right","bottom","left"];g$1.reduce((M,$)=>M.concat($,$+"-start",$+"-end"),[]);const p$1={left:"right",right:"left",bottom:"top",top:"bottom"};function h$1(M){return M.replace(/left|right|bottom|top/g,$=>p$1[$])}function y$1(M,$,I){I===void 0&&(I=!1);const N=t(M),B=o$1(M),j=e(B);let U=B==="x"?N===(I?"end":"start")?"right":"left":N==="start"?"bottom":"top";return $.reference[j]>$.floating[j]&&(U=h$1(U)),{main:U,cross:h$1(U)}}const x$1={start:"end",end:"start"};function w$1(M){return M.replace(/start|end/g,$=>x$1[$])}const b$1=function(M){return M===void 0&&(M={}),{name:"flip",options:M,async fn($){var I;const{placement:N,middlewareData:B,rects:j,initialPlacement:U,platform:q,elements:Y}=$,{mainAxis:K=!0,crossAxis:G=!0,fallbackPlacements:J,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:ee="none",flipAlignment:te=!0,...se}=M,re=n$1(N),ne=n$1(U)===U,ce=await(q.isRTL==null?void 0:q.isRTL(Y.floating)),me=J||(ne||!te?[h$1(U)]:function(be){const ve=h$1(be);return[w$1(be),ve,w$1(ve)]}(U));J||ee==="none"||me.push(...function(be,ve,we,Ae){const Se=t(be);let Pe=function(Me,Be,ze){const Ze=["left","right"],ft=["right","left"],Ye=["top","bottom"],Ve=["bottom","top"];switch(Me){case"top":case"bottom":return ze?Be?ft:Ze:Be?Ze:ft;case"left":case"right":return Be?Ye:Ve;default:return[]}}(n$1(be),we==="start",Ae);return Se&&(Pe=Pe.map(Me=>Me+"-"+Se),ve&&(Pe=Pe.concat(Pe.map(w$1)))),Pe}(U,te,ee,ce));const ue=[U,...me],_e=await s$1($,se),fe=[];let ge=((I=B.flip)==null?void 0:I.overflows)||[];if(K&&fe.push(_e[re]),G){const{main:be,cross:ve}=y$1(N,j,ce);fe.push(_e[be],_e[ve])}if(ge=[...ge,{placement:N,overflows:fe}],!fe.every(be=>be<=0)){var ye,xe;const be=(((ye=B.flip)==null?void 0:ye.index)||0)+1,ve=ue[be];if(ve)return{data:{index:be,overflows:ge},reset:{placement:ve}};let we=(xe=ge.filter(Ae=>Ae.overflows[0]<=0).sort((Ae,Se)=>Ae.overflows[1]-Se.overflows[1])[0])==null?void 0:xe.placement;if(!we)switch(Z){case"bestFit":{var le;const Ae=(le=ge.map(Se=>[Se.placement,Se.overflows.filter(Pe=>Pe>0).reduce((Pe,Me)=>Pe+Me,0)]).sort((Se,Pe)=>Se[1]-Pe[1])[0])==null?void 0:le[0];Ae&&(we=Ae);break}case"initialPlacement":we=U}if(N!==we)return{reset:{placement:we}}}return{}}}},D$1=function(M){return M===void 0&&(M=0),{name:"offset",options:M,async fn($){const{x:I,y:N}=$,B=await async function(j,U){const{placement:q,platform:Y,elements:K}=j,G=await(Y.isRTL==null?void 0:Y.isRTL(K.floating)),J=n$1(q),Z=t(q),ee=o$1(q)==="x",te=["left","top"].includes(J)?-1:1,se=G&&ee?-1:1,re=typeof U=="function"?U(j):U;let{mainAxis:ne,crossAxis:ce,alignmentAxis:me}=typeof re=="number"?{mainAxis:re,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...re};return Z&&typeof me=="number"&&(ce=Z==="end"?-1*me:me),ee?{x:ce*se,y:ne*te}:{x:ne*te,y:ce*se}}($,M);return{x:I+B.x,y:N+B.y,data:B}}}};function L$1(M){return M==="x"?"y":"x"}const k=function(M){return M===void 0&&(M={}),{name:"shift",options:M,async fn($){const{x:I,y:N,placement:B}=$,{mainAxis:j=!0,crossAxis:U=!1,limiter:q={fn:re=>{let{x:ne,y:ce}=re;return{x:ne,y:ce}}},...Y}=M,K={x:I,y:N},G=await s$1($,Y),J=o$1(n$1(B)),Z=L$1(J);let ee=K[J],te=K[Z];if(j){const re=J==="y"?"bottom":"right";ee=m$1(ee+G[J==="y"?"top":"left"],ee,ee-G[re])}if(U){const re=Z==="y"?"bottom":"right";te=m$1(te+G[Z==="y"?"top":"left"],te,te-G[re])}const se=q.fn({...$,[J]:ee,[Z]:te});return{...se,data:{x:se.x-I,y:se.y-N}}}}};function n(M){var $;return(($=M.ownerDocument)==null?void 0:$.defaultView)||window}function o(M){return n(M).getComputedStyle(M)}function i(M){return M instanceof n(M).Node}function r$1(M){return i(M)?(M.nodeName||"").toLowerCase():""}let l;function c$1(){if(l)return l;const M=navigator.userAgentData;return M&&Array.isArray(M.brands)?(l=M.brands.map($=>$.brand+"/"+$.version).join(" "),l):navigator.userAgent}function s(M){return M instanceof n(M).HTMLElement}function f(M){return M instanceof n(M).Element}function u(M){return typeof ShadowRoot>"u"?!1:M instanceof n(M).ShadowRoot||M instanceof ShadowRoot}function a(M){const{overflow:$,overflowX:I,overflowY:N,display:B}=o(M);return/auto|scroll|overlay|hidden|clip/.test($+N+I)&&!["inline","contents"].includes(B)}function d(M){return["table","td","th"].includes(r$1(M))}function h(M){const $=/firefox/i.test(c$1()),I=o(M),N=I.backdropFilter||I.WebkitBackdropFilter;return I.transform!=="none"||I.perspective!=="none"||!!N&&N!=="none"||$&&I.willChange==="filter"||$&&!!I.filter&&I.filter!=="none"||["transform","perspective"].some(B=>I.willChange.includes(B))||["paint","layout","strict","content"].some(B=>{const j=I.contain;return j!=null&&j.includes(B)})}function p(){return/^((?!chrome|android).)*safari/i.test(c$1())}function g(M){return["html","body","#document"].includes(r$1(M))}const m=Math.min,y=Math.max,x=Math.round;function w(M){const $=o(M);let I=parseFloat($.width),N=parseFloat($.height);const B=s(M),j=B?M.offsetWidth:I,U=B?M.offsetHeight:N,q=x(I)!==j||x(N)!==U;return q&&(I=j,N=U),{width:I,height:N,fallback:q}}function v(M){return f(M)?M:M.contextElement}const b={x:1,y:1};function L(M){const $=v(M);if(!s($))return b;const I=$.getBoundingClientRect(),{width:N,height:B,fallback:j}=w($);let U=(j?x(I.width):I.width)/N,q=(j?x(I.height):I.height)/B;return U&&Number.isFinite(U)||(U=1),q&&Number.isFinite(q)||(q=1),{x:U,y:q}}function E(M,$,I,N){var B,j;$===void 0&&($=!1),I===void 0&&(I=!1);const U=M.getBoundingClientRect(),q=v(M);let Y=b;$&&(N?f(N)&&(Y=L(N)):Y=L(M));const K=q?n(q):window,G=p()&&I;let J=(U.left+(G&&((B=K.visualViewport)==null?void 0:B.offsetLeft)||0))/Y.x,Z=(U.top+(G&&((j=K.visualViewport)==null?void 0:j.offsetTop)||0))/Y.y,ee=U.width/Y.x,te=U.height/Y.y;if(q){const se=n(q),re=N&&f(N)?n(N):N;let ne=se.frameElement;for(;ne&&N&&re!==se;){const ce=L(ne),me=ne.getBoundingClientRect(),ue=getComputedStyle(ne);me.x+=(ne.clientLeft+parseFloat(ue.paddingLeft))*ce.x,me.y+=(ne.clientTop+parseFloat(ue.paddingTop))*ce.y,J*=ce.x,Z*=ce.y,ee*=ce.x,te*=ce.y,J+=me.x,Z+=me.y,ne=n(ne).frameElement}}return l$1({width:ee,height:te,x:J,y:Z})}function T(M){return((i(M)?M.ownerDocument:M.document)||window.document).documentElement}function R(M){return f(M)?{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}:{scrollLeft:M.pageXOffset,scrollTop:M.pageYOffset}}function C(M){return E(T(M)).left+R(M).scrollLeft}function F(M){if(r$1(M)==="html")return M;const $=M.assignedSlot||M.parentNode||u(M)&&M.host||T(M);return u($)?$.host:$}function W(M){const $=F(M);return g($)?$.ownerDocument.body:s($)&&a($)?$:W($)}function D(M,$){var I;$===void 0&&($=[]);const N=W(M),B=N===((I=M.ownerDocument)==null?void 0:I.body),j=n(N);return B?$.concat(j,j.visualViewport||[],a(N)?N:[]):$.concat(N,D(N))}function S(M,$,I){let N;if($==="viewport")N=function(U,q){const Y=n(U),K=T(U),G=Y.visualViewport;let J=K.clientWidth,Z=K.clientHeight,ee=0,te=0;if(G){J=G.width,Z=G.height;const se=p();(!se||se&&q==="fixed")&&(ee=G.offsetLeft,te=G.offsetTop)}return{width:J,height:Z,x:ee,y:te}}(M,I);else if($==="document")N=function(U){const q=T(U),Y=R(U),K=U.ownerDocument.body,G=y(q.scrollWidth,q.clientWidth,K.scrollWidth,K.clientWidth),J=y(q.scrollHeight,q.clientHeight,K.scrollHeight,K.clientHeight);let Z=-Y.scrollLeft+C(U);const ee=-Y.scrollTop;return o(K).direction==="rtl"&&(Z+=y(q.clientWidth,K.clientWidth)-G),{width:G,height:J,x:Z,y:ee}}(T(M));else if(f($))N=function(U,q){const Y=E(U,!0,q==="fixed"),K=Y.top+U.clientTop,G=Y.left+U.clientLeft,J=s(U)?L(U):{x:1,y:1};return{width:U.clientWidth*J.x,height:U.clientHeight*J.y,x:G*J.x,y:K*J.y}}($,I);else{const U={...$};if(p()){var B,j;const q=n(M);U.x-=((B=q.visualViewport)==null?void 0:B.offsetLeft)||0,U.y-=((j=q.visualViewport)==null?void 0:j.offsetTop)||0}N=U}return l$1(N)}function A(M,$){return s(M)&&o(M).position!=="fixed"?$?$(M):M.offsetParent:null}function H(M,$){const I=n(M);if(!s(M))return I;let N=A(M,$);for(;N&&d(N)&&o(N).position==="static";)N=A(N,$);return N&&(r$1(N)==="html"||r$1(N)==="body"&&o(N).position==="static"&&!h(N))?I:N||function(B){let j=F(B);for(;s(j)&&!g(j);){if(h(j))return j;j=F(j)}return null}(M)||I}function V(M,$,I){const N=s($),B=T($),j=E(M,!0,I==="fixed",$);let U={scrollLeft:0,scrollTop:0};const q={x:0,y:0};if(N||!N&&I!=="fixed")if((r$1($)!=="body"||a(B))&&(U=R($)),s($)){const Y=E($,!0);q.x=Y.x+$.clientLeft,q.y=Y.y+$.clientTop}else B&&(q.x=C(B));return{x:j.left+U.scrollLeft-q.x,y:j.top+U.scrollTop-q.y,width:j.width,height:j.height}}const O={getClippingRect:function(M){let{element:$,boundary:I,rootBoundary:N,strategy:B}=M;const j=I==="clippingAncestors"?function(K,G){const J=G.get(K);if(J)return J;let Z=D(K).filter(re=>f(re)&&r$1(re)!=="body"),ee=null;const te=o(K).position==="fixed";let se=te?F(K):K;for(;f(se)&&!g(se);){const re=o(se),ne=h(se);re.position==="fixed"?ee=null:(te?ne||ee:ne||re.position!=="static"||!ee||!["absolute","fixed"].includes(ee.position))?ee=re:Z=Z.filter(ce=>ce!==se),se=F(se)}return G.set(K,Z),Z}($,this._c):[].concat(I),U=[...j,N],q=U[0],Y=U.reduce((K,G)=>{const J=S($,G,B);return K.top=y(J.top,K.top),K.right=m(J.right,K.right),K.bottom=m(J.bottom,K.bottom),K.left=y(J.left,K.left),K},S($,q,B));return{width:Y.right-Y.left,height:Y.bottom-Y.top,x:Y.left,y:Y.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(M){let{rect:$,offsetParent:I,strategy:N}=M;const B=s(I),j=T(I);if(I===j)return $;let U={scrollLeft:0,scrollTop:0},q={x:1,y:1};const Y={x:0,y:0};if((B||!B&&N!=="fixed")&&((r$1(I)!=="body"||a(j))&&(U=R(I)),s(I))){const K=E(I);q=L(I),Y.x=K.x+I.clientLeft,Y.y=K.y+I.clientTop}return{width:$.width*q.x,height:$.height*q.y,x:$.x*q.x-U.scrollLeft*q.x+Y.x,y:$.y*q.y-U.scrollTop*q.y+Y.y}},isElement:f,getDimensions:function(M){return w(M)},getOffsetParent:H,getDocumentElement:T,getScale:L,async getElementRects(M){let{reference:$,floating:I,strategy:N}=M;const B=this.getOffsetParent||H,j=this.getDimensions;return{reference:V($,await B(I),N),floating:{x:0,y:0,...await j(I)}}},getClientRects:M=>Array.from(M.getClientRects()),isRTL:M=>o(M).direction==="rtl"};function P(M,$,I,N){N===void 0&&(N={});const{ancestorScroll:B=!0,ancestorResize:j=!0,elementResize:U=!0,animationFrame:q=!1}=N,Y=B&&!q,K=Y||j?[...f(M)?D(M):M.contextElement?D(M.contextElement):[],...D($)]:[];K.forEach(ee=>{Y&&ee.addEventListener("scroll",I,{passive:!0}),j&&ee.addEventListener("resize",I)});let G,J=null;U&&(J=new ResizeObserver(()=>{I()}),f(M)&&!q&&J.observe(M),f(M)||!M.contextElement||q||J.observe(M.contextElement),J.observe($));let Z=q?E(M):null;return q&&function ee(){const te=E(M);!Z||te.x===Z.x&&te.y===Z.y&&te.width===Z.width&&te.height===Z.height||I(),Z=te,G=requestAnimationFrame(ee)}(),I(),()=>{var ee;K.forEach(te=>{Y&&te.removeEventListener("scroll",I),j&&te.removeEventListener("resize",I)}),(ee=J)==null||ee.disconnect(),J=null,q&&cancelAnimationFrame(G)}}const z=(M,$,I)=>{const N=new Map,B={platform:O,...I},j={...B.platform,_c:N};return r$2(M,$,{...B,platform:j})},_sfc_main$2Q={mixins:[mixin_1],props:{autoclose:{type:Boolean,default:!1},clickaway:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},offset:{type:Array,default:()=>[10,0]},placement:{type:String,default:"bottom-end"}},data(){return{isOpen:!1,escBinding:null,cleanupAutoUpdater:null,portalTarget:null,provide:{popover:this.makeProvide()}}},computed:{targetClass(){return this.$vnode.data.staticClass}},methods:{computePosition(){this.$refs.trigger&&z(this.$refs.trigger.firstChild,this.$refs.popover,{placement:this.placement,middleware:[D$1({mainAxis:this.offset[0],crossAxis:this.offset[1]}),b$1(),k({padding:5})]}).then(({x:M,y:$})=>{Object.assign(this.$refs.popover.style,{transform:`translate(${Math.round(M)}px, ${Math.round($)}px)`})})},toggle(M){this.isOpen?this.close():this.open()},open(){this.disabled||(this.isOpen=!0,this.escBinding=this.$keys.bindGlobal("esc",M=>this.close()),this.$nextTick(()=>{this.cleanupAutoUpdater=P(this.$refs.trigger.firstChild,this.$refs.popover,this.computePosition),this.$refs.popover.addEventListener("transitionend",()=>{this.$emit("opened")},{once:!0})}))},clickawayClose(M){!this.clickaway||!this.isOpen||this.$refs.popover.contains(M.target)||this.$el.contains(M.target)||(this.close(),this.$emit("clicked-away",M))},close(){this.isOpen&&(this.isOpen=!1,this.$emit("closed"),this.cleanupAutoUpdater(),this.escBinding&&this.escBinding.destroy())},leave(){this.autoclose&&this.close()},makeProvide(){const M={};return Object.defineProperties(M,{vm:{get:()=>this}}),M}}};var _sfc_render$2Q=function M(){var $=this,I=$._self._c;return I("div",{class:{"popover-open":$.isOpen},on:{mouseleave:$.leave}},[$.$scopedSlots.default?I("div",{ref:"trigger",attrs:{"aria-haspopup":"true","aria-expanded":$.isOpen},on:{click:$.toggle}},[$._t("trigger")],2):$._e(),I("portal",{attrs:{name:"popover","target-class":`popover-container ${$.targetClass||""}`,provide:$.provide}},[I("div",{class:`${$.isOpen?"popover-open":""}`},[$.disabled?$._e():I("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:$.clickawayClose,expression:"clickawayClose"}],ref:"popover",staticClass:"popover"},[I("div",{staticClass:"popover-content bg-white dark:bg-dark-550 shadow-popover dark:shadow-dark-popover rounded-md"},[$._t("default",null,{close:$.close})],2)])])])],1)},_sfc_staticRenderFns$2Q=[],__component__$2R=normalizeComponent$2(_sfc_main$2Q,_sfc_render$2Q,_sfc_staticRenderFns$2Q,!1,null,null,null,null);const Popover=__component__$2R.exports,_sfc_main$2P={components:{Provider},props:{name:{type:String,required:!0},provide:{type:Object},targetClass:{type:String},disabled:{type:Boolean,default:!1}},data(){return{portal:null}},created(){this.portal=this.$portals.create(this.name)},beforeDestroy(){this.portal.destroy()}};var _sfc_render$2P=function M(){var $=this,I=$._self._c;return I("v-portal",{attrs:{name:"popover",to:$.portal.id,"target-class":$.targetClass,disabled:$.disabled}},[I("provider",{attrs:{variables:$.provide}},[$._t("default")],2)],1)},_sfc_staticRenderFns$2P=[],__component__$2Q=normalizeComponent$2(_sfc_main$2P,_sfc_render$2P,_sfc_staticRenderFns$2P,!1,null,null,null,null);const Portal$1=__component__$2Q.exports,_sfc_main$2O={props:{initialPermissions:Array,depth:Number},data(){return{permissions:this.initialPermissions}},computed:{direction(){return this.$config.get("direction","ltr")}}};var _sfc_render$2O=function M(){var $=this,I=$._self._c;return I("div",$._l($.permissions,function(N){return I("div",{key:N.value},[I("label",{staticClass:"flex items-center justify-between py-2 rtl:pl-4 ltr:pr-4 border-b dark:border-dark-900 group hover:bg-gray-100 dark:hover:bg-dark-700",style:$.direction==="ltr"?{paddingLeft:`${16*$.depth}px`}:{paddingRight:`${16*$.depth}px`}},[I("div",{staticClass:"flex"},[I("div",{staticClass:"leading-normal"},[I("input",{directives:[{name:"model",rawName:"v-model",value:N.checked,expression:"permission.checked"}],attrs:{type:"checkbox",name:"permissions[]"},domProps:{value:N.value,checked:Array.isArray(N.checked)?$._i(N.checked,N.value)>-1:N.checked},on:{change:function(B){var j=N.checked,U=B.target,q=!!U.checked;if(Array.isArray(j)){var Y=N.value,K=$._i(j,Y);U.checked?K<0&&$.$set(N,"checked",j.concat([Y])):K>-1&&$.$set(N,"checked",j.slice(0,K).concat(j.slice(K+1)))}else $.$set(N,"checked",q)}}})]),I("div",{staticClass:"rtl:pr-2 ltr:pl-2"},[$._v(" "+$._s(N.label)+" ")])]),N.description?I("div",{staticClass:"text-gray-700 dark:text-dark-175 text-xs opacity-0 group-hover:opacity-100",domProps:{textContent:$._s(N.description)}}):$._e()]),N.children.length?I("role-permission-tree",{attrs:{depth:$.depth+1,"initial-permissions":N.children}}):$._e()],1)}),0)},_sfc_staticRenderFns$2O=[],__component__$2P=normalizeComponent$2(_sfc_main$2O,_sfc_render$2O,_sfc_staticRenderFns$2O,!1,null,null,null,null);const PermissionTree=__component__$2P.exports;function _toConsumableArray$1(M){if(Array.isArray(M)){for(var $=0,I=Array(M.length);$<M.length;$++)I[$]=M[$];return I}else return Array.from(M)}var hasPassiveEvents=!1;if(typeof window<"u"){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting=void 0,previousBodyPosition=void 0,previousBodyPaddingRight=void 0,allowTouchMove=function M($){return locks.some(function(I){return!!(I.options.allowTouchMove&&I.options.allowTouchMove($))})},preventDefault=function M($){var I=$||window.event;return allowTouchMove(I.target)||I.touches.length>1?!0:(I.preventDefault&&I.preventDefault(),!1)},setOverflowHidden=function M($){if(previousBodyPaddingRight===void 0){var I=!!$&&$.reserveScrollBarGap===!0,N=window.innerWidth-document.documentElement.clientWidth;if(I&&N>0){var B=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=B+N+"px"}}previousBodyOverflowSetting===void 0&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")},restoreOverflowSetting=function M(){previousBodyPaddingRight!==void 0&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),previousBodyOverflowSetting!==void 0&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)},setPositionFixed=function M(){return window.requestAnimationFrame(function(){if(previousBodyPosition===void 0){previousBodyPosition={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var $=window,I=$.scrollY,N=$.scrollX,B=$.innerHeight;document.body.style.position="fixed",document.body.style.top=-I,document.body.style.left=-N,setTimeout(function(){return window.requestAnimationFrame(function(){var j=B-window.innerHeight;j&&I>=B&&(document.body.style.top=-(I+j))})},300)}})},restorePositionSetting=function M(){if(previousBodyPosition!==void 0){var $=-parseInt(document.body.style.top,10),I=-parseInt(document.body.style.left,10);document.body.style.position=previousBodyPosition.position,document.body.style.top=previousBodyPosition.top,document.body.style.left=previousBodyPosition.left,window.scrollTo(I,$),previousBodyPosition=void 0}},isTargetElementTotallyScrolled=function M($){return $?$.scrollHeight-$.scrollTop<=$.clientHeight:!1},handleScroll=function M($,I){var N=$.targetTouches[0].clientY-initialClientY;return allowTouchMove($.target)?!1:I&&I.scrollTop===0&&N>0||isTargetElementTotallyScrolled(I)&&N<0?preventDefault($):($.stopPropagation(),!0)},disableBodyScroll=function M($,I){if(!$){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!locks.some(function(B){return B.targetElement===$})){var N={targetElement:$,options:I||{}};locks=[].concat(_toConsumableArray$1(locks),[N]),isIosDevice?setPositionFixed():setOverflowHidden(I),isIosDevice&&($.ontouchstart=function(B){B.targetTouches.length===1&&(initialClientY=B.targetTouches[0].clientY)},$.ontouchmove=function(B){B.targetTouches.length===1&&handleScroll(B,$)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0))}},enableBodyScroll=function M($){if(!$){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}locks=locks.filter(function(I){return I.targetElement!==$}),isIosDevice&&($.ontouchstart=null,$.ontouchmove=null,documentListenerAdded&&locks.length===0&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1)),isIosDevice?restorePositionSetting():restoreOverflowSetting()};const _sfc_main$2N={props:{adaptive:{type:Boolean,default:!0},draggable:{default:!1},clickToClose:{type:Boolean,default:!1},shiftY:{type:Number,default:.1},focusTrap:{type:Boolean,default:!0},height:{default:"auto"},width:{},scrollable:{type:Boolean,default:!1}},data(){return{modal:null,name:uniqid$1()}},computed:{modalProps(){return{name:this.name,adaptive:this.adaptive,clickToClose:this.clickToClose,draggable:this.draggable,height:this.height,shiftY:this.shiftY,focusTrap:this.focusTrap,width:this.width,scrollable:this.scrollable}}},mounted(){this.$nextTick(()=>this.$modal.show(this.name)),this.scrollable||disableBodyScroll(this.$el)},beforeDestroy(){enableBodyScroll(this.$el),this.close()},methods:{modalOpened(M){this.$emit("opened")},modalClosed(M){this.close()},close(){this.$modal.hide(this.name),this.$emit("closed")}}};var _sfc_render$2N=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"modal"}},[I("v-modal",$._b({attrs:{delay:25},on:{opened:$.modalOpened,closed:$.modalClosed}},"v-modal",$.modalProps,!1),[$._t("default",null,{close:$.close})],2)],1)},_sfc_staticRenderFns$2N=[],__component__$2O=normalizeComponent$2(_sfc_main$2N,_sfc_render$2N,_sfc_staticRenderFns$2N,!1,null,null,null,null);const Modal=__component__$2O.exports,_sfc_main$2M={props:{title:{type:String},bodyText:{type:String},buttonText:{type:String,default:"Confirm"},cancellable:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},busy:{type:Boolean,default:!1}},data(){return{escBinding:null}},computed:{buttonClass(){return this.danger?"btn-danger":"btn-primary"}},methods:{dismiss(){this.busy||this.$emit("cancel")},submit(){this.busy||this.$emit("confirm")}},created(){this.escBinding=this.$keys.bind("esc",this.dismiss)},beforeDestroy(){this.escBinding.destroy()}};var _sfc_render$2M=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"confirmation-modal"},on:{opened:function(N){return $.$emit("opened")}}},[I("form",{staticClass:"confirmation-modal flex flex-col h-full",on:{submit:function(N){return N.preventDefault(),$.submit.apply(null,arguments)}}},[$.title?I("header",{staticClass:"text-lg font-semibold px-5 py-3 bg-gray-200 dark:bg-dark-550 rounded-t-lg flex items-center justify-between border-b dark:border-dark-900"},[$._v(" "+$._s($.__($.title))+" ")]):$._e(),I("div",{staticClass:"relative flex-1 px-5 py-6 text-gray dark:text-dark-150"},[$._t("body",function(){return[$.bodyText?I("p",{domProps:{textContent:$._s($.bodyText)}}):$._t("default",function(){return[I("p",[$._v($._s($.__("Are you sure?")))])]})]}),$.busy?I("div",{staticClass:"bg-white dark:bg-dark-700 bg-opacity-75 select-none pointer-events-none absolute inset-0 flex items-center justify-center"},[I("loading-graphic",{attrs:{text:""}})],1):$._e()],2),I("div",{staticClass:"px-5 py-3 bg-gray-200 dark:bg-dark-550 rounded-b-lg border-t dark:border-dark-900 flex items-center justify-end text-sm"},[$.cancellable?I("button",{staticClass:"btn-flat",attrs:{type:"button",disabled:$.busy},domProps:{textContent:$._s($.__($.cancelText))},on:{click:function(N){return N.preventDefault(),$.$emit("cancel")}}}):$._e(),I("button",{staticClass:"rtl:mr-4 ltr:ml-4",class:$.buttonClass,attrs:{disabled:$.disabled||$.busy},domProps:{textContent:$._s($.__($.buttonText))}})])])])},_sfc_staticRenderFns$2M=[],__component__$2N=normalizeComponent$2(_sfc_main$2M,_sfc_render$2M,_sfc_staticRenderFns$2M,!1,null,null,null,null);const ConfirmationModal=__component__$2N.exports,_sfc_main$2L={data(){return{name:document.title.replace(` ${this.$config.get("direction","ltr")==="ltr"?"‹":"›"} ${__("Statamic")}`,""),currentUrl:this.$config.get("urlPath")}},computed:{favorite(){return{name:this.name,url:this.currentUrl}},persistedFavorite(){return _.find(this.$preferences.get("favorites"),M=>M.url==this.currentUrl)},isNotYetFavorited(){return this.persistedFavorite===void 0},direction(){return this.$config.get("direction","ltr")}},methods:{shown(){this.highlight()},highlight(){setTimeout(()=>this.$refs.fave.select(),50)},save(){this.saving=!0,this.$preferences.append("favorites",this.favorite).then(M=>{this.saving=!1,this.$toast.success(__("Favorite saved")),this.$refs.popper.close(),this.$events.$emit("favorites.added")}).catch(M=>{this.saving=!1,M.response?this.$toast.error(M.response.data.message):this.$toast.error(__("Unable to save favorite"))})},remove(){this.$preferences.remove("favorites",this.persistedFavorite).then(M=>{this.$toast.success(__("Favorite removed"))})},makeStartPage(){this.saving=!0,this.$preferences.set("start_page",this.currentUrl).then(M=>{this.saving=!1,this.$toast.success(__("This is now your start page.")),this.$refs.popper.close(),this.$events.$emit("start_page.saved")}).catch(M=>{this.saving=!1,M.response?this.$toast.error(M.response.data.message):this.$toast.error(__("Unable to save favorite"))})}}};var _sfc_render$2L=function M(){var $=this,I=$._self._c;return I("div",[$.isNotYetFavorited?I("popover",{ref:"popper",attrs:{placement:"bottom-end",offset:[10,28]}},[I("template",{slot:"trigger"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Pin to Favorites"),expression:"__('Pin to Favorites')"}],staticClass:"global-header-icon-button",attrs:{slot:"reference","aria-label":$.__("Pin to Favorites")},on:{click:$.shown},slot:"reference"},[I("svg-icon",{attrs:{name:"light/pin"}})],1)]),I("div",{staticClass:"p-4 pb-2"},[I("h6",{staticClass:"mb-2"},[$._v($._s($.__("Pin to Favorites")))]),I("div",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.name,expression:"name"}],ref:"fave",staticClass:"input-text w-auto",attrs:{type:"text"},domProps:{value:$.name},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:$.save.apply(null,arguments)},input:function(N){N.target.composing||($.name=N.target.value)}}}),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",on:{click:$.save}},[$._v($._s($.__("Save")))])]),I("button",{staticClass:"mt-2 text-xs text-blue outline-none hover:text-blue-800",on:{click:$.makeStartPage}},[$._v($._s($.__("Set as start page"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})])])],2):I("div",[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Unpin from Favorites"),expression:"__('Unpin from Favorites')"}],staticClass:"global-header-icon-button",attrs:{"aria-label":$.__("Unpin from Favorites")},on:{click:$.remove}},[I("svg-icon",{staticClass:"text-green-600",attrs:{name:"light/pin"}})],1)])],1)},_sfc_staticRenderFns$2L=[],__component__$2M=normalizeComponent$2(_sfc_main$2L,_sfc_render$2L,_sfc_staticRenderFns$2L,!1,null,null,null,null);const FavoriteCreator=__component__$2M.exports,_sfc_main$2K={mixins:[mixin_1],data(){return{open:!1,keybinding:null}},watch:{open(M){M?this.keybinding=this.$keys.bind("esc",()=>this.open=!1):this.keybinding.destroy()}},methods:{close(){this.open=!1}},created(){this.$keys.bind("?",()=>this.open=!this.open),this.$events.$on("keyboard-shortcuts.open",()=>{this.open=!0})}};var _sfc_render$2K=function M(){var $=this,I=$._self._c;return $.open?I("modal",{attrs:{name:"keyboard-shortcuts",width:"380",height:"auto",adaptive:!0,"click-to-close":""},on:{closed:function(N){$.open=!1}}},[I("div",{staticClass:"-max-h-screen-px"},[I("h1",{staticClass:"p-4 bg-gray-200 dark:bg-dark-700 border-b dark:border-dark-900 text-center"},[$._v(" "+$._s($.__("Keyboard Shortcuts"))+" ")]),I("div",{staticClass:"p-6 relative"},[I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("shift")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("?")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Show Keyboard Shortcuts")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("/")]),$._v(" "),I("span",{staticClass:"shortcut-joiner"},[$._v("or")]),I("span",{staticClass:"shortcut"},[$._v("ctrl")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("f")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Focus Search")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("⌘")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("return")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Save")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("⌘")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("s")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Quick Save")))])]),I("div",{staticClass:"shortcut-pair"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("⌘")]),I("span",{staticClass:"shortcut-joiner"},[$._v("+")]),I("span",{staticClass:"shortcut"},[$._v("\\")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Toggle Sidebar")))])]),I("div",{staticClass:"shortcut-pair mb-0"},[I("span",{staticClass:"shortcut-combo"},[I("span",{staticClass:"shortcut"},[$._v("esc")])]),I("span",{staticClass:"shortcut-value"},[$._v($._s($.__("Close Modal")))])])])])]):$._e()},_sfc_staticRenderFns$2K=[],__component__$2L=normalizeComponent$2(_sfc_main$2K,_sfc_render$2K,_sfc_staticRenderFns$2K,!1,null,null,null,null);const KeyboardShortcutsModal=__component__$2L.exports,_sfc_main$2J={props:{fields:{type:Object},title:{type:String},buttonText:{type:String},text:{type:String},warningText:{type:String},dangerous:{type:Boolean,default:!1}},data(){return{resolving:this.hasFields,processing:!1,blueprint:[],values:{},meta:{},error:null,errors:{},bodyText:null,containerName:`field-action-modal-${uniqid$1()}`}},mounted(){this.bodyText=this.initializeBodyText(),this.initialize()},computed:{hasFields(){return this.fields&&Object.keys(this.fields).length>0}},methods:{initialize(){this.hasFields&&(this.resolving=!0,this.$axios.post(cp_url("field-action-modal/resolve"),{fields:this.fields}).then(M=>{this.blueprint={tabs:[{fields:M.data.fields}]},this.values=M.data.values,this.meta=M.data.meta,this.resolving=!1}))},confirm(){if(!this.hasFields){this.$emit("confirm");return}this.processing=!0,this.$axios.post(cp_url("field-action-modal/process"),{fields:this.fields,values:this.values}).then(M=>{this.$emit("confirm",M.data)}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else M.response?this.$toast.error(M.response.data.message):this.$toast.error(__("Something went wrong"))}).finally(()=>this.processing=!1)},cancel(){this.$emit("cancel")},initializeBodyText(){return this.text?this.text:this.warningText||this.hasFields?null:__("Are you sure?")}}};var _sfc_render$2J=function M(){var $=this,I=$._self._c;return I("div",[I("confirmation-modal",{attrs:{title:$.title,danger:$.dangerous,buttonText:$.buttonText,busy:$.resolving||$.processing},on:{confirm:$.confirm,cancel:$.cancel}},[I("div",{staticClass:"min-h-20"},[$.bodyText?I("div",{class:{"mb-4":$.warningText||$.hasFields},domProps:{textContent:$._s($.bodyText)}}):$._e(),$.warningText?I("div",{staticClass:"text-red-500",class:{"mb-4":$.hasFields},domProps:{textContent:$._s($.warningText)}}):$._e(),$.hasFields&&!$.resolving?I("publish-container",{attrs:{name:$.containerName,blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("publish-fields",{attrs:{fields:$.blueprint.tabs[0].fields},on:{updated:N,"meta-updated":B}})}}],null,!1,363965594)}):$._e()],1)])],1)},_sfc_staticRenderFns$2J=[],__component__$2K=normalizeComponent$2(_sfc_main$2J,_sfc_render$2J,_sfc_staticRenderFns$2J,!1,null,null,null,null);const FieldActionModal=__component__$2K.exports,_sfc_main$2I={props:{resource:{type:Object},resourceTitle:{type:String},route:{type:String},redirect:{type:String},reload:{type:Boolean}},data(){return{deleting:!1,redirectFromServer:null}},computed:{title(){return data_get(this.resource,"title",this.resourceTitle)},modalTitle(){return __("Delete :resource",{resource:__(this.title)})},modalBody(){return __("Are you sure you want to delete this item?")},deleteUrl(){let M=data_get(this.resource,"delete_url",this.route);return M||console.error("ResourceDeleter cannot find delete url"),M},redirectUrl(){return this.redirect||this.redirectFromServer}},methods:{confirm(){this.deleting=!0},confirmed(){this.$axios.delete(this.deleteUrl).then(M=>{this.redirectFromServer=data_get(M,"data.redirect"),this.success()}).catch(()=>{this.$toast.error(__("Something went wrong"))})},success(){if(this.redirectUrl){location.href=this.redirectUrl;return}if(this.reload){location.reload();return}this.$toast.success(__("Deleted")),this.$emit("deleted")},cancel(){this.deleting=!1}}};var _sfc_render$2I=function M(){var $=this,I=$._self._c;return $.deleting?I("confirmation-modal",{attrs:{title:$.modalTitle,bodyText:$.modalBody,buttonText:$.__("Delete"),danger:!0},on:{confirm:$.confirmed,cancel:$.cancel}}):$._e()},_sfc_staticRenderFns$2I=[],__component__$2J=normalizeComponent$2(_sfc_main$2I,_sfc_render$2I,_sfc_staticRenderFns$2I,!1,null,null,null,null);const ResourceDeleter=__component__$2J.exports,_sfc_main$2H={props:{name:{type:String,required:!0},beforeClose:{type:Function,default:()=>!0},narrow:{type:Boolean},half:{type:Boolean},full:{type:Boolean}},data(){return{stack:null,visible:!1,isHovering:!1,escBinding:null}},computed:{portal(){return this.stack?this.stack.id:null},depth(){return this.stack.data.depth},id(){return`${this.name}-${this._uid}`},offset(){return this.isTopStack&&this.narrow?window.innerWidth-400:this.isTopStack&&this.half?window.innerWidth/2:Math.max(400/(this.$stacks.count()+1),80)},leftOffset(){return this.full?0:this.isTopStack&&(this.narrow||this.half)?this.offset:this.offset*this.depth},hasChild(){return this.$stacks.count()>this.depth},isTopStack(){return this.$stacks.count()===this.depth},direction(){return this.$config.get("direction","ltr")}},created(){this.stack=this.$stacks.add(this),this.$events.$on(`stacks.${this.depth}.hit-area-mouseenter`,()=>this.isHovering=!0),this.$events.$on(`stacks.${this.depth}.hit-area-mouseout`,()=>this.isHovering=!1),this.escBinding=this.$keys.bindGlobal("esc",this.close)},destroyed(){this.stack.destroy(),this.$events.$off(`stacks.${this.depth}.hit-area-mouseenter`),this.$events.$off(`stacks.${this.depth}.hit-area-mouseout`),this.escBinding.destroy()},methods:{clickedHitArea(){this.visible&&(this.$events.$emit("stacks.hit-area-clicked",this.depth-1),this.$events.$emit(`stacks.${this.depth-1}.hit-area-mouseout`))},mouseEnterHitArea(){this.visible&&this.$events.$emit(`stacks.${this.depth-1}.hit-area-mouseenter`)},mouseOutHitArea(){this.visible&&this.$events.$emit(`stacks.${this.depth-1}.hit-area-mouseout`)},runCloseCallback(){return this.beforeClose()?(this.close(),!0):!1},close(){this.visible=!1,this.$wait(300).then(()=>{this.$emit("closed")})}},mounted(){this.visible=!0}};var _sfc_render$2H=function M(){var $=this,I=$._self._c;return I("v-portal",{attrs:{to:$.portal,order:$.depth,"target-class":"stack"}},[I("div",{staticClass:"stack-container",class:{"stack-is-current":$.isTopStack,hovering:$.isHovering,"p-2 shadow-lg":$.full},style:$.direction==="ltr"?{left:`${$.leftOffset}px`}:{right:`${$.leftOffset}px`}},[I("transition",{attrs:{name:"stack-overlay-fade"}},[$.visible?I("div",{staticClass:"stack-overlay",style:$.direction==="ltr"?{left:`-${$.leftOffset}px`}:{right:`-${$.leftOffset}px`}}):$._e()]),I("div",{staticClass:"stack-hit-area",style:$.direction==="ltr"?{left:`-${$.offset}px`}:{right:`-${$.offset}px`},on:{click:$.clickedHitArea,mouseenter:$.mouseEnterHitArea,mouseout:$.mouseOutHitArea}}),I("transition",{attrs:{name:"stack-slide"}},[$.visible?I("div",{staticClass:"stack-content"},[$._t("default",null,{depth:$.depth,close:$.close})],2):$._e()])],1)])},_sfc_staticRenderFns$2H=[],__component__$2I=normalizeComponent$2(_sfc_main$2H,_sfc_render$2H,_sfc_staticRenderFns$2H,!1,null,null,null,null);const Stack=__component__$2I.exports,_sfc_main$2G={props:["depth"],data(){return{show:!1}}};var _sfc_render$2G=function M(){var $=this,I=$._self._c;return I("div",[I("small",{staticClass:"text-gray"},[$._v("Collections > Blog >")]),I("h1",{staticClass:"mt-2 mb-6"},[$._v("Fire!")]),$._v(" "+$._s($.depth===0?"Base":`Stack ${$.depth}`)),I("br"),I("br"),I("button",{staticClass:"btn",on:{click:function(N){$.show=!0}}},[$._v("Open Stack "+$._s($.depth+1))]),$.show?I("stack",{attrs:{name:"test"},on:{closed:function(N){$.show=!1}},scopedSlots:$._u([{key:"default",fn:function({depth:N}){return I("div",{staticClass:"p-8"},[I("stack-test",{attrs:{depth:N}})],1)}}],null,!1,667972905)}):$._e()],1)},_sfc_staticRenderFns$2G=[],__component__$2H=normalizeComponent$2(_sfc_main$2G,_sfc_render$2G,_sfc_staticRenderFns$2G,!1,null,null,null,null);const StackTest=__component__$2H.exports,_sfc_main$2F={props:{text:{type:String,required:!0},copyable:{type:Boolean,default:!1}},computed:{canCopy(){return this.copyable&&window.isSecureContext}},methods:{async copy(){await navigator.clipboard.writeText(this.text),Statamic.$toast.success(__("Copied to clipboard"))}}};var _sfc_render$2F=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex items-center bg-gray-800 py-3 px-4 rounded-md"},[I("pre",{staticClass:"flex-1 p-0 m-0 leading-6"},[I("code",{staticClass:"bg-transparent p-0 text-gray-400 leading-none",domProps:{textContent:$._s($.text)}})]),$.canCopy?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Copy"),expression:"__('Copy')"}],staticClass:"flex",on:{click:$.copy}},[I("svg-icon",{staticClass:"w-4 h-4 text-white",attrs:{name:"light/entries"}})],1):$._e()])])},_sfc_staticRenderFns$2F=[],__component__$2G=normalizeComponent$2(_sfc_main$2F,_sfc_render$2F,_sfc_staticRenderFns$2F,!1,null,null,null,null);const CodeBlock$1=__component__$2G.exports,_sfc_main$2E={props:{resource:{type:Object},resourceTitle:{type:String},route:{type:String},redirect:{type:String},reload:{type:Boolean}},data(){return{resetting:!1,redirectFromServer:null,submitting:!1}},computed:{title(){return data_get(this.resource,"title",this.resourceTitle)},modalTitle(){return __("Reset :resource",{resource:this.title})},modalBody(){return __("Are you sure you want to reset this item?")},resetUrl(){let M=data_get(this.resource,"reset_url",this.route);return M||console.error("BlueprintResetter cannot find reset url"),M},redirectUrl(){return this.redirect||this.redirectFromServer}},methods:{confirm(){this.resetting=!0},confirmed(){this.submitting=!0,this.$axios.delete(this.resetUrl).then(M=>{this.redirectFromServer=data_get(M,"data.redirect"),this.success()}).catch(()=>{this.$toast.error(__("Something went wrong")),this.submitting=!1})},success(){if(this.redirectUrl){location.href=this.redirectUrl;return}if(this.reload){location.reload();return}this.$toast.success(__("Reset")),this.$emit("reset"),this.submitting=!1},cancel(){this.resetting=!1}}};var _sfc_render$2E=function M(){var $=this,I=$._self._c;return $.resetting?I("confirmation-modal",{attrs:{title:$.modalTitle,bodyText:$.modalBody,buttonText:$.__("Reset"),danger:!0,busy:$.submitting},on:{confirm:$.confirmed,cancel:$.cancel}}):$._e()},_sfc_staticRenderFns$2E=[],__component__$2F=normalizeComponent$2(_sfc_main$2E,_sfc_render$2E,_sfc_staticRenderFns$2E,!1,null,null,null,null);const BlueprintResetter=__component__$2F.exports;Vue$3.component("v-select",vSelect);Vue$3.component("asset-manager",AssetManager);Vue$3.component("asset-browser",Browser);Vue$3.component("updates-badge",UpdatesBadge);Vue$3.component("publish-container",Container);Vue$3.component("publish-form",PublishForm);Vue$3.component("publish-fields",Fields$1);Vue$3.component("publish-fields-container",FieldsContainer);Vue$3.component("publish-field",PublishField);Vue$3.component("publish-field-meta",FieldMeta);Vue$3.component("publish-field-actions",FieldActions);Vue$3.component("publish-field-fullscreen-header",FullscreenHeader);Vue$3.component("configure-tabs",ConfigureTabs);Vue$3.component("publish-tabs",PublishTabs);Vue$3.component("publish-sections",PublishSections);Vue$3.component("publish-validation-errors",PublishValidationErrors);Vue$3.component("form-group",FormGroup);Vue$3.component("live-preview",LivePreview);Vue$3.component("live-preview-popout",Popout);Vue$3.component("EntryPublishForm",EntryPublishForm);Vue$3.component("TermPublishForm",TermPublishForm);Vue$3.component("UserPublishForm",UserPublishForm);Vue$3.component("data-list",DataList);Vue$3.component("data-list-table",Table$1);Vue$3.component("data-list-search",Search);Vue$3.component("data-list-bulk-actions",BulkActions);Vue$3.component("data-list-inline-actions",InlineActions);Vue$3.component("data-list-column-picker",ColumnPicker);Vue$3.component("data-list-toggle-all",ToggleAll);Vue$3.component("data-list-pagination",Pagination);Vue$3.component("data-list-filters",Filters);Vue$3.component("data-list-filter-presets",FilterPresets);Vue$3.component("entry-list",EntryListing);Vue$3.component("collection-list",CollectionListing);Vue$3.component("taxonomy-list",TaxonomyListing);Vue$3.component("term-list",TermListing);Vue$3.component("asset-container-list",AssetContainerList);Vue$3.component("addon-list",AddonList);Vue$3.component("addon-details",AddonDetails);Vue$3.component("collection-widget",CollectionWidget);Vue$3.component("svg-icon",SvgIcon);Vue$3.component("file-icon",FileIcon);Vue$3.component("loading-graphic",LoadingGraphic);Vue$3.component("dropdown-list",DropdownList);Vue$3.component("dropdown-item",DropdownItem);Vue$3.component("validation-errors",ValidationErrors);Vue$3.component("slugify",Slugify);Vue$3.component("element-container",ElementContainer);Vue$3.component("avatar",Avatar);Vue$3.component("breadcrumb",Breadcrumb);Vue$3.component("breadcrumbs",Breadcrumbs);Vue$3.component("create-entry-button",CreateEntryButton);Vue$3.component("popover",Popover);Vue$3.component("portal",Portal$1);Vue$3.component("code-block",CodeBlock$1);Vue$3.component("role-permission-tree",PermissionTree);Vue$3.component("modal",Modal);Vue$3.component("confirmation-modal",ConfirmationModal);Vue$3.component("favorite-creator",FavoriteCreator);Vue$3.component("keyboard-shortcuts-modal",KeyboardShortcutsModal);Vue$3.component("resource-deleter",ResourceDeleter);Vue$3.component("field-action-modal",FieldActionModal);Vue$3.component("stack",Stack);Vue$3.component("stack-test",StackTest);Vue$3.component("blueprint-resetter",BlueprintResetter);const _sfc_main$2D={mixins:[Fieldtype],computed:{isRevealed(){return this.value},isToggleMode(){return data_get(this.config,"mode")==="toggle"},fieldPath(){return this.fieldPathPrefix||this.handle}},inject:["storeName"],mounted(){this.$store.commit(`publish/${this.storeName}/setRevealerField`,this.fieldPath)},beforeDestroy(){this.$store.commit(`publish/${this.storeName}/unsetRevealerField`,this.fieldPath)},watch:{fieldPath(M,$){this.$store.commit(`publish/${this.storeName}/unsetRevealerField`,$),this.$nextTick(()=>{this.$store.commit(`publish/${this.storeName}/setRevealerField`,M)})}},methods:{buttonReveal(){this.isReadOnly||(this.$store.commit(`publish/${this.storeName}/setHiddenField`,{dottedKey:this.fieldPath,hidden:"force",omitValue:!0}),this.update(!0))}}};var _sfc_render$2D=function M(){var $=this,I=$._self._c;return I("div",[$.isToggleMode?[I("div",{staticClass:"toggle-fieldtype-wrapper"},[I("toggle-input",{attrs:{value:$.isRevealed,"read-only":$.isReadOnly},on:{input:$.update}}),$.config.input_label?I("label",{staticClass:"rtl:mr-2 ltr:ml-2 font-normal"},[$._v($._s($.__($.config.input_label)))]):$._e()],1)]:[I("button",{staticClass:"btn",attrs:{disabled:$.isReadOnly,"v-tooltip":$.__($.config.instructions)},domProps:{textContent:$._s($.config.input_label||$.__("Show Fields"))},on:{click:$.buttonReveal}})]],2)},_sfc_staticRenderFns$2D=[],__component__$2E=normalizeComponent$2(_sfc_main$2D,_sfc_render$2D,_sfc_staticRenderFns$2D,!1,null,null,null,null);const RevealerFieldtype=__component__$2E.exports,_sfc_main$2C={props:["selected","translations"],data:function(){return{options:[{text:"Live",value:"live"},{text:"Hidden",value:"hidden"},{text:"Draft",value:"draft"}]}}};var _sfc_render$2C=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"select select-full",attrs:{"data-content":$.selected[0].toUpperCase()+$.selected.slice(1)}},[I("span",{class:`status status-${$.selected}`}),I("select",{directives:[{name:"model",rawName:"v-model",value:$.selected,expression:"selected"}],attrs:{name:"status",options:"options"},on:{change:function(N){var B=Array.prototype.filter.call(N.target.options,function(j){return j.selected}).map(function(j){var U="_value"in j?j._value:j.value;return U});$.selected=N.target.multiple?B:B[0]}}})])},_sfc_staticRenderFns$2C=[],__component__$2D=normalizeComponent$2(_sfc_main$2C,_sfc_render$2C,_sfc_staticRenderFns$2C,!1,null,null,null,null);const StatusFieldtype=__component__$2D.exports,PositionsSelectOptions={methods:{positionOptions(M,$,{width:I}){M.style.width=I;function N(){z($.$refs.toggle,M,{placement:"bottom",middleware:[D$1({mainAxis:0,crossAxis:-1}),b$1()]}).then(({x:j,y:U})=>{Object.assign(M.style,{left:`${Math.round(j)}px`,top:`${Math.round(U)}px`})})}const B=P($.$refs.toggle,M,N);this.$once("hook:destroyed",B)}}},_sfc_main$2B={mixins:[Fieldtype,PositionsSelectOptions],data:function(){return{loading:!0,options:[]}},mounted(){this.$axios.get(cp_url("api/templates")).then(M=>{var $=M.data;this.config.hide_partials&&($=_.reject($,N=>N.startsWith("partials/")||N.match(/(^_.*|\/_.*|\._.*)/g))),$=_.reject($,N=>N.startsWith("errors/")),this.config.folder&&($=_.filter($,N=>N.startsWith(`${this.config.folder}/`)));var I=[];this.config.blueprint&&I.push({label:__("Map to Blueprint"),value:"@blueprint"}),_.each($,N=>{I.push({label:this.config.folder?N.substring(this.config.folder.length+1):N,value:N})}),this.options=I,this.loading=!1})}};var _sfc_render$2B=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"template-fieldtype-container"},[I("v-select",{ref:"input",attrs:{name:$.name,"append-to-body":"","calculate-position":$.positionOptions,clearable:$.config.clearable,placeholder:$.__($.config.placeholder),disabled:$.isReadOnly,options:$.options,reduce:N=>N.value,searchable:!0,"push-tags":!1,multiple:!1,value:$.value},on:{input:$.update},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No templates to choose from."))}})]},proxy:!0}])})],1)},_sfc_staticRenderFns$2B=[],__component__$2C=normalizeComponent$2(_sfc_main$2B,_sfc_render$2B,_sfc_staticRenderFns$2B,!1,null,null,null,null);const TemplateFieldtype=__component__$2C.exports,_sfc_main$2A={props:{name:{},disabled:{default:!1},options:{default:[]},placeholder:{required:!1,default:()=>__("Choose...")},value:{},isReadOnly:{type:Boolean},resetOnChange:{default:!1}},data(){return{display:!0}},methods:{isOptionSelected(M){return this.placeholder===!1&&this.value===void 0?M.value==this.options[0].value:M.value==this.value},change(M){this.resetOnChange&&this.reset(),this.$emit("input",M.target.value)},reset(){this.display=!1,this.$nextTick(()=>this.display=!0)}}};var _sfc_render$2A=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"select-input-container"},[$.display?I("select",{staticClass:"select-input",attrs:{name:$.name,disabled:$.isReadOnly},domProps:{value:$.value},on:{change:$.change,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}},[$.placeholder?I("option",{attrs:{value:"",disabled:""},domProps:{selected:$.value===null,textContent:$._s($.__($.placeholder))}}):$._e(),$._l($.options,function(N){return I("option",{key:N.value,domProps:{value:N.value,selected:$.isOptionSelected(N),textContent:$._s($.__(N.label))}})})],2):$._e(),I("div",{staticClass:"select-input-toggle"},[I("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[I("path",{attrs:{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"}})])])])},_sfc_staticRenderFns$2A=[],__component__$2B=normalizeComponent$2(_sfc_main$2A,_sfc_render$2A,_sfc_staticRenderFns$2A,!1,null,null,null,null);const Select=__component__$2B.exports,_sfc_main$2z={props:{limit:{type:Number,required:!1}},computed:{limitReached(){return this.currentLength>this.limit},currentLength(){return this.value?this.value.length:0},limitIndicatorColor(){return this.limitReached?"text-red-500":"text-gray"}}},_sfc_render$2z=null,_sfc_staticRenderFns$2z=null;var __component__$2A=normalizeComponent$2(_sfc_main$2z,_sfc_render$2z,_sfc_staticRenderFns$2z,!1,null,null,null,null);const LengthLimiter=__component__$2A.exports,_sfc_main$2y={mixins:[LengthLimiter],props:{name:{},disabled:{default:!1},classes:{default:null},id:{default:null},isReadOnly:{type:Boolean,default:!1},placeholder:{required:!1},type:{default:"text"},step:{},value:{required:!0},prepend:{default:null},append:{default:null},focus:{type:Boolean},autocomplete:{default:null},autoselect:{type:Boolean},min:{type:Number,default:void 0},direction:{type:String}},mounted(){this.autoselect&&this.$refs.input.select(),this.focus&&this.$refs.input.focus()}};var _sfc_render$2y=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[$.prepend?$._t("prepend",function(){return[I("div",{staticClass:"input-group-prepend"},[$._v(" "+$._s($.__($.prepend))+" ")])]}):$._e(),I("input",{ref:"input",staticClass:"input-text",class:$.classes,attrs:{id:$.id,name:$.name,type:$.type,step:$.step,disabled:$.disabled,readonly:$.isReadOnly,placeholder:$.__($.placeholder),autocomplete:$.autocomplete,autofocus:$.focus,min:$.min,dir:$.direction},domProps:{value:$.value},on:{input:function(N){return $.$emit("input",N.target.value)},keydown:function(N){return $.$emit("keydown",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}),$.append?$._t("append",function(){return[I("div",{staticClass:"input-group-append"},[$._v(" "+$._s($.__($.append))+" ")])]}):$._e()],2),$.limit?I("div",{staticClass:"text-xs rtl:mr-2 ltr:ml-2",class:$.limitIndicatorColor},[I("span",{domProps:{textContent:$._s($.currentLength)}}),$._v("/"),I("span",{domProps:{textContent:$._s($.limit)}})]):$._e()])},_sfc_staticRenderFns$2y=[],__component__$2z=normalizeComponent$2(_sfc_main$2y,_sfc_render$2y,_sfc_staticRenderFns$2y,!1,null,null,null,null);const Text$1=__component__$2z.exports;var autosize$1={exports:{}};/*! Autosize 3.0.21 license: MIT http://www.jacklmoore.com/autosize */(function(M,$){(function(I,N){N($,M)})(commonjsGlobal,function(I,N){var B=typeof Map=="function"?new Map:function(){var G=[],J=[];return{has:function(ee){return G.indexOf(ee)>-1},get:function(ee){return J[G.indexOf(ee)]},set:function(ee,te){G.indexOf(ee)===-1&&(G.push(ee),J.push(te))},delete:function(ee){var te=G.indexOf(ee);te>-1&&(G.splice(te,1),J.splice(te,1))}}}(),j=function(J){return new Event(J,{bubbles:!0})};try{new Event("test")}catch{j=function(J){var Z=document.createEvent("Event");return Z.initEvent(J,!0,!1),Z}}function U(G){if(!G||!G.nodeName||G.nodeName!=="TEXTAREA"||B.has(G))return;var J=null,Z=G.clientWidth,ee=null;function te(){var _e=window.getComputedStyle(G,null);_e.resize==="vertical"?G.style.resize="none":_e.resize==="both"&&(G.style.resize="horizontal"),_e.boxSizing==="content-box"?J=-(parseFloat(_e.paddingTop)+parseFloat(_e.paddingBottom)):J=parseFloat(_e.borderTopWidth)+parseFloat(_e.borderBottomWidth),isNaN(J)&&(J=0),ce()}function se(_e){{var fe=G.style.width;G.style.width="0px",G.offsetWidth,G.style.width=fe}G.style.overflowY=_e}function re(_e){for(var fe=[];_e&&_e.parentNode&&_e.parentNode instanceof Element;)_e.parentNode.scrollTop&&fe.push({node:_e.parentNode,scrollTop:_e.parentNode.scrollTop}),_e=_e.parentNode;return fe}function ne(){var _e=G.style.height,fe=re(G),ge=document.documentElement&&document.documentElement.scrollTop;G.style.height="auto";var ye=G.scrollHeight+J;if(G.scrollHeight===0){G.style.height=_e;return}G.style.height=ye+"px",Z=G.clientWidth,fe.forEach(function(xe){xe.node.scrollTop=xe.scrollTop}),ge&&(document.documentElement.scrollTop=ge)}function ce(){ne();var _e=Math.round(parseFloat(G.style.height)),fe=window.getComputedStyle(G,null),ge=fe.boxSizing==="content-box"?Math.round(parseFloat(fe.height)):G.offsetHeight;if(ge!==_e?fe.overflowY==="hidden"&&(se("scroll"),ne(),ge=fe.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(G,null).height)):G.offsetHeight):fe.overflowY!=="hidden"&&(se("hidden"),ne(),ge=fe.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(G,null).height)):G.offsetHeight),ee!==ge){ee=ge;var ye=j("autosize:resized");try{G.dispatchEvent(ye)}catch{}}}var me=function(){G.clientWidth!==Z&&ce()},ue=(function(_e){window.removeEventListener("resize",me,!1),G.removeEventListener("input",ce,!1),G.removeEventListener("keyup",ce,!1),G.removeEventListener("autosize:destroy",ue,!1),G.removeEventListener("autosize:update",ce,!1),Object.keys(_e).forEach(function(fe){G.style[fe]=_e[fe]}),B.delete(G)}).bind(G,{height:G.style.height,resize:G.style.resize,overflowY:G.style.overflowY,overflowX:G.style.overflowX,wordWrap:G.style.wordWrap});G.addEventListener("autosize:destroy",ue,!1),"onpropertychange"in G&&"oninput"in G&&G.addEventListener("keyup",ce,!1),window.addEventListener("resize",me,!1),G.addEventListener("input",ce,!1),G.addEventListener("autosize:update",ce,!1),G.style.overflowX="hidden",G.style.wordWrap="break-word",B.set(G,{destroy:ue,update:ce}),te()}function q(G){var J=B.get(G);J&&J.destroy()}function Y(G){var J=B.get(G);J&&J.update()}var K=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(K=function(G){return G},K.destroy=function(G){return G},K.update=function(G){return G}):(K=function(G,J){return G&&Array.prototype.forEach.call(G.length?G:[G],function(Z){return U(Z)}),G},K.destroy=function(G){return G&&Array.prototype.forEach.call(G.length?G:[G],q),G},K.update=function(G){return G&&Array.prototype.forEach.call(G.length?G:[G],Y),G}),N.exports=K})})(autosize$1,autosize$1.exports);var autosizeExports=autosize$1.exports;const autosize=getDefaultExportFromCjs$1(autosizeExports),_sfc_main$2x={mixins:[LengthLimiter],props:{disabled:{default:!1},isReadOnly:{type:Boolean,default:!1},placeholder:{required:!1},value:{required:!0},id:{default:null},focus:{type:Boolean,default:!1}},mounted(){autosize(this.$refs.textarea),this.focus&&this.$refs.textarea.focus(),setTimeout(()=>{this.updateSize()},1),this.$events.$on("tab-switched",this.updateSize)},beforeDestroy(){autosize.destroy(this.$refs.textarea)},methods:{updateSize(){this.$nextTick(function(){autosize.update(this.$refs.textarea)})}}};var _sfc_render$2x=function M(){var $=this,I=$._self._c;return I("div",[I("textarea",{ref:"textarea",staticClass:"input-text",attrs:{id:$.id,disabled:$.disabled,readonly:$.isReadOnly,placeholder:$.placeholder,autofocus:$.focus},domProps:{value:$.value},on:{input:function(N){return $.$emit("input",N.target.value)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}),$._v(" "),$.limit?I("div",{staticClass:"rtl:text-left ltr:text-right text-xs -mb-3 @sm:-mb-5 @lg:-mb-5",class:$.limitIndicatorColor},[I("span",{domProps:{textContent:$._s($.currentLength)}}),$._v("/"),I("span",{domProps:{textContent:$._s($.limit)}})]):$._e()])},_sfc_staticRenderFns$2x=[],__component__$2y=normalizeComponent$2(_sfc_main$2x,_sfc_render$2x,_sfc_staticRenderFns$2x,!1,null,null,null,null);const Textarea=__component__$2y.exports,_sfc_main$2w={props:{value:{type:Boolean},readOnly:{type:Boolean,default:()=>!1}},computed:{stateLiteral(){return this.value?"true":"false"}},methods:{toggle(){this.readOnly||this.$emit("input",!this.value)}}};var _sfc_render$2w=function M(){var $=this,I=$._self._c;return I("button",{staticClass:"toggle-container",class:{on:$.value,"cursor-not-allowed read-only":$.readOnly},attrs:{type:"button","aria-pressed":$.stateLiteral,"aria-label":$.__("Toggle Button")},on:{click:$.toggle}},[I("div",{staticClass:"toggle-slider"},[I("div",{ref:"knob",staticClass:"toggle-knob",attrs:{tabindex:"0"},on:{keyup:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"space",32,N.key,[" ","Spacebar"])&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.toggle.apply(null,arguments))}}})])])},_sfc_staticRenderFns$2w=[],__component__$2x=normalizeComponent$2(_sfc_main$2w,_sfc_render$2w,_sfc_staticRenderFns$2w,!1,null,null,null,null);const Toggle=__component__$2x.exports,_sfc_main$2v={mixins:[InlinePublishForm],props:{item:Object},data(){return{creating:!1,method:"patch",action:"update",title:this.item.title,itemUrl:this.item.edit_url}},methods:{saved(M){this.$emit("updated",M.data.data)}}},_sfc_render$2v=null,_sfc_staticRenderFns$2v=null;var __component__$2w=normalizeComponent$2(_sfc_main$2v,_sfc_render$2v,_sfc_staticRenderFns$2v,!1,null,null,null,null);const InlineEditForm=__component__$2w.exports,_sfc_main$2u={components:{InlineEditForm},inject:{storeName:{default:null}},props:{item:Object,config:Object,statusIcon:Boolean,editable:Boolean,sortable:Boolean,readOnly:Boolean,formComponent:String,formComponentProps:Object,formStackSize:String},data(){return{isEditing:!1}},methods:{edit(){if(this.editable&&!this.item.invalid){if(this.item.reference&&Object.entries(this.$store.state.publish).find(([M,$])=>$.reference===this.item.reference)){this.$toast.error(__("You're already editing this item."));return}this.isEditing=!0}},itemUpdated(M){this.item.title=M.title,this.item.published=M.published,this.item.private=M.private,this.item.status=M.status,this.$events.$emit(`live-preview.${this.storeName}.refresh`)}}};var _sfc_render$2u=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"item select-none",class:{invalid:$.item.invalid}},[$.sortable?I("div",{staticClass:"item-move"},[$._v(" ")]):$._e(),I("div",{staticClass:"item-inner"},[$.statusIcon?I("div",{staticClass:"little-dot rtl:ml-2 ltr:mr-2 hidden @sm:block",class:$.item.status}):$._e(),$.item.invalid?I("div",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.__("An item with this ID could not be found"),expression:"__('An item with this ID could not be found')",modifiers:{top:!0}}],domProps:{textContent:$._s($.__($.item.title))}}):$._e(),!$.item.invalid&&$.editable?I("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.item.title,expression:"item.title"}],staticClass:"truncate",attrs:{href:$.item.edit_url},domProps:{textContent:$._s($.__($.item.title))},on:{click:function(N){return N.preventDefault(),$.edit.apply(null,arguments)}}}):$._e(),!$.item.invalid&&!$.editable?I("div",{domProps:{textContent:$._s($.__($.item.title))}}):$._e(),$.isEditing?I("inline-edit-form",{attrs:{item:$.item,component:$.formComponent,"component-props":$.formComponentProps,"stack-size":$.formStackSize},on:{updated:$.itemUpdated,closed:function(N){$.isEditing=!1}}}):$._e(),I("div",{staticClass:"flex items-center flex-1 justify-end"},[$.item.hint?I("div",{staticClass:"text-4xs text-gray-600 uppercase whitespace-nowrap rtl:ml-2 ltr:mr-2 hidden @sm:block",domProps:{textContent:$._s($.item.hint)}}):$._e(),$.readOnly?$._e():I("div",{staticClass:"flex items-center"},[I("dropdown-list",[$.editable?I("dropdown-item",{attrs:{text:$.__("Edit")},on:{click:$.edit}}):$._e(),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Unlink")},on:{click:function(N){return $.$emit("removed")}}})],1)],1)])],1)])},_sfc_staticRenderFns$2u=[],__component__$2v=normalizeComponent$2(_sfc_main$2u,_sfc_render$2u,_sfc_staticRenderFns$2u,!1,null,null,null,null);const RelatedItem=__component__$2v.exports;var regeneratorRuntime$1={exports:{}},_typeof$1={exports:{}};(function(M){function $(I){"@babel/helpers - typeof";return M.exports=$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},M.exports.__esModule=!0,M.exports.default=M.exports,$(I)}M.exports=$,M.exports.__esModule=!0,M.exports.default=M.exports})(_typeof$1);var _typeofExports=_typeof$1.exports;(function(M){var $=_typeofExports.default;function I(){M.exports=I=function(){return N},M.exports.__esModule=!0,M.exports.default=M.exports;var N={},B=Object.prototype,j=B.hasOwnProperty,U=Object.defineProperty||function(Se,Pe,Me){Se[Pe]=Me.value},q=typeof Symbol=="function"?Symbol:{},Y=q.iterator||"@@iterator",K=q.asyncIterator||"@@asyncIterator",G=q.toStringTag||"@@toStringTag";function J(Se,Pe,Me){return Object.defineProperty(Se,Pe,{value:Me,enumerable:!0,configurable:!0,writable:!0}),Se[Pe]}try{J({},"")}catch{J=function(Me,Be,ze){return Me[Be]=ze}}function Z(Se,Pe,Me,Be){var ze=Pe&&Pe.prototype instanceof se?Pe:se,Ze=Object.create(ze.prototype),ft=new ve(Be||[]);return U(Ze,"_invoke",{value:ye(Se,Me,ft)}),Ze}function ee(Se,Pe,Me){try{return{type:"normal",arg:Se.call(Pe,Me)}}catch(Be){return{type:"throw",arg:Be}}}N.wrap=Z;var te={};function se(){}function re(){}function ne(){}var ce={};J(ce,Y,function(){return this});var me=Object.getPrototypeOf,ue=me&&me(me(we([])));ue&&ue!==B&&j.call(ue,Y)&&(ce=ue);var _e=ne.prototype=se.prototype=Object.create(ce);function fe(Se){["next","throw","return"].forEach(function(Pe){J(Se,Pe,function(Me){return this._invoke(Pe,Me)})})}function ge(Se,Pe){function Me(ze,Ze,ft,Ye){var Ve=ee(Se[ze],Se,Ze);if(Ve.type!=="throw"){var Dt=Ve.arg,Nt=Dt.value;return Nt&&$(Nt)=="object"&&j.call(Nt,"__await")?Pe.resolve(Nt.__await).then(function(Vt){Me("next",Vt,ft,Ye)},function(Vt){Me("throw",Vt,ft,Ye)}):Pe.resolve(Nt).then(function(Vt){Dt.value=Vt,ft(Dt)},function(Vt){return Me("throw",Vt,ft,Ye)})}Ye(Ve.arg)}var Be;U(this,"_invoke",{value:function(Ze,ft){function Ye(){return new Pe(function(Ve,Dt){Me(Ze,ft,Ve,Dt)})}return Be=Be?Be.then(Ye,Ye):Ye()}})}function ye(Se,Pe,Me){var Be="suspendedStart";return function(ze,Ze){if(Be==="executing")throw new Error("Generator is already running");if(Be==="completed"){if(ze==="throw")throw Ze;return Ae()}for(Me.method=ze,Me.arg=Ze;;){var ft=Me.delegate;if(ft){var Ye=xe(ft,Me);if(Ye){if(Ye===te)continue;return Ye}}if(Me.method==="next")Me.sent=Me._sent=Me.arg;else if(Me.method==="throw"){if(Be==="suspendedStart")throw Be="completed",Me.arg;Me.dispatchException(Me.arg)}else Me.method==="return"&&Me.abrupt("return",Me.arg);Be="executing";var Ve=ee(Se,Pe,Me);if(Ve.type==="normal"){if(Be=Me.done?"completed":"suspendedYield",Ve.arg===te)continue;return{value:Ve.arg,done:Me.done}}Ve.type==="throw"&&(Be="completed",Me.method="throw",Me.arg=Ve.arg)}}}function xe(Se,Pe){var Me=Pe.method,Be=Se.iterator[Me];if(Be===void 0)return Pe.delegate=null,Me==="throw"&&Se.iterator.return&&(Pe.method="return",Pe.arg=void 0,xe(Se,Pe),Pe.method==="throw")||Me!=="return"&&(Pe.method="throw",Pe.arg=new TypeError("The iterator does not provide a '"+Me+"' method")),te;var ze=ee(Be,Se.iterator,Pe.arg);if(ze.type==="throw")return Pe.method="throw",Pe.arg=ze.arg,Pe.delegate=null,te;var Ze=ze.arg;return Ze?Ze.done?(Pe[Se.resultName]=Ze.value,Pe.next=Se.nextLoc,Pe.method!=="return"&&(Pe.method="next",Pe.arg=void 0),Pe.delegate=null,te):Ze:(Pe.method="throw",Pe.arg=new TypeError("iterator result is not an object"),Pe.delegate=null,te)}function le(Se){var Pe={tryLoc:Se[0]};1 in Se&&(Pe.catchLoc=Se[1]),2 in Se&&(Pe.finallyLoc=Se[2],Pe.afterLoc=Se[3]),this.tryEntries.push(Pe)}function be(Se){var Pe=Se.completion||{};Pe.type="normal",delete Pe.arg,Se.completion=Pe}function ve(Se){this.tryEntries=[{tryLoc:"root"}],Se.forEach(le,this),this.reset(!0)}function we(Se){if(Se){var Pe=Se[Y];if(Pe)return Pe.call(Se);if(typeof Se.next=="function")return Se;if(!isNaN(Se.length)){var Me=-1,Be=function ze(){for(;++Me<Se.length;)if(j.call(Se,Me))return ze.value=Se[Me],ze.done=!1,ze;return ze.value=void 0,ze.done=!0,ze};return Be.next=Be}}return{next:Ae}}function Ae(){return{value:void 0,done:!0}}return re.prototype=ne,U(_e,"constructor",{value:ne,configurable:!0}),U(ne,"constructor",{value:re,configurable:!0}),re.displayName=J(ne,G,"GeneratorFunction"),N.isGeneratorFunction=function(Se){var Pe=typeof Se=="function"&&Se.constructor;return!!Pe&&(Pe===re||(Pe.displayName||Pe.name)==="GeneratorFunction")},N.mark=function(Se){return Object.setPrototypeOf?Object.setPrototypeOf(Se,ne):(Se.__proto__=ne,J(Se,G,"GeneratorFunction")),Se.prototype=Object.create(_e),Se},N.awrap=function(Se){return{__await:Se}},fe(ge.prototype),J(ge.prototype,K,function(){return this}),N.AsyncIterator=ge,N.async=function(Se,Pe,Me,Be,ze){ze===void 0&&(ze=Promise);var Ze=new ge(Z(Se,Pe,Me,Be),ze);return N.isGeneratorFunction(Pe)?Ze:Ze.next().then(function(ft){return ft.done?ft.value:Ze.next()})},fe(_e),J(_e,G,"Generator"),J(_e,Y,function(){return this}),J(_e,"toString",function(){return"[object Generator]"}),N.keys=function(Se){var Pe=Object(Se),Me=[];for(var Be in Pe)Me.push(Be);return Me.reverse(),function ze(){for(;Me.length;){var Ze=Me.pop();if(Ze in Pe)return ze.value=Ze,ze.done=!1,ze}return ze.done=!0,ze}},N.values=we,ve.prototype={constructor:ve,reset:function(Pe){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(be),!Pe)for(var Me in this)Me.charAt(0)==="t"&&j.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=void 0)},stop:function(){this.done=!0;var Pe=this.tryEntries[0].completion;if(Pe.type==="throw")throw Pe.arg;return this.rval},dispatchException:function(Pe){if(this.done)throw Pe;var Me=this;function Be(Dt,Nt){return ft.type="throw",ft.arg=Pe,Me.next=Dt,Nt&&(Me.method="next",Me.arg=void 0),!!Nt}for(var ze=this.tryEntries.length-1;ze>=0;--ze){var Ze=this.tryEntries[ze],ft=Ze.completion;if(Ze.tryLoc==="root")return Be("end");if(Ze.tryLoc<=this.prev){var Ye=j.call(Ze,"catchLoc"),Ve=j.call(Ze,"finallyLoc");if(Ye&&Ve){if(this.prev<Ze.catchLoc)return Be(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Be(Ze.finallyLoc)}else if(Ye){if(this.prev<Ze.catchLoc)return Be(Ze.catchLoc,!0)}else{if(!Ve)throw new Error("try statement without catch or finally");if(this.prev<Ze.finallyLoc)return Be(Ze.finallyLoc)}}}},abrupt:function(Pe,Me){for(var Be=this.tryEntries.length-1;Be>=0;--Be){var ze=this.tryEntries[Be];if(ze.tryLoc<=this.prev&&j.call(ze,"finallyLoc")&&this.prev<ze.finallyLoc){var Ze=ze;break}}Ze&&(Pe==="break"||Pe==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var ft=Ze?Ze.completion:{};return ft.type=Pe,ft.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,te):this.complete(ft)},complete:function(Pe,Me){if(Pe.type==="throw")throw Pe.arg;return Pe.type==="break"||Pe.type==="continue"?this.next=Pe.arg:Pe.type==="return"?(this.rval=this.arg=Pe.arg,this.method="return",this.next="end"):Pe.type==="normal"&&Me&&(this.next=Me),te},finish:function(Pe){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Be=this.tryEntries[Me];if(Be.finallyLoc===Pe)return this.complete(Be.completion,Be.afterLoc),be(Be),te}},catch:function(Pe){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Be=this.tryEntries[Me];if(Be.tryLoc===Pe){var ze=Be.completion;if(ze.type==="throw"){var Ze=ze.arg;be(Be)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Pe,Me,Be){return this.delegate={iterator:we(Pe),resultName:Me,nextLoc:Be},this.method==="next"&&(this.arg=void 0),te}},N}M.exports=I,M.exports.__esModule=!0,M.exports.default=M.exports})(regeneratorRuntime$1);var regeneratorRuntimeExports=regeneratorRuntime$1.exports,runtime=regeneratorRuntimeExports();try{regeneratorRuntime=runtime}catch(M){typeof globalThis=="object"?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}/*! * helper-js v1.4.38 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Homepage: undefined * Released under the MIT License. */function isArray$5(M){return Object.prototype.toString.call(M)==="[object Array]"}function arrayRemove(M,$){for(var I,N=0;(I=M.indexOf($))>-1;)M.splice(I,1),N++;return N}/*! * tree-helper v1.4.14 * (c) phphe <phphe@outlook.com> (https://github.com/phphe) * Released under the MIT License. */function _typeof(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function($){return typeof $}:_typeof=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof(M)}function _toConsumableArray(M){return _arrayWithoutHoles(M)||_iterableToArray(M)||_nonIterableSpread()}function _arrayWithoutHoles(M){if(Array.isArray(M)){for(var $=0,I=new Array(M.length);$<M.length;$++)I[$]=M[$];return I}}function _iterableToArray(M){if(Symbol.iterator in Object(M)||Object.prototype.toString.call(M)==="[object Arguments]")return Array.from(M)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function breadthFirstSearch(M,$){var I=arguments.length>3?arguments[3]:void 0,N=isArray$5(M)?M:[M],B=N.map(function(q,Y){return{item:q,index:Y}});I&&B.reverse();for(var j=function(){var Y=B.shift(),K=Y.item,G=Y.index,J=Y.parent,Z=$(K,G,J);if(Z===!1)return{v:void 0};if(Z==="skip children")return"continue";if(Z==="skip siblings"&&(B=B.filter(function(re){return re.parent!==J})),K.children){var ee,te=K.children;I&&(te=te.slice(),te.reverse());var se=te.map(function(re,ne){return{item:re,index:ne,parent:K}});(ee=B).push.apply(ee,_toConsumableArray(se))}};B.length;){var U=j();switch(U){case"continue":continue;default:if(_typeof(U)==="object")return U.v}}}function _changeParent(M,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";M[N]&&arrayRemove(M[N][I],M),M[N]=$}function insertBefore(M,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";if(M!==$){var B=$[N][I],j=B.indexOf($);B[j-1]!==M&&(M[N]===$[N]?(arrayRemove(B,M),j=B.indexOf($)):_changeParent(M,$[N]),B.splice(j,0,M))}}var vueDraggableNestedTree={exports:{}};/*! * vue-draggable-nested-tree v2.3.0-beta.1 * (c) 2018-present phphe <phphe@outlook.com> * Released under the MIT License. */(function(M,$){(function(I,N){N($)})(commonjsGlobal,function(I){var N=function(De){if(De==null)throw TypeError("Can't call method on "+De);return De},B=function(De){return Object(N(De))},j={}.hasOwnProperty,U=function(De,Le){return j.call(De,Le)},q={}.toString,Y=function(De){return q.call(De).slice(8,-1)},K=Object("z").propertyIsEnumerable(0)?Object:function(De){return Y(De)=="String"?De.split(""):Object(De)},G=function(De){return K(N(De))},J=Math.ceil,Z=Math.floor,ee=function(De){return isNaN(De=+De)?0:(De>0?Z:J)(De)},te=Math.min,se=function(De){return De>0?te(ee(De),9007199254740991):0},re=Math.max,ne=Math.min,ce=function(De,Le){return De=ee(De),De<0?re(De+Le,0):ne(De,Le)},me=function(De){return function(Le,at,yt){var Ut=G(Le),$t=se(Ut.length),an=ce(yt,$t),Cn;if(De&&at!=at){for(;$t>an;)if(Cn=Ut[an++],Cn!=Cn)return!0}else for(;$t>an;an++)if((De||an in Ut)&&Ut[an]===at)return De||an||0;return!De&&-1}};function ue(De,Le){return Le={exports:{}},De(Le,Le.exports),Le.exports}var _e=ue(function(De){var Le=De.exports={version:"2.6.1"};typeof __e=="number"&&(__e=Le)});_e.version;var fe=ue(function(De){var Le=De.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Le)}),ge=ue(function(De){var Le="__core-js_shared__",at=fe[Le]||(fe[Le]={});(De.exports=function(yt,Ut){return at[yt]||(at[yt]=Ut!==void 0?Ut:{})})("versions",[]).push({version:_e.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),ye=0,xe=Math.random(),le=function(De){return"Symbol(".concat(De===void 0?"":De,")_",(++ye+xe).toString(36))},be=ge("keys"),ve=function(De){return be[De]||(be[De]=le(De))},we=me(!1),Ae=ve("IE_PROTO"),Se=function(De,Le){var at=G(De),yt=0,Ut=[],$t;for($t in at)$t!=Ae&&U(at,$t)&&Ut.push($t);for(;Le.length>yt;)U(at,$t=Le[yt++])&&(~we(Ut,$t)||Ut.push($t));return Ut},Pe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Me=Object.keys||function(Le){return Se(Le,Pe)},Be=function(De){if(typeof De!="function")throw TypeError(De+" is not a function!");return De},ze=function(De,Le,at){if(Be(De),Le===void 0)return De;switch(at){case 1:return function(yt){return De.call(Le,yt)};case 2:return function(yt,Ut){return De.call(Le,yt,Ut)};case 3:return function(yt,Ut,$t){return De.call(Le,yt,Ut,$t)}}return function(){return De.apply(Le,arguments)}},Ze=function(De){return typeof De=="object"?De!==null:typeof De=="function"},ft=function(De){if(!Ze(De))throw TypeError(De+" is not an object!");return De},Ye=function(De){try{return!!De()}catch{return!0}},Ve=!Ye(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Dt=fe.document,Nt=Ze(Dt)&&Ze(Dt.createElement),Vt=function(De){return Nt?Dt.createElement(De):{}},Wt=!Ve&&!Ye(function(){return Object.defineProperty(Vt("div"),"a",{get:function(){return 7}}).a!=7}),Gt=function(De,Le){if(!Ze(De))return De;var at,yt;if(Le&&typeof(at=De.toString)=="function"&&!Ze(yt=at.call(De))||typeof(at=De.valueOf)=="function"&&!Ze(yt=at.call(De))||!Le&&typeof(at=De.toString)=="function"&&!Ze(yt=at.call(De)))return yt;throw TypeError("Can't convert object to primitive value")},tn=Object.defineProperty,Qt=Ve?Object.defineProperty:function(Le,at,yt){if(ft(Le),at=Gt(at,!0),ft(yt),Wt)try{return tn(Le,at,yt)}catch{}if("get"in yt||"set"in yt)throw TypeError("Accessors not supported!");return"value"in yt&&(Le[at]=yt.value),Le},En={f:Qt},kn=function(De,Le){return{enumerable:!(De&1),configurable:!(De&2),writable:!(De&4),value:Le}},Gn=Ve?function(De,Le,at){return En.f(De,Le,kn(1,at))}:function(De,Le,at){return De[Le]=at,De},An="prototype",jn=function(De,Le,at){var yt=De&jn.F,Ut=De&jn.G,$t=De&jn.S,an=De&jn.P,Cn=De&jn.B,On=De&jn.W,Zn=Ut?_e:_e[Le]||(_e[Le]={}),pr=Zn[An],Vn=Ut?fe:$t?fe[Le]:(fe[Le]||{})[An],Kn,lr,Tr;Ut&&(at=Le);for(Kn in at)lr=!yt&&Vn&&Vn[Kn]!==void 0,!(lr&&U(Zn,Kn))&&(Tr=lr?Vn[Kn]:at[Kn],Zn[Kn]=Ut&&typeof Vn[Kn]!="function"?at[Kn]:Cn&&lr?ze(Tr,fe):On&&Vn[Kn]==Tr?function(Lr){var Ar=function(jr,Kr,ci){if(this instanceof Lr){switch(arguments.length){case 0:return new Lr;case 1:return new Lr(jr);case 2:return new Lr(jr,Kr)}return new Lr(jr,Kr,ci)}return Lr.apply(this,arguments)};return Ar[An]=Lr[An],Ar}(Tr):an&&typeof Tr=="function"?ze(Function.call,Tr):Tr,an&&((Zn.virtual||(Zn.virtual={}))[Kn]=Tr,De&jn.R&&pr&&!pr[Kn]&&Gn(pr,Kn,Tr)))};jn.F=1,jn.G=2,jn.S=4,jn.P=8,jn.B=16,jn.W=32,jn.U=64,jn.R=128;var Mn=jn,Ln=function(De,Le){var at=(_e.Object||{})[De]||Object[De],yt={};yt[De]=Le(at),Mn(Mn.S+Mn.F*Ye(function(){at(1)}),"Object",yt)};Ln("keys",function(){return function(Le){return Me(B(Le))}});var Et=_e.Object.keys,We=Et,xt=ue(function(De){var Le=De.exports={version:"2.6.1"};typeof __e=="number"&&(__e=Le)});xt.version;var Ue=ue(function(De){var Le=De.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Le)}),Oe=ue(function(De){var Le="__core-js_shared__",at=Ue[Le]||(Ue[Le]={});(De.exports=function(yt,Ut){return at[yt]||(at[yt]=Ut!==void 0?Ut:{})})("versions",[]).push({version:xt.version,mode:"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),ke=0,$e=Math.random(),Ge=function(De){return"Symbol(".concat(De===void 0?"":De,")_",(++ke+$e).toString(36))},rt=ue(function(De){var Le=Oe("wks"),at=Ue.Symbol,yt=typeof at=="function",Ut=De.exports=function($t){return Le[$t]||(Le[$t]=yt&&at[$t]||(yt?at:Ge)("Symbol."+$t))};Ut.store=Le}),ut=function(De){return typeof De=="object"?De!==null:typeof De=="function"},ct=function(De){if(!ut(De))throw TypeError(De+" is not an object!");return De},it=function(De){try{return!!De()}catch{return!0}},ot=!it(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Ot=Ue.document,dn=ut(Ot)&&ut(Ot.createElement),Fn=function(De){return dn?Ot.createElement(De):{}},Zt=!ot&&!it(function(){return Object.defineProperty(Fn("div"),"a",{get:function(){return 7}}).a!=7}),vn=function(De,Le){if(!ut(De))return De;var at,yt;if(Le&&typeof(at=De.toString)=="function"&&!ut(yt=at.call(De))||typeof(at=De.valueOf)=="function"&&!ut(yt=at.call(De))||!Le&&typeof(at=De.toString)=="function"&&!ut(yt=at.call(De)))return yt;throw TypeError("Can't convert object to primitive value")},lt=Object.defineProperty,pt=ot?Object.defineProperty:function(Le,at,yt){if(ct(Le),at=vn(at,!0),ct(yt),Zt)try{return lt(Le,at,yt)}catch{}if("get"in yt||"set"in yt)throw TypeError("Accessors not supported!");return"value"in yt&&(Le[at]=yt.value),Le},Pt={f:pt},qt=function(De,Le){return{enumerable:!(De&1),configurable:!(De&2),writable:!(De&4),value:Le}},Ht=ot?function(De,Le,at){return Pt.f(De,Le,qt(1,at))}:function(De,Le,at){return De[Le]=at,De},mn=rt("unscopables"),Yn=Array.prototype;Yn[mn]==null&&Ht(Yn,mn,{});var Ct=function(De){Yn[mn][De]=!0},ht=function(De,Le){return{value:Le,done:!!De}},Tt={},Lt={}.toString,fn=function(De){return Lt.call(De).slice(8,-1)},hn=Object("z").propertyIsEnumerable(0)?Object:function(De){return fn(De)=="String"?De.split(""):Object(De)},wn=function(De){if(De==null)throw TypeError("Can't call method on "+De);return De},cr=function(De){return hn(wn(De))},zn={}.hasOwnProperty,ir=function(De,Le){return zn.call(De,Le)},Ir=ue(function(De){var Le=Ge("src"),at="toString",yt=Function[at],Ut=(""+yt).split(at);xt.inspectSource=function($t){return yt.call($t)},(De.exports=function($t,an,Cn,On){var Zn=typeof Cn=="function";Zn&&(ir(Cn,"name")||Ht(Cn,"name",an)),$t[an]!==Cn&&(Zn&&(ir(Cn,Le)||Ht(Cn,Le,$t[an]?""+$t[an]:Ut.join(String(an)))),$t===Ue?$t[an]=Cn:On?$t[an]?$t[an]=Cn:Ht($t,an,Cn):(delete $t[an],Ht($t,an,Cn)))})(Function.prototype,at,function(){return typeof this=="function"&&this[Le]||yt.call(this)})}),Er=function(De){if(typeof De!="function")throw TypeError(De+" is not a function!");return De},Dr=function(De,Le,at){if(Er(De),Le===void 0)return De;switch(at){case 1:return function(yt){return De.call(Le,yt)};case 2:return function(yt,Ut){return De.call(Le,yt,Ut)};case 3:return function(yt,Ut,$t){return De.call(Le,yt,Ut,$t)}}return function(){return De.apply(Le,arguments)}},Ur="prototype",Ke=function(De,Le,at){var yt=De&Ke.F,Ut=De&Ke.G,$t=De&Ke.S,an=De&Ke.P,Cn=De&Ke.B,On=Ut?Ue:$t?Ue[Le]||(Ue[Le]={}):(Ue[Le]||{})[Ur],Zn=Ut?xt:xt[Le]||(xt[Le]={}),pr=Zn[Ur]||(Zn[Ur]={}),Vn,Kn,lr,Tr;Ut&&(at=Le);for(Vn in at)Kn=!yt&&On&&On[Vn]!==void 0,lr=(Kn?On:at)[Vn],Tr=Cn&&Kn?Dr(lr,Ue):an&&typeof lr=="function"?Dr(Function.call,lr):lr,On&&Ir(On,Vn,lr,De&Ke.U),Zn[Vn]!=lr&&Ht(Zn,Vn,Tr),an&&pr[Vn]!=lr&&(pr[Vn]=lr)};Ue.core=xt,Ke.F=1,Ke.G=2,Ke.S=4,Ke.P=8,Ke.B=16,Ke.W=32,Ke.U=64,Ke.R=128;var mt=Ke,dt=Math.ceil,Ne=Math.floor,_t=function(De){return isNaN(De=+De)?0:(De>0?Ne:dt)(De)},Xt=Math.min,sn=function(De){return De>0?Xt(_t(De),9007199254740991):0},Tn=Math.max,In=Math.min,Qn=function(De,Le){return De=_t(De),De<0?Tn(De+Le,0):In(De,Le)},Xn=function(De){return function(Le,at,yt){var Ut=cr(Le),$t=sn(Ut.length),an=Qn(yt,$t),Cn;if(De&&at!=at){for(;$t>an;)if(Cn=Ut[an++],Cn!=Cn)return!0}else for(;$t>an;an++)if((De||an in Ut)&&Ut[an]===at)return De||an||0;return!De&&-1}},Rr=Oe("keys"),tr=function(De){return Rr[De]||(Rr[De]=Ge(De))},fr=Xn(!1),kr=tr("IE_PROTO"),sr=function(De,Le){var at=cr(De),yt=0,Ut=[],$t;for($t in at)$t!=kr&&ir(at,$t)&&Ut.push($t);for(;Le.length>yt;)ir(at,$t=Le[yt++])&&(~fr(Ut,$t)||Ut.push($t));return Ut},Pn="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),mr=Object.keys||function(Le){return sr(Le,Pn)},br=ot?Object.defineProperties:function(Le,at){ct(Le);for(var yt=mr(at),Ut=yt.length,$t=0,an;Ut>$t;)Pt.f(Le,an=yt[$t++],at[an]);return Le},hr=Ue.document,Bn=hr&&hr.documentElement,er=tr("IE_PROTO"),Qe=function(){},bt="prototype",wt=function(){var De=Fn("iframe"),Le=Pn.length,at="<",yt=">",Ut;for(De.style.display="none",Bn.appendChild(De),De.src="javascript:",Ut=De.contentWindow.document,Ut.open(),Ut.write(at+"script"+yt+"document.F=Object"+at+"/script"+yt),Ut.close(),wt=Ut.F;Le--;)delete wt[bt][Pn[Le]];return wt()},Bt=Object.create||function(Le,at){var yt;return Le!==null?(Qe[bt]=ct(Le),yt=new Qe,Qe[bt]=null,yt[er]=Le):yt=wt(),at===void 0?yt:br(yt,at)},Yt=Pt.f,Mt=rt("toStringTag"),en=function(De,Le,at){De&&!ir(De=at?De:De.prototype,Mt)&&Yt(De,Mt,{configurable:!0,value:Le})},pn={};Ht(pn,rt("iterator"),function(){return this});var Sn=function(De,Le,at){De.prototype=Bt(pn,{next:qt(1,at)}),en(De,Le+" Iterator")},cn=function(De){return Object(wn(De))},ur=tr("IE_PROTO"),or=Object.prototype,nt=Object.getPrototypeOf||function(De){return De=cn(De),ir(De,ur)?De[ur]:typeof De.constructor=="function"&&De instanceof De.constructor?De.constructor.prototype:De instanceof Object?or:null},gt=rt("iterator"),et=!([].keys&&"next"in[].keys()),nn="@@iterator",xn="keys",Un="values",Jn=function(){return this},_r=function(De,Le,at,yt,Ut,$t,an){Sn(at,Le,yt);var Cn=function(ci){if(!et&&ci in Vn)return Vn[ci];switch(ci){case xn:return function(){return new at(this,ci)};case Un:return function(){return new at(this,ci)}}return function(){return new at(this,ci)}},On=Le+" Iterator",Zn=Ut==Un,pr=!1,Vn=De.prototype,Kn=Vn[gt]||Vn[nn]||Ut&&Vn[Ut],lr=Kn||Cn(Ut),Tr=Ut?Zn?Cn("entries"):lr:void 0,Lr=Le=="Array"&&Vn.entries||Kn,Ar,jr,Kr;if(Lr&&(Kr=nt(Lr.call(new De)),Kr!==Object.prototype&&Kr.next&&(en(Kr,On,!0),typeof Kr[gt]!="function"&&Ht(Kr,gt,Jn))),Zn&&Kn&&Kn.name!==Un&&(pr=!0,lr=function(){return Kn.call(this)}),(et||pr||!Vn[gt])&&Ht(Vn,gt,lr),Tt[Le]=lr,Tt[On]=Jn,Ut)if(Ar={values:Zn?lr:Cn(Un),keys:$t?lr:Cn(xn),entries:Tr},an)for(jr in Ar)jr in Vn||Ir(Vn,jr,Ar[jr]);else mt(mt.P+mt.F*(et||pr),Le,Ar);return Ar},xr=_r(Array,"Array",function(De,Le){this._t=cr(De),this._i=0,this._k=Le},function(){var De=this._t,Le=this._k,at=this._i++;return!De||at>=De.length?(this._t=void 0,ht(1)):Le=="keys"?ht(0,at):Le=="values"?ht(0,De[at]):ht(0,[at,De[at]])},"values");Tt.Arguments=Tt.Array,Ct("keys"),Ct("values"),Ct("entries");for(var Nr=rt("iterator"),Mr=rt("toStringTag"),Qr=Tt.Array,ni={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Jr=mr(ni),ri=0;ri<Jr.length;ri++){var Yr=Jr[ri],ti=ni[Yr],gi=Ue[Yr],Di=gi&&gi.prototype,Zi;if(Di&&(Di[Nr]||Ht(Di,Nr,Qr),Di[Mr]||Ht(Di,Mr,Yr),Tt[Yr]=Qr,ti))for(Zi in xr)Di[Zi]||Ir(Di,Zi,xr[Zi],!0)}var Io=Object.getOwnPropertySymbols,No={f:Io},Lo={}.propertyIsEnumerable,Fo={f:Lo},Qi=Object.assign,Js=!Qi||Ye(function(){var De={},Le={},at=Symbol(),yt="abcdefghijklmnopqrst";return De[at]=7,yt.split("").forEach(function(Ut){Le[Ut]=Ut}),Qi({},De)[at]!=7||Object.keys(Qi({},Le)).join("")!=yt})?function(Le,at){for(var yt=B(Le),Ut=arguments.length,$t=1,an=No.f,Cn=Fo.f;Ut>$t;)for(var On=K(arguments[$t++]),Zn=an?Me(On).concat(an(On)):Me(On),pr=Zn.length,Vn=0,Kn;pr>Vn;)Cn.call(On,Kn=Zn[Vn++])&&(yt[Kn]=On[Kn]);return yt}:Qi;Mn(Mn.S+Mn.F,"Object",{assign:Js});var po=_e.Object.assign,Zs=po,zs={}.propertyIsEnumerable,As={f:zs},gs=Object.getOwnPropertyDescriptor,Cs=ot?gs:function(Le,at){if(Le=cr(Le),at=vn(at,!0),Zt)try{return gs(Le,at)}catch{}if(ir(Le,at))return qt(!As.f.call(Le,at),Le[at])},Rs={f:Cs},Qs=function(De,Le){if(ct(De),!ut(Le)&&Le!==null)throw TypeError(Le+": can't set as prototype!")},pe={set:Object.setPrototypeOf||("__proto__"in{}?function(De,Le,at){try{at=Dr(Function.call,Rs.f(Object.prototype,"__proto__").set,2),at(De,[]),Le=!(De instanceof Array)}catch{Le=!0}return function(Ut,$t){return Qs(Ut,$t),Le?Ut.__proto__=$t:at(Ut,$t),Ut}}({},!1):void 0),check:Qs},Te=pe.set,Re=function(De,Le,at){var yt=Le.constructor,Ut;return yt!==at&&typeof yt=="function"&&(Ut=yt.prototype)!==at.prototype&&ut(Ut)&&Te&&Te(De,Ut),De},je=Pn.concat("length","prototype"),qe=Object.getOwnPropertyNames||function(Le){return sr(Le,je)},Je={f:qe},vt=` \v\f\r \u2028\u2029\uFEFF`,Rt="["+vt+"]",St=" ",zt=RegExp("^"+Rt+Rt+"*"),jt=RegExp(Rt+Rt+"*$"),yn=function(De,Le,at){var yt={},Ut=it(function(){return!!vt[De]()||St[De]()!=St}),$t=yt[De]=Ut?Le(Dn):vt[De];at&&(yt[at]=$t),mt(mt.P+mt.F*Ut,"String",yt)},Dn=yn.trim=function(De,Le){return De=String(wn(De)),Le&1&&(De=De.replace(zt,"")),Le&2&&(De=De.replace(jt,"")),De},_n=yn,gn=Je.f,ar=Rs.f,Hn=Pt.f,Cr=_n.trim,Pr="Number",vr=Ue[Pr],Hr=vr,di=vr.prototype,ai=fn(Bt(di))==Pr,wi="trim"in String.prototype,Gr=function(De){var Le=vn(De,!1);if(typeof Le=="string"&&Le.length>2){Le=wi?Le.trim():Cr(Le,3);var at=Le.charCodeAt(0),yt,Ut,$t;if(at===43||at===45){if(yt=Le.charCodeAt(2),yt===88||yt===120)return NaN}else if(at===48){switch(Le.charCodeAt(1)){case 66:case 98:Ut=2,$t=49;break;case 79:case 111:Ut=8,$t=55;break;default:return+Le}for(var an=Le.slice(2),Cn=0,On=an.length,Zn;Cn<On;Cn++)if(Zn=an.charCodeAt(Cn),Zn<48||Zn>$t)return NaN;return parseInt(an,Ut)}}return+Le};if(!vr(" 0o1")||!vr("0b1")||vr("+0x1")){vr=function(Le){var at=arguments.length<1?0:Le,yt=this;return yt instanceof vr&&(ai?it(function(){di.valueOf.call(yt)}):fn(yt)!=Pr)?Re(new Hr(Gr(at)),yt,vr):Gr(at)};for(var Br=ot?gn(Hr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),pi=0,hi;Br.length>pi;pi++)ir(Hr,hi=Br[pi])&&!ir(vr,hi)&&Hn(vr,hi,ar(Hr,hi));vr.prototype=di,di.constructor=vr,Ir(Ue,Pr,vr)}function li(De){return Object.prototype.toString.call(De)==="[object Array]"}function _s(De,Le){return arguments.length===1&&(Le=De,De=0),Math.floor(Math.random()*(Le-De+1)+De)}function Ds(){for(var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",at="",yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Ut=0;Ut<De;Ut++)at+=yt[_s(yt.length-1)];return Le+at}function es(De,Le){for(var at,yt=0;(at=De.indexOf(Le))>-1;)De.splice(at,1),yt++;return yt}function Vs(){if(typeof pageYOffset<"u")return{top:pageYOffset,left:pageXOffset};var De=document.body,Le=document.documentElement;return Le=Le.clientHeight?Le:De,{top:Le.scrollTop,left:Le.scrollLeft}}function mi(De){var Le=De.getBoundingClientRect(),at=Vs();return{x:Le.left+at.left,y:Le.top+at.top}}function Pa(De){var Le=De.offsetParent;return(!Le||Le===document.body&&getComputedStyle(document.body).position==="static")&&(Le=document.body.parentElement),Le}function oa(De){for(var Le=Pa(De),at={x:De.offsetLeft,y:De.offsetTop},yt=De;yt=yt.parentElement,!(yt===Le||!yt);)at.x-=yt.scrollLeft,at.y-=yt.scrollTop;return at}function Us(De,Le){var at="original_".concat(Le);De[at]=De.getAttribute(Le)}function aa(De,Le){var at="original_".concat(Le);De.setAttribute(Le,De[at])}function eo(De,Le){return De.classList?De.classList.contains(Le):new RegExp("(^| )"+Le+"( |$)","gi").test(De.className)}function Aa(De,Le){eo(De,Le)||(De.classList?De.classList.add(Le):De.className+=" "+Le)}function Bo(De){var Le=De.style.display;De.style.display="block";var at={width:De.offsetWidth,height:De.offsetHeight};return De.style.display=Le,at}function ho(De,Le,at){for(var yt=arguments.length,Ut=new Array(yt>3?yt-3:0),$t=3;$t<yt;$t++)Ut[$t-3]=arguments[$t];De.addEventListener?De.addEventListener.apply(De,[Le,at].concat(Ut)):De.attachEvent&&De.attachEvent.apply(De,["on".concat(Le),at].concat(Ut))}function zo(De,Le,at){for(var yt=arguments.length,Ut=new Array(yt>3?yt-3:0),$t=3;$t<yt;$t++)Ut[$t-3]=arguments[$t];De.removeEventListener?De.removeEventListener.apply(De,[Le,at].concat(Ut)):De.detachEvent&&De.detachEvent.apply(De,["on".concat(Le),at].concat(Ut))}function Ra(De,Le,at,yt,Ut){var $t=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1e3,an,Cn;at==null&&(at=0,yt=De.length-1);for(var On=0,Zn;at>=0&&at<=yt;){if(On>=$t)throw Error("binarySearch: loop times is over ".concat($t,", you can increase the limit."));if(an=Math.floor((yt-at)/2+at),Cn=De[an],Zn=Le(Cn,On),Zn>0)yt=an-1;else if(Zn<0)at=an+1;else return{index:an,value:Cn,count:On+1,hit:!0};On++}return Ut?{index:an,value:Cn,count:On+1,hit:!1,bigger:Zn>0}:null}/*! * tree-helper v1.0.5 * phphe <phphe@outlook.com> (https://github.com/phphe) * https://github.com/phphe/tree-helper.git * Released under the MIT License. */var la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De};function ca(De){if(Array.isArray(De)){for(var Le=0,at=Array(De.length);Le<De.length;Le++)at[Le]=De[Le];return at}else return Array.from(De)}function mo(De,Le){var at=arguments[3],yt=li(De)?De:[De],Ut=yt.map(function(Cn,On){return{item:Cn,index:On}});at&&Ut.reverse();for(var $t=function(){var On=Ut.shift(),Zn=On.item,pr=On.index,Vn=On.parent,Kn=Le(Zn,pr,Vn);if(Kn===!1)return{v:void 0};if(Kn==="skip children")return"continue";if(Kn==="skip siblings"&&(Ut=Ut.filter(function(Ar){return Ar.parent!==Vn})),Zn.children){var lr,Tr=Zn.children;at&&(Tr=Tr.slice(),Tr.reverse());var Lr=Tr.map(function(Ar,jr){return{item:Ar,index:jr,parent:Zn}});(lr=Ut).push.apply(lr,ca(Lr))}};Ut.length;){var an=$t();switch(an){case"continue":continue;default:if((typeof an>"u"?"undefined":la(an))==="object")return an.v}}}function vs(De,Le){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";De[yt]&&es(De[yt][at],De),De[yt]=Le}function bs(De,Le){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";if(De!==Le){var Ut=Le[yt][at],$t=Ut.indexOf(Le);Ut[$t-1]!==De&&(De[yt]===Le[yt]?(es(Ut,De),$t=Ut.indexOf(Le)):vs(De,Le[yt]),Ut.splice($t,0,De))}}function ys(De,Le){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parent";if(De!==Le){var Ut=Le[yt],$t=Ut[at],an=$t.indexOf(Le);$t[an+1]!==De&&(De[yt]===Le[yt]?(es($t,De),an=$t.indexOf(Le)):vs(De,Le[yt]),$t.splice(an+1,0,De))}}function Li(De,Le){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children";if(De===Le)throw"can't prepend to self";var yt=Le[at];yt[0]!==De&&(vs(De,Le),yt.splice(0,0,De))}function _o(De,Le){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children";if(De===Le)throw"can't append to self";var yt=Le[at],Ut=yt[yt.length-1];Ut!==De&&(vs(De,Le),yt.push(De))}var us={name:"TreeNode",props:{data:{},store:{},level:{default:0}},data:function(){return{vm:this}},computed:{childrenLevel:function(){return this.level+1},isRoot:function(){return this.data&&this.data.isRoot},childrenVisible:function(){var Le=this.data;return this.isRoot||Le&&Le.children&&Le.children.length&&Le.open},innerBackStyle:function(){var Le={marginBottom:this.store.space+"px"};return!this.isRoot&&this.level>1&&(this.store.dir==="rtl"?Le.paddingRight=(this.level-1)*this.store.indent+"px":Le.paddingLeft=(this.level-1)*this.store.indent+"px"),Le}},watch:{data:{immediate:!0,handler:function(Le){Le&&(Le._vm=this,!Le._treeNodePropertiesCompleted&&!Le.isRoot&&this.store.compeleteNode(Le,this.$parent.data))}}}};const Ms=us;var jo=function(){var De=this,Le=De.$createElement,at=De._self._c||Le;return at("div",{staticClass:"tree-node",class:[De.data.active?De.store.activatedClass:"",De.data.open?De.store.openedClass:"",De.data.class],style:De.data.style,attrs:{id:De.data._id}},[De.isRoot?De._e():De._t("node-inner-back",[at("div",{staticClass:"tree-node-inner-back",class:[De.data.innerBackClass],style:[De.innerBackStyle,De.data.innerBackStyle]},[at("div",{staticClass:"tree-node-inner",class:[De.data.innerClass],style:[De.data.innerStyle]},[De._t("default",null,{data:De.data,store:De.store,vm:De.vm})],2)])],{styleObj:De.innerBackStyle,data:De.data,store:De.store,vm:De.vm}),at("transition",{attrs:{name:De.store.childrenTransitionName}},[De.childrenVisible?at("div",{staticClass:"tree-node-children"},De._l(De.data.children,function(yt){return at("TreeNode",{key:yt._id,attrs:{data:yt,store:De.store,level:De.childrenLevel},scopedSlots:De._u([{key:"default",fn:function(Ut){return[De._t("default",null,{data:Ut.data,store:Ut.store,vm:Ut.vm})]}},{key:"node-inner-back",fn:function(Ut){return De.store.customInnerBack?[De._t("node-inner-back",null,{styleObj:Ut.styleObj,data:Ut.data,store:Ut.store,vm:Ut.vm})]:void 0}}])})}),1):De._e()])],2)},Da=[];const ua=void 0,Ce=void 0,Fe=!1;function st(De,Le,at,yt,Ut,$t,an,Cn){const On=(typeof at=="function"?at.options:at)||{};return On.__file="TreeNode.vue",On.render||(On.render=De.render,On.staticRenderFns=De.staticRenderFns,On._compiled=!0,Ut&&(On.functional=!0)),On._scopeId=yt,On}var kt=st({render:jo,staticRenderFns:Da},ua,Ms,Ce,Fe),Ft={props:{data:{},idLength:{type:Number,default:5},indent:{type:Number,default:16},activatedClass:{default:"active"},openedClass:{default:"open"},space:{type:Number,default:10},childrenTransitionName:{},customInnerBack:{}},components:{TreeNode:kt},data:function(){return{store:this,rootData:null}},watch:{data:{immediate:!0,handler:function(Le,at){var yt=this;Le!==at&&(this.rootData=this.rootData||{isRoot:!0,_id:"tree_".concat(this._uid,"_node_root"),children:[]},mo(Le,function(Ut,$t,an){yt.compeleteNode(Ut,an)}),this.rootData.children=Le)}}},methods:{compeleteNode:function(Le,at){var yt={open:!0,children:[],active:!1,style:{},class:"",innerStyle:{},innerClass:"",innerBackStyle:{},innerBackClass:{}};for(var Ut in yt)Le.hasOwnProperty(Ut)||this.$set(Le,Ut,yt[Ut]);this.$set(Le,"parent",at||this.rootData),Le.hasOwnProperty("_id")||(Le._id="tree_".concat(this._uid,"_node_").concat(Ds(this.idLength))),Le._treeNodePropertiesCompleted=!0},pure:function(Le,at,yt){var Ut=this,$t=Zs({},Le);delete $t._id,delete $t.parent,delete $t.children,delete $t.open,delete $t.active,delete $t.style,delete $t.class,delete $t.innerStyle,delete $t.innerClass,delete $t.innerBackStyle,delete $t.innerBackClass;for(var an=We($t),Cn=0;Cn<an.length;Cn++){var On=an[Cn];On[0]==="_"&&delete $t[On]}return at&&Le.children&&($t.children=Le.children.slice(),$t.children.forEach(function(Zn,pr){$t.children[pr]=Ut.pure(Zn,at)})),yt&&yt($t,Le)||$t},getNodeById:function(Le){var at;return mo(this.rootData.children,function(yt){if(yt._id===Le)return at=yt,!1}),at},getActivated:function(){var Le=[];return mo(this.rootData.children,function(at){at.active&&Le.push(at)}),Le},getOpened:function(){var Le=[];return mo(this.rootData.children,function(at){at.open&&Le.push(at)}),Le},activeNode:function(Le,at){this.activated,at&&this.getActivated().forEach(function(yt){yt.active=!1}),Le.active=!0},toggleActive:function(Le,at){Le.active?Le.active=!1:this.activeNode(Le,at)},openNode:function(Le,at){var yt=this;this.opened,at&&this.getOpened().forEach(function(Ut){Ut.open=!1,yt.$emit("nodeOpenChanged",Ut)}),Le.open=!0,this.$emit("nodeOpenChanged",Le)},toggleOpen:function(Le,at){Le.open?(Le.open=!1,this.$emit("nodeOpenChanged",Le)):this.openNode(Le,at)},getPureData:function(Le){return this.pure(this.rootData,!0,Le).children},deleteNode:function(Le){return es(Le.parent.children,Le)}}};const Kt=Ft;var ln=function(){var De=this,Le=De.$createElement,at=De._self._c||Le;return at("div",{staticClass:"he-tree tree"},[at("TreeNode",{attrs:{data:De.rootData,store:De.store},scopedSlots:De._u([{key:"default",fn:function(yt){return[De._t("default",null,{data:yt.data,store:De.store,vm:yt.vm})]}},{key:"node-inner-back",fn:function(yt){return De.customInnerBack?[De._t("node-inner-back",null,{styleObj:yt.styleObj,data:yt.data,store:yt.store,vm:yt.vm})]:void 0}}])})],1)},un=[];const Rn=void 0,bn=void 0,Wn=!1;function yr(De,Le,at,yt,Ut,$t,an,Cn){const On=(typeof at=="function"?at.options:at)||{};return On.__file="Tree.vue",On.render||(On.render=De.render,On.staticRenderFns=De.staticRenderFns,On._compiled=!0,Ut&&(On.functional=!0)),On._scopeId=yt,On}var wr=yr({render:ln,staticRenderFns:un},Rn,Kt,bn,Wn),Wr=function(De){return function(Le,at){var yt=String(wn(Le)),Ut=_t(at),$t=yt.length,an,Cn;return Ut<0||Ut>=$t?De?"":void 0:(an=yt.charCodeAt(Ut),an<55296||an>56319||Ut+1===$t||(Cn=yt.charCodeAt(Ut+1))<56320||Cn>57343?De?yt.charAt(Ut):an:De?yt.slice(Ut,Ut+2):(an-55296<<10)+(Cn-56320)+65536)}},Zr=Wr(!0),zr=function(De,Le,at){return Le+(at?Zr(De,Le).length:1)},ii=rt("toStringTag"),fi=fn(function(){return arguments}())=="Arguments",si=function(De,Le){try{return De[Le]}catch{}},ei=function(De){var Le,at,yt;return De===void 0?"Undefined":De===null?"Null":typeof(at=si(Le=Object(De),ii))=="string"?at:fi?fn(Le):(yt=fn(Le))=="Object"&&typeof Le.callee=="function"?"Arguments":yt},Xr=RegExp.prototype.exec,Ei=function(De,Le){var at=De.exec;if(typeof at=="function"){var yt=at.call(De,Le);if(typeof yt!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return yt}if(ei(De)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return Xr.call(De,Le)},vi=function(){var De=ct(this),Le="";return De.global&&(Le+="g"),De.ignoreCase&&(Le+="i"),De.multiline&&(Le+="m"),De.unicode&&(Le+="u"),De.sticky&&(Le+="y"),Le},Ci=RegExp.prototype.exec,Fi=String.prototype.replace,Mi=Ci,Hi="lastIndex",Gi=function(){var De=/a/,Le=/b*/g;return Ci.call(De,"a"),Ci.call(Le,"a"),De[Hi]!==0||Le[Hi]!==0}(),ts=/()??/.exec("")[1]!==void 0,bi=Gi||ts;bi&&(Mi=function(Le){var at=this,yt,Ut,$t,an;return ts&&(Ut=new RegExp("^"+at.source+"$(?!\\s)",vi.call(at))),Gi&&(yt=at[Hi]),$t=Ci.call(at,Le),Gi&&$t&&(at[Hi]=at.global?$t.index+$t[0].length:yt),ts&&$t&&$t.length>1&&Fi.call($t[0],Ut,function(){for(an=1;an<arguments.length-2;an++)arguments[an]===void 0&&($t[an]=void 0)}),$t});var Vi=Mi;mt({target:"RegExp",proto:!0,forced:Vi!==/./.exec},{exec:Vi});var ds=rt("species"),$s=!it(function(){var De=/./;return De.exec=function(){var Le=[];return Le.groups={a:"7"},Le},"".replace(De,"$<a>")!=="7"}),xs=function(){var De=/(?:)/,Le=De.exec;De.exec=function(){return Le.apply(this,arguments)};var at="ab".split(De);return at.length===2&&at[0]==="a"&&at[1]==="b"}(),vo=function(De,Le,at){var yt=rt(De),Ut=!it(function(){var pr={};return pr[yt]=function(){return 7},""[De](pr)!=7}),$t=Ut?!it(function(){var pr=!1,Vn=/a/;return Vn.exec=function(){return pr=!0,null},De==="split"&&(Vn.constructor={},Vn.constructor[ds]=function(){return Vn}),Vn[yt](""),!pr}):void 0;if(!Ut||!$t||De==="replace"&&!$s||De==="split"&&!xs){var an=/./[yt],Cn=at(wn,yt,""[De],function(Vn,Kn,lr,Tr,Lr){return Kn.exec===Vi?Ut&&!Lr?{done:!0,value:an.call(Kn,lr,Tr)}:{done:!0,value:Vn.call(lr,Kn,Tr)}:{done:!1}}),On=Cn[0],Zn=Cn[1];Ir(String.prototype,De,On),Ht(RegExp.prototype,yt,Le==2?function(pr,Vn){return Zn.call(pr,this,Vn)}:function(pr){return Zn.call(pr,this)})}},Ts=Math.max,fs=Math.min,ws=Math.floor,yi=/\$([$&`']|\d\d?|<[^>]*>)/g,ns=/\$([$&`']|\d\d?)/g,Bi=function(De){return De===void 0?De:String(De)};vo("replace",2,function(De,Le,at,yt){return[function(an,Cn){var On=De(this),Zn=an==null?void 0:an[Le];return Zn!==void 0?Zn.call(an,On,Cn):at.call(String(On),an,Cn)},function($t,an){var Cn=yt(at,$t,this,an);if(Cn.done)return Cn.value;var On=ct($t),Zn=String(this),pr=typeof an=="function";pr||(an=String(an));var Vn=On.global;if(Vn){var Kn=On.unicode;On.lastIndex=0}for(var lr=[];;){var Tr=Ei(On,Zn);if(Tr===null||(lr.push(Tr),!Vn))break;var Lr=String(Tr[0]);Lr===""&&(On.lastIndex=zr(Zn,sn(On.lastIndex),Kn))}for(var Ar="",jr=0,Kr=0;Kr<lr.length;Kr++){Tr=lr[Kr];for(var ci=String(Tr[0]),Yi=Ts(fs(_t(Tr.index),Zn.length),0),Ga=[],Gs=1;Gs<Tr.length;Gs++)Ga.push(Bi(Tr[Gs]));var xa=Tr.groups;if(pr){var Xa=[ci].concat(Ga,Yi,Zn);xa!==void 0&&Xa.push(xa);var Ja=String(an.apply(void 0,Xa))}else Ja=Ut(ci,Zn,Yi,Ga,xa,an);Yi>=jr&&(Ar+=Zn.slice(jr,Yi)+Ja,jr=Yi+ci.length)}return Ar+Zn.slice(jr)}];function Ut($t,an,Cn,On,Zn,pr){var Vn=Cn+$t.length,Kn=On.length,lr=ns;return Zn!==void 0&&(Zn=cn(Zn),lr=yi),at.call(pr,lr,function(Tr,Lr){var Ar;switch(Lr.charAt(0)){case"$":return"$";case"&":return $t;case"`":return an.slice(0,Cn);case"'":return an.slice(Vn);case"<":Ar=Zn[Lr.slice(1,-1)];break;default:var jr=+Lr;if(jr===0)return Lr;if(jr>Kn){var Kr=ws(jr/10);return Kr===0?Lr:Kr<=Kn?On[Kr-1]===void 0?Lr.charAt(1):On[Kr-1]+Lr.charAt(1):Lr}Ar=On[jr-1]}return Ar===void 0?"":Ar})}});/*! * drag-event-service v0.0.6 * (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) * Released under the MIT License. */var Pi={start:["mousedown","touchstart"],move:["mousemove","touchmove"],end:["mouseup","touchend"]},Os={isTouch:function(Le){return Le.type&&Le.type.startsWith("touch")},_getStore:function(Le){return Le._wrapperStore||(Le._wrapperStore=[]),Le._wrapperStore},on:function(Le,at,yt){var Ut,$t,an=this._getStore(Le),Cn=this,On=function(lr){var Tr,Lr=Cn.isTouch(lr);if(Lr)Tr={x:lr.changedTouches[0].pageX,y:lr.changedTouches[0].pageY};else if(Tr={x:lr.pageX,y:lr.pageY},at==="start"&&lr.which!==1)return;return yt.call(this,lr,Tr)};an.push({handler:yt,wrapper:On});for(var Zn=arguments.length,pr=new Array(Zn>3?Zn-3:0),Vn=3;Vn<Zn;Vn++)pr[Vn-3]=arguments[Vn];(Ut=ho).call.apply(Ut,[null,Le,Pi[at][0],On].concat(pr)),($t=ho).call.apply($t,[null,Le,Pi[at][1],On].concat(pr))},off:function(Le,at,yt){for(var Ut=this._getStore(Le),$t=arguments.length,an=new Array($t>3?$t-3:0),Cn=3;Cn<$t;Cn++)an[Cn-3]=arguments[Cn];for(var On=Ut.length-1;On>=0;On--){var Zn=Ut[On],pr=Zn.handler,Vn=Zn.wrapper;if(yt===pr){var Kn,lr;(Kn=zo).call.apply(Kn,[null,Le,Pi[at][0],Vn].concat(an)),(lr=zo).call.apply(lr,[null,Le,Pi[at][1],Vn].concat(an)),Ut.splice(On,1)}}}};/*! * draggable-helper v1.0.20 * (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) * Released under the MIT License. */function ro(De){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Le.minTranslate==null&&(Le.minTranslate=10);var at=Zn(),yt=function(){Os.off(De,"end",De._draggbleEventHandler),zo(De,"selectstart",pr),delete De._draggbleEventHandler};return De._draggbleEventHandler&&yt(),De._draggbleEventHandler=Ut,Os.on(De,"start",De._draggbleEventHandler),ho(De,"selectstart",pr),yt;function Ut(Vn,Kn){at.mouse={x:Kn.x,y:Kn.y},at.initialMouse=Object.assign({},at.mouse),Os.on(document,"move",an,{passive:!1}),Os.on(window,"end",Cn)}function $t(Vn){var Kn=On(),lr=Kn.el,Tr=Kn.position;at.el=lr,at.initialPosition=Object.assign({},Tr);var Lr=Le.drag&&Le.drag(Vn,Le,at);if(Lr===!1)return!1;var Ar=Bo(lr),jr=Object.assign({width:"".concat(Ar.width,"px"),height:"".concat(Ar.height,"px"),zIndex:9999,opacity:.6,position:"absolute",left:Tr.x+"px",top:Tr.y+"px"},Le.style||Le.getStyle&&Le.getStyle(Le)||{});Us(lr,"style");for(var Kr in jr)lr.style[Kr]=jr[Kr];Us(lr,"class"),Aa(lr,Le.draggingClass)}function an(Vn,Kn){at.mouse={x:Kn.x,y:Kn.y};var lr=at.move={x:at.mouse.x-at.initialMouse.x,y:at.mouse.y-at.initialMouse.y};if(at.movedCount===0&&Le.minTranslate){var Tr=Math.pow(at.move.x,2),Lr=Math.pow(at.move.y,2),Ar=Math.pow(Tr+Lr,.5);if(Ar<Le.minTranslate)return}var jr=!0;if(at.movedCount===0&&$t(Vn)===!1&&(jr=!1),Vn.preventDefault(),jr&&Le.moving&&Le.moving(Vn,Le,at)===!1&&(jr=!1),jr){if(!at||!at.el)return;Object.assign(at.el.style,{left:at.initialPosition.x+lr.x+"px",top:at.initialPosition.y+lr.y+"px"}),at.movedCount++}}function Cn(Vn){if(Os.off(document,"move",an,{passive:!1}),Os.off(window,"end",Cn),at.movedCount>0){at.movedCount=0;var Kn=at,lr=Kn.el;Le.clone?lr.parentElement.removeChild(lr):(aa(lr,"style"),aa(lr,"class")),Le.drop&&Le.drop(Vn,Le,at)}at=Zn()}function On(){var Vn=Le.getEl?Le.getEl(De,Le):De,Kn=Vn;return Le.clone&&(at.triggerEl=Vn,Kn=Vn.cloneNode(!0),Vn.parentElement.appendChild(Kn)),{position:oa(Kn),el:Kn}}function Zn(){return{movedCount:0}}function pr(Vn){Vn.preventDefault()}}Mn(Mn.S+Mn.F*!Ve,"Object",{defineProperty:En.f});var ks=_e.Object,da=function(Le,at,yt){return ks.defineProperty(Le,at,yt)},Hs=da,bo=Pt.f,fa=Function.prototype,yo=/^\s*function ([^ (]*)/,Vo="name";Vo in fa||ot&&bo(fa,Vo,{configurable:!0,get:function(){try{return(""+this).match(yo)[1]}catch{return""}}});function Uo(De,Le){if(!(De instanceof Le))throw new TypeError("Cannot call a class as a function")}function Is(De,Le){for(var at=0;at<Le.length;at++){var yt=Le[at];yt.enumerable=yt.enumerable||!1,yt.configurable=!0,"value"in yt&&(yt.writable=!0),Hs(De,yt.key,yt)}}function Ws(De,Le,at){return Le&&Is(De.prototype,Le),at&&Is(De,at),De}function xo(De,Le,at){return Le in De?Hs(De,Le,{value:at,enumerable:!0,configurable:!0,writable:!0}):De[Le]=at,De}var Ho=function(){function De(){Uo(this,De),xo(this,"store",{})}return Ws(De,[{key:"has",value:function(at){return this.store.hasOwnProperty(at)}},{key:"remember",value:function(at,yt){return this.has(at)||(this.store[at]={value:yt()}),this.store[at].value}},{key:"forget",value:function(at){at?this.has(at)&&delete this.store[at]:this.store={}}}]),De}();function pa(De,Le,at){var yt=function(an){Hs(De,an,{get:function(){var On=this;return Le.remember(an,function(){return at[an].call(On)})}})};for(var Ut in at)yt(Ut)}/*! * vue-functions v1.0.3 * (c) 2019-present phphe <phphe@outlook.com> (https://github.com/phphe) * Released under the MIT License. */function Wo(De){return De===""||De}var ha=function(De,Le){return{value:Le,done:!!De}},so={},Ma=Gn,Ia=Ve?Object.defineProperties:function(Le,at){ft(Le);for(var yt=Me(at),Ut=yt.length,$t=0,an;Ut>$t;)En.f(Le,an=yt[$t++],at[an]);return Le},oo=fe.document,qo=oo&&oo.documentElement,Hl=ve("IE_PROTO"),wo=function(){},ma="prototype",Ys=function(){var De=Vt("iframe"),Le=Pe.length,at="<",yt=">",Ut;for(De.style.display="none",qo.appendChild(De),De.src="javascript:",Ut=De.contentWindow.document,Ut.open(),Ut.write(at+"script"+yt+"document.F=Object"+at+"/script"+yt),Ut.close(),Ys=Ut.F;Le--;)delete Ys[ma][Pe[Le]];return Ys()},pl=Object.create||function(Le,at){var yt;return Le!==null?(wo[ma]=ft(Le),yt=new wo,wo[ma]=null,yt[Hl]=Le):yt=Ys(),at===void 0?yt:Ia(yt,at)},ps=ue(function(De){var Le=ge("wks"),at=fe.Symbol,yt=typeof at=="function",Ut=De.exports=function($t){return Le[$t]||(Le[$t]=yt&&at[$t]||(yt?at:le)("Symbol."+$t))};Ut.store=Le}),Yo=En.f,Ks=ps("toStringTag"),ko=function(De,Le,at){De&&!U(De=at?De:De.prototype,Ks)&&Yo(De,Ks,{configurable:!0,value:Le})},ao={};Gn(ao,ps("iterator"),function(){return this});var hl=function(De,Le,at){De.prototype=pl(ao,{next:kn(1,at)}),ko(De,Le+" Iterator")},Na=ve("IE_PROTO"),ml=Object.prototype,Wl=Object.getPrototypeOf||function(De){return De=B(De),U(De,Na)?De[Na]:typeof De.constructor=="function"&&De instanceof De.constructor?De.constructor.prototype:De instanceof Object?ml:null},Ns=ps("iterator"),Ls=!([].keys&&"next"in[].keys()),ql="@@iterator",gl="keys",ga="values",Yl=function(){return this},_l=function(De,Le,at,yt,Ut,$t,an){hl(at,Le,yt);var Cn=function(ci){if(!Ls&&ci in Vn)return Vn[ci];switch(ci){case gl:return function(){return new at(this,ci)};case ga:return function(){return new at(this,ci)}}return function(){return new at(this,ci)}},On=Le+" Iterator",Zn=Ut==ga,pr=!1,Vn=De.prototype,Kn=Vn[Ns]||Vn[ql]||Ut&&Vn[Ut],lr=Kn||Cn(Ut),Tr=Ut?Zn?Cn("entries"):lr:void 0,Lr=Le=="Array"&&Vn.entries||Kn,Ar,jr,Kr;if(Lr&&(Kr=Wl(Lr.call(new De)),Kr!==Object.prototype&&Kr.next&&ko(Kr,On,!0)),Zn&&Kn&&Kn.name!==ga&&(pr=!0,lr=function(){return Kn.call(this)}),an&&(Ls||pr||!Vn[Ns])&&Gn(Vn,Ns,lr),so[Le]=lr,so[On]=Yl,Ut)if(Ar={values:Zn?lr:Cn(ga),keys:$t?lr:Cn(gl),entries:Tr},an)for(jr in Ar)jr in Vn||Ma(Vn,jr,Ar[jr]);else Mn(Mn.P+Mn.F*(Ls||pr),Le,Ar);return Ar};_l(Array,"Array",function(De,Le){this._t=G(De),this._i=0,this._k=Le},function(){var De=this._t,Le=this._k,at=this._i++;return!De||at>=De.length?(this._t=void 0,ha(1)):Le=="keys"?ha(0,at):Le=="values"?ha(0,De[at]):ha(0,[at,De[at]])},"values"),so.Arguments=so.Array;for(var vl=ps("toStringTag"),Wi="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),ki=0;ki<Wi.length;ki++){var Ii=Wi[ki],$i=fe[Ii],lo=$i&&$i.prototype;lo&&!lo[vl]&&Gn(lo,vl,Ii),so[Ii]=so.Array}var Kl=function(De){return function(Le,at){var yt=String(N(Le)),Ut=ee(at),$t=yt.length,an,Cn;return Ut<0||Ut>=$t?De?"":void 0:(an=yt.charCodeAt(Ut),an<55296||an>56319||Ut+1===$t||(Cn=yt.charCodeAt(Ut+1))<56320||Cn>57343?De?yt.charAt(Ut):an:De?yt.slice(Ut,Ut+2):(an-55296<<10)+(Cn-56320)+65536)}},va=Kl(!0);_l(String,"String",function(De){this._t=String(De),this._i=0},function(){var De=this._t,Le=this._i,at;return Le>=De.length?{value:void 0,done:!0}:(at=va(De,Le),this._i+=at.length,{value:at,done:!1})});var Gl=ps("toStringTag"),Xl=Y(function(){return arguments}())=="Arguments",Jl=function(De,Le){try{return De[Le]}catch{}},La=function(De){var Le,at,yt;return De===void 0?"Undefined":De===null?"Null":typeof(at=Jl(Le=Object(De),Gl))=="string"?at:Xl?Y(Le):(yt=Y(Le))=="Object"&&typeof Le.callee=="function"?"Arguments":yt},bl=ps("iterator"),Fa=_e.getIteratorMethod=function(De){if(De!=null)return De[bl]||De["@@iterator"]||so[La(De)]},Zl=_e.getIterator=function(De){var Le=Fa(De);if(typeof Le!="function")throw TypeError(De+" is not iterable!");return ft(Le.call(De))},Ba=Zl,za=Ba,ja=Array.isArray||function(Le){return fn(Le)=="Array"},yl=rt("species"),Va=function(De){var Le;return ja(De)&&(Le=De.constructor,typeof Le=="function"&&(Le===Array||ja(Le.prototype))&&(Le=void 0),ut(Le)&&(Le=Le[yl],Le===null&&(Le=void 0))),Le===void 0?Array:Le},xl=function(De,Le){return new(Va(De))(Le)},Ko=function(De,Le){var at=De==1,yt=De==2,Ut=De==3,$t=De==4,an=De==6,Cn=De==5||an,On=Le||xl;return function(Zn,pr,Vn){for(var Kn=cn(Zn),lr=hn(Kn),Tr=Dr(pr,Vn,3),Lr=sn(lr.length),Ar=0,jr=at?On(Zn,Lr):yt?On(Zn,0):void 0,Kr,ci;Lr>Ar;Ar++)if((Cn||Ar in lr)&&(Kr=lr[Ar],ci=Tr(Kr,Ar,Kn),De)){if(at)jr[Ar]=ci;else if(ci)switch(De){case 3:return!0;case 5:return Kr;case 6:return Ar;case 2:jr.push(Kr)}else if($t)return!1}return an?-1:Ut||$t?$t:jr}},Ql=Ko(5),So="find",Ps=!0;So in[]&&Array(1)[So](function(){Ps=!1}),mt(mt.P+mt.F*Ps,"Array",{find:function(Le){return Ql(this,Le,arguments.length>1?arguments[1]:void 0)}}),Ct(So),document.elementsFromPoint||(document.elementsFromPoint=wl);function wl(De,Le){var at=[],yt=void 0;do yt!==document.elementFromPoint(De,Le)?(yt=document.elementFromPoint(De,Le),at.push(yt),yt.style.pointerEvents="none"):yt=!1;while(yt);return at.forEach(function(Ut){return Ut.style.pointerEvents="all"}),at}function ec(De,Le,at){var yt=document.elementsFromPoint(De,Le),Ut,$t,an=[],Cn=!0,On=!1,Zn=void 0;try{for(var pr=za(yt),Vn;!(Cn=(Vn=pr.next()).done);Cn=!0){var Kn=Vn.value;if(!$t)eo(Kn,"tree-node")&&($t=Kn);else{if(eo(Kn,"tree")){Ut=Kn;break}an.push(Kn)}}}catch(Ar){On=!0,Zn=Ar}finally{try{!Cn&&pr.return!=null&&pr.return()}finally{if(On)throw Zn}}if(Ut){var lr=!1;if(!Ua($t,Ut))for(var Tr=0;Tr<an.length;Tr++){var Lr=an[Tr];if(!Ua(Lr,Ut)){lr=!0;break}}if(!lr)return at.find(function(Ar){return Ar.$el===Ut})}}function Ua(De,Le){for(var at=De;at;)if(at=at.parentNode,at===Le)return!0}var $r={nothing:function(Le){},after:function(Le){qr(Le.dplh,Le.targetNode)},before:function(Le){qi(Le.targetNode.parent)?bs(Le.dplh,Le.targetNode):qr(Le.dplh,Le.targetNode.parent)},append:function(Le){qi(Le.targetNode)?(_o(Le.dplh,Le.targetNode),Le.targetNode.open||Le.store.toggleOpen(Le.targetNode)):qr(Le.dplh,Le.targetNode)},prepend:function(Le){qi(Le.targetNode)?(Li(Le.dplh,Le.targetNode),Le.targetNode.open||Le.store.toggleOpen(Le.targetNode)):qr(Le.dplh,Le.targetNode)},"after target parent":function(Le){qr(Le.dplh,Le.targetNode.parent)},"append prev":function(Le){qi(Le.targetPrev)?(_o(Le.dplh,Le.targetPrev),Le.targetPrev.open||Le.store.toggleOpen(Le.targetPrev)):qr(Le.dplh,Le.targetPrev)},"append current tree":function(Le){qi(Le.currentTree.rootData)&&_o(Le.dplh,Le.currentTree.rootData)}};function qr(De,Le,at){if(Le){var yt=kl(Le,function(Ut){return Ut.parent&&qi(Ut.parent)});if(yt)ys(De,yt);else return!1}else return!1;return!0}function rs(De){if(!Co.hasOwnProperty(De._id)){var Le;De.hasOwnProperty("draggable")?Le=De.draggable:De.parent?Le=rs(De.parent):Le=!0,Co[De._id]=Le}return Co[De._id]}function qi(De){if(!Xo.hasOwnProperty(De._id)){var Le;De.hasOwnProperty("droppable")?Le=De.droppable:De.parent?Le=qi(De.parent):Le=!0,Xo[De._id]=Le}return Xo[De._id]}function Ss(De,Le,at,yt){var Ut=Le.length;if(yt)for(var $t=Ut-1;$t>=0;$t--){var an=Le[$t];if(an!==De.node&&at(an,$t))return an}else for(var Cn=0;Cn<Ut;Cn++){var On=Le[Cn];if(On!==De.node&&at(On,Cn))return On}}function kl(De,Le){for(var at=De;at;){if(Le(at))return at;at=at.parent}}for(var Eo={"targetNode existed":function(Le){return Le.targetNode},"targetNode is placeholder":function(Le){return Le.targetNode.isDragPlaceHolder},"targetNode at top":function(Le){return Le.targetAtTop},"targetNode at bottom":function(Le){return Le.targetAtBottom},"targetNode is the second child of root":function(Le){return Le.currentTreeRootSecondChildExcludingDragging===Le.targetNode},"currentTree existed":function(Le){return Le.currentTree},"currentTree empty":function(Le){return!Ss(Le,Le.currentTree.rootData.children,function(at){return at})},"placeholder existed":function(Le){return Le.dplhEl},"placeholder in currentTree":function(Le){return Le.dplhElInCurrentTree},"placeholder at top":function(Le){return Le.dplhAtTop},"targetNode is open":function(Le){return Le.targetNode.open},"targetNode has children excluding placeholder":function(Le){return Ss(Le,Le.targetNode.children,function(at){return at!==Le.dplh})},"targetNode is 1st child":function(Le){return Ss(Le,Le.targetNode.parent.children,function(at){return at})===Le.targetNode},"targetNode is last child":function(Le){return Ss(Le,Le.targetNode.parent.children,function(at){return at},!0)===Le.targetNode},"on targetNode middle":function(Le){return Le.offset.y<=Le.tiMiddleY},"at left":function(Le){return Le.offset.x<Le.tiOffset.x},"at right":function(Le){return Le.offset.x>Le.tiOffset.x},"at indent right":function(Le){return Le.offset.x>Le.tiOffset.x+Le.currentTree.indent},"at indent left":function(Le){return Le.offset.x<Le.tiOffset.x+Le.currentTree.indent}},Ha=We(Eo),tc=function(){var Le=Ha[Go],at=Eo[Le];Eo[Le]=function(){return!!at.apply(void 0,arguments)}},Go=0;Go<Ha.length;Go++)tc();var Fs,Xo={},Co={};function hs(De){var Le=this.store.trees,at=De.store,yt={event:De.event,el:at.el,vm:this,node:this.data,store:this.store,dplh:this.store.dplh,draggableHelperData:{opt:De.options,store:at}};pa(yt,new Ho,{nodeInnerEl:function(){return this.el.querySelector(".tree-node-inner")},offset:function(){return mi(this.nodeInnerEl)},offset2:function(){return{x:this.offset.x+this.nodeInnerEl.offsetWidth,y:this.offset.y+this.nodeInnerEl.offsetHeight}},offsetToViewPort:function(){var Cn=this.nodeInnerEl.getBoundingClientRect();return Cn.x=this.store.dir==="rtl"?Cn.right:Cn.left,Cn.y=Cn.top,Cn},currentTree:function(){var Cn=ec(this.offsetToViewPort.x,this.offsetToViewPort.y,Le);if(Cn){var On=this.store;if(Fs==null&&(Fs=On),Fs!==Cn){if(!Wo(On.crossTree)||!Wo(Cn.crossTree))return;Fs=Cn}return Wo(Cn.droppable)?Cn:void 0}},currentTreeRootEl:function(){return document.getElementById(this.currentTree.rootData._id)},currentTreeRootOf4:function(){return Jo(this.currentTreeRootEl,this.currentTree.space)},currentTreeRootSecondChildExcludingDragging:function(){var Cn=this;return this.currentTree.rootData.children.slice(0,3).filter(function(On){return On!==Cn.node})[1]},dplhEl:function(){return document.getElementById(this.dplh._id)},dplhElInCurrentTree:function(){return!!this.currentTree.$el.querySelector("#".concat(this.dplh._id))},dplhOf4:function(){return Jo(this.dplhEl,this.currentTree.space)},dplhAtTop:function(){return Math.abs(this.dplhOf4.y-this.currentTreeRootOf4.y)<5},targetAtTop:function(){return Math.abs(this.tiOf4.y-this.currentTreeRootOf4.y)<5},targetAtBottom:function(){return Math.abs(this.tiOf4.y2-this.currentTreeRootOf4.y2)<5},targetNode:function(){var Cn=this.currentTree;if(!Cn)throw"no currentTree";var On=this.offset;On.x;for(var Zn=On.y,pr=Cn.rootData;;){var Vn=pr.children;if(!Vn||(this.node.parent===pr&&(Vn=Vn.slice(),Vn.splice(Vn.indexOf(this.node),1)),Vn.length===0))break;var Kn=Ra(Vn,function(Lr){var Ar=document.getElementById(Lr._id),jr=mi(Ar).y,Kr=jr+Ar.offsetHeight+Cn.space;return Kr<Zn?-1:jr<=Zn?0:1},null,null,!0);if(Kn.hit?pr=Kn.value:Kn.bigger?pr=Vn[Kn.index-1]:pr=Kn.value,!pr){pr=Vn[0];break}if(!pr)break;var lr=document.getElementById(pr._id).querySelector(".tree-node-inner"),Tr=Jo(lr,Cn.space);if(Tr.y<=Zn&&Zn<=Tr.y2)break}return pr},targetNodeEl:function(){return document.getElementById(this.targetNode._id)},tiInnerEl:function(){return this.targetNodeEl.querySelector(".tree-node-inner")},tiOffset:function(){return mi(this.tiInnerEl)},tiOf4:function(){return Jo(this.tiInnerEl,this.currentTree.space)},tiMiddleY:function(){return this.tiOffset.y+this.tiInnerEl.offsetHeight/2},targetPrevEl:function(){var Cn=this.targetNodeEl.previousSibling;return eo(Cn,"dragging")&&(Cn=Cn.previousSibling),Cn},targetPrev:function(){var Cn=this.targetPrevEl.getAttribute("id");return this.currentTree.getNodeById(Cn)}});var Ut={},$t=function(Cn){if(!Ut.hasOwnProperty(Cn)){var On;try{On=Eo[Cn](yt)}catch(Zn){On=Zn;try{({}).DEVELOPE_SELF&&console.warn("failed to execute rule '".concat(Cn,"'"),Zn)}catch{}}Ut[Cn]=On}return Ut[Cn]};$t("currentTree existed")===!0?$t("targetNode is placeholder")===!1?$t("targetNode is the second child of root")===!0?$t("targetNode has children excluding placeholder")===!1?$t("on targetNode middle")===!0?$r.before(yt):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(yt)):$t("targetNode has children excluding placeholder")===!0&&$r.prepend(yt):$t("targetNode is the second child of root")===!1&&($t("currentTree empty")===!1?$t("targetNode at top")===!0?$t("placeholder in currentTree")===!0?$t("targetNode has children excluding placeholder")===!1?$t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1?$r.after(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0&&$r.append(yt):$t("on targetNode middle")===!0&&$r.before(yt):$t("targetNode has children excluding placeholder")===!0&&($t("on targetNode middle")===!1?$r.prepend(yt):$t("on targetNode middle")===!0&&$r.before(yt)):$t("placeholder in currentTree")===!1&&$r.before(yt):$t("targetNode at top")===!1&&($t("targetNode at bottom")===!1?$t("placeholder at top")===!0?$r.prepend(yt):$t("placeholder at top")===!1&&($t("targetNode has children excluding placeholder")===!0?$r.prepend(yt):$t("targetNode has children excluding placeholder")===!1&&($t("targetNode is 1st child")===!1?$t("targetNode is last child")===!1?$t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(yt):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(yt)):$t("targetNode is last child")===!0&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(yt)):$t("targetNode is 1st child")===!0&&($t("targetNode is last child")===!0?$r.append(yt):$t("targetNode is last child")===!1&&($t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1?$r.after(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0&&$r.append(yt):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1?$r.after(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0&&$r.append(yt)))))):$t("targetNode at bottom")===!0&&($t("placeholder in currentTree")===!0?$t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r.append(yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!1&&$r.after(yt):$t("on targetNode middle")===!0&&$r.append(yt):$t("placeholder in currentTree")===!1&&$r.append(yt))):$t("currentTree empty")===!0&&$r["append current tree"](yt)):$t("targetNode is placeholder")===!0&&($t("targetNode at bottom")===!1?$t("targetNode is the second child of root")===!1?$t("targetNode is 1st child")===!0?$t("targetNode is last child")===!1||$t("targetNode is last child")===!0&&($t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](yt):$t(this.store.dir==="rtl"?"at right":"at left"):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](yt):$t(this.store.dir==="rtl"?"at right":"at left"))):$t("targetNode is 1st child")===!1&&($t("targetNode is last child")===!0?$t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](yt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](yt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"))):$t("targetNode is last child")===!1&&($t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at right":"at left")===!0||$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at right":"at left")===!0||$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"))))):$t("targetNode is the second child of root")===!0&&($t("on targetNode middle")===!0?$t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"):$t("on targetNode middle")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right"))):$t("targetNode at bottom")===!0&&($t("targetNode is 1st child")===!0?$t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](yt):$t(this.store.dir==="rtl"?"at right":"at left"):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at right":"at left")===!1||$t(this.store.dir==="rtl"?"at right":"at left")===!0&&$r["after target parent"](yt)):$t("targetNode is 1st child")===!1&&($t("on targetNode middle")===!1?$t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](yt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")):$t("on targetNode middle")===!0&&($t(this.store.dir==="rtl"?"at right":"at left")===!0?$r["after target parent"](yt):$t(this.store.dir==="rtl"?"at right":"at left")===!1&&($t(this.store.dir==="rtl"?"at indent left":"at indent right")===!0?$r["append prev"](yt):$t(this.store.dir==="rtl"?"at indent left":"at indent right")))))):$t("currentTree existed")}function Jo(De,Le){var at=mi(De);return at.x2=at.x+De.offsetWidth,at.y2=at.y+De.offsetHeight+Le,at}hs.dragStart=function(){},hs.dragEnd=function(){Fs=null,Xo={},Co={}};var Sl={extends:kt,name:"TreeNode",mounted:function(){var Le=this;if(this.store.isNodeDraggable=rs,this.store.isNodeDroppable=qi,!(this.isRoot||this.data.isDragPlaceHolder)){var at=this.store.dplh;this.$watch("store.draggable",function(yt){if(Wo(yt)){var Ut=Le.store.getTriggerEl?Le.store.getTriggerEl(Le):Le.$el.querySelector(".tree-node-inner");Le._draggableDestroy=ro(Ut,{preventSelect:Wo(Le.store.preventSelect),getEl:function(){return Le.$el},minTranslate:10,drag:function(an,Cn,On){hs.dragStart();var Zn={event:an,options:Cn,store:On};if(Le.store.ondragstart&&Le.store.ondragstart(Le.data,Zn)===!1||!rs(Le.data))return!1;Le.store.$emit("drag",Le.data);var pr=Le.data.parent.children;Le.startPosition={siblings:pr,index:pr.indexOf(Le.data)},at.innerStyle.height=On.el.offsetHeight+"px",ys(at,Le.data),Le.data.class+=" dragging"},moving:function(an,Cn,On){if(On.movedCount!==0){var Zn={event:an,options:Cn,store:On};return hs.call(Le,Zn)}},drop:function(an,Cn,On){hs.dragEnd();var Zn={event:an,options:Cn,store:On};if(Le.store.ondragend&&Le.store.ondragend(Le.data,Zn)===!1)es(at.parent.children,at);else{var pr=at._vm.store,Vn=pr!==Le.store,Kn=Vn?Le.store:null;ys(Le.data,at),es(at.parent.children,at),Le.data.class=Le.data.class.replace(/(^| )dragging( |$)/g," "),pr.$emit("drop",Le.data,pr,Kn),Kn&&Kn.$emit("drop",Le.data,pr,Kn);var lr=Le.data.parent.children;lr===Le.startPosition.siblings&&lr.indexOf(Le.data)===Le.startPosition.index||(Le.store.$emit("change",Le.data,pr,Kn),Kn&&Kn.$emit("change",Le.data,pr,Kn)),Le.startPosition=null}}})}else Le._draggableDestroy&&(Le._draggableDestroy(),Le._draggableDestroy=null)},{immediate:!0})}}};const nc=Sl,ba=void 0,Wa=void 0,El=void 0;function rc(De,Le,at,yt,Ut,$t,an,Cn){const On=(typeof at=="function"?at.options:at)||{};return On.__file="DraggableTreeNode.vue",On.render||(On.render=De.render,On.staticRenderFns=De.staticRenderFns,On._compiled=!0,Ut&&(On.functional=!0)),On._scopeId=yt,On}var qa=rc({},ba,nc,Wa,El),Ya=[],ic={_id:"draggable_tree_drag_placeHolder",level:null,droppable:!1,isDragPlaceHolder:!0,class:"draggable-placeholder",style:{},innerStyle:{},innerClass:"draggable-placeholder-inner",innerBackStyle:{},innerBackClass:"draggable-placeholder-inner-back"},ya={extends:wr,props:{getTriggerEl:{type:Function},draggable:{},droppable:{default:!0},crossTree:{},ondragstart:{type:Function},ondragend:{type:Function},preventSelect:{default:!0},dir:{type:String,default:"ltr"}},components:{TreeNode:qa},data:function(){return{dplh:ic,trees:Ya}},created:function(){Ya.push(this)},mounted:function(){},beforeDestroy:function(){es(Ya,this)}};const Cl=ya,sc=void 0,oc=void 0,$l=void 0;function $o(De,Le,at,yt,Ut,$t,an,Cn){const On=(typeof at=="function"?at.options:at)||{};return On.__file="DraggableTree.vue",On.render||(On.render=De.render,On.staticRenderFns=De.staticRenderFns,On._compiled=!0,Ut&&(On.functional=!0)),On._scopeId=yt,On}var Ka=$o({},sc,Cl,oc,$l);I.Tree=wr,I.TreeNode=kt,I.DraggableTree=Ka,I.DraggableTreeNode=qa,Object.defineProperty(I,"__esModule",{value:!0})})})(vueDraggableNestedTree,vueDraggableNestedTree.exports);var vueDraggableNestedTreeExports=vueDraggableNestedTree.exports;const _sfc_main$2t={props:{page:Object,depth:Number,root:Boolean,vm:Object,firstPageIsRoot:Boolean,isOpen:Boolean,hasChildren:Boolean,showSlugs:Boolean,showBlueprint:Boolean,editable:Boolean},data(){return{editing:!1}},computed:{isTopLevel(){return this.depth===1},isRoot(){if(!this.firstPageIsRoot||!this.isTopLevel)return!1;const M=this.vm.data.parent.children[0].id;return this.page.id===M},isEntry(){return!!this.page.id},isLink(){return!this.page.id&&this.page.title&&this.page.url},isText(){return this.page.title&&!this.page.url},title(){return this.page.title||this.page.entry_title||this.page.url}},methods:{getStatusClass(){switch(this.page.status){case"published":return"bg-green-600";case"draft":return"bg-gray-400 dark:bg-dark-200";default:return"bg-transparent border border-gray-600"}},getStatusTooltip(){let M=__(this.page.status)||__("Text item");return M[0].toUpperCase()+M.slice(1)},remove(){const M=this.page._vm.store;M.deleteNode(this.page),this.$emit("removed",M)},orphanChildren(){const M=this.page._vm.store;this.vm.data.children.slice().forEach($=>insertBefore($,this.vm.data)),this.$emit("children-orphaned",M)}}};var _sfc_render$2t=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex"},[$._t("branch-action",function(){return[$.editable?I("div",{staticClass:"page-move w-6"}):$._e()]},{branch:$.page}),I("div",{staticClass:"flex items-center flex-1 p-2 rtl:mr-2 ltr:ml-2 text-xs leading-normal"},[I("div",{staticClass:"flex items-center grow",on:{click:function(N){return $.$emit("branch-clicked",$.page)}}},[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusTooltip(),expression:"getStatusTooltip()"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.getStatusClass()}),$.isRoot?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("This is the root page"),expression:"__('This is the root page')"}],staticClass:"rtl:ml-2 ltr:mr-2 h-4 w-4 text-gray-800 dark:text-dark-150",attrs:{name:"home-page"}}):$._e(),I("a",{class:{"text-sm font-medium":$.isTopLevel},attrs:{href:$.page.edit_url},domProps:{textContent:$._s($.title)},on:{click:function(N){return N.preventDefault(),$.$emit("edit",N)}}}),$.showSlugs?I("span",{staticClass:"rtl:mr-2 ltr:ml-2 font-mono text-gray-700 dark:text-dark-175 text-2xs pt-px"},[$._v(" "+$._s($.isRoot?"/":$.page.slug)+" ")]):$._e(),$.hasChildren?I("button",{staticClass:"p-2 text-gray-600 dark:text-dark-175 hover:text-gray-700 dark:hover:text-dark-150 transition duration-100 outline-none flex",class:{"-rotate-90":!$.isOpen},on:{click:function(N){return N.stopPropagation(),$.$emit("toggle-open")}}},[I("svg-icon",{staticClass:"h-1.5",attrs:{name:"micro/chevron-down-xs"}})],1):$._e(),$.page.collection&&$.editable?I("div",{staticClass:"rtl:mr-4 ltr:ml-4 flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/content-writing"}}),I("div",{staticClass:"rtl:mr-1 ltr:ml-1"},[I("a",{attrs:{href:$.page.collection.create_url},domProps:{textContent:$._s($.__("Add"))}}),I("span",{staticClass:"text-gray"},[$._v("/")]),I("a",{attrs:{href:$.page.collection.edit_url},domProps:{textContent:$._s($.__("Edit"))}})])],1):$._e()],1),I("div",{staticClass:"rtl:pl-2 ltr:pr-2 flex items-center"},[$.showBlueprint&&$.page.entry_blueprint?I("div",{staticClass:"shrink text-4xs text-gray-600 dark:text-dark-175 uppercase ml-4",domProps:{textContent:$._s($.__($.page.entry_blueprint.title))}}):$._e(),$._t("branch-icon",null,{branch:$.page}),I("dropdown-list",{staticClass:"rtl:mr-4 ltr:ml-4",class:{invisible:$.isRoot,hidden:!$.editable}},[$._t("branch-options",null,{branch:$.page,depth:$.depth,removeBranch:$.remove,orphanChildren:$.orphanChildren})],2)],2)])],2)},_sfc_staticRenderFns$2t=[],__component__$2u=normalizeComponent$2(_sfc_main$2t,_sfc_render$2t,_sfc_staticRenderFns$2t,!1,null,null,null,null);const TreeBranch$1=__component__$2u.exports,_sfc_main$2s={components:{DraggableTree:vueDraggableNestedTreeExports.DraggableTree,TreeBranch:TreeBranch$1},props:{pagesUrl:{type:String,required:!0},submitUrl:{type:String},submitParameters:{type:Object,default:()=>({})},createUrl:{type:String},site:{type:String,required:!0},localizations:{type:Array},maxDepth:{type:Number,default:1/0},expectsRoot:{type:Boolean,required:!0},showSlugs:{type:Boolean,default:!1},preferencesPrefix:{type:String},editable:{type:Boolean,default:!0},blueprints:{type:Array}},data(){return{loading:!1,saving:!1,pages:[],treeData:[]}},computed:{activeLocalization(){return _.findWhere(this.localizations,{active:!0})},preferencesKey(){return this.preferencesPrefix?`${this.preferencesPrefix}.${this.site}.pagetree`:null},direction(){return this.$config.get("direction","ltr")}},watch:{site(M){this.getPages()}},created(){this.getPages().then(()=>{this.initialPages=this.pages}),this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},methods:{getPages(){this.loading=!0;const M=`${this.pagesUrl}?site=${this.site}`;return this.$axios.get(M).then($=>{this.pages=$.data.pages,this.loadTreeState(this.pages),this.updateTreeData(),this.loading=!1})},treeChanged(M,$){if(!this.validate()){this.updateTreeData();return}this.treeUpdated($)},treeUpdated(M){M=M||this.$refs.tree,this.pages=M.getPureData(),this.$emit("changed")},validate(){let M=!0;return this.traverseTree(this.treeData,($,{isRoot:I})=>{if(I&&$.children.length)return M=!1,!1}),M},cleanPagesForSubmission(M){return _.map(M,$=>({id:$.id,children:this.cleanPagesForSubmission($.children)}))},save(){if(!this.editable)return;this.saving=!0;const M={pages:this.cleanPagesForSubmission(this.pages),site:this.site,expectsRoot:this.expectsRoot,...this.submitParameters};return this.$axios.patch(this.submitUrl,M).then($=>$.data.saved?(this.$emit("saved",$),this.$toast.success(__("Saved")),this.initialPages=this.pages,this.saveTreeState(),$):this.$toast.error("Couldn't save tree")).catch($=>{let I=$.response?$.response.data.message:__("Something went wrong");if($.response&&$.response.status===422){const{errors:N}=$.response.data;I=N[Object.keys(N)[0]][0]}return this.$toast.error(I),Promise.reject($)}).finally(()=>this.saving=!1)},addPages(M,$){const I=$?$.data.children:this.treeData;M.forEach(N=>{I.push({id:N.id,entry:N.entry,title:N.title,entry_title:N.entry_title,slug:N.slug,url:N.url,edit_url:N.edit_url,status:N.status,children:[]})}),this.treeUpdated()},updateTreeData(){this.treeData=clone(this.pages)},pageRemoved(M){this.pages=M.getPureData(),this.$emit("changed")},childrenOrphaned(M){this.pages=M.getPureData(),this.$emit("changed")},localizationSelected(M){M.active||(M.exists?this.editLocalization(M):this.createLocalization(M))},editLocalization(M){window.location=M.url},createLocalization(M){console.log("todo.")},cancel(){confirm(__("Are you sure?"))&&(this.pages=this.initialPages,this.updateTreeData(),this.$emit("canceled"))},treeDragstart(M){let $=1;this.traverseTree(M,(N,{depth:B})=>{$=Math.max($,B)});const I=this.maxDepth-$;this.traverseTree(this.treeData,(N,{depth:B,isRoot:j})=>{N!==M&&this.$set(N,"droppable",!j&&B<=I)})},pageUpdated(M){this.pages=M.getPureData(),this.$emit("changed")},expandAll(){this.traverseTree(this.treeData,M=>{M.open=!0}),this.saveTreeState()},collapseAll(){this.traverseTree(this.treeData,M=>{M.open=!1}),this.saveTreeState()},loadTreeState(M){if(!this.preferencesKey)return;const $=JSON.parse(localStorage.getItem(this.preferencesKey)||"[]");this.applyTreeState($,M)},saveTreeState(){if(!this.preferencesKey)return;const M=this.getTreeState(this.treeData);return localStorage.setItem(this.preferencesKey,JSON.stringify(M))},getTreeState(M){const $=[];return this.traverseTree(M,(I,{path:N})=>{I.children.length&&!I.open&&$.push(N)}),$},applyTreeState(M,$){this.traverseTree($,(I,{path:N})=>{I.children.length&&(I.open=!M.includes(N))})},traverseTree(M,$,I=[]){(Array.isArray(M)?M:[M]).every((B,j)=>{const U=[...I,j],q=U.join("."),Y=U.length,K=this.expectsRoot&&Y===1&&j===0;return $(B,{path:q,depth:Y,index:j,isRoot:K})===!1?!1:(B.children.length&&this.traverseTree(B.children,$,U),!0)})},getNodeByBranchId(M){let $;return breadthFirstSearch(this.treeData,I=>{if(I.id===M)return $=I,!1}),$}}};var _sfc_render$2s=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"mb-2 flex justify-end"},[I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Expand All"))},on:{click:$.expandAll}}),I("a",{staticClass:"text-2xs text-blue rtl:ml-2 ltr:mr-2 underline",domProps:{textContent:$._s($.__("Collapse All"))},on:{click:$.collapseAll}})]),$.loading?I("div",{staticClass:"loading card"},[I("loading-graphic")],1):$._e(),!$.loading&&$.pages.length==0?I("div",{staticClass:"no-results w-full flex items-center"},[$._t("empty")],2):$._e(),$.loading?$._e():I("div",{staticClass:"page-tree w-full"},[I("draggable-tree",{ref:"tree",attrs:{draggable:$.editable,data:$.treeData,space:1,indent:24,dir:$.direction},on:{change:$.treeChanged,drag:$.treeDragstart,nodeOpenChanged:$.saveTreeState},scopedSlots:$._u([{key:"default",fn:function({data:N,store:B,vm:j}){var U;return I("tree-branch",{ref:`branch-${N.id}`,attrs:{page:N,depth:j.level,vm:j,"first-page-is-root":$.expectsRoot,"is-open":N.open,"has-children":N.children.length>0,"show-slugs":$.showSlugs,"show-blueprint":((U=$.blueprints)==null?void 0:U.length)>1,editable:$.editable},on:{edit:function(q){return $.$emit("edit-page",N,j,B,q)},"toggle-open":function(q){return B.toggleOpen(N)},removed:$.pageRemoved,"children-orphaned":$.childrenOrphaned,"branch-clicked":function(q){return $.$emit("branch-clicked",N)}},scopedSlots:$._u([{key:"branch-action",fn:function(q){return[$._t("branch-action",null,null,{...q,vm:j})]}},{key:"branch-icon",fn:function(q){return[$._t("branch-icon",null,null,{...q,vm:j})]}},{key:"branch-options",fn:function(q){return[$._t("branch-options",null,null,{...q,vm:j})]}}],null,!0)})}}],null,!1,2662312823)})],1)])},_sfc_staticRenderFns$2s=[],__component__$2t=normalizeComponent$2(_sfc_main$2s,_sfc_render$2s,_sfc_staticRenderFns$2s,!1,null,null,null,null);const PageTree=__component__$2t.exports,_sfc_main$2r={mixins:[HasFilters],components:{PageTree},props:{filtersUrl:String,selectionsUrl:String,initialSelections:Array,initialSortColumn:String,initialSortDirection:String,maxSelections:Number,site:String,search:Boolean,type:String,name:String,exclusions:{type:Array,default:()=>[]},initialColumns:{type:Array,default:()=>[]},tree:Object},data(){return{source:null,initializing:!0,loading:!0,items:[],meta:{},filters:[],sortColumn:this.initialSortColumn,sortDirection:this.initialSortDirection,page:1,selections:_.clone(this.initialSelections),columns:this.initialColumns,visibleColumns:this.initialColumns.filter(M=>M.visible),view:"list",lastItemClicked:null}},computed:{parameters(){return{sort:this.sortColumn,order:this.sortDirection,page:this.page,site:this.site,exclusions:this.exclusions,filters:utf8btoa(JSON.stringify(this.activeFilters)),columns:this.visibleColumns.map(M=>M.field).join(",")}},hasMaxSelections(){return this.maxSelections===1/0?!1:!!this.maxSelections},reachedSelectionLimit(){return this.selections.length===this.maxSelections},singleSelect(){return this.maxSelections===1},canUseTree(){return!!this.tree},initialView(){if(!this.canUseTree)return"list";const M=this.canUseTree?"tree":"list";return localStorage.getItem(this.viewLocalStorageKey)||M},viewLocalStorageKey(){return`statamic.selector.field.${this.name}`}},mounted(){this.view=this.initialView,this.getFilters().then(()=>{this.autoApplyFilters(this.filters),this.initialRequest()})},watch:{parameters:{deep:!0,handler(M,$){this.initializing||JSON.stringify($)!==JSON.stringify(M)&&this.request()}},loading:{immediate:!0,handler(M){this.$progress.loading("relationship-selector-listing",M)}},searchQuery(M){this.sortColumn=null,this.sortDirection=null,this.page=1,this.request()},selections(){this.maxSelections===1&&this.selections.length===1&&this.select()},view(M){localStorage.setItem(this.viewLocalStorageKey,M)}},methods:{getFilters(){return this.filtersUrl?this.$axios.get(this.filtersUrl).then(M=>{this.filters=M.data}):Promise.resolve()},initialRequest(){return this.request().then(()=>{this.search&&this.view==="list"&&this.$refs.search.focus()})},request(){this.loading=!0,this.source&&this.source.cancel(),this.source=this.$axios.CancelToken.source();const M={...this.parameters,search:this.searchQuery};return this.$axios.get(this.selectionsUrl,{params:M,cancelToken:this.source.token}).then($=>{this.columns=$.data.meta.columns,this.items=$.data.data,this.meta=$.data.meta,this.activeFilterBadges={...$.data.meta.activeFilterBadges},this.loading=!1,this.initializing=!1}).catch($=>{this.$axios.isCancel($)||(this.loading=!1,this.initializing=!1,this.$toast.error($.response?$.response.data.message:__("Something went wrong"),{duration:null}))})},sorted(M,$){this.sortColumn=M,this.sortDirection=$},setPage(M){this.page=M},select(){this.$emit("selected",this.selections),this.close()},close(){this.$emit("closed")},selectionsUpdated(M){this.selections=M},getStatusClass(M){return M.published&&M.private?"bg-transparent border border-gray-600":M.published?"bg-green-600":"bg-gray-400"},getStatusLabel(M){if(M.status==="published")return __("Published");if(M.status==="scheduled")return __("Scheduled");if(M.status==="expired")return __("Expired");if(M.status==="draft")return __("Draft")},getStatusTooltip(M){if(M.status==="published")return M.collection.dated?__("messages.status_published_with_date",{date:M.date}):null;if(M.status==="scheduled")return __("messages.status_scheduled_with_date",{date:M.date});if(M.status==="expired")return __("messages.status_expired_with_date",{date:M.date});if(M.status==="draft")return null},columnShowing(M){return this.visibleColumns.find($=>$.field===M)},isRedirectBranch(M){return M.redirect!=null},isSelected(M){return this.selections.includes(M)},toggleSelection(M){const $=this.selections.indexOf(M);if($>-1){this.selections.splice($,1);return}this.singleSelect&&this.selections.pop(),this.reachedSelectionLimit||this.selections.push(M)},checkboxClicked(M,$,I){I.shiftKey&&this.lastItemClicked!==null?this.selectRange(Math.min(this.lastItemClicked,$),Math.max(this.lastItemClicked,$)):this.toggleSelection(M.id,$),I.target.checked&&(this.lastItemClicked=$)}}};var _sfc_render$2r=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full bg-white dark:bg-dark-800"},[$.initializing?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),!$.initializing&&$.view==="list"?I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection,selections:$.selections,"max-selections":$.maxSelections},on:{"selections-updated":$.selectionsUpdated},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"flex flex-col h-full"},[I("div",{staticClass:"bg-white dark:bg-dark-800 z-1"},[I("div",{staticClass:"py-2 px-4 flex items-center justify-between"},[I("data-list-search",{ref:"search",staticClass:"h-8 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(N){$.searchQuery=N},expression:"searchQuery"}}),$.canUseTree?I("div",{staticClass:"btn-group rtl:mr-4 ltr:ml-4"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Tree"),expression:"__('Tree')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="tree"},on:{click:function(N){$.view="tree"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/structures"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("List"),expression:"__('List')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="list"},on:{click:function(N){$.view="list"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)]):$._e()],1),I("div",[I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery},on:{changed:function(N){return $.filterChanged(N,!1)}}})],1)]),I("div",{staticClass:"flex-1 flex flex-col min-h-0"},[I("div",{staticClass:"flex flex-col h-full justify-start"},[I("div",{staticClass:"flex-1 overflow-scroll"},[I("data-list-table",{staticClass:"cursor-pointer",attrs:{loading:$.loading,"allow-bulk-actions":!0,"toggle-selection-on-row-click":!0,type:$.type},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-title",fn:function({row:N}){return[I("div",{staticClass:"flex items-center"},[N.status&&!$.columnShowing("status")?I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusLabel(N),expression:"getStatusLabel(entry)"}],staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:$.getStatusClass(N)}):$._e(),$._v(" "+$._s(N.title)+" ")])]}},{key:"cell-status",fn:function({row:N}){return[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.getStatusTooltip(N),expression:"getStatusTooltip(entry)"}],staticClass:"status-index-field select-none",class:`status-${N.status}`,domProps:{textContent:$._s($.getStatusLabel(N))}})]}},{key:"cell-url",fn:function({row:N}){return[I("span",{staticClass:"text-2xs"},[$._v($._s(N.url))])]}}],null,!0)})],1),$.meta.last_page>1?I("data-list-pagination",{staticClass:"border-t shadow-lg",attrs:{"resource-meta":$.meta,inline:!0,"scroll-to-top":!1},on:{"page-selected":$.setPage}}):$._e(),I("div",{staticClass:"p-4 border-t dark:border-dark-200 flex items-center justify-between bg-gray-200 dark:bg-dark-500"},[I("div",{staticClass:"text-sm text-gray-700 dark:text-dark-150",domProps:{textContent:$._s($.hasMaxSelections?$.__n(":count/:max selected",$.selections,{max:$.maxSelections}):$.__n(":count item selected|:count items selected",$.selections))}}),I("div",[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),!$.hasMaxSelections||$.maxSelections>1?I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",attrs:{type:"button"},on:{click:$.select}},[$._v(" "+$._s($.__("Select"))+" ")]):$._e()])])],1)])])}}],null,!1,3632656041)}):$._e(),!$.initializing&&$.canUseTree&&$.view==="tree"?[I("div",{staticClass:"flex flex-col h-full"},[I("div",{staticClass:"bg-white dark:bg-dark-550 shadow px-4 py-2 z-1 h-13 flex items-center justify-end"},[I("h1",{staticClass:"flex-1 flex items-center text-xl"},[$._v($._s($.tree.title))]),I("div",{staticClass:"btn-group rtl:mr-4 ltr:ml-4"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Tree"),expression:"__('Tree')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="tree"},on:{click:function(N){$.view="tree"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/structures"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("List"),expression:"__('List')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="list"},on:{click:function(N){$.view="list"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)])]),I("div",{staticClass:"flex-1 flex flex-col min-h-0"},[I("div",{staticClass:"flex flex-col h-full justify-start"},[I("div",{staticClass:"flex-1 overflow-scroll bg-gray-200 dark:bg-dark-800 p-4"},[I("page-tree",{ref:"tree",attrs:{"pages-url":$.tree.url,"show-slugs":$.tree.showSlugs,blueprints:$.tree.blueprints,"expects-root":$.tree.expectsRoot,site:$.site,"preferences-prefix":`selector-field.${$.name}`,editable:!1},on:{"branch-clicked":function(N){$.$refs[`tree-branch-${N.id}`].click()}},scopedSlots:$._u([{key:"branch-action",fn:function({branch:N,index:B}){return[I("div",[I("input",{ref:`tree-branch-${N.id}`,staticClass:"mt-3 rtl:mr-3 ltr:ml-3",attrs:{type:"checkbox",disabled:$.reachedSelectionLimit&&!$.singleSelect&&!$.isSelected(N.id),id:`checkbox-${N.id}`},domProps:{value:N.id,checked:$.isSelected(N.id)},on:{click:function(j){return $.checkboxClicked(N,B,j)}}})])]}},{key:"branch-icon",fn:function({branch:N}){return[$.isRedirectBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Redirect"),expression:"__('Redirect')"}],staticClass:"inline-block w-4 h-4 text-gray-500 dark:text-dark-175",attrs:{name:"light/external-link"}}):$._e()]}}],null,!1,3448798175)})],1),I("div",{staticClass:"p-4 border-t dark:border-dark-200 flex items-center justify-between bg-gray-200 dark:bg-dark-500"},[I("div",{staticClass:"text-sm text-gray-700",domProps:{textContent:$._s($.hasMaxSelections?$.__n(":count/:max selected",$.selections,{max:$.maxSelections}):$.__n(":count item selected|:count items selected",$.selections))}}),I("div",[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),!$.hasMaxSelections||$.maxSelections>1?I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",attrs:{type:"button"},on:{click:$.select}},[$._v(" "+$._s($.__("Select"))+" ")]):$._e()])])])])])]:$._e()],2)},_sfc_staticRenderFns$2r=[],__component__$2s=normalizeComponent$2(_sfc_main$2r,_sfc_render$2r,_sfc_staticRenderFns$2r,!1,null,null,null,null);const ItemSelector=__component__$2s.exports,_sfc_main$2q={mixins:[InlinePublishForm],props:{site:String,itemUrl:String},data(){return{creating:!0,method:"post",action:"store",title:__("Create")}},inject:["storeName"],methods:{saved(M){this.$emit("created",M.data.data),this.$nextTick(()=>this.close())}}},_sfc_render$2q=null,_sfc_staticRenderFns$2q=null;var __component__$2r=normalizeComponent$2(_sfc_main$2q,_sfc_render$2q,_sfc_staticRenderFns$2q,!1,null,null,null,null);const InlineCreateForm=__component__$2r.exports,_sfc_main$2p={components:{InlineCreateForm},props:{site:String,creatables:Array,component:String,componentProps:Object,stackSize:String},data(){return{creatable:null}},computed:{isCreating(){return this.creatable!==null}},methods:{itemCreated(M){this.stopCreating(),this.$emit("created",M)},stopCreating(){this.creatable=null},create(){this.creatables.length===1&&this.select(this.creatables[0])},select(M){this.creatable=M}}};var _sfc_render$2p=function M(){var $=this,I=$._self._c;return I("div",[I("dropdown-list",{attrs:{disabled:$.creatables.length===1},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"text-button text-blue dark:text-dark-blue-100 hover:text-gray-800 dark:hover:text-dark-100 rtl:ml-6 ltr:mr-6 flex items-center outline-none",on:{click:$.create}},[I("svg-icon",{staticClass:"rtl:ml-1 ltr:mr-1 h-4 w-4 flex items-center",attrs:{name:"light/content-writing"}}),I("span",{staticClass:"hidden @sm:block",domProps:{textContent:$._s($.__("Create & Link Item"))}}),I("span",{staticClass:"@sm:hidden",domProps:{textContent:$._s($.__("Create"))}})],1)]},proxy:!0}])},$._l($.creatables,function(N){return I("dropdown-item",{key:N.url,attrs:{text:N.title},on:{click:function(B){return $.select(N)}}})}),1),$.isCreating?I("inline-create-form",{attrs:{site:$.site,"item-url":$.creatable.url,component:$.component,"component-props":$.componentProps,"stack-size":$.stackSize},on:{created:$.itemCreated,closed:$.stopCreating}}):$._e()],1)},_sfc_staticRenderFns$2p=[],__component__$2q=normalizeComponent$2(_sfc_main$2p,_sfc_render$2p,_sfc_staticRenderFns$2p,!1,null,null,null,null);const CreateButton=__component__$2q.exports,SelectField_vue_vue_type_style_index_0_scoped_a70a6e36_lang="",_sfc_main$2o={mixins:[PositionsSelectOptions],components:{SortableList,SortableItem},props:{items:Array,url:String,typeahead:Boolean,multiple:Boolean,taggable:Boolean,config:Object,readOnly:Boolean,site:String},data(){return{options:[]}},computed:{isTaggable(){return data_get(this.config,"create")===!1?!1:this.taggable},parameters(){return{site:this.site,paginate:!1,columns:"title,id"}}},created(){this.typeahead||this.request()},watch:{parameters(M){this.typeahead||this.request()}},methods:{request(M={}){return M={...this.parameters,...M},this.$axios.get(this.url,{params:M}).then($=>(this.options=$.data.data,Promise.resolve($)))},search(M,$){this.typeahead&&($(!0),this.request({search:M}).then(I=>$(!1)))},input(M){this.multiple||(M=M===null?[]:[M]),this.$emit("input",M)},createOption(M){return this.options.find(I=>I.title===M)||{id:M,title:M}}}};var _sfc_render$2o=function M(){var $=this,I=$._self._c;return I("div",[I("v-select",{ref:"input",attrs:{label:"title","append-to-body":"","calculate-position":$.positionOptions,"close-on-select":!0,disabled:$.readOnly,multiple:$.multiple,options:$.options,"get-option-key":N=>N.id,"get-option-label":N=>$.__(N.title),"create-option":N=>$.createOption(N),placeholder:$.__($.config.placeholder)||$.__("Choose..."),searchable:!0,taggable:$.isTaggable,value:$.items},on:{input:$.input,search:$.search,"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([{key:"option",fn:function({title:N,hint:B,status:j}){return[I("div",{staticClass:"flex justify-between items-center"},[I("div",{staticClass:"flex items-center"},[j?I("div",{staticClass:"little-dot rtl:ml-2 ltr:mr-2 hidden@sm:block",class:j}):$._e(),I("div",{domProps:{textContent:$._s(N)}})]),B?I("div",{staticClass:"text-4xs text-gray-600 uppercase whitespace-nowrap",domProps:{textContent:$._s(B)}}):$._e()])]}},$.multiple?{key:"selected-option-container",fn:function(){return[I("i",{staticClass:"hidden"})]},proxy:!0}:null,$.multiple?{key:"search",fn:function({events:N,attributes:B}){return[I("input",$._g($._b({staticClass:"vs__search",attrs:{placeholder:$.__($.config.placeholder)||$.__("Choose..."),type:"search"}},"input",B,!1),N))]}}:null,{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0}],null,!0)})],1)},_sfc_staticRenderFns$2o=[],__component__$2p=normalizeComponent$2(_sfc_main$2o,_sfc_render$2o,_sfc_staticRenderFns$2o,!1,null,"a70a6e36",null,null);const RelationshipSelectField=__component__$2p.exports,_sfc_main$2n={props:{name:String,value:{required:!0},config:Object,data:Array,maxItems:Number,itemComponent:{type:String,default:"RelatedItem"},itemDataUrl:String,filtersUrl:String,selectionsUrl:String,statusIcons:Boolean,site:String,search:Boolean,canEdit:Boolean,canCreate:Boolean,canReorder:Boolean,readOnly:Boolean,exclusions:Array,creatables:Array,formComponent:String,formComponentProps:Object,formStackSize:String,mode:{type:String,default:"default"},taggable:Boolean,columns:{type:Array,default:()=>[]},tree:Object,initialSortColumn:{type:String,default:"title"},initialSortDirection:{type:String,default:"asc"}},components:{ItemSelector,RelatedItem,CreateButton,RelationshipSelectField},data(){return{isSelecting:!1,isCreating:!1,itemData:[],initializing:!0,loading:!0,inline:!1,sortable:null}},computed:{items(){var M;return this.value===null?[]:(M=this.value)==null?void 0:M.map($=>{const I=_.find(this.data,N=>N.id==$);return I||{id:$,title:$}})},maxItemsReached(){var M;return((M=this.value)==null?void 0:M.length)>=this.maxItems},canSelectOrCreate(){return!this.usesSelectField&&!this.readOnly&&!this.maxItemsReached},usesSelectField(){return["select","typeahead"].includes(this.mode)},shouldShowSelectedItems(){return!(this.initializing||this.usesSelectField&&this.maxItems===1)}},mounted(){this.initializeData().then(()=>{this.initializing=!1,this.canReorder&&this.$nextTick(()=>this.makeSortable())})},beforeDestroy(){this.sortable&&(this.sortable.destroy(),this.sortable=null),this.setLoadingProgress(!1)},watch:{loading:{immediate:!0,handler(M){this.$emit("loading",M),this.setLoadingProgress(M)}},isSelecting(M){this.$emit(M?"focus":"blur")},itemData(M,$){this.initializing||this.$emit("item-data-updated",M)}},methods:{update(M){JSON.stringify(M)!=JSON.stringify(this.value)&&this.$emit("input",M)},remove(M){this.update([...this.value.slice(0,M),...this.value.slice(M+1)])},selectionsUpdated(M){this.getDataForSelections(M).then(()=>{this.update(M)})},initializeData(){return this.data?(this.loading=!1,Promise.resolve()):this.getDataForSelections(this.selections)},getDataForSelections(M){return this.loading=!0,this.$axios.post(this.itemDataUrl,{site:this.site,selections:M}).then($=>{this.$emit("item-data-updated",$.data.data)}).finally(()=>{this.loading=!1})},makeSortable(){this.sortable=new draggable_bundleExports.Sortable(this.$refs.items,{draggable:".item",handle:".item-move",mirror:{constrainDimensions:!0,xAxis:!1,appendTo:"body"},swapAnimation:{vertical:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation]}).on("drag:start",M=>{this.value.length===1?M.cancel():this.$emit("focus")}).on("drag:stop",M=>{this.$emit("blur")}).on("sortable:stop",M=>{const $=[...this.value];$.splice(M.newIndex,0,$.splice(M.oldIndex,1)[0]),this.update($)})},itemCreated(M){this.$emit("item-data-updated",[...this.data,M]),this.update([...this.value,M.id])},selectFieldSelected(M){this.$emit("item-data-updated",M),this.update(M.map($=>$.id))},setLoadingProgress(M){this.$progress.loading(`relationship-fieldtype-${this._uid}`,M)}}};var _sfc_render$2n=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relationship-input",class:{"relationship-input-empty":$.items.length==0}},[!$.initializing&&$.usesSelectField?I("relationship-select-field",{attrs:{config:$.config,items:$.items,multiple:$.maxItems>1,typeahead:$.mode==="typeahead",taggable:$.taggable,"read-only":$.readOnly,url:$.selectionsUrl,site:$.site},on:{input:$.selectFieldSelected,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}):$._e(),$.initializing?I("loading-graphic",{attrs:{inline:!0}}):$._e(),$.shouldShowSelectedItems?[I("div",{ref:"items",staticClass:"relationship-input-items space-y-1 outline-none",class:{"mt-4":$.usesSelectField&&$.items.length}},$._l($.items,function(N,B){return I($.itemComponent,{key:N.id,tag:"component",staticClass:"item outline-none",attrs:{item:N,config:$.config,"status-icon":$.statusIcons,editable:$.canEdit,sortable:!$.readOnly&&$.canReorder,"read-only":$.readOnly,"form-component":$.formComponent,"form-component-props":$.formComponentProps,"form-stack-size":$.formStackSize},on:{removed:function(j){return $.remove(B)}}})}),1),$.maxItemsReached&&$.maxItems!=1?I("div",{staticClass:"py-2 text-xs text-gray"},[I("span",[$._v($._s($.__("Maximum items selected:")))]),I("span",[$._v($._s($.maxItems)+"/"+$._s($.maxItems))])]):$._e(),$.canSelectOrCreate?I("div",{staticClass:"relationship-input-buttons relative @container",class:{"mt-4":$.items.length>0}},[I("div",{staticClass:"flex flex-wrap items-center text-sm -mb-2"},[I("div",{staticClass:"relative mb-2"},[$.canCreate&&$.creatables.length?I("create-button",{attrs:{creatables:$.creatables,site:$.site,component:$.formComponent,"component-props":$.formComponentProps,"stack-size":$.formStackSize},on:{created:$.itemCreated}}):$._e()],1),I("button",{ref:"existing",staticClass:"text-blue dark:text-dark-blue-100 hover:text-gray-800 dark:hover:text-dark-100 flex items-center mb-2 outline-none",on:{click:function(N){N.preventDefault(),$.isSelecting=!0}}},[I("svg-icon",{staticClass:"rtl:ml-1 ltr:mr-1 h-4 w-4 flex items-center",attrs:{name:"light/hyperlink"}}),I("span",{staticClass:"hidden @sm:block",domProps:{textContent:$._s($.__("Link Existing Item"))}}),I("span",{staticClass:"@sm:hidden",domProps:{textContent:$._s($.__("Link"))}})],1)])]):$._e(),$.isSelecting?I("stack",{attrs:{name:"item-selector"},on:{closed:function(N){$.isSelecting=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){var B;return I("item-selector",{attrs:{name:$.name,"filters-url":$.filtersUrl,"selections-url":$.selectionsUrl,site:$.site,"initial-columns":$.columns,"initial-sort-column":$.initialSortColumn,"initial-sort-direction":$.initialSortDirection,"initial-selections":$.value,"max-selections":$.maxItems,search:$.search,exclusions:$.exclusions,type:$.config.type,tree:((B=$.config.query_scopes)==null?void 0:B.length)>0?null:$.tree},on:{selected:$.selectionsUpdated,closed:N}})}}],null,!1,1666908287)}):$._e(),$.name?I("input",{attrs:{type:"hidden",name:$.name},domProps:{value:JSON.stringify($.value)}}):$._e()]:$._e()],2)},_sfc_staticRenderFns$2n=[],__component__$2o=normalizeComponent$2(_sfc_main$2n,_sfc_render$2n,_sfc_staticRenderFns$2n,!1,null,null,null,null);const RelationshipInput=__component__$2o.exports,_sfc_main$2m={mixins:[Fieldtype$1],methods:{inputUpdated(M){if(!this.config.debounce)return this.update(M);this.updateDebounced(M)}}};var _sfc_render$2m=function M(){var $=this,I=$._self._c;return I("text-input",{ref:"input",attrs:{value:$.value,classes:$.config.classes,focus:$.config.focus||$.name==="title"||$.name==="alt",autocomplete:$.config.autocomplete,autoselect:$.config.autoselect,type:$.config.input_type,isReadOnly:$.isReadOnly,prepend:$.__($.config.prepend),append:$.__($.config.append),limit:$.config.character_limit,placeholder:$.__($.config.placeholder),name:$.name,id:$.fieldId,direction:$.config.direction},on:{input:$.inputUpdated,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$2m=[],__component__$2n=normalizeComponent$2(_sfc_main$2m,_sfc_render$2m,_sfc_staticRenderFns$2m,!1,null,null,null,null);const TextFieldtype=__component__$2n.exports,_sfc_main$2l={mixins:[Fieldtype$1]};var _sfc_render$2l=function M(){var $=this,I=$._self._c;return I("textarea-input",{attrs:{focus:$.config.focus,name:$.name,isReadOnly:$.isReadOnly,limit:$.config.character_limit||null,placeholder:$.__($.config.placeholder),value:$.value,id:$.fieldId},on:{blur:function(N){return $.$emit("blur")},focus:function(N){return $.$emit("focus")},input:$.updateDebounced}})},_sfc_staticRenderFns$2l=[],__component__$2m=normalizeComponent$2(_sfc_main$2l,_sfc_render$2l,_sfc_staticRenderFns$2l,!1,null,null,null,null);const TextareaFieldtype=__component__$2m.exports,_sfc_main$2k={mixins:[Fieldtype$1],data(){return{slug:this.value,generate:this.config.generate,syncing:!1}},computed:{separator(){return this.config.separator||"-"},store(){let M,$=this;for(;!$.storeName;)if($=$.$parent,M=$.storeName,$===this.$root)return null;return M},source(){if(!this.generate)return;const M=this.config.from||"title";let $=M;return this.fieldPathPrefix&&($=this.fieldPathPrefix.replace(new RegExp("."+this.handle+"$"),"")+"."+M),data_get$1(this.$store.state.publish[this.store].values,$)},language(){if(!this.store)return;const M=this.$store.state.publish[this.store].site;return M?Statamic.$config.get("sites").find($=>$.handle===M).lang:null}},watch:{value(M){this.slug=M},slug(M){this.updateDebounced(M)}},created(){this.$events.$on("localization.created",this.handleLocalizationCreated)},destroyed(){this.$events.$off("localization.created",this.handleLocalizationCreated)},mounted(){this.config.required&&!this.value&&this.update(this.$refs.slugify.slug)},methods:{handleLocalizationCreated({store:M}){this.handle==="slug"&&M===this.store&&this.$refs.slugify.reset()},sync(){this.$refs.slugify.reset()}}};var _sfc_render$2k=function M(){var $=this,I=$._self._c;return I("slugify",{ref:"slugify",attrs:{enabled:$.generate,from:$.source,separator:$.separator,language:$.language,async:$.config.async},on:{slugifying:function(N){$.syncing=!0},slugified:function(N){$.syncing=!1}},model:{value:$.slug,callback:function(N){$.slug=N},expression:"slug"}},[I("div",[I("text-input",{attrs:{classes:"font-mono text-xs",isReadOnly:$.isReadOnly,append:$.config.show_regenerate,name:$.slug,id:$.fieldId,direction:"ltr"},on:{focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}},scopedSlots:$._u([$.config.show_regenerate?{key:"append",fn:function(){return[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Regenerate from: :field",{field:$.config.from}),expression:"__('Regenerate from: :field', { 'field': config.from })"}],staticClass:"input-group-append items-center flex",on:{click:$.sync}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.syncing,expression:"!syncing"}],staticClass:"w-5 h-5",attrs:{name:"light/synchronize"}}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.syncing,expression:"syncing"}],staticClass:"w-5 h-5"},[I("loading-graphic",{staticClass:"mt-0.5 ml-0.5",attrs:{inline:"",text:""}})],1)],1)]},proxy:!0}:null],null,!0),model:{value:$.slug,callback:function(N){$.slug=N},expression:"slug"}})],1)])},_sfc_staticRenderFns$2k=[],__component__$2l=normalizeComponent$2(_sfc_main$2k,_sfc_render$2k,_sfc_staticRenderFns$2k,!1,null,null,null,null);const SlugFieldtype=__component__$2l.exports,_sfc_main$2j={mixins:[Fieldtype,SortableHelpers],components:{SortableList,SortableItem},data(){return{data:this.objectToSortable(this.value||[]),selectedKey:Object.keys(this.value)[0],deleting:!1}},watch:{data:{deep:!0,handler(M){this.updateDebounced(this.sortableToObject(M))}},value(M){JSON.stringify(M)!=JSON.stringify(this.sortableToObject(this.data))&&(this.data=this.objectToSortable(M))}},computed:{keys(){return this.meta.keys||this.config.keys},isKeyed(){return!!Object.keys(this.keys).length},isDynamic(){return!this.isKeyed},isSingle(){return this.config.mode==="single"},keyedData(){return this.data.filter(M=>this.keys.hasOwnProperty(M.key))},maxItems(){return this.config.max_items||null},valueCount(){return this.data.length},atMax(){return this.maxItems?this.valueCount>=this.maxItems:!1},addButton(){return __(this.config.add_button||"Add Row")},keyHeader(){return __(this.config.key_header||"Key")},valueHeader(){return __(this.config.value_header||"Value")},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return _.reduce(this.value,(M,$,I)=>{let N=`${I}: ${$}`;return M&&(N=M+", "+N),N},"")}},methods:{addValue(){this.data.push(this.newSortableValue()),this.$nextTick(()=>{this.$el.querySelector("tr:last-child input").focus()})},confirmDeleteValue(M){this.deleting=M},deleteOrConfirm(M){this.data[M].key===null&&this.data[M].value===null?this.deleteValue(M):this.confirmDeleteValue(M)},deleteValue(M){this.deleting=!1,this.data.splice(M,1)},deleteCancelled(){this.deleting=!1},setKey(M){this.selectedKey=M}}};var _sfc_render$2j=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"array-fieldtype-container"},[$.isSingle?I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("select",{staticClass:"bg-transparent appearance-none shadow-none outline-none border-0 text-sm",on:{input:function(N){return $.setKey(N.target.value)}}},$._l($.keyedData,function(N,B){return I("option",{key:N._id,domProps:{value:N.key,selected:N.key===$.selectedKey,textContent:$._s($.keys[N.key]||N.key)}})}),0),I("svg-icon",{staticClass:"w-2 rtl:mr-2 ltr:ml-2",attrs:{name:"micro/chevron-down-xs"}})],1),$._l($.keyedData,function(N,B){return N.key===$.selectedKey?I("input",{directives:[{name:"model",rawName:"v-model",value:$.data[B].value,expression:"data[index].value"}],key:N._id,staticClass:"input-text",attrs:{type:"text",id:$.fieldId+"__"+N.key,readonly:$.isReadOnly},domProps:{value:$.data[B].value},on:{input:function(j){j.target.composing||$.$set($.data[B],"value",j.target.value)}}}):$._e()})],2)]):$.isKeyed?I("div",{staticClass:"array-table-wrapper"},[I("table",{staticClass:"array-table"},[I("tbody",$._l($.keyedData,function(N,B){return $.data?I("tr",{key:N._id},[I("th",{staticClass:"w-1/4"},[I("label",{attrs:{for:$.fieldId+"__"+N.key}},[$._v($._s($.keys[N.key]||N.key))])]),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.data[B].value,expression:"data[index].value"}],staticClass:"input-text-minimal",attrs:{type:"text",id:$.fieldId+"__"+N.key,readonly:$.isReadOnly},domProps:{value:$.data[B].value},on:{input:function(j){j.target.composing||$.$set($.data[B],"value",j.target.value)}}})])]):$._e()}),0)])]):$.isDynamic?[I("div",{staticClass:"table-field"},[$.valueCount?I("table",{staticClass:"table-fieldtype-table"},[I("thead",[I("tr",[$.isReadOnly?$._e():I("th",{staticClass:"grid-drag-handle-header"}),I("th",{staticClass:"w-1/4"},[$._v($._s($.keyHeader))]),I("th",{},[$._v($._s($.valueHeader))]),$.isReadOnly?$._e():I("th",{staticClass:"row-controls"})])]),I("sortable-list",{attrs:{vertical:!0,"item-class":"sortable-row","handle-class":"sortable-handle",mirror:!1},model:{value:$.data,callback:function(N){$.data=N},expression:"data"}},[I("tbody",$._l($.data,function(N,B){return I("tr",{key:N._id,staticClass:"sortable-row"},[$.isReadOnly?$._e():I("td",{staticClass:"sortable-handle table-drag-handle"}),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.key,expression:"element.key"}],staticClass:"input-text font-bold",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.key},on:{input:function(j){j.target.composing||$.$set(N,"key",j.target.value)}}})]),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.value,expression:"element.value"}],staticClass:"input-text",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.value},on:{input:function(j){j.target.composing||$.$set(N,"value",j.target.value)}}})]),$.isReadOnly?$._e():I("td",{staticClass:"row-controls"},[I("a",{staticClass:"inline opacity-25 text-lg antialiased hover:opacity-75",on:{click:function(j){return $.deleteOrConfirm(B)}}},[$._v("×")])])])}),0)])],1):$._e(),$.isReadOnly?$._e():I("button",{staticClass:"btn",attrs:{disabled:$.atMax},on:{click:$.addValue}},[$._v(" "+$._s($.addButton)+" ")]),$.deleting!==!1?I("confirmation-modal",{attrs:{title:$.__("Delete Value"),bodyText:$.__("Are you sure you want to delete this value?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:function(N){return $.deleteValue($.deleting)},cancel:$.deleteCancelled}}):$._e()],1)]:$._e()],2)},_sfc_staticRenderFns$2j=[],__component__$2k=normalizeComponent$2(_sfc_main$2j,_sfc_render$2j,_sfc_staticRenderFns$2j,!1,null,null,null,null);const ArrayFieldtype=__component__$2k.exports,Asset={components:{AssetEditor},props:{asset:Object,readOnly:Boolean,showFilename:{type:Boolean,default:!0},showSetAlt:{type:Boolean,default:!0}},data(){return{editing:!1}},computed:{isImage(){return this.asset.isImage},canShowSvg(){return this.asset.extension==="svg"},container(){return this.asset.id.substr(0,this.asset.id.indexOf("::"))},canBeTransparent(){return["png","svg","webp","avif"].includes(this.asset.extension)},canDownload(){return Statamic.$permissions.has(`view ${this.container} assets`)},thumbnail(){return this.asset.thumbnail},label(){return this.asset.basename},needsAlt(){return(this.asset.isImage||this.asset.isSvg)&&!this.asset.values.alt}},methods:{edit(){this.readOnly||(this.editing=!0)},remove(){this.readOnly||this.$emit("removed",this.asset)},open(){if(!this.asset.url)return this.download();window.open(this.asset.url,"_blank")},download(){window.open(this.asset.downloadUrl)},closeEditor(){this.editing=!1},assetSaved(M){this.$emit("updated",M),this.closeEditor()},actionCompleted(M,$){if(M===!1)return;const I=$.ids[0]||null;I&&I!==this.asset.id&&this.$emit("id-changed",I),this.closeEditor()}}},_sfc_main$2i={mixins:[Asset],methods:{editOrOpen(){return this.readOnly?this.open():this.edit()}}};var _sfc_render$2i=function M(){var $=this,I=$._self._c;return I("tr",{staticClass:"cursor-grab bg-white dark:bg-dark-750 hover:bg-gray-100 dark:hover:bg-dark-700"},[I("td",{staticClass:"flex items-center h-full"},[$.canShowSvg?I("div",{staticClass:"img svg-img h-7 w-7 bg-no-repeat bg-center bg-cover text-center flex items-center justify-center",style:"background-image:url("+$.thumbnail+")"}):I("button",{staticClass:"w-7 h-7 cursor-pointer whitespace-nowrap flex items-center justify-center",on:{click:$.editOrOpen}},[$.isImage?I("img",{staticClass:"asset-thumbnail max-h-full max-w-full rounded w-7 h-7 object-cover",attrs:{loading:"lazy",src:$.thumbnail,alt:$.asset.basename}}):I("file-icon",{staticClass:"w-7 h-7",attrs:{extension:$.asset.extension}})],1),$.showFilename?I("button",{staticClass:"flex items-center flex-1 rtl:mr-3 ltr:ml-3 text-xs rtl:text-right ltr:text-left truncate w-full",attrs:{title:$.__("Edit"),"aria-label":$.__("Edit Asset")},on:{click:$.editOrOpen}},[$._v(" "+$._s($.asset.basename)+" ")]):$._e(),$.showSetAlt&&$.needsAlt?I("button",{staticClass:"asset-set-alt text-blue dark:text-dark-blue-100 px-4 text-sm hover:text-black dark:hover:text-dark-100",attrs:{type:"button"},on:{click:$.editOrOpen}},[$._v(" "+$._s($.asset.values.alt?"✅":$.__("Set Alt"))+" ")]):$._e(),I("div",{staticClass:"hidden @xs:inline asset-filesize text-xs text-gray-600 px-2",domProps:{textContent:$._s($.asset.size)}})]),$.readOnly?$._e():I("td",{staticClass:"p-0 w-8 rtl:text-left ltr:text-right align-middle"},[I("button",{staticClass:"flex items-center p-1 w-6 h-8 text-lg antialiased text-gray-600 dark:text-dark-150 hover:text-gray-900 dark:hover:text-dark-100",attrs:{title:$.__("Remove"),"aria-label":$.__("Remove Asset")},on:{click:$.remove}},[$._v(" × ")]),$.editing?I("asset-editor",{attrs:{id:$.asset.id,"allow-deleting":!1},on:{closed:$.closeEditor,saved:$.assetSaved,"action-completed":$.actionCompleted}}):$._e()],1)])},_sfc_staticRenderFns$2i=[],__component__$2j=normalizeComponent$2(_sfc_main$2i,_sfc_render$2i,_sfc_staticRenderFns$2i,!1,null,null,null,null);const AssetRow=__component__$2j.exports,_sfc_main$2h={mixins:[Asset],computed:{isInAssetBrowser(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.constructor.name==="AssetBrowser")return!0;M=$}},isInBardField(){return this.$parent.isInBardField}}};var _sfc_render$2h=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"asset-tile",class:{"is-image":$.isImage&&!$.canShowSvg,"is-svg":$.canShowSvg,"is-file":!$.isImage&&!$.canShowSvg},attrs:{title:$.label}},[$.editing?I("asset-editor",{attrs:{id:$.asset.id,"allow-deleting":!1},on:{closed:$.closeEditor,saved:$.assetSaved,"action-completed":$.actionCompleted}}):$._e(),I("div",{staticClass:"asset-thumb-container"},[I("div",{staticClass:"asset-thumb",class:{"bg-checkerboard":$.canBeTransparent}},[$.isImage&&$.isInBardField&&!$.isInAssetBrowser?[I("img",{attrs:{src:$.asset.url}})]:[$.isImage?I("img",{attrs:{src:$.thumbnail,title:$.label}}):[$.canShowSvg?I("img",{staticClass:"p-4",attrs:{src:$.asset.url,title:$.label}}):I("file-icon",{staticClass:"p-4 h-full w-full",attrs:{extension:$.asset.extension}})]],I("div",{staticClass:"asset-controls"},[I("div",{staticClass:"flex items-center justify-center space-x-1 rtl:space-x-reverse"},[$.readOnly?[$.asset.url&&$.asset.isMedia&&this.canDownload?I("button",{staticClass:"btn btn-icon",attrs:{title:$.__("Open in a new window")},on:{click:$.open}},[I("svg-icon",{staticClass:"h-4 my-2",attrs:{name:"light/external-link"}})],1):$._e(),$.asset.allowDownloading&&this.canDownload?I("button",{staticClass:"btn btn-icon",attrs:{title:$.__("Download file")},on:{click:$.download}},[I("svg-icon",{staticClass:"h-4 my-2",attrs:{name:"light/download"}})],1):$._e()]:[I("button",{staticClass:"btn btn-icon",attrs:{title:$.__("Edit")},on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4 my-2",attrs:{name:"micro/sharp-pencil"}})],1),I("button",{staticClass:"btn btn-icon",attrs:{title:$.__("Remove")},on:{click:$.remove}},[I("span",{staticClass:"text-lg antialiased w-4"},[$._v("×")])])]],2)])],2)]),$.showFilename?I("div",{staticClass:"asset-meta flex items-center"},[I("div",{staticClass:"asset-filename flex-1 px-2 py-1",class:{"text-center":!$.needsAlt},attrs:{title:$.label}},[$._v(" "+$._s($.label)+" ")]),$.showSetAlt&&$.needsAlt?I("button",{staticClass:"asset-meta-btn",attrs:{type:"button"},on:{click:$.edit}},[$._v(" "+$._s($.asset.values.alt?"✅":$.__("Set Alt"))+" ")]):$._e()]):$._e()],1)},_sfc_staticRenderFns$2h=[],__component__$2i=normalizeComponent$2(_sfc_main$2h,_sfc_render$2h,_sfc_staticRenderFns$2h,!1,null,null,null,null);const AssetTile=__component__$2i.exports,_sfc_main$2g={props:{container:String,folder:String,selected:Array,maxFiles:Number,queryScopes:Array,restrictFolderNavigation:{type:Boolean,default(){return!1}}},data(){return{browserSelections:this.selected}},computed:{hasMaxFiles(){return this.maxFiles===1/0?!1:!!this.maxFiles}},watch:{browserSelections(M){this.maxFiles===1&&M.length===1&&this.select()}},methods:{select(){this.$emit("selected",this.browserSelections),this.close()},close(){this.$emit("closed")},selectionsUpdated(M){this.browserSelections=M}}};var _sfc_render$2g=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex flex-col justify-end h-full bg-white dark:bg-dark-800"},[I("div",{staticClass:"flex-1 overflow-scroll"},[I("asset-browser",{attrs:{"initial-container":$.container,"initial-per-page":$.$config.get("paginationSize"),"selected-path":$.folder,"selected-assets":$.browserSelections,"restrict-folder-navigation":$.restrictFolderNavigation,"max-files":$.maxFiles,"query-scopes":$.queryScopes,"autoselect-uploads":!0,"autofocus-search":!0,"allow-selecting-existing-upload":""},on:{"selections-updated":$.selectionsUpdated,"asset-doubleclicked":$.select}},[$.browserSelections.length?I("template",{slot:"contextual-actions"},[I("button",{staticClass:"btn action mb-6",on:{click:function(N){$.browserSelections=[]}}},[$._v($._s($.__("Uncheck All")))])]):$._e()],2)],1),I("div",{staticClass:"p-4 border-t dark:border-dark-200 flex items-center justify-between bg-gray-200 dark:bg-dark-500"},[I("div",{staticClass:"text-sm text-gray-700",domProps:{textContent:$._s($.hasMaxFiles?$.__n(":count/:max selected",$.browserSelections,{max:$.maxFiles}):$.__n(":count selected|:count selected",$.browserSelections))}}),I("div",[I("button",{staticClass:"btn",attrs:{type:"button"},on:{click:$.close}},[$._v(" "+$._s($.__("Cancel"))+" ")]),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",attrs:{type:"button"},on:{click:$.select}},[$._v(" "+$._s($.__("Select"))+" ")])])])])},_sfc_staticRenderFns$2g=[],__component__$2h=normalizeComponent$2(_sfc_main$2g,_sfc_render$2g,_sfc_staticRenderFns$2g,!1,null,null,null,null);const Selector=__component__$2h.exports,AssetsFieldtype_vue_vue_type_style_index_0_lang="",_sfc_main$2f={components:{AssetTile,AssetRow,Selector,Uploader,Uploads,SortableList},mixins:[Fieldtype],data(){return{assets:[],loading:!0,initializing:!0,showSelector:!1,selectorViewMode:null,draggingFile:!1,uploads:[],innerDragging:!1,displayMode:"grid",lockedDynamicFolder:this.meta.dynamicFolder}},computed:{hasAssets(){return!!this.assets.length},container(){return this.config.container||this.meta.container},folder(){let M=this.configuredFolder;return this.isUsingDynamicFolder&&(M=M+"/"+(this.lockedDynamicFolder||this.dynamicFolder)),M=M.replace(/^\/+/,""),M===""?"/":M},configuredFolder(){return this.config.folder||"/"},isUsingDynamicFolder(){return!!this.config.dynamic},hasPendingDynamicFolder(){return this.isUsingDynamicFolder&&!this.lockedDynamicFolder&&!this.dynamicFolder},dynamicFolder(){const M=this.config.dynamic;if(!["id","slug","author"].includes(M))throw new Error(`Dynamic folder field [${M}] is invalid. Must be one of: id, slug, author`);const $=data_get(this.$store.state.publish[this.store].values,M);return Array.isArray($)?$[0]:$},store(){let M,$=this;for(;!$.storeName;)if($=$.$parent,M=$.storeName,$===this.$root)return null;return M},restrictNavigation(){return this.isUsingDynamicFolder||this.config.restrict||!1},maxFiles(){return this.config.max_files?parseInt(this.config.max_files):1/0},maxFilesReached(){return this.maxFiles===0?!1:this.assets.length>=this.maxFiles},soloAsset(){return this.maxFiles===1},selectedAssets(){return clone(this.value)},assetIds(){return _.pluck(this.assets,"id")},expanded(){return this.assets.length>0},uploadElement(){return this.$el},queryScopes(){return this.config.query_scopes||[]},isInBardField(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.constructor.name==="BardFieldtype")return!0;M=$}},isInGridField(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.grid)return!0;M=$}},isInLinkField(){let M=this;for(;;){let $=M.$parent;if(!$)return!1;if($.$options.name==="link-fieldtype")return!0;M=$}},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return replicatorPreviewHtml(_.map(this.assets,M=>M.isImage||M.isSvg?`<img src="${M.thumbnail}" width="20" class="max-w-5 max-h-5" height="20" title="${M.basename}" />`:M.basename).join(", "))},showPicker(){return!(!this.canBrowse&&!this.canUpload||this.maxFilesReached&&!this.isFullWidth||this.maxFilesReached&&(this.isInGridField||this.isInLinkField))},isFullWidth(){return!(this.config.width&&this.config.width<100)},showSetAlt(){return this.config.show_set_alt&&!this.isReadOnly},canBrowse(){return this.can("configure asset containers")||this.can("view "+this.container+" assets")?!this.hasPendingDynamicFolder:!1},canUpload(){return this.config.allow_uploads&&(this.can("configure asset containers")||this.can("upload "+this.container+" assets"))?!this.hasPendingDynamicFolder:!1},pendingText(){return this.config.dynamic==="id"?__("statamic::fieldtypes.assets.dynamic_folder_pending_save"):__("statamic::fieldtypes.assets.dynamic_folder_pending_field",{field:`<code>${this.config.dynamic}</code>`})},internalFieldActions(){return[{title:__("Remove All"),dangerous:!0,run:this.removeAll,visible:this.assets.length>0}]}},events:{"close-selector"(){this.closeSelector()}},methods:{initializeAssets(){if(!this.meta.data){this.loadAssets(this.value),this.initializing=!1;return}this.assets=clone(this.meta.data),this.$nextTick(()=>{this.initializing=!1,this.loading=!1}),this.$emit("replicator-preview-updated",this.replicatorPreview)},loadAssets(M){if(!M||!M.length){this.loading=!1,this.assets=[];return}this.loading=!0,this.$axios.post(cp_url("assets-fieldtype"),{assets:M}).then($=>{this.assets=$.data,this.loading=!1})},assetsSelected(M){this.loadAssets(M),this.lockDynamicFolder()},openSelector(){this.showSelector=!0},closeSelector(){this.showSelector=!1},assetUpdated(M){const $=_(this.assets).findIndex({id:M.id});this.assets.splice($,1,M)},assetRemoved(M){const $=_(this.assets).findIndex({id:M.id});this.assets.splice($,1)},removeAll(){this.assets=[]},uploadComplete(M){this.assets.push(M),this.lockDynamicFolder()},uploadsUpdated(M){this.uploads=M},uploadError(M,$){this.uploads=$,this.$toast.error(M.errorMessage)},uploadFile(){this.$refs.uploader.browse()},idChanged(M,$){const I=this.value.indexOf(M);this.update([...this.value.slice(0,I),$,...this.value.slice(I+1)])},lockDynamicFolder(){this.isUsingDynamicFolder&&!this.lockedDynamicFolder&&(this.lockedDynamicFolder=this.dynamicFolder)},syncDynamicFolderFromValue(M){if(!this.isUsingDynamicFolder)return;if(this.lockedDynamicFolder=null,M.length===0)this.lockDynamicFolder();else{const N=M[0].split("::")[1].split("/");this.lockedDynamicFolder=N[N.length-2]}const $=this.meta;$.rename_folder.action.context.folder=this.folder,this.updateMeta($)},renameFolderActionCompleted(M=null,$={}){if(M===!1)return;this.$events.$emit("reset-action-modals"),$.message!==!1&&this.$toast.success($.message||__("Action completed"));const I=$[0].path;this.update(this.value.map(N=>N.replace(`::${this.folder}`,`::${I}`))),this.lockedDynamicFolder=this.configuredFolder?I.replace(`${this.configuredFolder}/`,""):I},uploadSelected(M){const $=`${this.folder}/${M.basename}`.replace(/^\/+/,""),I=`${this.container}::${$}`;this.uploads.splice(this.uploads.indexOf(M),1),!this.value.includes(I)&&(this.maxFiles===1?this.loadAssets([I]):this.loadAssets([...this.value,I]))}},watch:{assets(M){this.initializing||(this.update(this.assetIds),this.updateMeta({...this.meta,data:[...M]}))},loading(M){this.$progress.loading(`assets-fieldtype-${this._uid}`,M)},value(M){_.isEqual(M,this.assetIds)||(this.syncDynamicFolderFromValue(M),this.loadAssets(M))},showSelector(M){this.$emit(M?"focus":"blur")}},mounted(){this.displayMode=this.isInsideGridField?"list":this.config.mode||"grid",this.selectorViewMode=Cookies.get("statamic.assets.listing_view_mode")||"grid",this.initializeAssets()}};var _sfc_render$2f=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"@container"},[$.hasPendingDynamicFolder?I("div",{staticClass:"py-3 px-4 text-sm w-full rounded-md border border-dashed text-gray-700 dark:text-dark-175 dark:border-dark-200",domProps:{innerHTML:$._s($.pendingText)}}):$._e(),I("uploader",{ref:"uploader",attrs:{container:$.container,enabled:$.canUpload,path:$.folder},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadComplete,error:$.uploadError},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{staticClass:"assets-fieldtype-drag-container"},[$.config.allow_uploads?I("div",{directives:[{name:"show",rawName:"v-show",value:N&&!$.showSelector,expression:"dragging && !showSelector"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-6 @md:h-8 w-6 @md:w-8 rtl:ml-2 ltr:mr-2 @md:mr-6",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Drop to Upload")))])],1):$._e(),!$.isReadOnly&&$.showPicker?I("div",{staticClass:"assets-fieldtype-picker gap-x-4 gap-y-2",class:{"is-expanded":$.expanded,"bard-drag-handle":$.isInBardField}},[$.canBrowse?I("button",{staticClass:"btn btn-with-icon",class:{"opacity-0":N},attrs:{type:"button",tabindex:"0"},on:{click:$.openSelector,keyup:function(B){return!B.type.indexOf("key")&&$._k(B.keyCode,"space",32,B.key,[" ","Spacebar"])&&$._k(B.keyCode,"enter",13,B.key,"Enter")?null:$.openSelector.apply(null,arguments)}}},[I("svg-icon",{staticClass:"w-4 h-4 text-gray-800 dark:text-dark-150",attrs:{name:"folder-image"}}),$._v(" "+$._s($.__("Browse"))+" ")],1):$._e(),$.canUpload?I("p",{staticClass:"flex-1 asset-upload-control"},[I("button",{staticClass:"upload-text-button",attrs:{type:"button"},on:{click:function(B){return B.preventDefault(),$.uploadFile.apply(null,arguments)}}},[$._v(" "+$._s($.__("Upload file"))+" ")]),$.soloAsset?I("span",{staticClass:"drag-drop-text",domProps:{textContent:$._s($.__("or drag & drop here to replace."))}}):I("span",{staticClass:"drag-drop-text",domProps:{textContent:$._s($.__("or drag & drop here."))}})]):$._e(),$.meta.rename_folder?I("dropdown-list",[I("data-list-inline-actions",{attrs:{item:$.folder,url:$.meta.rename_folder.url,actions:[$.meta.rename_folder.action]},on:{completed:$.renameFolderActionCompleted}})],1):$._e()],1):$._e(),$.uploads.length?I("uploads",{attrs:{uploads:$.uploads,"allow-selecting-existing":""},on:{"existing-selected":$.uploadSelected}}):$._e(),$.expanded?[$.displayMode==="grid"?I("sortable-list",{attrs:{"item-class":"asset-tile","handle-class":"asset-thumb-container","constrain-dimensions":!0,disabled:$.isReadOnly,distance:5,animate:!1,"append-to":"body"},on:{dragstart:function(B){return $.$emit("focus")},dragend:function(B){return $.$emit("blur")}},model:{value:$.assets,callback:function(B){$.assets=B},expression:"assets"}},[I("div",{ref:"assets",staticClass:"asset-grid-listing border dark:border-dark-900 rounded overflow-hidden",class:{"rounded-t-none":!$.isReadOnly&&($.showPicker||$.uploads.length)}},$._l($.assets,function(B){return I("asset-tile",{key:B.id,attrs:{asset:B,"read-only":$.isReadOnly,"show-filename":$.config.show_filename,"show-set-alt":$.showSetAlt},on:{updated:$.assetUpdated,removed:$.assetRemoved,"id-changed":function(j){return $.idChanged(B.id,j)}}})}),1)]):$._e(),$.displayMode==="list"?I("div",{staticClass:"asset-table-listing"},[I("table",{staticClass:"table-fixed"},[I("sortable-list",{attrs:{"item-class":"asset-row","handle-class":"asset-row",vertical:!0,disabled:$.isReadOnly,distance:5,mirror:!1},model:{value:$.assets,callback:function(B){$.assets=B},expression:"assets"}},[I("tbody",{ref:"assets"},$._l($.assets,function(B){return I("assetRow",{key:B.id,tag:"tr",staticClass:"asset-row",attrs:{asset:B,"read-only":$.isReadOnly,"show-filename":$.config.show_filename,"show-set-alt":$.showSetAlt},on:{updated:$.assetUpdated,removed:$.assetRemoved,"id-changed":function(j){return $.idChanged(B.id,j)}}})}),1)])],1)]):$._e()]:$._e()],2)}}])}),$.showSelector?I("stack",{attrs:{name:"asset-selector"},on:{closed:$.closeSelector}},[I("selector",{attrs:{container:$.container,folder:$.folder,"restrict-folder-navigation":$.restrictNavigation,selected:$.selectedAssets,"view-mode":$.selectorViewMode,"max-files":$.maxFiles,"query-scopes":$.queryScopes},on:{selected:$.assetsSelected,closed:$.closeSelector}})],1):$._e()],1)},_sfc_staticRenderFns$2f=[],__component__$2g=normalizeComponent$2(_sfc_main$2f,_sfc_render$2f,_sfc_staticRenderFns$2f,!1,null,null,null,null);const AssetsFieldtype=__component__$2g.exports,_sfc_main$2e={mixins:[IndexFieldtype],components:{AssetThumbnail}};var _sfc_render$2e=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"text-2xs flex"},$._l($.value,function(N){return I("a",{key:N.id,attrs:{href:N.url,target:"_blank"}},[I("asset-thumbnail",{staticClass:"h-8 max-w-3xs -my-1",attrs:{asset:N}})],1)}),0)},_sfc_staticRenderFns$2e=[],__component__$2f=normalizeComponent$2(_sfc_main$2e,_sfc_render$2e,_sfc_staticRenderFns$2e,!1,null,null,null,null);const AssetsIndexFieldtype=__component__$2f.exports,_sfc_main$2d={mixins:[Fieldtype],inject:["storeName"],computed:{container(){return data_get(this.$store.state.publish[this.storeName].values.container,"0",this.config.container)},relationshipMeta(){return{...this.meta,getBaseSelectionsUrlParameters:{container:this.container}}}}};var _sfc_render$2d=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"asset-folder-fieldtype-wrapper"},[$.container?I("relationship-fieldtype",{attrs:{handle:$.handle,value:$.value,meta:$.relationshipMeta,config:{type:"asset_folder",max_items:this.config.max_items}},on:{input:$.update}}):$._e()],1)},_sfc_staticRenderFns$2d=[],__component__$2e=normalizeComponent$2(_sfc_main$2d,_sfc_render$2d,_sfc_staticRenderFns$2d,!1,null,null,null,null);const AssetFolderFieldtype=__component__$2e.exports;class FloatingMenuView{constructor({editor:$,element:I,view:N,shouldShow:B,vm:j}){Il(this,"focusHandler",()=>{this.update(this.editor.view)});this.editor=$,this.element=I,this.view=N,this.vm=j,this.shouldShow=B,this.editor.on("focus",this.focusHandler)}update($,I){var Z;const{state:N}=$,{doc:B,selection:j}=N,{from:U,to:q}=j;if(I&&I.doc.eq(B)&&I.selection.eq(j))return;if(!((Z=this.shouldShow)==null?void 0:Z.call(this,{editor:this.editor,view:$,state:N,oldState:I})))return this.hide();const{top:G}=posToDOMRect($,U,q),{top:J}=this.editor.options.element.getBoundingClientRect();this.vm.y=Math.round(G-J),this.show()}show(){this.vm.show=!0}hide(){this.vm.show=!1}destroy(){this.editor.off("focus",this.focusHandler)}}const FloatingMenuPlugin=M=>new Plugin({key:new PluginKey(M.pluginKey),view:$=>new FloatingMenuView({view:$,...M})}),FloatingMenu={name:"FloatingMenu",props:{editor:{type:Object,required:!0},shouldShow:{type:Function,default:null},isShowing:{type:Boolean}},data(){return{show:!1,x:0,y:0}},watch:{editor:{immediate:!0,handler(M){M&&this.$nextTick(()=>{M.registerPlugin(FloatingMenuPlugin({pluginKey:"floatingMenu",editor:M,vm:this,element:this.$el,shouldShow:this.shouldShow}))})}},isShowing(M){this.show=M},show(M){M?this.$emit("shown"):this.$emit("hidden")}},render(){return this.$scopedSlots.default({x:this.x,y:this.y})},beforeDestroy(){this.editor.unregisterPlugin("floatingMenu")}},inputRegex$4=/^\s*>\s$/,Blockquote=Node$1.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:M}){return["blockquote",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setBlockquote:()=>({commands:M})=>M.wrapIn(this.name),toggleBlockquote:()=>({commands:M})=>M.toggleWrap(this.name),unsetBlockquote:()=>({commands:M})=>M.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[wrappingInputRule({find:inputRegex$4,type:this.type})]}}),starInputRegex$1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,starPasteRegex$1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,underscoreInputRegex$1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,underscorePasteRegex$1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Bold=Mark.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:M=>M.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:M=>/^(bold(er)?|[5-9]\d{2,})$/.test(M)&&null}]},renderHTML({HTMLAttributes:M}){return["strong",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setBold:()=>({commands:M})=>M.setMark(this.name),toggleBold:()=>({commands:M})=>M.toggleMark(this.name),unsetBold:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[markInputRule({find:starInputRegex$1,type:this.type}),markInputRule({find:underscoreInputRegex$1,type:this.type})]},addPasteRules(){return[markPasteRule({find:starPasteRegex$1,type:this.type}),markPasteRule({find:underscorePasteRegex$1,type:this.type})]}}),ListItem=Node$1.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:M}){return["li",mergeAttributes(this.options.HTMLAttributes,M),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),TextStyle=Mark.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:M=>M.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:M}){return["span",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:M,commands:$})=>{const I=getMarkAttributes(M,this.type);return Object.entries(I).some(([,B])=>!!B)?!0:$.unsetMark(this.name)}}}}),inputRegex$3=/^\s*([-+*])\s$/,BulletList=Node$1.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:M}){return["ul",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{toggleBulletList:()=>({commands:M,chain:$})=>this.options.keepAttributes?$().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ListItem.name,this.editor.getAttributes(TextStyle.name)).run():M.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let M=wrappingInputRule({find:inputRegex$3,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(M=wrappingInputRule({find:inputRegex$3,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(TextStyle.name),editor:this.editor})),[M]}}),CharacterCount=Extension.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:M=>M.length,wordCounter:M=>M.split(" ").filter($=>$!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=M=>{const $=(M==null?void 0:M.node)||this.editor.state.doc;if(((M==null?void 0:M.mode)||this.options.mode)==="textSize"){const N=$.textBetween(0,$.content.size,void 0," ");return this.options.textCounter(N)}return $.nodeSize},this.storage.words=M=>{const $=(M==null?void 0:M.node)||this.editor.state.doc,I=$.textBetween(0,$.content.size," "," ");return this.options.wordCounter(I)}},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("characterCount"),filterTransaction:(M,$)=>{const I=this.options.limit;if(!M.docChanged||I===0||I===null||I===void 0)return!0;const N=this.storage.characters({node:$.doc}),B=this.storage.characters({node:M.doc});if(B<=I||N>I&&B>I&&B<=N)return!0;if(N>I&&B>I&&B>N||!M.getMeta("paste"))return!1;const U=M.selection.$head.pos,q=B-I,Y=U-q,K=U;return M.deleteRange(Y,K),!(this.storage.characters({node:M.doc})>I)}})]}}),inputRegex$2=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,pasteRegex$1=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,Code=Mark.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:M}){return["code",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setCode:()=>({commands:M})=>M.setMark(this.name),toggleCode:()=>({commands:M})=>M.toggleMark(this.name),unsetCode:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[markInputRule({find:inputRegex$2,type:this.type})]},addPasteRules(){return[markPasteRule({find:pasteRegex$1,type:this.type})]}}),backtickInputRegex=/^```([a-z]+)?[\s\n]$/,tildeInputRegex=/^~~~([a-z]+)?[\s\n]$/,CodeBlock=Node$1.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:M=>{var $;const{languageClassPrefix:I}=this.options,j=[...(($=M.firstElementChild)===null||$===void 0?void 0:$.classList)||[]].filter(U=>U.startsWith(I)).map(U=>U.replace(I,""))[0];return j||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:M,HTMLAttributes:$}){return["pre",mergeAttributes(this.options.HTMLAttributes,$),["code",{class:M.attrs.language?this.options.languageClassPrefix+M.attrs.language:null},0]]},addCommands(){return{setCodeBlock:M=>({commands:$})=>$.setNode(this.name,M),toggleCodeBlock:M=>({commands:$})=>$.toggleNode(this.name,"paragraph",M)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:M,$anchor:$}=this.editor.state.selection,I=$.pos===1;return!M||$.parent.type.name!==this.name?!1:I||!$.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:M})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:$}=M,{selection:I}=$,{$from:N,empty:B}=I;if(!B||N.parent.type!==this.type)return!1;const j=N.parentOffset===N.parent.nodeSize-2,U=N.parent.textContent.endsWith(` `);return!j||!U?!1:M.chain().command(({tr:q})=>(q.delete(N.pos-2,N.pos),!0)).exitCode().run()},ArrowDown:({editor:M})=>{if(!this.options.exitOnArrowDown)return!1;const{state:$}=M,{selection:I,doc:N}=$,{$from:B,empty:j}=I;if(!j||B.parent.type!==this.type||!(B.parentOffset===B.parent.nodeSize-2))return!1;const q=B.after();return q===void 0?!1:N.nodeAt(q)?M.commands.command(({tr:K})=>(K.setSelection(Selection.near(N.resolve(q))),!0)):M.commands.exitCode()}}},addInputRules(){return[textblockTypeInputRule({find:backtickInputRegex,type:this.type,getAttributes:M=>({language:M[1]})}),textblockTypeInputRule({find:tildeInputRegex,type:this.type,getAttributes:M=>({language:M[1]})})]},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("codeBlockVSCodeHandler"),props:{handlePaste:(M,$)=>{if(!$.clipboardData||this.editor.isActive(this.type.name))return!1;const I=$.clipboardData.getData("text/plain"),N=$.clipboardData.getData("vscode-editor-data"),B=N?JSON.parse(N):void 0,j=B==null?void 0:B.mode;if(!I||!j)return!1;const{tr:U,schema:q}=M.state,Y=q.text(I.replace(/\r\n?/g,` `));return U.replaceSelectionWith(this.type.create({language:j},Y)),U.selection.$from.parent.type!==this.type&&U.setSelection(TextSelection.near(U.doc.resolve(Math.max(0,U.selection.from-2)))),U.setMeta("paste",!0),M.dispatch(U),!0}}})]}});function getDefaultExportFromCjs(M){return M&&M.__esModule&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M}function deepFreeze$1(M){return M instanceof Map?M.clear=M.delete=M.set=function(){throw new Error("map is read-only")}:M instanceof Set&&(M.add=M.clear=M.delete=function(){throw new Error("set is read-only")}),Object.freeze(M),Object.getOwnPropertyNames(M).forEach($=>{const I=M[$],N=typeof I;(N==="object"||N==="function")&&!Object.isFrozen(I)&&deepFreeze$1(I)}),M}let Response$2=class{constructor($){$.data===void 0&&($.data={}),this.data=$.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML$1(M){return M.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1$1(M,...$){const I=Object.create(null);for(const N in M)I[N]=M[N];return $.forEach(function(N){for(const B in N)I[B]=N[B]}),I}const SPAN_CLOSE$1="</span>",emitsWrappingTags$1=M=>!!M.scope,scopeToCSSClass$1=(M,{prefix:$})=>{if(M.startsWith("language:"))return M.replace("language:","language-");if(M.includes(".")){const I=M.split(".");return[`${$}${I.shift()}`,...I.map((N,B)=>`${N}${"_".repeat(B+1)}`)].join(" ")}return`${$}${M}`};let HTMLRenderer$1=class{constructor($,I){this.buffer="",this.classPrefix=I.classPrefix,$.walk(this)}addText($){this.buffer+=escapeHTML$1($)}openNode($){if(!emitsWrappingTags$1($))return;const I=scopeToCSSClass$1($.scope,{prefix:this.classPrefix});this.span(I)}closeNode($){emitsWrappingTags$1($)&&(this.buffer+=SPAN_CLOSE$1)}value(){return this.buffer}span($){this.buffer+=`<span class="${$}">`}};const newNode$1=(M={})=>{const $={children:[]};return Object.assign($,M),$};let TokenTree$1=class ou{constructor(){this.rootNode=newNode$1(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add($){this.top.children.push($)}openNode($){const I=newNode$1({scope:$});this.add(I),this.stack.push(I)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk($){return this.constructor._walk($,this.rootNode)}static _walk($,I){return typeof I=="string"?$.addText(I):I.children&&($.openNode(I),I.children.forEach(N=>this._walk($,N)),$.closeNode(I)),$}static _collapse($){typeof $!="string"&&$.children&&($.children.every(I=>typeof I=="string")?$.children=[$.children.join("")]:$.children.forEach(I=>{ou._collapse(I)}))}},TokenTreeEmitter$1=class extends TokenTree$1{constructor($){super(),this.options=$}addText($){$!==""&&this.add($)}startScope($){this.openNode($)}endScope(){this.closeNode()}__addSublanguage($,I){const N=$.root;I&&(N.scope=`language:${I}`),this.add(N)}toHTML(){return new HTMLRenderer$1(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function source$2(M){return M?typeof M=="string"?M:M.source:null}function lookahead$2(M){return concat$2("(?=",M,")")}function anyNumberOfTimes$1(M){return concat$2("(?:",M,")*")}function optional$1(M){return concat$2("(?:",M,")?")}function concat$2(...M){return M.map(I=>source$2(I)).join("")}function stripOptionsFromArgs$2(M){const $=M[M.length-1];return typeof $=="object"&&$.constructor===Object?(M.splice(M.length-1,1),$):{}}function either$2(...M){return"("+(stripOptionsFromArgs$2(M).capture?"":"?:")+M.map(N=>source$2(N)).join("|")+")"}function countMatchGroups$1(M){return new RegExp(M.toString()+"|").exec("").length-1}function startsWith$1(M,$){const I=M&&M.exec($);return I&&I.index===0}const BACKREF_RE$1=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences$1(M,{joinWith:$}){let I=0;return M.map(N=>{I+=1;const B=I;let j=source$2(N),U="";for(;j.length>0;){const q=BACKREF_RE$1.exec(j);if(!q){U+=j;break}U+=j.substring(0,q.index),j=j.substring(q.index+q[0].length),q[0][0]==="\\"&&q[1]?U+="\\"+String(Number(q[1])+B):(U+=q[0],q[0]==="("&&I++)}return U}).map(N=>`(${N})`).join($)}const MATCH_NOTHING_RE$1=/\b\B/,IDENT_RE$3="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE$1="[a-zA-Z_]\\w*",NUMBER_RE$1="\\b\\d+(\\.\\d+)?",C_NUMBER_RE$1="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE$1="\\b(0b[01]+)",RE_STARTERS_RE$1="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG$1=(M={})=>{const $=/^#![ ]*\//;return M.binary&&(M.begin=concat$2($,/.*\b/,M.binary,/\b.*/)),inherit$1$1({scope:"meta",begin:$,end:/$/,relevance:0,"on:begin":(I,N)=>{I.index!==0&&N.ignoreMatch()}},M)},BACKSLASH_ESCAPE$1={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE$1={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE$1]},QUOTE_STRING_MODE$1={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE$1]},PHRASAL_WORDS_MODE$1={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT$1=function(M,$,I={}){const N=inherit$1$1({scope:"comment",begin:M,end:$,contains:[]},I);N.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const B=either$2("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return N.contains.push({begin:concat$2(/[ ]+/,"(",B,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),N},C_LINE_COMMENT_MODE$1=COMMENT$1("//","$"),C_BLOCK_COMMENT_MODE$1=COMMENT$1("/\\*","\\*/"),HASH_COMMENT_MODE$1=COMMENT$1("#","$"),NUMBER_MODE$1={scope:"number",begin:NUMBER_RE$1,relevance:0},C_NUMBER_MODE$1={scope:"number",begin:C_NUMBER_RE$1,relevance:0},BINARY_NUMBER_MODE$1={scope:"number",begin:BINARY_NUMBER_RE$1,relevance:0},REGEXP_MODE$1={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[BACKSLASH_ESCAPE$1,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE$1]}]},TITLE_MODE$1={scope:"title",begin:IDENT_RE$3,relevance:0},UNDERSCORE_TITLE_MODE$1={scope:"title",begin:UNDERSCORE_IDENT_RE$1,relevance:0},METHOD_GUARD$1={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE$1,relevance:0},END_SAME_AS_BEGIN$1=function(M){return Object.assign(M,{"on:begin":($,I)=>{I.data._beginMatch=$[1]},"on:end":($,I)=>{I.data._beginMatch!==$[1]&&I.ignoreMatch()}})};var MODES$4=Object.freeze({__proto__:null,APOS_STRING_MODE:APOS_STRING_MODE$1,BACKSLASH_ESCAPE:BACKSLASH_ESCAPE$1,BINARY_NUMBER_MODE:BINARY_NUMBER_MODE$1,BINARY_NUMBER_RE:BINARY_NUMBER_RE$1,COMMENT:COMMENT$1,C_BLOCK_COMMENT_MODE:C_BLOCK_COMMENT_MODE$1,C_LINE_COMMENT_MODE:C_LINE_COMMENT_MODE$1,C_NUMBER_MODE:C_NUMBER_MODE$1,C_NUMBER_RE:C_NUMBER_RE$1,END_SAME_AS_BEGIN:END_SAME_AS_BEGIN$1,HASH_COMMENT_MODE:HASH_COMMENT_MODE$1,IDENT_RE:IDENT_RE$3,MATCH_NOTHING_RE:MATCH_NOTHING_RE$1,METHOD_GUARD:METHOD_GUARD$1,NUMBER_MODE:NUMBER_MODE$1,NUMBER_RE:NUMBER_RE$1,PHRASAL_WORDS_MODE:PHRASAL_WORDS_MODE$1,QUOTE_STRING_MODE:QUOTE_STRING_MODE$1,REGEXP_MODE:REGEXP_MODE$1,RE_STARTERS_RE:RE_STARTERS_RE$1,SHEBANG:SHEBANG$1,TITLE_MODE:TITLE_MODE$1,UNDERSCORE_IDENT_RE:UNDERSCORE_IDENT_RE$1,UNDERSCORE_TITLE_MODE:UNDERSCORE_TITLE_MODE$1});function skipIfHasPrecedingDot$1(M,$){M.input[M.index-1]==="."&&$.ignoreMatch()}function scopeClassName$1(M,$){M.className!==void 0&&(M.scope=M.className,delete M.className)}function beginKeywords$1(M,$){$&&M.beginKeywords&&(M.begin="\\b("+M.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",M.__beforeBegin=skipIfHasPrecedingDot$1,M.keywords=M.keywords||M.beginKeywords,delete M.beginKeywords,M.relevance===void 0&&(M.relevance=0))}function compileIllegal$1(M,$){Array.isArray(M.illegal)&&(M.illegal=either$2(...M.illegal))}function compileMatch$1(M,$){if(M.match){if(M.begin||M.end)throw new Error("begin & end are not supported with match");M.begin=M.match,delete M.match}}function compileRelevance$1(M,$){M.relevance===void 0&&(M.relevance=1)}const beforeMatchExt$1=(M,$)=>{if(!M.beforeMatch)return;if(M.starts)throw new Error("beforeMatch cannot be used with starts");const I=Object.assign({},M);Object.keys(M).forEach(N=>{delete M[N]}),M.keywords=I.keywords,M.begin=concat$2(I.beforeMatch,lookahead$2(I.begin)),M.starts={relevance:0,contains:[Object.assign(I,{endsParent:!0})]},M.relevance=0,delete I.beforeMatch},COMMON_KEYWORDS$1=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE$1="keyword";function compileKeywords$1(M,$,I=DEFAULT_KEYWORD_SCOPE$1){const N=Object.create(null);return typeof M=="string"?B(I,M.split(" ")):Array.isArray(M)?B(I,M):Object.keys(M).forEach(function(j){Object.assign(N,compileKeywords$1(M[j],$,j))}),N;function B(j,U){$&&(U=U.map(q=>q.toLowerCase())),U.forEach(function(q){const Y=q.split("|");N[Y[0]]=[j,scoreForKeyword$1(Y[0],Y[1])]})}}function scoreForKeyword$1(M,$){return $?Number($):commonKeyword$1(M)?0:1}function commonKeyword$1(M){return COMMON_KEYWORDS$1.includes(M.toLowerCase())}const seenDeprecations$1={},error$2=M=>{console.error(M)},warn$2=(M,...$)=>{console.log(`WARN: ${M}`,...$)},deprecated$1=(M,$)=>{seenDeprecations$1[`${M}/${$}`]||(console.log(`Deprecated as of ${M}. ${$}`),seenDeprecations$1[`${M}/${$}`]=!0)},MultiClassError$1=new Error;function remapScopeNames$1(M,$,{key:I}){let N=0;const B=M[I],j={},U={};for(let q=1;q<=$.length;q++)U[q+N]=B[q],j[q+N]=!0,N+=countMatchGroups$1($[q-1]);M[I]=U,M[I]._emit=j,M[I]._multi=!0}function beginMultiClass$1(M){if(Array.isArray(M.begin)){if(M.skip||M.excludeBegin||M.returnBegin)throw error$2("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError$1;if(typeof M.beginScope!="object"||M.beginScope===null)throw error$2("beginScope must be object"),MultiClassError$1;remapScopeNames$1(M,M.begin,{key:"beginScope"}),M.begin=_rewriteBackreferences$1(M.begin,{joinWith:""})}}function endMultiClass$1(M){if(Array.isArray(M.end)){if(M.skip||M.excludeEnd||M.returnEnd)throw error$2("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError$1;if(typeof M.endScope!="object"||M.endScope===null)throw error$2("endScope must be object"),MultiClassError$1;remapScopeNames$1(M,M.end,{key:"endScope"}),M.end=_rewriteBackreferences$1(M.end,{joinWith:""})}}function scopeSugar$1(M){M.scope&&typeof M.scope=="object"&&M.scope!==null&&(M.beginScope=M.scope,delete M.scope)}function MultiClass$1(M){scopeSugar$1(M),typeof M.beginScope=="string"&&(M.beginScope={_wrap:M.beginScope}),typeof M.endScope=="string"&&(M.endScope={_wrap:M.endScope}),beginMultiClass$1(M),endMultiClass$1(M)}function compileLanguage$1(M){function $(U,q){return new RegExp(source$2(U),"m"+(M.case_insensitive?"i":"")+(M.unicodeRegex?"u":"")+(q?"g":""))}class I{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(q,Y){Y.position=this.position++,this.matchIndexes[this.matchAt]=Y,this.regexes.push([Y,q]),this.matchAt+=countMatchGroups$1(q)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const q=this.regexes.map(Y=>Y[1]);this.matcherRe=$(_rewriteBackreferences$1(q,{joinWith:"|"}),!0),this.lastIndex=0}exec(q){this.matcherRe.lastIndex=this.lastIndex;const Y=this.matcherRe.exec(q);if(!Y)return null;const K=Y.findIndex((J,Z)=>Z>0&&J!==void 0),G=this.matchIndexes[K];return Y.splice(0,K),Object.assign(Y,G)}}class N{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(q){if(this.multiRegexes[q])return this.multiRegexes[q];const Y=new I;return this.rules.slice(q).forEach(([K,G])=>Y.addRule(K,G)),Y.compile(),this.multiRegexes[q]=Y,Y}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(q,Y){this.rules.push([q,Y]),Y.type==="begin"&&this.count++}exec(q){const Y=this.getMatcher(this.regexIndex);Y.lastIndex=this.lastIndex;let K=Y.exec(q);if(this.resumingScanAtSamePosition()&&!(K&&K.index===this.lastIndex)){const G=this.getMatcher(0);G.lastIndex=this.lastIndex+1,K=G.exec(q)}return K&&(this.regexIndex+=K.position+1,this.regexIndex===this.count&&this.considerAll()),K}}function B(U){const q=new N;return U.contains.forEach(Y=>q.addRule(Y.begin,{rule:Y,type:"begin"})),U.terminatorEnd&&q.addRule(U.terminatorEnd,{type:"end"}),U.illegal&&q.addRule(U.illegal,{type:"illegal"}),q}function j(U,q){const Y=U;if(U.isCompiled)return Y;[scopeClassName$1,compileMatch$1,MultiClass$1,beforeMatchExt$1].forEach(G=>G(U,q)),M.compilerExtensions.forEach(G=>G(U,q)),U.__beforeBegin=null,[beginKeywords$1,compileIllegal$1,compileRelevance$1].forEach(G=>G(U,q)),U.isCompiled=!0;let K=null;return typeof U.keywords=="object"&&U.keywords.$pattern&&(U.keywords=Object.assign({},U.keywords),K=U.keywords.$pattern,delete U.keywords.$pattern),K=K||/\w+/,U.keywords&&(U.keywords=compileKeywords$1(U.keywords,M.case_insensitive)),Y.keywordPatternRe=$(K,!0),q&&(U.begin||(U.begin=/\B|\b/),Y.beginRe=$(Y.begin),!U.end&&!U.endsWithParent&&(U.end=/\B|\b/),U.end&&(Y.endRe=$(Y.end)),Y.terminatorEnd=source$2(Y.end)||"",U.endsWithParent&&q.terminatorEnd&&(Y.terminatorEnd+=(U.end?"|":"")+q.terminatorEnd)),U.illegal&&(Y.illegalRe=$(U.illegal)),U.contains||(U.contains=[]),U.contains=[].concat(...U.contains.map(function(G){return expandOrCloneMode$1(G==="self"?U:G)})),U.contains.forEach(function(G){j(G,Y)}),U.starts&&j(U.starts,q),Y.matcher=B(Y),Y}if(M.compilerExtensions||(M.compilerExtensions=[]),M.contains&&M.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return M.classNameAliases=inherit$1$1(M.classNameAliases||{}),j(M)}function dependencyOnParent$1(M){return M?M.endsWithParent||dependencyOnParent$1(M.starts):!1}function expandOrCloneMode$1(M){return M.variants&&!M.cachedVariants&&(M.cachedVariants=M.variants.map(function($){return inherit$1$1(M,{variants:null},$)})),M.cachedVariants?M.cachedVariants:dependencyOnParent$1(M)?inherit$1$1(M,{starts:M.starts?inherit$1$1(M.starts):null}):Object.isFrozen(M)?inherit$1$1(M):M}var version$1="11.10.0";let HTMLInjectionError$1=class extends Error{constructor($,I){super($),this.name="HTMLInjectionError",this.html=I}};const escape$2=escapeHTML$1,inherit$2=inherit$1$1,NO_MATCH$1=Symbol("nomatch"),MAX_KEYWORD_HITS$1=7,HLJS$1=function(M){const $=Object.create(null),I=Object.create(null),N=[];let B=!0;const j="Could not find the language '{}', did you forget to load/include a language module?",U={disableAutodetect:!0,name:"Plain text",contains:[]};let q={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter$1};function Y(Me){return q.noHighlightRe.test(Me)}function K(Me){let Be=Me.className+" ";Be+=Me.parentNode?Me.parentNode.className:"";const ze=q.languageDetectRe.exec(Be);if(ze){const Ze=xe(ze[1]);return Ze||(warn$2(j.replace("{}",ze[1])),warn$2("Falling back to no-highlight mode for this block.",Me)),Ze?ze[1]:"no-highlight"}return Be.split(/\s+/).find(Ze=>Y(Ze)||xe(Ze))}function G(Me,Be,ze){let Ze="",ft="";typeof Be=="object"?(Ze=Me,ze=Be.ignoreIllegals,ft=Be.language):(deprecated$1("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated$1("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),ft=Me,Ze=Be),ze===void 0&&(ze=!0);const Ye={code:Ze,language:ft};Se("before:highlight",Ye);const Ve=Ye.result?Ye.result:J(Ye.language,Ye.code,ze);return Ve.code=Ye.code,Se("after:highlight",Ve),Ve}function J(Me,Be,ze,Ze){const ft=Object.create(null);function Ye(ut,ct){return ut.keywords[ct]}function Ve(){if(!We.keywords){Ue.addText(Oe);return}let ut=0;We.keywordPatternRe.lastIndex=0;let ct=We.keywordPatternRe.exec(Oe),it="";for(;ct;){it+=Oe.substring(ut,ct.index);const ot=Mn.case_insensitive?ct[0].toLowerCase():ct[0],Ot=Ye(We,ot);if(Ot){const[dn,Fn]=Ot;if(Ue.addText(it),it="",ft[ot]=(ft[ot]||0)+1,ft[ot]<=MAX_KEYWORD_HITS$1&&(ke+=Fn),dn.startsWith("_"))it+=ct[0];else{const Zt=Mn.classNameAliases[dn]||dn;Vt(ct[0],Zt)}}else it+=ct[0];ut=We.keywordPatternRe.lastIndex,ct=We.keywordPatternRe.exec(Oe)}it+=Oe.substring(ut),Ue.addText(it)}function Dt(){if(Oe==="")return;let ut=null;if(typeof We.subLanguage=="string"){if(!$[We.subLanguage]){Ue.addText(Oe);return}ut=J(We.subLanguage,Oe,!0,xt[We.subLanguage]),xt[We.subLanguage]=ut._top}else ut=ee(Oe,We.subLanguage.length?We.subLanguage:null);We.relevance>0&&(ke+=ut.relevance),Ue.__addSublanguage(ut._emitter,ut.language)}function Nt(){We.subLanguage!=null?Dt():Ve(),Oe=""}function Vt(ut,ct){ut!==""&&(Ue.startScope(ct),Ue.addText(ut),Ue.endScope())}function Wt(ut,ct){let it=1;const ot=ct.length-1;for(;it<=ot;){if(!ut._emit[it]){it++;continue}const Ot=Mn.classNameAliases[ut[it]]||ut[it],dn=ct[it];Ot?Vt(dn,Ot):(Oe=dn,Ve(),Oe=""),it++}}function Gt(ut,ct){return ut.scope&&typeof ut.scope=="string"&&Ue.openNode(Mn.classNameAliases[ut.scope]||ut.scope),ut.beginScope&&(ut.beginScope._wrap?(Vt(Oe,Mn.classNameAliases[ut.beginScope._wrap]||ut.beginScope._wrap),Oe=""):ut.beginScope._multi&&(Wt(ut.beginScope,ct),Oe="")),We=Object.create(ut,{parent:{value:We}}),We}function tn(ut,ct,it){let ot=startsWith$1(ut.endRe,it);if(ot){if(ut["on:end"]){const Ot=new Response$2(ut);ut["on:end"](ct,Ot),Ot.isMatchIgnored&&(ot=!1)}if(ot){for(;ut.endsParent&&ut.parent;)ut=ut.parent;return ut}}if(ut.endsWithParent)return tn(ut.parent,ct,it)}function Qt(ut){return We.matcher.regexIndex===0?(Oe+=ut[0],1):(rt=!0,0)}function En(ut){const ct=ut[0],it=ut.rule,ot=new Response$2(it),Ot=[it.__beforeBegin,it["on:begin"]];for(const dn of Ot)if(dn&&(dn(ut,ot),ot.isMatchIgnored))return Qt(ct);return it.skip?Oe+=ct:(it.excludeBegin&&(Oe+=ct),Nt(),!it.returnBegin&&!it.excludeBegin&&(Oe=ct)),Gt(it,ut),it.returnBegin?0:ct.length}function kn(ut){const ct=ut[0],it=Be.substring(ut.index),ot=tn(We,ut,it);if(!ot)return NO_MATCH$1;const Ot=We;We.endScope&&We.endScope._wrap?(Nt(),Vt(ct,We.endScope._wrap)):We.endScope&&We.endScope._multi?(Nt(),Wt(We.endScope,ut)):Ot.skip?Oe+=ct:(Ot.returnEnd||Ot.excludeEnd||(Oe+=ct),Nt(),Ot.excludeEnd&&(Oe=ct));do We.scope&&Ue.closeNode(),!We.skip&&!We.subLanguage&&(ke+=We.relevance),We=We.parent;while(We!==ot.parent);return ot.starts&&Gt(ot.starts,ut),Ot.returnEnd?0:ct.length}function Gn(){const ut=[];for(let ct=We;ct!==Mn;ct=ct.parent)ct.scope&&ut.unshift(ct.scope);ut.forEach(ct=>Ue.openNode(ct))}let An={};function jn(ut,ct){const it=ct&&ct[0];if(Oe+=ut,it==null)return Nt(),0;if(An.type==="begin"&&ct.type==="end"&&An.index===ct.index&&it===""){if(Oe+=Be.slice(ct.index,ct.index+1),!B){const ot=new Error(`0 width match regex (${Me})`);throw ot.languageName=Me,ot.badRule=An.rule,ot}return 1}if(An=ct,ct.type==="begin")return En(ct);if(ct.type==="illegal"&&!ze){const ot=new Error('Illegal lexeme "'+it+'" for mode "'+(We.scope||"<unnamed>")+'"');throw ot.mode=We,ot}else if(ct.type==="end"){const ot=kn(ct);if(ot!==NO_MATCH$1)return ot}if(ct.type==="illegal"&&it==="")return 1;if(Ge>1e5&&Ge>ct.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Oe+=it,it.length}const Mn=xe(Me);if(!Mn)throw error$2(j.replace("{}",Me)),new Error('Unknown language: "'+Me+'"');const Ln=compileLanguage$1(Mn);let Et="",We=Ze||Ln;const xt={},Ue=new q.__emitter(q);Gn();let Oe="",ke=0,$e=0,Ge=0,rt=!1;try{if(Mn.__emitTokens)Mn.__emitTokens(Be,Ue);else{for(We.matcher.considerAll();;){Ge++,rt?rt=!1:We.matcher.considerAll(),We.matcher.lastIndex=$e;const ut=We.matcher.exec(Be);if(!ut)break;const ct=Be.substring($e,ut.index),it=jn(ct,ut);$e=ut.index+it}jn(Be.substring($e))}return Ue.finalize(),Et=Ue.toHTML(),{language:Me,value:Et,relevance:ke,illegal:!1,_emitter:Ue,_top:We}}catch(ut){if(ut.message&&ut.message.includes("Illegal"))return{language:Me,value:escape$2(Be),illegal:!0,relevance:0,_illegalBy:{message:ut.message,index:$e,context:Be.slice($e-100,$e+100),mode:ut.mode,resultSoFar:Et},_emitter:Ue};if(B)return{language:Me,value:escape$2(Be),illegal:!1,relevance:0,errorRaised:ut,_emitter:Ue,_top:We};throw ut}}function Z(Me){const Be={value:escape$2(Me),illegal:!1,relevance:0,_top:U,_emitter:new q.__emitter(q)};return Be._emitter.addText(Me),Be}function ee(Me,Be){Be=Be||q.languages||Object.keys($);const ze=Z(Me),Ze=Be.filter(xe).filter(be).map(Nt=>J(Nt,Me,!1));Ze.unshift(ze);const ft=Ze.sort((Nt,Vt)=>{if(Nt.relevance!==Vt.relevance)return Vt.relevance-Nt.relevance;if(Nt.language&&Vt.language){if(xe(Nt.language).supersetOf===Vt.language)return 1;if(xe(Vt.language).supersetOf===Nt.language)return-1}return 0}),[Ye,Ve]=ft,Dt=Ye;return Dt.secondBest=Ve,Dt}function te(Me,Be,ze){const Ze=Be&&I[Be]||ze;Me.classList.add("hljs"),Me.classList.add(`language-${Ze}`)}function se(Me){let Be=null;const ze=K(Me);if(Y(ze))return;if(Se("before:highlightElement",{el:Me,language:ze}),Me.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Me);return}if(Me.children.length>0&&(q.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Me)),q.throwUnescapedHTML))throw new HTMLInjectionError$1("One of your code blocks includes unescaped HTML.",Me.innerHTML);Be=Me;const Ze=Be.textContent,ft=ze?G(Ze,{language:ze,ignoreIllegals:!0}):ee(Ze);Me.innerHTML=ft.value,Me.dataset.highlighted="yes",te(Me,ze,ft.language),Me.result={language:ft.language,re:ft.relevance,relevance:ft.relevance},ft.secondBest&&(Me.secondBest={language:ft.secondBest.language,relevance:ft.secondBest.relevance}),Se("after:highlightElement",{el:Me,result:ft,text:Ze})}function re(Me){q=inherit$2(q,Me)}const ne=()=>{ue(),deprecated$1("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ce(){ue(),deprecated$1("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let me=!1;function ue(){if(document.readyState==="loading"){me=!0;return}document.querySelectorAll(q.cssSelector).forEach(se)}function _e(){me&&ue()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_e,!1);function fe(Me,Be){let ze=null;try{ze=Be(M)}catch(Ze){if(error$2("Language definition for '{}' could not be registered.".replace("{}",Me)),B)error$2(Ze);else throw Ze;ze=U}ze.name||(ze.name=Me),$[Me]=ze,ze.rawDefinition=Be.bind(null,M),ze.aliases&&le(ze.aliases,{languageName:Me})}function ge(Me){delete $[Me];for(const Be of Object.keys(I))I[Be]===Me&&delete I[Be]}function ye(){return Object.keys($)}function xe(Me){return Me=(Me||"").toLowerCase(),$[Me]||$[I[Me]]}function le(Me,{languageName:Be}){typeof Me=="string"&&(Me=[Me]),Me.forEach(ze=>{I[ze.toLowerCase()]=Be})}function be(Me){const Be=xe(Me);return Be&&!Be.disableAutodetect}function ve(Me){Me["before:highlightBlock"]&&!Me["before:highlightElement"]&&(Me["before:highlightElement"]=Be=>{Me["before:highlightBlock"](Object.assign({block:Be.el},Be))}),Me["after:highlightBlock"]&&!Me["after:highlightElement"]&&(Me["after:highlightElement"]=Be=>{Me["after:highlightBlock"](Object.assign({block:Be.el},Be))})}function we(Me){ve(Me),N.push(Me)}function Ae(Me){const Be=N.indexOf(Me);Be!==-1&&N.splice(Be,1)}function Se(Me,Be){const ze=Me;N.forEach(function(Ze){Ze[ze]&&Ze[ze](Be)})}function Pe(Me){return deprecated$1("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated$1("10.7.0","Please use highlightElement now."),se(Me)}Object.assign(M,{highlight:G,highlightAuto:ee,highlightAll:ue,highlightElement:se,highlightBlock:Pe,configure:re,initHighlighting:ne,initHighlightingOnLoad:ce,registerLanguage:fe,unregisterLanguage:ge,listLanguages:ye,getLanguage:xe,registerAliases:le,autoDetection:be,inherit:inherit$2,addPlugin:we,removePlugin:Ae}),M.debugMode=function(){B=!1},M.safeMode=function(){B=!0},M.versionString=version$1,M.regex={concat:concat$2,lookahead:lookahead$2,either:either$2,optional:optional$1,anyNumberOfTimes:anyNumberOfTimes$1};for(const Me in MODES$4)typeof MODES$4[Me]=="object"&&deepFreeze$1(MODES$4[Me]);return Object.assign(M,MODES$4),M},highlight$2=HLJS$1({});highlight$2.newInstance=()=>HLJS$1({});var core$1=highlight$2;highlight$2.HighlightJS=highlight$2;highlight$2.default=highlight$2;var HighlightJS$1=getDefaultExportFromCjs(core$1);function parseNodes(M,$=[]){return M.map(I=>{const N=[...$,...I.properties?I.properties.className:[]];return I.children?parseNodes(I.children,N):{text:I.value,classes:N}}).flat()}function getHighlightNodes(M){return M.value||M.children||[]}function registered$1(M){return!!HighlightJS$1.getLanguage(M)}function getDecorations({doc:M,name:$,lowlight:I,defaultLanguage:N}){const B=[];return findChildren(M,j=>j.type.name===$).forEach(j=>{var U;let q=j.pos+1;const Y=j.node.attrs.language||N,K=I.listLanguages(),G=Y&&(K.includes(Y)||registered$1(Y)||!((U=I.registered)===null||U===void 0)&&U.call(I,Y))?getHighlightNodes(I.highlight(Y,j.node.textContent)):getHighlightNodes(I.highlightAuto(j.node.textContent));parseNodes(G).forEach(J=>{const Z=q+J.text.length;if(J.classes.length){const ee=Decoration.inline(q,Z,{class:J.classes.join(" ")});B.push(ee)}q=Z})}),DecorationSet.create(M,B)}function isFunction$1(M){return typeof M=="function"}function LowlightPlugin({name:M,lowlight:$,defaultLanguage:I}){if(!["highlight","highlightAuto","listLanguages"].every(B=>isFunction$1($[B])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const N=new Plugin({key:new PluginKey("lowlight"),state:{init:(B,{doc:j})=>getDecorations({doc:j,name:M,lowlight:$,defaultLanguage:I}),apply:(B,j,U,q)=>{const Y=U.selection.$head.parent.type.name,K=q.selection.$head.parent.type.name,G=findChildren(U.doc,Z=>Z.type.name===M),J=findChildren(q.doc,Z=>Z.type.name===M);return B.docChanged&&([Y,K].includes(M)||J.length!==G.length||B.steps.some(Z=>Z.from!==void 0&&Z.to!==void 0&&G.some(ee=>ee.pos>=Z.from&&ee.pos+ee.node.nodeSize<=Z.to)))?getDecorations({doc:B.doc,name:M,lowlight:$,defaultLanguage:I}):j.map(B.mapping,B.doc)}},props:{decorations(B){return N.getState(B)}}});return N}const CodeBlockLowlight=CodeBlock.extend({addOptions(){var M;return{...(M=this.parent)===null||M===void 0?void 0:M.call(this),lowlight:{}}},addProseMirrorPlugins(){var M;return[...((M=this.parent)===null||M===void 0?void 0:M.call(this))||[],LowlightPlugin({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function dropCursor(M={}){return new Plugin({view($){return new DropCursorView($,M)}})}class DropCursorView{constructor($,I){var N;this.editorView=$,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(N=I.width)!==null&&N!==void 0?N:1,this.color=I.color===!1?void 0:I.color||"black",this.class=I.class,this.handlers=["dragover","dragend","drop","dragleave"].map(B=>{let j=U=>{this[B](U)};return $.dom.addEventListener(B,j),{name:B,handler:j}})}destroy(){this.handlers.forEach(({name:$,handler:I})=>this.editorView.dom.removeEventListener($,I))}update($,I){this.cursorPos!=null&&I.doc!=$.state.doc&&(this.cursorPos>$.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor($){$!=this.cursorPos&&(this.cursorPos=$,$==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let $=this.editorView.state.doc.resolve(this.cursorPos),I=!$.parent.inlineContent,N;if(I){let q=$.nodeBefore,Y=$.nodeAfter;if(q||Y){let K=this.editorView.nodeDOM(this.cursorPos-(q?q.nodeSize:0));if(K){let G=K.getBoundingClientRect(),J=q?G.bottom:G.top;q&&Y&&(J=(J+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),N={left:G.left,right:G.right,top:J-this.width/2,bottom:J+this.width/2}}}}if(!N){let q=this.editorView.coordsAtPos(this.cursorPos);N={left:q.left-this.width/2,right:q.left+this.width/2,top:q.top,bottom:q.bottom}}let B=this.editorView.dom.offsetParent;this.element||(this.element=B.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",I),this.element.classList.toggle("prosemirror-dropcursor-inline",!I);let j,U;if(!B||B==document.body&&getComputedStyle(B).position=="static")j=-pageXOffset,U=-pageYOffset;else{let q=B.getBoundingClientRect();j=q.left-B.scrollLeft,U=q.top-B.scrollTop}this.element.style.left=N.left-j+"px",this.element.style.top=N.top-U+"px",this.element.style.width=N.right-N.left+"px",this.element.style.height=N.bottom-N.top+"px"}scheduleRemoval($){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),$)}dragover($){if(!this.editorView.editable)return;let I=this.editorView.posAtCoords({left:$.clientX,top:$.clientY}),N=I&&I.inside>=0&&this.editorView.state.doc.nodeAt(I.inside),B=N&&N.type.spec.disableDropCursor,j=typeof B=="function"?B(this.editorView,I,$):B;if(I&&!j){let U=I.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let q=dropPoint(this.editorView.state.doc,U,this.editorView.dragging.slice);q!=null&&(U=q)}this.setCursor(U),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave($){($.target==this.editorView.dom||!this.editorView.dom.contains($.relatedTarget))&&this.setCursor(null)}}const Dropcursor=Extension.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[dropCursor(this.options)]}});class GapCursor extends Selection{constructor($){super($,$)}map($,I){let N=$.resolve(I.map(this.head));return GapCursor.valid(N)?new GapCursor(N):Selection.near(N)}content(){return Slice.empty}eq($){return $ instanceof GapCursor&&$.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON($,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new GapCursor($.resolve(I.pos))}getBookmark(){return new GapBookmark(this.anchor)}static valid($){let I=$.parent;if(I.isTextblock||!closedBefore($)||!closedAfter($))return!1;let N=I.type.spec.allowGapCursor;if(N!=null)return N;let B=I.contentMatchAt($.index()).defaultType;return B&&B.isTextblock}static findGapCursorFrom($,I,N=!1){e:for(;;){if(!N&&GapCursor.valid($))return $;let B=$.pos,j=null;for(let U=$.depth;;U--){let q=$.node(U);if(I>0?$.indexAfter(U)<q.childCount:$.index(U)>0){j=q.child(I>0?$.indexAfter(U):$.index(U)-1);break}else if(U==0)return null;B+=I;let Y=$.doc.resolve(B);if(GapCursor.valid(Y))return Y}for(;;){let U=I>0?j.firstChild:j.lastChild;if(!U){if(j.isAtom&&!j.isText&&!NodeSelection.isSelectable(j)){$=$.doc.resolve(B+j.nodeSize*I),N=!1;continue e}break}j=U,B+=I;let q=$.doc.resolve(B);if(GapCursor.valid(q))return q}return null}}}GapCursor.prototype.visible=!1;GapCursor.findFrom=GapCursor.findGapCursorFrom;Selection.jsonID("gapcursor",GapCursor);class GapBookmark{constructor($){this.pos=$}map($){return new GapBookmark($.map(this.pos))}resolve($){let I=$.resolve(this.pos);return GapCursor.valid(I)?new GapCursor(I):Selection.near(I)}}function closedBefore(M){for(let $=M.depth;$>=0;$--){let I=M.index($),N=M.node($);if(I==0){if(N.type.spec.isolating)return!0;continue}for(let B=N.child(I-1);;B=B.lastChild){if(B.childCount==0&&!B.inlineContent||B.isAtom||B.type.spec.isolating)return!0;if(B.inlineContent)return!1}}return!0}function closedAfter(M){for(let $=M.depth;$>=0;$--){let I=M.indexAfter($),N=M.node($);if(I==N.childCount){if(N.type.spec.isolating)return!0;continue}for(let B=N.child(I);;B=B.firstChild){if(B.childCount==0&&!B.inlineContent||B.isAtom||B.type.spec.isolating)return!0;if(B.inlineContent)return!1}}return!0}function gapCursor(){return new Plugin({props:{decorations:drawGapCursor,createSelectionBetween(M,$,I){return $.pos==I.pos&&GapCursor.valid(I)?new GapCursor(I):null},handleClick,handleKeyDown:handleKeyDown$1,handleDOMEvents:{beforeinput}}})}const handleKeyDown$1=keydownHandler({ArrowLeft:arrow$2("horiz",-1),ArrowRight:arrow$2("horiz",1),ArrowUp:arrow$2("vert",-1),ArrowDown:arrow$2("vert",1)});function arrow$2(M,$){const I=M=="vert"?$>0?"down":"up":$>0?"right":"left";return function(N,B,j){let U=N.selection,q=$>0?U.$to:U.$from,Y=U.empty;if(U instanceof TextSelection){if(!j.endOfTextblock(I)||q.depth==0)return!1;Y=!1,q=N.doc.resolve($>0?q.after():q.before())}let K=GapCursor.findGapCursorFrom(q,$,Y);return K?(B&&B(N.tr.setSelection(new GapCursor(K))),!0):!1}}function handleClick(M,$,I){if(!M||!M.editable)return!1;let N=M.state.doc.resolve($);if(!GapCursor.valid(N))return!1;let B=M.posAtCoords({left:I.clientX,top:I.clientY});return B&&B.inside>-1&&NodeSelection.isSelectable(M.state.doc.nodeAt(B.inside))?!1:(M.dispatch(M.state.tr.setSelection(new GapCursor(N))),!0)}function beforeinput(M,$){if($.inputType!="insertCompositionText"||!(M.state.selection instanceof GapCursor))return!1;let{$from:I}=M.state.selection,N=I.parent.contentMatchAt(I.index()).findWrapping(M.state.schema.nodes.text);if(!N)return!1;let B=Fragment.empty;for(let U=N.length-1;U>=0;U--)B=Fragment.from(N[U].createAndFill(null,B));let j=M.state.tr.replace(I.pos,I.pos,new Slice(B,0,0));return j.setSelection(TextSelection.near(j.doc.resolve(I.pos+1))),M.dispatch(j),!1}function drawGapCursor(M){if(!(M.selection instanceof GapCursor))return null;let $=document.createElement("div");return $.className="ProseMirror-gapcursor",DecorationSet.create(M.doc,[Decoration.widget(M.selection.head,$,{key:"gapcursor"})])}const Gapcursor=Extension.create({name:"gapCursor",addProseMirrorPlugins(){return[gapCursor()]},extendNodeSchema(M){var $;const I={name:M.name,options:M.options,storage:M.storage};return{allowGapCursor:($=callOrReturn(getExtensionField(M,"allowGapCursor",I)))!==null&&$!==void 0?$:null}}}),HardBreak=Node$1.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:M}){return["br",mergeAttributes(this.options.HTMLAttributes,M)]},renderText(){return` `},addCommands(){return{setHardBreak:()=>({commands:M,chain:$,state:I,editor:N})=>M.first([()=>M.exitCode(),()=>M.command(()=>{const{selection:B,storedMarks:j}=I;if(B.$from.parent.type.spec.isolating)return!1;const{keepMarks:U}=this.options,{splittableMarks:q}=N.extensionManager,Y=j||B.$to.parentOffset&&B.$from.marks();return $().insertContent({type:this.name}).command(({tr:K,dispatch:G})=>{if(G&&Y&&U){const J=Y.filter(Z=>q.includes(Z.type.name));K.ensureMarks(J)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Heading=Node$1.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(M=>({tag:`h${M}`,attrs:{level:M}}))},renderHTML({node:M,HTMLAttributes:$}){return[`h${this.options.levels.includes(M.attrs.level)?M.attrs.level:this.options.levels[0]}`,mergeAttributes(this.options.HTMLAttributes,$),0]},addCommands(){return{setHeading:M=>({commands:$})=>this.options.levels.includes(M.level)?$.setNode(this.name,M):!1,toggleHeading:M=>({commands:$})=>this.options.levels.includes(M.level)?$.toggleNode(this.name,"paragraph",M):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((M,$)=>({...M,[`Mod-Alt-${$}`]:()=>this.editor.commands.toggleHeading({level:$})}),{})},addInputRules(){return this.options.levels.map(M=>textblockTypeInputRule({find:new RegExp(`^(#{1,${M}})\\s$`),type:this.type,getAttributes:{level:M}}))}});var GOOD_LEAF_SIZE=200,RopeSequence=function M(){};RopeSequence.prototype.append=function M($){return $.length?($=RopeSequence.from($),!this.length&&$||$.length<GOOD_LEAF_SIZE&&this.leafAppend($)||this.length<GOOD_LEAF_SIZE&&$.leafPrepend(this)||this.appendInner($)):this};RopeSequence.prototype.prepend=function M($){return $.length?RopeSequence.from($).append(this):this};RopeSequence.prototype.appendInner=function M($){return new Append(this,$)};RopeSequence.prototype.slice=function M($,I){return $===void 0&&($=0),I===void 0&&(I=this.length),$>=I?RopeSequence.empty:this.sliceInner(Math.max(0,$),Math.min(this.length,I))};RopeSequence.prototype.get=function M($){if(!($<0||$>=this.length))return this.getInner($)};RopeSequence.prototype.forEach=function M($,I,N){I===void 0&&(I=0),N===void 0&&(N=this.length),I<=N?this.forEachInner($,I,N,0):this.forEachInvertedInner($,I,N,0)};RopeSequence.prototype.map=function M($,I,N){I===void 0&&(I=0),N===void 0&&(N=this.length);var B=[];return this.forEach(function(j,U){return B.push($(j,U))},I,N),B};RopeSequence.from=function M($){return $ instanceof RopeSequence?$:$&&$.length?new Leaf($):RopeSequence.empty};var Leaf=function(M){function $(N){M.call(this),this.values=N}M&&($.__proto__=M),$.prototype=Object.create(M&&M.prototype),$.prototype.constructor=$;var I={length:{configurable:!0},depth:{configurable:!0}};return $.prototype.flatten=function(){return this.values},$.prototype.sliceInner=function(B,j){return B==0&&j==this.length?this:new $(this.values.slice(B,j))},$.prototype.getInner=function(B){return this.values[B]},$.prototype.forEachInner=function(B,j,U,q){for(var Y=j;Y<U;Y++)if(B(this.values[Y],q+Y)===!1)return!1},$.prototype.forEachInvertedInner=function(B,j,U,q){for(var Y=j-1;Y>=U;Y--)if(B(this.values[Y],q+Y)===!1)return!1},$.prototype.leafAppend=function(B){if(this.length+B.length<=GOOD_LEAF_SIZE)return new $(this.values.concat(B.flatten()))},$.prototype.leafPrepend=function(B){if(this.length+B.length<=GOOD_LEAF_SIZE)return new $(B.flatten().concat(this.values))},I.length.get=function(){return this.values.length},I.depth.get=function(){return 0},Object.defineProperties($.prototype,I),$}(RopeSequence);RopeSequence.empty=new Leaf([]);var Append=function(M){function $(I,N){M.call(this),this.left=I,this.right=N,this.length=I.length+N.length,this.depth=Math.max(I.depth,N.depth)+1}return M&&($.__proto__=M),$.prototype=Object.create(M&&M.prototype),$.prototype.constructor=$,$.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},$.prototype.getInner=function(N){return N<this.left.length?this.left.get(N):this.right.get(N-this.left.length)},$.prototype.forEachInner=function(N,B,j,U){var q=this.left.length;if(B<q&&this.left.forEachInner(N,B,Math.min(j,q),U)===!1||j>q&&this.right.forEachInner(N,Math.max(B-q,0),Math.min(this.length,j)-q,U+q)===!1)return!1},$.prototype.forEachInvertedInner=function(N,B,j,U){var q=this.left.length;if(B>q&&this.right.forEachInvertedInner(N,B-q,Math.max(j,q)-q,U+q)===!1||j<q&&this.left.forEachInvertedInner(N,Math.min(B,q),j,U)===!1)return!1},$.prototype.sliceInner=function(N,B){if(N==0&&B==this.length)return this;var j=this.left.length;return B<=j?this.left.slice(N,B):N>=j?this.right.slice(N-j,B-j):this.left.slice(N,j).append(this.right.slice(0,B-j))},$.prototype.leafAppend=function(N){var B=this.right.leafAppend(N);if(B)return new $(this.left,B)},$.prototype.leafPrepend=function(N){var B=this.left.leafPrepend(N);if(B)return new $(B,this.right)},$.prototype.appendInner=function(N){return this.left.depth>=Math.max(this.right.depth,N.depth)+1?new $(this.left,new $(this.right,N)):new $(this,N)},$}(RopeSequence);const max_empty_items=500;class Branch{constructor($,I){this.items=$,this.eventCount=I}popEvent($,I){if(this.eventCount==0)return null;let N=this.items.length;for(;;N--)if(this.items.get(N-1).selection){--N;break}let B,j;I&&(B=this.remapping(N,this.items.length),j=B.maps.length);let U=$.tr,q,Y,K=[],G=[];return this.items.forEach((J,Z)=>{if(!J.step){B||(B=this.remapping(N,Z+1),j=B.maps.length),j--,G.push(J);return}if(B){G.push(new Item(J.map));let ee=J.step.map(B.slice(j)),te;ee&&U.maybeStep(ee).doc&&(te=U.mapping.maps[U.mapping.maps.length-1],K.push(new Item(te,void 0,void 0,K.length+G.length))),j--,te&&B.appendMap(te,j)}else U.maybeStep(J.step);if(J.selection)return q=B?J.selection.map(B.slice(j)):J.selection,Y=new Branch(this.items.slice(0,N).append(G.reverse().concat(K)),this.eventCount-1),!1},this.items.length,0),{remaining:Y,transform:U,selection:q}}addTransform($,I,N,B){let j=[],U=this.eventCount,q=this.items,Y=!B&&q.length?q.get(q.length-1):null;for(let G=0;G<$.steps.length;G++){let J=$.steps[G].invert($.docs[G]),Z=new Item($.mapping.maps[G],J,I),ee;(ee=Y&&Y.merge(Z))&&(Z=ee,G?j.pop():q=q.slice(0,q.length-1)),j.push(Z),I&&(U++,I=void 0),B||(Y=Z)}let K=U-N.depth;return K>DEPTH_OVERFLOW&&(q=cutOffEvents(q,K),U-=K),new Branch(q.append(j),U)}remapping($,I){let N=new Mapping;return this.items.forEach((B,j)=>{let U=B.mirrorOffset!=null&&j-B.mirrorOffset>=$?N.maps.length-B.mirrorOffset:void 0;N.appendMap(B.map,U)},$,I),N}addMaps($){return this.eventCount==0?this:new Branch(this.items.append($.map(I=>new Item(I))),this.eventCount)}rebased($,I){if(!this.eventCount)return this;let N=[],B=Math.max(0,this.items.length-I),j=$.mapping,U=$.steps.length,q=this.eventCount;this.items.forEach(Z=>{Z.selection&&q--},B);let Y=I;this.items.forEach(Z=>{let ee=j.getMirror(--Y);if(ee==null)return;U=Math.min(U,ee);let te=j.maps[ee];if(Z.step){let se=$.steps[ee].invert($.docs[ee]),re=Z.selection&&Z.selection.map(j.slice(Y+1,ee));re&&q++,N.push(new Item(te,se,re))}else N.push(new Item(te))},B);let K=[];for(let Z=I;Z<U;Z++)K.push(new Item(j.maps[Z]));let G=this.items.slice(0,B).append(K).append(N),J=new Branch(G,q);return J.emptyItemCount()>max_empty_items&&(J=J.compress(this.items.length-N.length)),J}emptyItemCount(){let $=0;return this.items.forEach(I=>{I.step||$++}),$}compress($=this.items.length){let I=this.remapping(0,$),N=I.maps.length,B=[],j=0;return this.items.forEach((U,q)=>{if(q>=$)B.push(U),U.selection&&j++;else if(U.step){let Y=U.step.map(I.slice(N)),K=Y&&Y.getMap();if(N--,K&&I.appendMap(K,N),Y){let G=U.selection&&U.selection.map(I.slice(N));G&&j++;let J=new Item(K.invert(),Y,G),Z,ee=B.length-1;(Z=B.length&&B[ee].merge(J))?B[ee]=Z:B.push(J)}}else U.map&&N--},this.items.length,0),new Branch(RopeSequence.from(B.reverse()),j)}}Branch.empty=new Branch(RopeSequence.empty,0);function cutOffEvents(M,$){let I;return M.forEach((N,B)=>{if(N.selection&&$--==0)return I=B,!1}),M.slice(I)}class Item{constructor($,I,N,B){this.map=$,this.step=I,this.selection=N,this.mirrorOffset=B}merge($){if(this.step&&$.step&&!$.selection){let I=$.step.merge(this.step);if(I)return new Item(I.getMap().invert(),I,this.selection)}}}class HistoryState{constructor($,I,N,B,j){this.done=$,this.undone=I,this.prevRanges=N,this.prevTime=B,this.prevComposition=j}}const DEPTH_OVERFLOW=20;function applyTransaction(M,$,I,N){let B=I.getMeta(historyKey),j;if(B)return B.historyState;I.getMeta(closeHistoryKey)&&(M=new HistoryState(M.done,M.undone,null,0,-1));let U=I.getMeta("appendedTransaction");if(I.steps.length==0)return M;if(U&&U.getMeta(historyKey))return U.getMeta(historyKey).redo?new HistoryState(M.done.addTransform(I,void 0,N,mustPreserveItems($)),M.undone,rangesFor(I.mapping.maps),M.prevTime,M.prevComposition):new HistoryState(M.done,M.undone.addTransform(I,void 0,N,mustPreserveItems($)),null,M.prevTime,M.prevComposition);if(I.getMeta("addToHistory")!==!1&&!(U&&U.getMeta("addToHistory")===!1)){let q=I.getMeta("composition"),Y=M.prevTime==0||!U&&M.prevComposition!=q&&(M.prevTime<(I.time||0)-N.newGroupDelay||!isAdjacentTo(I,M.prevRanges)),K=U?mapRanges(M.prevRanges,I.mapping):rangesFor(I.mapping.maps);return new HistoryState(M.done.addTransform(I,Y?$.selection.getBookmark():void 0,N,mustPreserveItems($)),Branch.empty,K,I.time,q??M.prevComposition)}else return(j=I.getMeta("rebased"))?new HistoryState(M.done.rebased(I,j),M.undone.rebased(I,j),mapRanges(M.prevRanges,I.mapping),M.prevTime,M.prevComposition):new HistoryState(M.done.addMaps(I.mapping.maps),M.undone.addMaps(I.mapping.maps),mapRanges(M.prevRanges,I.mapping),M.prevTime,M.prevComposition)}function isAdjacentTo(M,$){if(!$)return!1;if(!M.docChanged)return!0;let I=!1;return M.mapping.maps[0].forEach((N,B)=>{for(let j=0;j<$.length;j+=2)N<=$[j+1]&&B>=$[j]&&(I=!0)}),I}function rangesFor(M){let $=[];for(let I=M.length-1;I>=0&&$.length==0;I--)M[I].forEach((N,B,j,U)=>$.push(j,U));return $}function mapRanges(M,$){if(!M)return null;let I=[];for(let N=0;N<M.length;N+=2){let B=$.map(M[N],1),j=$.map(M[N+1],-1);B<=j&&I.push(B,j)}return I}function histTransaction(M,$,I){let N=mustPreserveItems($),B=historyKey.get($).spec.config,j=(I?M.undone:M.done).popEvent($,N);if(!j)return null;let U=j.selection.resolve(j.transform.doc),q=(I?M.done:M.undone).addTransform(j.transform,$.selection.getBookmark(),B,N),Y=new HistoryState(I?q:j.remaining,I?j.remaining:q,null,0,-1);return j.transform.setSelection(U).setMeta(historyKey,{redo:I,historyState:Y})}let cachedPreserveItems=!1,cachedPreserveItemsPlugins=null;function mustPreserveItems(M){let $=M.plugins;if(cachedPreserveItemsPlugins!=$){cachedPreserveItems=!1,cachedPreserveItemsPlugins=$;for(let I=0;I<$.length;I++)if($[I].spec.historyPreserveItems){cachedPreserveItems=!0;break}}return cachedPreserveItems}const historyKey=new PluginKey("history"),closeHistoryKey=new PluginKey("closeHistory");function history(M={}){return M={depth:M.depth||100,newGroupDelay:M.newGroupDelay||500},new Plugin({key:historyKey,state:{init(){return new HistoryState(Branch.empty,Branch.empty,null,0,-1)},apply($,I,N){return applyTransaction(I,N,$,M)}},config:M,props:{handleDOMEvents:{beforeinput($,I){let N=I.inputType,B=N=="historyUndo"?undo:N=="historyRedo"?redo:null;return B?(I.preventDefault(),B($.state,$.dispatch)):!1}}}})}function buildCommand(M,$){return(I,N)=>{let B=historyKey.getState(I);if(!B||(M?B.undone:B.done).eventCount==0)return!1;if(N){let j=histTransaction(B,I,M);j&&N($?j.scrollIntoView():j)}return!0}}const undo=buildCommand(!1,!0),redo=buildCommand(!0,!0),History=Extension.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:M,dispatch:$})=>undo(M,$),redo:()=>({state:M,dispatch:$})=>redo(M,$)}},addProseMirrorPlugins(){return[history(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),HorizontalRule=Node$1.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:M}){return["hr",mergeAttributes(this.options.HTMLAttributes,M)]},addCommands(){return{setHorizontalRule:()=>({chain:M,state:$})=>{const{selection:I}=$,{$from:N,$to:B}=I,j=M();return N.parentOffset===0?j.insertContentAt({from:Math.max(N.pos-1,0),to:B.pos},{type:this.name}):isNodeSelection(I)?j.insertContentAt(B.pos,{type:this.name}):j.insertContent({type:this.name}),j.command(({tr:U,dispatch:q})=>{var Y;if(q){const{$to:K}=U.selection,G=K.end();if(K.nodeAfter)K.nodeAfter.isTextblock?U.setSelection(TextSelection.create(U.doc,K.pos+1)):K.nodeAfter.isBlock?U.setSelection(NodeSelection.create(U.doc,K.pos)):U.setSelection(TextSelection.create(U.doc,K.pos));else{const J=(Y=K.parent.type.contentMatch.defaultType)===null||Y===void 0?void 0:Y.create();J&&(U.insert(G,J),U.setSelection(TextSelection.create(U.doc,G+1)))}U.scrollIntoView()}return!0}).run()}}},addInputRules(){return[nodeInputRule({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),starInputRegex=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,starPasteRegex=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,underscoreInputRegex=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,underscorePasteRegex=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Italic=Mark.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:M=>M.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:M}){return["em",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setItalic:()=>({commands:M})=>M.setMark(this.name),toggleItalic:()=>({commands:M})=>M.toggleMark(this.name),unsetItalic:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[markInputRule({find:starInputRegex,type:this.type}),markInputRule({find:underscoreInputRegex,type:this.type})]},addPasteRules(){return[markPasteRule({find:starPasteRegex,type:this.type}),markPasteRule({find:underscorePasteRegex,type:this.type})]}}),inputRegex$1=/^(\d+)\.\s$/,OrderedList=Node$1.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:M=>M.hasAttribute("start")?parseInt(M.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:M=>M.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:M}){const{start:$,...I}=M;return $===1?["ol",mergeAttributes(this.options.HTMLAttributes,I),0]:["ol",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{toggleOrderedList:()=>({commands:M,chain:$})=>this.options.keepAttributes?$().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ListItem.name,this.editor.getAttributes(TextStyle.name)).run():M.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let M=wrappingInputRule({find:inputRegex$1,type:this.type,getAttributes:$=>({start:+$[1]}),joinPredicate:($,I)=>I.childCount+I.attrs.start===+$[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(M=wrappingInputRule({find:inputRegex$1,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:$=>({start:+$[1],...this.editor.getAttributes(TextStyle.name)}),joinPredicate:($,I)=>I.childCount+I.attrs.start===+$[1],editor:this.editor})),[M]}}),Paragraph=Node$1.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:M}){return["p",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setParagraph:()=>({commands:M})=>M.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Placeholder=Extension.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("placeholder"),props:{decorations:({doc:M,selection:$})=>{const I=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:N}=$,B=[];if(!I)return null;const j=this.editor.isEmpty;return M.descendants((U,q)=>{const Y=N>=q&&N<=q+U.nodeSize,K=!U.isLeaf&&isNodeEmpty(U);if((Y||!this.options.showOnlyCurrent)&&K){const G=[this.options.emptyNodeClass];j&&G.push(this.options.emptyEditorClass);const J=Decoration.node(q,q+U.nodeSize,{class:G.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:U,pos:q,hasAnchor:Y}):this.options.placeholder});B.push(J)}return this.options.includeChildren}),DecorationSet.create(M,B)}}})]}}),inputRegex=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,pasteRegex=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Strike=Mark.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:M=>M.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:M}){return["s",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setStrike:()=>({commands:M})=>M.setMark(this.name),toggleStrike:()=>({commands:M})=>M.toggleMark(this.name),unsetStrike:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[markInputRule({find:inputRegex,type:this.type})]},addPasteRules(){return[markPasteRule({find:pasteRegex,type:this.type})]}}),Subscript=Mark.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(M){return M!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:M}){return["sub",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setSubscript:()=>({commands:M})=>M.setMark(this.name),toggleSubscript:()=>({commands:M})=>M.toggleMark(this.name),unsetSubscript:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),Superscript=Mark.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(M){return M!=="super"?!1:null}}]},renderHTML({HTMLAttributes:M}){return["sup",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setSuperscript:()=>({commands:M})=>M.setMark(this.name),toggleSuperscript:()=>({commands:M})=>M.toggleMark(this.name),unsetSuperscript:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}});var readFromCache,addToCache;if(typeof WeakMap<"u"){let M=new WeakMap;readFromCache=$=>M.get($),addToCache=($,I)=>(M.set($,I),I)}else{const M=[];let I=0;readFromCache=N=>{for(let B=0;B<M.length;B+=2)if(M[B]==N)return M[B+1]},addToCache=(N,B)=>(I==10&&(I=0),M[I++]=N,M[I++]=B)}var TableMap=class{constructor(M,$,I,N){this.width=M,this.height=$,this.map=I,this.problems=N}findCell(M){for(let $=0;$<this.map.length;$++){const I=this.map[$];if(I!=M)continue;const N=$%this.width,B=$/this.width|0;let j=N+1,U=B+1;for(let q=1;j<this.width&&this.map[$+q]==I;q++)j++;for(let q=1;U<this.height&&this.map[$+this.width*q]==I;q++)U++;return{left:N,top:B,right:j,bottom:U}}throw new RangeError(`No cell with offset ${M} found`)}colCount(M){for(let $=0;$<this.map.length;$++)if(this.map[$]==M)return $%this.width;throw new RangeError(`No cell with offset ${M} found`)}nextCell(M,$,I){const{left:N,right:B,top:j,bottom:U}=this.findCell(M);return $=="horiz"?(I<0?N==0:B==this.width)?null:this.map[j*this.width+(I<0?N-1:B)]:(I<0?j==0:U==this.height)?null:this.map[N+this.width*(I<0?j-1:U)]}rectBetween(M,$){const{left:I,right:N,top:B,bottom:j}=this.findCell(M),{left:U,right:q,top:Y,bottom:K}=this.findCell($);return{left:Math.min(I,U),top:Math.min(B,Y),right:Math.max(N,q),bottom:Math.max(j,K)}}cellsInRect(M){const $=[],I={};for(let N=M.top;N<M.bottom;N++)for(let B=M.left;B<M.right;B++){const j=N*this.width+B,U=this.map[j];I[U]||(I[U]=!0,!(B==M.left&&B&&this.map[j-1]==U||N==M.top&&N&&this.map[j-this.width]==U)&&$.push(U))}return $}positionAt(M,$,I){for(let N=0,B=0;;N++){const j=B+I.child(N).nodeSize;if(N==M){let U=$+M*this.width;const q=(M+1)*this.width;for(;U<q&&this.map[U]<B;)U++;return U==q?j-1:this.map[U]}B=j}}static get(M){return readFromCache(M)||addToCache(M,computeMap(M))}};function computeMap(M){if(M.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+M.type.name);const $=findWidth(M),I=M.childCount,N=[];let B=0,j=null;const U=[];for(let K=0,G=$*I;K<G;K++)N[K]=0;for(let K=0,G=0;K<I;K++){const J=M.child(K);G++;for(let te=0;;te++){for(;B<N.length&&N[B]!=0;)B++;if(te==J.childCount)break;const se=J.child(te),{colspan:re,rowspan:ne,colwidth:ce}=se.attrs;for(let me=0;me<ne;me++){if(me+K>=I){(j||(j=[])).push({type:"overlong_rowspan",pos:G,n:ne-me});break}const ue=B+me*$;for(let _e=0;_e<re;_e++){N[ue+_e]==0?N[ue+_e]=G:(j||(j=[])).push({type:"collision",row:K,pos:G,n:re-_e});const fe=ce&&ce[_e];if(fe){const ge=(ue+_e)%$*2,ye=U[ge];ye==null||ye!=fe&&U[ge+1]==1?(U[ge]=fe,U[ge+1]=1):ye==fe&&U[ge+1]++}}}B+=re,G+=se.nodeSize}const Z=(K+1)*$;let ee=0;for(;B<Z;)N[B++]==0&&ee++;ee&&(j||(j=[])).push({type:"missing",row:K,n:ee}),G++}const q=new TableMap($,I,N,j);let Y=!1;for(let K=0;!Y&&K<U.length;K+=2)U[K]!=null&&U[K+1]<I&&(Y=!0);return Y&&findBadColWidths(q,U,M),q}function findWidth(M){let $=-1,I=!1;for(let N=0;N<M.childCount;N++){const B=M.child(N);let j=0;if(I)for(let U=0;U<N;U++){const q=M.child(U);for(let Y=0;Y<q.childCount;Y++){const K=q.child(Y);U+K.attrs.rowspan>N&&(j+=K.attrs.colspan)}}for(let U=0;U<B.childCount;U++){const q=B.child(U);j+=q.attrs.colspan,q.attrs.rowspan>1&&(I=!0)}$==-1?$=j:$!=j&&($=Math.max($,j))}return $}function findBadColWidths(M,$,I){M.problems||(M.problems=[]);const N={};for(let B=0;B<M.map.length;B++){const j=M.map[B];if(N[j])continue;N[j]=!0;const U=I.nodeAt(j);if(!U)throw new RangeError(`No cell with offset ${j} found`);let q=null;const Y=U.attrs;for(let K=0;K<Y.colspan;K++){const G=(B+K)%M.width,J=$[G*2];J!=null&&(!Y.colwidth||Y.colwidth[K]!=J)&&((q||(q=freshColWidth(Y)))[K]=J)}q&&M.problems.unshift({type:"colwidth mismatch",pos:j,colwidth:q})}}function freshColWidth(M){if(M.colwidth)return M.colwidth.slice();const $=[];for(let I=0;I<M.colspan;I++)$.push(0);return $}function tableNodeTypes(M){let $=M.cached.tableNodeTypes;if(!$){$=M.cached.tableNodeTypes={};for(const I in M.nodes){const N=M.nodes[I],B=N.spec.tableRole;B&&($[B]=N)}}return $}var tableEditingKey=new PluginKey("selectingCells");function cellAround(M){for(let $=M.depth-1;$>0;$--)if(M.node($).type.spec.tableRole=="row")return M.node(0).resolve(M.before($+1));return null}function cellWrapping(M){for(let $=M.depth;$>0;$--){const I=M.node($).type.spec.tableRole;if(I==="cell"||I==="header_cell")return M.node($)}return null}function isInTable(M){const $=M.selection.$head;for(let I=$.depth;I>0;I--)if($.node(I).type.spec.tableRole=="row")return!0;return!1}function selectionCell(M){const $=M.selection;if("$anchorCell"in $&&$.$anchorCell)return $.$anchorCell.pos>$.$headCell.pos?$.$anchorCell:$.$headCell;if("node"in $&&$.node&&$.node.type.spec.tableRole=="cell")return $.$anchor;const I=cellAround($.$head)||cellNear($.$head);if(I)return I;throw new RangeError(`No cell found around position ${$.head}`)}function cellNear(M){for(let $=M.nodeAfter,I=M.pos;$;$=$.firstChild,I++){const N=$.type.spec.tableRole;if(N=="cell"||N=="header_cell")return M.doc.resolve(I)}for(let $=M.nodeBefore,I=M.pos;$;$=$.lastChild,I--){const N=$.type.spec.tableRole;if(N=="cell"||N=="header_cell")return M.doc.resolve(I-$.nodeSize)}}function pointsAtCell(M){return M.parent.type.spec.tableRole=="row"&&!!M.nodeAfter}function moveCellForward(M){return M.node(0).resolve(M.pos+M.nodeAfter.nodeSize)}function inSameTable(M,$){return M.depth==$.depth&&M.pos>=$.start(-1)&&M.pos<=$.end(-1)}function nextCell(M,$,I){const N=M.node(-1),B=TableMap.get(N),j=M.start(-1),U=B.nextCell(M.pos-j,$,I);return U==null?null:M.node(0).resolve(j+U)}function removeColSpan(M,$,I=1){const N={...M,colspan:M.colspan-I};return N.colwidth&&(N.colwidth=N.colwidth.slice(),N.colwidth.splice($,I),N.colwidth.some(B=>B>0)||(N.colwidth=null)),N}function addColSpan(M,$,I=1){const N={...M,colspan:M.colspan+I};if(N.colwidth){N.colwidth=N.colwidth.slice();for(let B=0;B<I;B++)N.colwidth.splice($,0,0)}return N}function columnIsHeader(M,$,I){const N=tableNodeTypes($.type.schema).header_cell;for(let B=0;B<M.height;B++)if($.nodeAt(M.map[I+B*M.width]).type!=N)return!1;return!0}var CellSelection=class fo extends Selection{constructor($,I=$){const N=$.node(-1),B=TableMap.get(N),j=$.start(-1),U=B.rectBetween($.pos-j,I.pos-j),q=$.node(0),Y=B.cellsInRect(U).filter(G=>G!=I.pos-j);Y.unshift(I.pos-j);const K=Y.map(G=>{const J=N.nodeAt(G);if(!J)throw RangeError(`No cell with offset ${G} found`);const Z=j+G+1;return new SelectionRange(q.resolve(Z),q.resolve(Z+J.content.size))});super(K[0].$from,K[0].$to,K),this.$anchorCell=$,this.$headCell=I}map($,I){const N=$.resolve(I.map(this.$anchorCell.pos)),B=$.resolve(I.map(this.$headCell.pos));if(pointsAtCell(N)&&pointsAtCell(B)&&inSameTable(N,B)){const j=this.$anchorCell.node(-1)!=N.node(-1);return j&&this.isRowSelection()?fo.rowSelection(N,B):j&&this.isColSelection()?fo.colSelection(N,B):new fo(N,B)}return TextSelection.between(N,B)}content(){const $=this.$anchorCell.node(-1),I=TableMap.get($),N=this.$anchorCell.start(-1),B=I.rectBetween(this.$anchorCell.pos-N,this.$headCell.pos-N),j={},U=[];for(let Y=B.top;Y<B.bottom;Y++){const K=[];for(let G=Y*I.width+B.left,J=B.left;J<B.right;J++,G++){const Z=I.map[G];if(j[Z])continue;j[Z]=!0;const ee=I.findCell(Z);let te=$.nodeAt(Z);if(!te)throw RangeError(`No cell with offset ${Z} found`);const se=B.left-ee.left,re=ee.right-B.right;if(se>0||re>0){let ne=te.attrs;if(se>0&&(ne=removeColSpan(ne,0,se)),re>0&&(ne=removeColSpan(ne,ne.colspan-re,re)),ee.left<B.left){if(te=te.type.createAndFill(ne),!te)throw RangeError(`Could not create cell with attrs ${JSON.stringify(ne)}`)}else te=te.type.create(ne,te.content)}if(ee.top<B.top||ee.bottom>B.bottom){const ne={...te.attrs,rowspan:Math.min(ee.bottom,B.bottom)-Math.max(ee.top,B.top)};ee.top<B.top?te=te.type.createAndFill(ne):te=te.type.create(ne,te.content)}K.push(te)}U.push($.child(Y).copy(Fragment.from(K)))}const q=this.isColSelection()&&this.isRowSelection()?$:U;return new Slice(Fragment.from(q),1,1)}replace($,I=Slice.empty){const N=$.steps.length,B=this.ranges;for(let U=0;U<B.length;U++){const{$from:q,$to:Y}=B[U],K=$.mapping.slice(N);$.replace(K.map(q.pos),K.map(Y.pos),U?Slice.empty:I)}const j=Selection.findFrom($.doc.resolve($.mapping.slice(N).map(this.to)),-1);j&&$.setSelection(j)}replaceWith($,I){this.replace($,new Slice(Fragment.from(I),0,0))}forEachCell($){const I=this.$anchorCell.node(-1),N=TableMap.get(I),B=this.$anchorCell.start(-1),j=N.cellsInRect(N.rectBetween(this.$anchorCell.pos-B,this.$headCell.pos-B));for(let U=0;U<j.length;U++)$(I.nodeAt(j[U]),B+j[U])}isColSelection(){const $=this.$anchorCell.index(-1),I=this.$headCell.index(-1);if(Math.min($,I)>0)return!1;const N=$+this.$anchorCell.nodeAfter.attrs.rowspan,B=I+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(N,B)==this.$headCell.node(-1).childCount}static colSelection($,I=$){const N=$.node(-1),B=TableMap.get(N),j=$.start(-1),U=B.findCell($.pos-j),q=B.findCell(I.pos-j),Y=$.node(0);return U.top<=q.top?(U.top>0&&($=Y.resolve(j+B.map[U.left])),q.bottom<B.height&&(I=Y.resolve(j+B.map[B.width*(B.height-1)+q.right-1]))):(q.top>0&&(I=Y.resolve(j+B.map[q.left])),U.bottom<B.height&&($=Y.resolve(j+B.map[B.width*(B.height-1)+U.right-1]))),new fo($,I)}isRowSelection(){const $=this.$anchorCell.node(-1),I=TableMap.get($),N=this.$anchorCell.start(-1),B=I.colCount(this.$anchorCell.pos-N),j=I.colCount(this.$headCell.pos-N);if(Math.min(B,j)>0)return!1;const U=B+this.$anchorCell.nodeAfter.attrs.colspan,q=j+this.$headCell.nodeAfter.attrs.colspan;return Math.max(U,q)==I.width}eq($){return $ instanceof fo&&$.$anchorCell.pos==this.$anchorCell.pos&&$.$headCell.pos==this.$headCell.pos}static rowSelection($,I=$){const N=$.node(-1),B=TableMap.get(N),j=$.start(-1),U=B.findCell($.pos-j),q=B.findCell(I.pos-j),Y=$.node(0);return U.left<=q.left?(U.left>0&&($=Y.resolve(j+B.map[U.top*B.width])),q.right<B.width&&(I=Y.resolve(j+B.map[B.width*(q.top+1)-1]))):(q.left>0&&(I=Y.resolve(j+B.map[q.top*B.width])),U.right<B.width&&($=Y.resolve(j+B.map[B.width*(U.top+1)-1]))),new fo($,I)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON($,I){return new fo($.resolve(I.anchor),$.resolve(I.head))}static create($,I,N=I){return new fo($.resolve(I),$.resolve(N))}getBookmark(){return new CellBookmark(this.$anchorCell.pos,this.$headCell.pos)}};CellSelection.prototype.visible=!1;Selection.jsonID("cell",CellSelection);var CellBookmark=class au{constructor($,I){this.anchor=$,this.head=I}map($){return new au($.map(this.anchor),$.map(this.head))}resolve($){const I=$.resolve(this.anchor),N=$.resolve(this.head);return I.parent.type.spec.tableRole=="row"&&N.parent.type.spec.tableRole=="row"&&I.index()<I.parent.childCount&&N.index()<N.parent.childCount&&inSameTable(I,N)?new CellSelection(I,N):Selection.near(N,1)}};function drawCellSelection(M){if(!(M.selection instanceof CellSelection))return null;const $=[];return M.selection.forEachCell((I,N)=>{$.push(Decoration.node(N,N+I.nodeSize,{class:"selectedCell"}))}),DecorationSet.create(M.doc,$)}function isCellBoundarySelection({$from:M,$to:$}){if(M.pos==$.pos||M.pos<M.pos-6)return!1;let I=M.pos,N=$.pos,B=M.depth;for(;B>=0&&!(M.after(B+1)<M.end(B));B--,I++);for(let j=$.depth;j>=0&&!($.before(j+1)>$.start(j));j--,N--);return I==N&&/row|table/.test(M.node(B).type.spec.tableRole)}function isTextSelectionAcrossCells({$from:M,$to:$}){let I,N;for(let B=M.depth;B>0;B--){const j=M.node(B);if(j.type.spec.tableRole==="cell"||j.type.spec.tableRole==="header_cell"){I=j;break}}for(let B=$.depth;B>0;B--){const j=$.node(B);if(j.type.spec.tableRole==="cell"||j.type.spec.tableRole==="header_cell"){N=j;break}}return I!==N&&$.parentOffset===0}function normalizeSelection(M,$,I){const N=($||M).selection,B=($||M).doc;let j,U;if(N instanceof NodeSelection&&(U=N.node.type.spec.tableRole)){if(U=="cell"||U=="header_cell")j=CellSelection.create(B,N.from);else if(U=="row"){const q=B.resolve(N.from+1);j=CellSelection.rowSelection(q,q)}else if(!I){const q=TableMap.get(N.node),Y=N.from+1,K=Y+q.map[q.width*q.height-1];j=CellSelection.create(B,Y+1,K)}}else N instanceof TextSelection&&isCellBoundarySelection(N)?j=TextSelection.create(B,N.from):N instanceof TextSelection&&isTextSelectionAcrossCells(N)&&(j=TextSelection.create(B,N.$from.start(),N.$from.end()));return j&&($||($=M.tr)).setSelection(j),$}var fixTablesKey=new PluginKey("fix-tables");function changedDescendants(M,$,I,N){const B=M.childCount,j=$.childCount;e:for(let U=0,q=0;U<j;U++){const Y=$.child(U);for(let K=q,G=Math.min(B,U+3);K<G;K++)if(M.child(K)==Y){q=K+1,I+=Y.nodeSize;continue e}N(Y,I),q<B&&M.child(q).sameMarkup(Y)?changedDescendants(M.child(q),Y,I+1,N):Y.nodesBetween(0,Y.content.size,N,I+1),I+=Y.nodeSize}}function fixTables(M,$){let I;const N=(B,j)=>{B.type.spec.tableRole=="table"&&(I=fixTable(M,B,j,I))};return $?$.doc!=M.doc&&changedDescendants($.doc,M.doc,0,N):M.doc.descendants(N),I}function fixTable(M,$,I,N){const B=TableMap.get($);if(!B.problems)return N;N||(N=M.tr);const j=[];for(let Y=0;Y<B.height;Y++)j.push(0);for(let Y=0;Y<B.problems.length;Y++){const K=B.problems[Y];if(K.type=="collision"){const G=$.nodeAt(K.pos);if(!G)continue;const J=G.attrs;for(let Z=0;Z<J.rowspan;Z++)j[K.row+Z]+=K.n;N.setNodeMarkup(N.mapping.map(I+1+K.pos),null,removeColSpan(J,J.colspan-K.n,K.n))}else if(K.type=="missing")j[K.row]+=K.n;else if(K.type=="overlong_rowspan"){const G=$.nodeAt(K.pos);if(!G)continue;N.setNodeMarkup(N.mapping.map(I+1+K.pos),null,{...G.attrs,rowspan:G.attrs.rowspan-K.n})}else if(K.type=="colwidth mismatch"){const G=$.nodeAt(K.pos);if(!G)continue;N.setNodeMarkup(N.mapping.map(I+1+K.pos),null,{...G.attrs,colwidth:K.colwidth})}}let U,q;for(let Y=0;Y<j.length;Y++)j[Y]&&(U==null&&(U=Y),q=Y);for(let Y=0,K=I+1;Y<B.height;Y++){const G=$.child(Y),J=K+G.nodeSize,Z=j[Y];if(Z>0){let ee="cell";G.firstChild&&(ee=G.firstChild.type.spec.tableRole);const te=[];for(let re=0;re<Z;re++){const ne=tableNodeTypes(M.schema)[ee].createAndFill();ne&&te.push(ne)}const se=(Y==0||U==Y-1)&&q==Y?K+1:J-1;N.insert(N.mapping.map(se),te)}K=J}return N.setMeta(fixTablesKey,{fixTables:!0})}function selectedRect(M){const $=M.selection,I=selectionCell(M),N=I.node(-1),B=I.start(-1),j=TableMap.get(N);return{...$ instanceof CellSelection?j.rectBetween($.$anchorCell.pos-B,$.$headCell.pos-B):j.findCell(I.pos-B),tableStart:B,map:j,table:N}}function addColumn(M,{map:$,tableStart:I,table:N},B){let j=B>0?-1:0;columnIsHeader($,N,B+j)&&(j=B==0||B==$.width?null:0);for(let U=0;U<$.height;U++){const q=U*$.width+B;if(B>0&&B<$.width&&$.map[q-1]==$.map[q]){const Y=$.map[q],K=N.nodeAt(Y);M.setNodeMarkup(M.mapping.map(I+Y),null,addColSpan(K.attrs,B-$.colCount(Y))),U+=K.attrs.rowspan-1}else{const Y=j==null?tableNodeTypes(N.type.schema).cell:N.nodeAt($.map[q+j]).type,K=$.positionAt(U,B,N);M.insert(M.mapping.map(I+K),Y.createAndFill())}}return M}function addColumnBefore(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addColumn(M.tr,I,I.left))}return!0}function addColumnAfter(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addColumn(M.tr,I,I.right))}return!0}function removeColumn(M,{map:$,table:I,tableStart:N},B){const j=M.mapping.maps.length;for(let U=0;U<$.height;){const q=U*$.width+B,Y=$.map[q],K=I.nodeAt(Y),G=K.attrs;if(B>0&&$.map[q-1]==Y||B<$.width-1&&$.map[q+1]==Y)M.setNodeMarkup(M.mapping.slice(j).map(N+Y),null,removeColSpan(G,B-$.colCount(Y)));else{const J=M.mapping.slice(j).map(N+Y);M.delete(J,J+K.nodeSize)}U+=G.rowspan}}function deleteColumn(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M),N=M.tr;if(I.left==0&&I.right==I.map.width)return!1;for(let B=I.right-1;removeColumn(N,I,B),B!=I.left;B--){const j=I.tableStart?N.doc.nodeAt(I.tableStart-1):N.doc;if(!j)throw RangeError("No table found");I.table=j,I.map=TableMap.get(j)}$(N)}return!0}function rowIsHeader(M,$,I){var N;const B=tableNodeTypes($.type.schema).header_cell;for(let j=0;j<M.width;j++)if(((N=$.nodeAt(M.map[j+I*M.width]))==null?void 0:N.type)!=B)return!1;return!0}function addRow(M,{map:$,tableStart:I,table:N},B){var j;let U=I;for(let K=0;K<B;K++)U+=N.child(K).nodeSize;const q=[];let Y=B>0?-1:0;rowIsHeader($,N,B+Y)&&(Y=B==0||B==$.height?null:0);for(let K=0,G=$.width*B;K<$.width;K++,G++)if(B>0&&B<$.height&&$.map[G]==$.map[G-$.width]){const J=$.map[G],Z=N.nodeAt(J).attrs;M.setNodeMarkup(I+J,null,{...Z,rowspan:Z.rowspan+1}),K+=Z.colspan-1}else{const J=Y==null?tableNodeTypes(N.type.schema).cell:(j=N.nodeAt($.map[G+Y*$.width]))==null?void 0:j.type,Z=J==null?void 0:J.createAndFill();Z&&q.push(Z)}return M.insert(U,tableNodeTypes(N.type.schema).row.create(null,q)),M}function addRowBefore(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addRow(M.tr,I,I.top))}return!0}function addRowAfter(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M);$(addRow(M.tr,I,I.bottom))}return!0}function removeRow(M,{map:$,table:I,tableStart:N},B){let j=0;for(let K=0;K<B;K++)j+=I.child(K).nodeSize;const U=j+I.child(B).nodeSize,q=M.mapping.maps.length;M.delete(j+N,U+N);const Y=new Set;for(let K=0,G=B*$.width;K<$.width;K++,G++){const J=$.map[G];if(!Y.has(J)){if(Y.add(J),B>0&&J==$.map[G-$.width]){const Z=I.nodeAt(J).attrs;M.setNodeMarkup(M.mapping.slice(q).map(J+N),null,{...Z,rowspan:Z.rowspan-1}),K+=Z.colspan-1}else if(B<$.height&&J==$.map[G+$.width]){const Z=I.nodeAt(J),ee=Z.attrs,te=Z.type.create({...ee,rowspan:Z.attrs.rowspan-1},Z.content),se=$.positionAt(B+1,K,I);M.insert(M.mapping.slice(q).map(N+se),te),K+=ee.colspan-1}}}}function deleteRow(M,$){if(!isInTable(M))return!1;if($){const I=selectedRect(M),N=M.tr;if(I.top==0&&I.bottom==I.map.height)return!1;for(let B=I.bottom-1;removeRow(N,I,B),B!=I.top;B--){const j=I.tableStart?N.doc.nodeAt(I.tableStart-1):N.doc;if(!j)throw RangeError("No table found");I.table=j,I.map=TableMap.get(I.table)}$(N)}return!0}function isEmpty(M){const $=M.content;return $.childCount==1&&$.child(0).isTextblock&&$.child(0).childCount==0}function cellsOverlapRectangle({width:M,height:$,map:I},N){let B=N.top*M+N.left,j=B,U=(N.bottom-1)*M+N.left,q=B+(N.right-N.left-1);for(let Y=N.top;Y<N.bottom;Y++){if(N.left>0&&I[j]==I[j-1]||N.right<M&&I[q]==I[q+1])return!0;j+=M,q+=M}for(let Y=N.left;Y<N.right;Y++){if(N.top>0&&I[B]==I[B-M]||N.bottom<$&&I[U]==I[U+M])return!0;B++,U++}return!1}function mergeCells(M,$){const I=M.selection;if(!(I instanceof CellSelection)||I.$anchorCell.pos==I.$headCell.pos)return!1;const N=selectedRect(M),{map:B}=N;if(cellsOverlapRectangle(B,N))return!1;if($){const j=M.tr,U={};let q=Fragment.empty,Y,K;for(let G=N.top;G<N.bottom;G++)for(let J=N.left;J<N.right;J++){const Z=B.map[G*B.width+J],ee=N.table.nodeAt(Z);if(!(U[Z]||!ee))if(U[Z]=!0,Y==null)Y=Z,K=ee;else{isEmpty(ee)||(q=q.append(ee.content));const te=j.mapping.map(Z+N.tableStart);j.delete(te,te+ee.nodeSize)}}if(Y==null||K==null)return!0;if(j.setNodeMarkup(Y+N.tableStart,null,{...addColSpan(K.attrs,K.attrs.colspan,N.right-N.left-K.attrs.colspan),rowspan:N.bottom-N.top}),q.size){const G=Y+1+K.content.size,J=isEmpty(K)?Y+1:G;j.replaceWith(J+N.tableStart,G+N.tableStart,q)}j.setSelection(new CellSelection(j.doc.resolve(Y+N.tableStart))),$(j)}return!0}function splitCell(M,$){const I=tableNodeTypes(M.schema);return splitCellWithType(({node:N})=>I[N.type.spec.tableRole])(M,$)}function splitCellWithType(M){return($,I)=>{var N;const B=$.selection;let j,U;if(B instanceof CellSelection){if(B.$anchorCell.pos!=B.$headCell.pos)return!1;j=B.$anchorCell.nodeAfter,U=B.$anchorCell.pos}else{if(j=cellWrapping(B.$from),!j)return!1;U=(N=cellAround(B.$from))==null?void 0:N.pos}if(j==null||U==null||j.attrs.colspan==1&&j.attrs.rowspan==1)return!1;if(I){let q=j.attrs;const Y=[],K=q.colwidth;q.rowspan>1&&(q={...q,rowspan:1}),q.colspan>1&&(q={...q,colspan:1});const G=selectedRect($),J=$.tr;for(let ee=0;ee<G.right-G.left;ee++)Y.push(K?{...q,colwidth:K&&K[ee]?[K[ee]]:null}:q);let Z;for(let ee=G.top;ee<G.bottom;ee++){let te=G.map.positionAt(ee,G.left,G.table);ee==G.top&&(te+=j.nodeSize);for(let se=G.left,re=0;se<G.right;se++,re++)se==G.left&&ee==G.top||J.insert(Z=J.mapping.map(te+G.tableStart,1),M({node:j,row:ee,col:se}).createAndFill(Y[re]))}J.setNodeMarkup(U,M({node:j,row:G.top,col:G.left}),Y[0]),B instanceof CellSelection&&J.setSelection(new CellSelection(J.doc.resolve(B.$anchorCell.pos),Z?J.doc.resolve(Z):void 0)),I(J)}return!0}}function setCellAttr(M,$){return function(I,N){if(!isInTable(I))return!1;const B=selectionCell(I);if(B.nodeAfter.attrs[M]===$)return!1;if(N){const j=I.tr;I.selection instanceof CellSelection?I.selection.forEachCell((U,q)=>{U.attrs[M]!==$&&j.setNodeMarkup(q,null,{...U.attrs,[M]:$})}):j.setNodeMarkup(B.pos,null,{...B.nodeAfter.attrs,[M]:$}),N(j)}return!0}}function deprecated_toggleHeader(M){return function($,I){if(!isInTable($))return!1;if(I){const N=tableNodeTypes($.schema),B=selectedRect($),j=$.tr,U=B.map.cellsInRect(M=="column"?{left:B.left,top:0,right:B.right,bottom:B.map.height}:M=="row"?{left:0,top:B.top,right:B.map.width,bottom:B.bottom}:B),q=U.map(Y=>B.table.nodeAt(Y));for(let Y=0;Y<U.length;Y++)q[Y].type==N.header_cell&&j.setNodeMarkup(B.tableStart+U[Y],N.cell,q[Y].attrs);if(j.steps.length==0)for(let Y=0;Y<U.length;Y++)j.setNodeMarkup(B.tableStart+U[Y],N.header_cell,q[Y].attrs);I(j)}return!0}}function isHeaderEnabledByType(M,$,I){const N=$.map.cellsInRect({left:0,top:0,right:M=="row"?$.map.width:1,bottom:M=="column"?$.map.height:1});for(let B=0;B<N.length;B++){const j=$.table.nodeAt(N[B]);if(j&&j.type!==I.header_cell)return!1}return!0}function toggleHeader(M,$){return $=$||{useDeprecatedLogic:!1},$.useDeprecatedLogic?deprecated_toggleHeader(M):function(I,N){if(!isInTable(I))return!1;if(N){const B=tableNodeTypes(I.schema),j=selectedRect(I),U=I.tr,q=isHeaderEnabledByType("row",j,B),Y=isHeaderEnabledByType("column",j,B),G=(M==="column"?q:M==="row"?Y:!1)?1:0,J=M=="column"?{left:0,top:G,right:1,bottom:j.map.height}:M=="row"?{left:G,top:0,right:j.map.width,bottom:1}:j,Z=M=="column"?Y?B.cell:B.header_cell:M=="row"?q?B.cell:B.header_cell:B.cell;j.map.cellsInRect(J).forEach(ee=>{const te=ee+j.tableStart,se=U.doc.nodeAt(te);se&&U.setNodeMarkup(te,Z,se.attrs)}),N(U)}return!0}}toggleHeader("row",{useDeprecatedLogic:!0});toggleHeader("column",{useDeprecatedLogic:!0});var toggleHeaderCell=toggleHeader("cell",{useDeprecatedLogic:!0});function findNextCell(M,$){if($<0){const I=M.nodeBefore;if(I)return M.pos-I.nodeSize;for(let N=M.index(-1)-1,B=M.before();N>=0;N--){const j=M.node(-1).child(N),U=j.lastChild;if(U)return B-1-U.nodeSize;B-=j.nodeSize}}else{if(M.index()<M.parent.childCount-1)return M.pos+M.nodeAfter.nodeSize;const I=M.node(-1);for(let N=M.indexAfter(-1),B=M.after();N<I.childCount;N++){const j=I.child(N);if(j.childCount)return B+1;B+=j.nodeSize}}return null}function goToNextCell(M){return function($,I){if(!isInTable($))return!1;const N=findNextCell(selectionCell($),M);if(N==null)return!1;if(I){const B=$.doc.resolve(N);I($.tr.setSelection(TextSelection.between(B,moveCellForward(B))).scrollIntoView())}return!0}}function deleteTable(M,$){const I=M.selection.$anchor;for(let N=I.depth;N>0;N--)if(I.node(N).type.spec.tableRole=="table")return $&&$(M.tr.delete(I.before(N),I.after(N)).scrollIntoView()),!0;return!1}function deleteCellSelection(M,$){const I=M.selection;if(!(I instanceof CellSelection))return!1;if($){const N=M.tr,B=tableNodeTypes(M.schema).cell.createAndFill().content;I.forEachCell((j,U)=>{j.content.eq(B)||N.replace(N.mapping.map(U+1),N.mapping.map(U+j.nodeSize-1),new Slice(B,0,0))}),N.docChanged&&$(N)}return!0}function pastedCells(M){if(!M.size)return null;let{content:$,openStart:I,openEnd:N}=M;for(;$.childCount==1&&(I>0&&N>0||$.child(0).type.spec.tableRole=="table");)I--,N--,$=$.child(0).content;const B=$.child(0),j=B.type.spec.tableRole,U=B.type.schema,q=[];if(j=="row")for(let Y=0;Y<$.childCount;Y++){let K=$.child(Y).content;const G=Y?0:Math.max(0,I-1),J=Y<$.childCount-1?0:Math.max(0,N-1);(G||J)&&(K=fitSlice(tableNodeTypes(U).row,new Slice(K,G,J)).content),q.push(K)}else if(j=="cell"||j=="header_cell")q.push(I||N?fitSlice(tableNodeTypes(U).row,new Slice($,I,N)).content:$);else return null;return ensureRectangular(U,q)}function ensureRectangular(M,$){const I=[];for(let B=0;B<$.length;B++){const j=$[B];for(let U=j.childCount-1;U>=0;U--){const{rowspan:q,colspan:Y}=j.child(U).attrs;for(let K=B;K<B+q;K++)I[K]=(I[K]||0)+Y}}let N=0;for(let B=0;B<I.length;B++)N=Math.max(N,I[B]);for(let B=0;B<I.length;B++)if(B>=$.length&&$.push(Fragment.empty),I[B]<N){const j=tableNodeTypes(M).cell.createAndFill(),U=[];for(let q=I[B];q<N;q++)U.push(j);$[B]=$[B].append(Fragment.from(U))}return{height:$.length,width:N,rows:$}}function fitSlice(M,$){const I=M.createAndFill();return new Transform(I).replace(0,I.content.size,$).doc}function clipCells({width:M,height:$,rows:I},N,B){if(M!=N){const j=[],U=[];for(let q=0;q<I.length;q++){const Y=I[q],K=[];for(let G=j[q]||0,J=0;G<N;J++){let Z=Y.child(J%Y.childCount);G+Z.attrs.colspan>N&&(Z=Z.type.createChecked(removeColSpan(Z.attrs,Z.attrs.colspan,G+Z.attrs.colspan-N),Z.content)),K.push(Z),G+=Z.attrs.colspan;for(let ee=1;ee<Z.attrs.rowspan;ee++)j[q+ee]=(j[q+ee]||0)+Z.attrs.colspan}U.push(Fragment.from(K))}I=U,M=N}if($!=B){const j=[];for(let U=0,q=0;U<B;U++,q++){const Y=[],K=I[q%$];for(let G=0;G<K.childCount;G++){let J=K.child(G);U+J.attrs.rowspan>B&&(J=J.type.create({...J.attrs,rowspan:Math.max(1,B-J.attrs.rowspan)},J.content)),Y.push(J)}j.push(Fragment.from(Y))}I=j,$=B}return{width:M,height:$,rows:I}}function growTable(M,$,I,N,B,j,U){const q=M.doc.type.schema,Y=tableNodeTypes(q);let K,G;if(B>$.width)for(let J=0,Z=0;J<$.height;J++){const ee=I.child(J);Z+=ee.nodeSize;const te=[];let se;ee.lastChild==null||ee.lastChild.type==Y.cell?se=K||(K=Y.cell.createAndFill()):se=G||(G=Y.header_cell.createAndFill());for(let re=$.width;re<B;re++)te.push(se);M.insert(M.mapping.slice(U).map(Z-1+N),te)}if(j>$.height){const J=[];for(let te=0,se=($.height-1)*$.width;te<Math.max($.width,B);te++){const re=te>=$.width?!1:I.nodeAt($.map[se+te]).type==Y.header_cell;J.push(re?G||(G=Y.header_cell.createAndFill()):K||(K=Y.cell.createAndFill()))}const Z=Y.row.create(null,Fragment.from(J)),ee=[];for(let te=$.height;te<j;te++)ee.push(Z);M.insert(M.mapping.slice(U).map(N+I.nodeSize-2),ee)}return!!(K||G)}function isolateHorizontal(M,$,I,N,B,j,U,q){if(U==0||U==$.height)return!1;let Y=!1;for(let K=B;K<j;K++){const G=U*$.width+K,J=$.map[G];if($.map[G-$.width]==J){Y=!0;const Z=I.nodeAt(J),{top:ee,left:te}=$.findCell(J);M.setNodeMarkup(M.mapping.slice(q).map(J+N),null,{...Z.attrs,rowspan:U-ee}),M.insert(M.mapping.slice(q).map($.positionAt(U,te,I)),Z.type.createAndFill({...Z.attrs,rowspan:ee+Z.attrs.rowspan-U})),K+=Z.attrs.colspan-1}}return Y}function isolateVertical(M,$,I,N,B,j,U,q){if(U==0||U==$.width)return!1;let Y=!1;for(let K=B;K<j;K++){const G=K*$.width+U,J=$.map[G];if($.map[G-1]==J){Y=!0;const Z=I.nodeAt(J),ee=$.colCount(J),te=M.mapping.slice(q).map(J+N);M.setNodeMarkup(te,null,removeColSpan(Z.attrs,U-ee,Z.attrs.colspan-(U-ee))),M.insert(te+Z.nodeSize,Z.type.createAndFill(removeColSpan(Z.attrs,0,U-ee))),K+=Z.attrs.rowspan-1}}return Y}function insertCells(M,$,I,N,B){let j=I?M.doc.nodeAt(I-1):M.doc;if(!j)throw new Error("No table found");let U=TableMap.get(j);const{top:q,left:Y}=N,K=Y+B.width,G=q+B.height,J=M.tr;let Z=0;function ee(){if(j=I?J.doc.nodeAt(I-1):J.doc,!j)throw new Error("No table found");U=TableMap.get(j),Z=J.mapping.maps.length}growTable(J,U,j,I,K,G,Z)&&ee(),isolateHorizontal(J,U,j,I,Y,K,q,Z)&&ee(),isolateHorizontal(J,U,j,I,Y,K,G,Z)&&ee(),isolateVertical(J,U,j,I,q,G,Y,Z)&&ee(),isolateVertical(J,U,j,I,q,G,K,Z)&&ee();for(let te=q;te<G;te++){const se=U.positionAt(te,Y,j),re=U.positionAt(te,K,j);J.replace(J.mapping.slice(Z).map(se+I),J.mapping.slice(Z).map(re+I),new Slice(B.rows[te-q],0,0))}ee(),J.setSelection(new CellSelection(J.doc.resolve(I+U.positionAt(q,Y,j)),J.doc.resolve(I+U.positionAt(G-1,K-1,j)))),$(J)}var handleKeyDown=keydownHandler({ArrowLeft:arrow$1("horiz",-1),ArrowRight:arrow$1("horiz",1),ArrowUp:arrow$1("vert",-1),ArrowDown:arrow$1("vert",1),"Shift-ArrowLeft":shiftArrow("horiz",-1),"Shift-ArrowRight":shiftArrow("horiz",1),"Shift-ArrowUp":shiftArrow("vert",-1),"Shift-ArrowDown":shiftArrow("vert",1),Backspace:deleteCellSelection,"Mod-Backspace":deleteCellSelection,Delete:deleteCellSelection,"Mod-Delete":deleteCellSelection});function maybeSetSelection(M,$,I){return I.eq(M.selection)?!1:($&&$(M.tr.setSelection(I).scrollIntoView()),!0)}function arrow$1(M,$){return(I,N,B)=>{if(!B)return!1;const j=I.selection;if(j instanceof CellSelection)return maybeSetSelection(I,N,Selection.near(j.$headCell,$));if(M!="horiz"&&!j.empty)return!1;const U=atEndOfCell(B,M,$);if(U==null)return!1;if(M=="horiz")return maybeSetSelection(I,N,Selection.near(I.doc.resolve(j.head+$),$));{const q=I.doc.resolve(U),Y=nextCell(q,M,$);let K;return Y?K=Selection.near(Y,1):$<0?K=Selection.near(I.doc.resolve(q.before(-1)),-1):K=Selection.near(I.doc.resolve(q.after(-1)),1),maybeSetSelection(I,N,K)}}}function shiftArrow(M,$){return(I,N,B)=>{if(!B)return!1;const j=I.selection;let U;if(j instanceof CellSelection)U=j;else{const Y=atEndOfCell(B,M,$);if(Y==null)return!1;U=new CellSelection(I.doc.resolve(Y))}const q=nextCell(U.$headCell,M,$);return q?maybeSetSelection(I,N,new CellSelection(U.$anchorCell,q)):!1}}function handleTripleClick(M,$){const I=M.state.doc,N=cellAround(I.resolve($));return N?(M.dispatch(M.state.tr.setSelection(new CellSelection(N))),!0):!1}function handlePaste(M,$,I){if(!isInTable(M.state))return!1;let N=pastedCells(I);const B=M.state.selection;if(B instanceof CellSelection){N||(N={width:1,height:1,rows:[Fragment.from(fitSlice(tableNodeTypes(M.state.schema).cell,I))]});const j=B.$anchorCell.node(-1),U=B.$anchorCell.start(-1),q=TableMap.get(j).rectBetween(B.$anchorCell.pos-U,B.$headCell.pos-U);return N=clipCells(N,q.right-q.left,q.bottom-q.top),insertCells(M.state,M.dispatch,U,q,N),!0}else if(N){const j=selectionCell(M.state),U=j.start(-1);return insertCells(M.state,M.dispatch,U,TableMap.get(j.node(-1)).findCell(j.pos-U),N),!0}else return!1}function handleMouseDown(M,$){var I;if($.ctrlKey||$.metaKey)return;const N=domInCell(M,$.target);let B;if($.shiftKey&&M.state.selection instanceof CellSelection)j(M.state.selection.$anchorCell,$),$.preventDefault();else if($.shiftKey&&N&&(B=cellAround(M.state.selection.$anchor))!=null&&((I=cellUnderMouse(M,$))==null?void 0:I.pos)!=B.pos)j(B,$),$.preventDefault();else if(!N)return;function j(Y,K){let G=cellUnderMouse(M,K);const J=tableEditingKey.getState(M.state)==null;if(!G||!inSameTable(Y,G))if(J)G=Y;else return;const Z=new CellSelection(Y,G);if(J||!M.state.selection.eq(Z)){const ee=M.state.tr.setSelection(Z);J&&ee.setMeta(tableEditingKey,Y.pos),M.dispatch(ee)}}function U(){M.root.removeEventListener("mouseup",U),M.root.removeEventListener("dragstart",U),M.root.removeEventListener("mousemove",q),tableEditingKey.getState(M.state)!=null&&M.dispatch(M.state.tr.setMeta(tableEditingKey,-1))}function q(Y){const K=Y,G=tableEditingKey.getState(M.state);let J;if(G!=null)J=M.state.doc.resolve(G);else if(domInCell(M,K.target)!=N&&(J=cellUnderMouse(M,$),!J))return U();J&&j(J,K)}M.root.addEventListener("mouseup",U),M.root.addEventListener("dragstart",U),M.root.addEventListener("mousemove",q)}function atEndOfCell(M,$,I){if(!(M.state.selection instanceof TextSelection))return null;const{$head:N}=M.state.selection;for(let B=N.depth-1;B>=0;B--){const j=N.node(B);if((I<0?N.index(B):N.indexAfter(B))!=(I<0?0:j.childCount))return null;if(j.type.spec.tableRole=="cell"||j.type.spec.tableRole=="header_cell"){const q=N.before(B),Y=$=="vert"?I>0?"down":"up":I>0?"right":"left";return M.endOfTextblock(Y)?q:null}}return null}function domInCell(M,$){for(;$&&$!=M.dom;$=$.parentNode)if($.nodeName=="TD"||$.nodeName=="TH")return $;return null}function cellUnderMouse(M,$){const I=M.posAtCoords({left:$.clientX,top:$.clientY});return I&&I?cellAround(M.state.doc.resolve(I.pos)):null}var TableView$1=class{constructor($,I){this.node=$,this.cellMinWidth=I,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),updateColumnsOnResize($,this.colgroup,this.table,I),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update($){return $.type!=this.node.type?!1:(this.node=$,updateColumnsOnResize($,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation($){return $.type=="attributes"&&($.target==this.table||this.colgroup.contains($.target))}};function updateColumnsOnResize(M,$,I,N,B,j){var U;let q=0,Y=!0,K=$.firstChild;const G=M.firstChild;if(G){for(let J=0,Z=0;J<G.childCount;J++){const{colspan:ee,colwidth:te}=G.child(J).attrs;for(let se=0;se<ee;se++,Z++){const re=B==Z?j:te&&te[se],ne=re?re+"px":"";q+=re||N,re||(Y=!1),K?(K.style.width!=ne&&(K.style.width=ne),K=K.nextSibling):$.appendChild(document.createElement("col")).style.width=ne}}for(;K;){const J=K.nextSibling;(U=K.parentNode)==null||U.removeChild(K),K=J}Y?(I.style.width=q+"px",I.style.minWidth=""):(I.style.width="",I.style.minWidth=q+"px")}}var columnResizingPluginKey=new PluginKey("tableColumnResizing");function columnResizing({handleWidth:M=5,cellMinWidth:$=25,View:I=TableView$1,lastColumnResizable:N=!0}={}){const B=new Plugin({key:columnResizingPluginKey,state:{init(j,U){var q,Y;const K=(Y=(q=B.spec)==null?void 0:q.props)==null?void 0:Y.nodeViews,G=tableNodeTypes(U.schema).table.name;return I&&K&&(K[G]=(J,Z)=>new I(J,$,Z)),new ResizeState(-1,!1)},apply(j,U){return U.apply(j)}},props:{attributes:j=>{const U=columnResizingPluginKey.getState(j);return U&&U.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(j,U)=>{handleMouseMove(j,U,M,$,N)},mouseleave:j=>{handleMouseLeave(j)},mousedown:(j,U)=>{handleMouseDown2(j,U,$)}},decorations:j=>{const U=columnResizingPluginKey.getState(j);if(U&&U.activeHandle>-1)return handleDecorations(j,U.activeHandle)},nodeViews:{}}});return B}var ResizeState=class Nl{constructor($,I){this.activeHandle=$,this.dragging=I}apply($){const I=this,N=$.getMeta(columnResizingPluginKey);if(N&&N.setHandle!=null)return new Nl(N.setHandle,!1);if(N&&N.setDragging!==void 0)return new Nl(I.activeHandle,N.setDragging);if(I.activeHandle>-1&&$.docChanged){let B=$.mapping.map(I.activeHandle,-1);return pointsAtCell($.doc.resolve(B))||(B=-1),new Nl(B,I.dragging)}return I}};function handleMouseMove(M,$,I,N,B){const j=columnResizingPluginKey.getState(M.state);if(j&&!j.dragging){const U=domCellAround($.target);let q=-1;if(U){const{left:Y,right:K}=U.getBoundingClientRect();$.clientX-Y<=I?q=edgeCell(M,$,"left",I):K-$.clientX<=I&&(q=edgeCell(M,$,"right",I))}if(q!=j.activeHandle){if(!B&&q!==-1){const Y=M.state.doc.resolve(q),K=Y.node(-1),G=TableMap.get(K),J=Y.start(-1);if(G.colCount(Y.pos-J)+Y.nodeAfter.attrs.colspan-1==G.width-1)return}updateHandle(M,q)}}}function handleMouseLeave(M){const $=columnResizingPluginKey.getState(M.state);$&&$.activeHandle>-1&&!$.dragging&&updateHandle(M,-1)}function handleMouseDown2(M,$,I){var N;const B=(N=M.dom.ownerDocument.defaultView)!=null?N:window,j=columnResizingPluginKey.getState(M.state);if(!j||j.activeHandle==-1||j.dragging)return!1;const U=M.state.doc.nodeAt(j.activeHandle),q=currentColWidth(M,j.activeHandle,U.attrs);M.dispatch(M.state.tr.setMeta(columnResizingPluginKey,{setDragging:{startX:$.clientX,startWidth:q}}));function Y(G){B.removeEventListener("mouseup",Y),B.removeEventListener("mousemove",K);const J=columnResizingPluginKey.getState(M.state);J!=null&&J.dragging&&(updateColumnWidth(M,J.activeHandle,draggedWidth(J.dragging,G,I)),M.dispatch(M.state.tr.setMeta(columnResizingPluginKey,{setDragging:null})))}function K(G){if(!G.which)return Y(G);const J=columnResizingPluginKey.getState(M.state);if(J&&J.dragging){const Z=draggedWidth(J.dragging,G,I);displayColumnWidth(M,J.activeHandle,Z,I)}}return B.addEventListener("mouseup",Y),B.addEventListener("mousemove",K),$.preventDefault(),!0}function currentColWidth(M,$,{colspan:I,colwidth:N}){const B=N&&N[N.length-1];if(B)return B;const j=M.domAtPos($);let q=j.node.childNodes[j.offset].offsetWidth,Y=I;if(N)for(let K=0;K<I;K++)N[K]&&(q-=N[K],Y--);return q/Y}function domCellAround(M){for(;M&&M.nodeName!="TD"&&M.nodeName!="TH";)M=M.classList&&M.classList.contains("ProseMirror")?null:M.parentNode;return M}function edgeCell(M,$,I,N){const B=I=="right"?-N:N,j=M.posAtCoords({left:$.clientX+B,top:$.clientY});if(!j)return-1;const{pos:U}=j,q=cellAround(M.state.doc.resolve(U));if(!q)return-1;if(I=="right")return q.pos;const Y=TableMap.get(q.node(-1)),K=q.start(-1),G=Y.map.indexOf(q.pos-K);return G%Y.width==0?-1:K+Y.map[G-1]}function draggedWidth(M,$,I){const N=$.clientX-M.startX;return Math.max(I,M.startWidth+N)}function updateHandle(M,$){M.dispatch(M.state.tr.setMeta(columnResizingPluginKey,{setHandle:$}))}function updateColumnWidth(M,$,I){const N=M.state.doc.resolve($),B=N.node(-1),j=TableMap.get(B),U=N.start(-1),q=j.colCount(N.pos-U)+N.nodeAfter.attrs.colspan-1,Y=M.state.tr;for(let K=0;K<j.height;K++){const G=K*j.width+q;if(K&&j.map[G]==j.map[G-j.width])continue;const J=j.map[G],Z=B.nodeAt(J).attrs,ee=Z.colspan==1?0:q-j.colCount(J);if(Z.colwidth&&Z.colwidth[ee]==I)continue;const te=Z.colwidth?Z.colwidth.slice():zeroes(Z.colspan);te[ee]=I,Y.setNodeMarkup(U+J,null,{...Z,colwidth:te})}Y.docChanged&&M.dispatch(Y)}function displayColumnWidth(M,$,I,N){const B=M.state.doc.resolve($),j=B.node(-1),U=B.start(-1),q=TableMap.get(j).colCount(B.pos-U)+B.nodeAfter.attrs.colspan-1;let Y=M.domAtPos(B.start(-1)).node;for(;Y&&Y.nodeName!="TABLE";)Y=Y.parentNode;Y&&updateColumnsOnResize(j,Y.firstChild,Y,N,q,I)}function zeroes(M){return Array(M).fill(0)}function handleDecorations(M,$){const I=[],N=M.doc.resolve($),B=N.node(-1);if(!B)return DecorationSet.empty;const j=TableMap.get(B),U=N.start(-1),q=j.colCount(N.pos-U)+N.nodeAfter.attrs.colspan-1;for(let Y=0;Y<j.height;Y++){const K=q+Y*j.width;if((q==j.width-1||j.map[K]!=j.map[K+1])&&(Y==0||j.map[K]!=j.map[K-j.width])){const G=j.map[K],J=U+G+B.nodeAt(G).nodeSize-1,Z=document.createElement("div");Z.className="column-resize-handle",I.push(Decoration.widget(J,Z))}}return DecorationSet.create(M.doc,I)}function tableEditing({allowTableNodeSelection:M=!1}={}){return new Plugin({key:tableEditingKey,state:{init(){return null},apply($,I){const N=$.getMeta(tableEditingKey);if(N!=null)return N==-1?null:N;if(I==null||!$.docChanged)return I;const{deleted:B,pos:j}=$.mapping.mapResult(I);return B?null:j}},props:{decorations:drawCellSelection,handleDOMEvents:{mousedown:handleMouseDown},createSelectionBetween($){return tableEditingKey.getState($.state)!=null?$.state.selection:null},handleTripleClick,handleKeyDown,handlePaste},appendTransaction($,I,N){return normalizeSelection(N,fixTables(N,I),M)}})}function updateColumns(M,$,I,N,B,j){let U=0,q=!0,Y=$.firstChild;const K=M.firstChild;for(let G=0,J=0;G<K.childCount;G+=1){const{colspan:Z,colwidth:ee}=K.child(G).attrs;for(let te=0;te<Z;te+=1,J+=1){const se=B===J?j:ee&&ee[te],re=se?`${se}px`:"";U+=se||N,se||(q=!1),Y?(Y.style.width!==re&&(Y.style.width=re),Y=Y.nextSibling):$.appendChild(document.createElement("col")).style.width=re}}for(;Y;){const G=Y.nextSibling;Y.parentNode.removeChild(Y),Y=G}q?(I.style.width=`${U}px`,I.style.minWidth=""):(I.style.width="",I.style.minWidth=`${U}px`)}class TableView{constructor($,I){this.node=$,this.cellMinWidth=I,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),updateColumns($,this.colgroup,this.table,I),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update($){return $.type!==this.node.type?!1:(this.node=$,updateColumns($,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation($){return $.type==="attributes"&&($.target===this.table||this.colgroup.contains($.target))}}function createColGroup(M,$,I,N){let B=0,j=!0;const U=[],q=M.firstChild;if(!q)return{};for(let J=0,Z=0;J<q.childCount;J+=1){const{colspan:ee,colwidth:te}=q.child(J).attrs;for(let se=0;se<ee;se+=1,Z+=1){const re=I===Z?N:te&&te[se],ne=re?`${re}px`:"";B+=re||$,re||(j=!1),U.push(["col",ne?{style:`width: ${ne}`}:{}])}}const Y=j?`${B}px`:"",K=j?"":`${B}px`;return{colgroup:["colgroup",{},...U],tableWidth:Y,tableMinWidth:K}}function createCell(M,$){return $?M.createChecked(null,$):M.createAndFill()}function getTableNodeTypes(M){if(M.cached.tableNodeTypes)return M.cached.tableNodeTypes;const $={};return Object.keys(M.nodes).forEach(I=>{const N=M.nodes[I];N.spec.tableRole&&($[N.spec.tableRole]=N)}),M.cached.tableNodeTypes=$,$}function createTable(M,$,I,N,B){const j=getTableNodeTypes(M),U=[],q=[];for(let K=0;K<I;K+=1){const G=createCell(j.cell,B);if(G&&q.push(G),N){const J=createCell(j.header_cell,B);J&&U.push(J)}}const Y=[];for(let K=0;K<$;K+=1)Y.push(j.row.createChecked(null,N&&K===0?U:q));return j.table.createChecked(null,Y)}function isCellSelection(M){return M instanceof CellSelection}const deleteTableWhenAllCellsSelected=({editor:M})=>{const{selection:$}=M.state;if(!isCellSelection($))return!1;let I=0;const N=findParentNodeClosestToPos($.ranges[0].$from,j=>j.type.name==="table");return N==null||N.node.descendants(j=>{if(j.type.name==="table")return!1;["tableCell","tableHeader"].includes(j.type.name)&&(I+=1)}),I===$.ranges.length?(M.commands.deleteTable(),!0):!1},Table=Node$1.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:TableView,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:M,HTMLAttributes:$}){const{colgroup:I,tableWidth:N,tableMinWidth:B}=createColGroup(M,this.options.cellMinWidth);return["table",mergeAttributes(this.options.HTMLAttributes,$,{style:N?`width: ${N}`:`min-width: ${B}`}),I,["tbody",0]]},addCommands(){return{insertTable:({rows:M=3,cols:$=3,withHeaderRow:I=!0}={})=>({tr:N,dispatch:B,editor:j})=>{const U=createTable(j.schema,M,$,I);if(B){const q=N.selection.from+1;N.replaceSelectionWith(U).scrollIntoView().setSelection(TextSelection.near(N.doc.resolve(q)))}return!0},addColumnBefore:()=>({state:M,dispatch:$})=>addColumnBefore(M,$),addColumnAfter:()=>({state:M,dispatch:$})=>addColumnAfter(M,$),deleteColumn:()=>({state:M,dispatch:$})=>deleteColumn(M,$),addRowBefore:()=>({state:M,dispatch:$})=>addRowBefore(M,$),addRowAfter:()=>({state:M,dispatch:$})=>addRowAfter(M,$),deleteRow:()=>({state:M,dispatch:$})=>deleteRow(M,$),deleteTable:()=>({state:M,dispatch:$})=>deleteTable(M,$),mergeCells:()=>({state:M,dispatch:$})=>mergeCells(M,$),splitCell:()=>({state:M,dispatch:$})=>splitCell(M,$),toggleHeaderColumn:()=>({state:M,dispatch:$})=>toggleHeader("column")(M,$),toggleHeaderRow:()=>({state:M,dispatch:$})=>toggleHeader("row")(M,$),toggleHeaderCell:()=>({state:M,dispatch:$})=>toggleHeaderCell(M,$),mergeOrSplit:()=>({state:M,dispatch:$})=>mergeCells(M,$)?!0:splitCell(M,$),setCellAttribute:(M,$)=>({state:I,dispatch:N})=>setCellAttr(M,$)(I,N),goToNextCell:()=>({state:M,dispatch:$})=>goToNextCell(1)(M,$),goToPreviousCell:()=>({state:M,dispatch:$})=>goToNextCell(-1)(M,$),fixTables:()=>({state:M,dispatch:$})=>($&&fixTables(M),!0),setCellSelection:M=>({tr:$,dispatch:I})=>{if(I){const N=CellSelection.create($.doc,M.anchorCell,M.headCell);$.setSelection(N)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:deleteTableWhenAllCellsSelected,"Mod-Backspace":deleteTableWhenAllCellsSelected,Delete:deleteTableWhenAllCellsSelected,"Mod-Delete":deleteTableWhenAllCellsSelected}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[columnResizing({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],tableEditing({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(M){const $={name:M.name,options:M.options,storage:M.storage};return{tableRole:callOrReturn(getExtensionField(M,"tableRole",$))}}}),TableRow=Node$1.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:M}){return["tr",mergeAttributes(this.options.HTMLAttributes,M),0]}}),TableCell=Node$1.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:M=>{const $=M.getAttribute("colwidth");return $?[parseInt($,10)]:null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:M}){return["td",mergeAttributes(this.options.HTMLAttributes,M),0]}}),TableHeader=Node$1.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:M=>{const $=M.getAttribute("colwidth");return $?[parseInt($,10)]:null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:M}){return["th",mergeAttributes(this.options.HTMLAttributes,M),0]}}),Text=Node$1.create({name:"text",group:"inline"}),TextAlign=Extension.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:M=>{const $=M.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes($)?$:this.options.defaultAlignment},renderHTML:M=>M.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${M.textAlign}`}}}}]},addCommands(){return{setTextAlign:M=>({commands:$})=>this.options.alignments.includes(M)?this.options.types.map(I=>$.updateAttributes(I,{textAlign:M})).every(I=>I):!1,unsetTextAlign:()=>({commands:M})=>this.options.types.map($=>M.resetAttributes($,"textAlign")).every($=>$)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),emDash=M=>textInputRule({find:/--$/,replace:M??"—"}),ellipsis=M=>textInputRule({find:/\.\.\.$/,replace:M??"…"}),openDoubleQuote=M=>textInputRule({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:M??"“"}),closeDoubleQuote=M=>textInputRule({find:/"$/,replace:M??"”"}),openSingleQuote=M=>textInputRule({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:M??"‘"}),closeSingleQuote=M=>textInputRule({find:/'$/,replace:M??"’"}),leftArrow=M=>textInputRule({find:/<-$/,replace:M??"←"}),rightArrow=M=>textInputRule({find:/->$/,replace:M??"→"}),copyright=M=>textInputRule({find:/\(c\)$/,replace:M??"©"}),trademark=M=>textInputRule({find:/\(tm\)$/,replace:M??"™"}),servicemark=M=>textInputRule({find:/\(sm\)$/,replace:M??"℠"}),registeredTrademark=M=>textInputRule({find:/\(r\)$/,replace:M??"®"}),oneHalf=M=>textInputRule({find:/(?:^|\s)(1\/2)\s$/,replace:M??"½"}),plusMinus=M=>textInputRule({find:/\+\/-$/,replace:M??"±"}),notEqual=M=>textInputRule({find:/!=$/,replace:M??"≠"}),laquo=M=>textInputRule({find:/<<$/,replace:M??"«"}),raquo=M=>textInputRule({find:/>>$/,replace:M??"»"}),multiplication=M=>textInputRule({find:/\d+\s?([*x])\s?\d+$/,replace:M??"×"}),superscriptTwo=M=>textInputRule({find:/\^2$/,replace:M??"²"}),superscriptThree=M=>textInputRule({find:/\^3$/,replace:M??"³"}),oneQuarter=M=>textInputRule({find:/(?:^|\s)(1\/4)\s$/,replace:M??"¼"}),threeQuarters=M=>textInputRule({find:/(?:^|\s)(3\/4)\s$/,replace:M??"¾"}),Typography=Extension.create({name:"typography",addOptions(){return{closeDoubleQuote:"”",closeSingleQuote:"’",copyright:"©",ellipsis:"…",emDash:"—",laquo:"«",leftArrow:"←",multiplication:"×",notEqual:"≠",oneHalf:"½",oneQuarter:"¼",openDoubleQuote:"“",openSingleQuote:"‘",plusMinus:"±",raquo:"»",registeredTrademark:"®",rightArrow:"→",servicemark:"℠",superscriptThree:"³",superscriptTwo:"²",threeQuarters:"¾",trademark:"™"}},addInputRules(){const M=[];return this.options.emDash!==!1&&M.push(emDash(this.options.emDash)),this.options.ellipsis!==!1&&M.push(ellipsis(this.options.ellipsis)),this.options.openDoubleQuote!==!1&&M.push(openDoubleQuote(this.options.openDoubleQuote)),this.options.closeDoubleQuote!==!1&&M.push(closeDoubleQuote(this.options.closeDoubleQuote)),this.options.openSingleQuote!==!1&&M.push(openSingleQuote(this.options.openSingleQuote)),this.options.closeSingleQuote!==!1&&M.push(closeSingleQuote(this.options.closeSingleQuote)),this.options.leftArrow!==!1&&M.push(leftArrow(this.options.leftArrow)),this.options.rightArrow!==!1&&M.push(rightArrow(this.options.rightArrow)),this.options.copyright!==!1&&M.push(copyright(this.options.copyright)),this.options.trademark!==!1&&M.push(trademark(this.options.trademark)),this.options.servicemark!==!1&&M.push(servicemark(this.options.servicemark)),this.options.registeredTrademark!==!1&&M.push(registeredTrademark(this.options.registeredTrademark)),this.options.oneHalf!==!1&&M.push(oneHalf(this.options.oneHalf)),this.options.plusMinus!==!1&&M.push(plusMinus(this.options.plusMinus)),this.options.notEqual!==!1&&M.push(notEqual(this.options.notEqual)),this.options.laquo!==!1&&M.push(laquo(this.options.laquo)),this.options.raquo!==!1&&M.push(raquo(this.options.raquo)),this.options.multiplication!==!1&&M.push(multiplication(this.options.multiplication)),this.options.superscriptTwo!==!1&&M.push(superscriptTwo(this.options.superscriptTwo)),this.options.superscriptThree!==!1&&M.push(superscriptThree(this.options.superscriptThree)),this.options.oneQuarter!==!1&&M.push(oneQuarter(this.options.oneQuarter)),this.options.threeQuarters!==!1&&M.push(threeQuarters(this.options.threeQuarters)),M}}),Underline=Mark.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:M=>M.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:M}){return["u",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{setUnderline:()=>({commands:M})=>M.setMark(this.name),toggleUnderline:()=>({commands:M})=>M.toggleMark(this.name),unsetUnderline:()=>({commands:M})=>M.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});var js={exports:{}},src$1={},javascript$3={exports:{}},beautifier$2={},output={},hasRequiredOutput;function requireOutput(){if(hasRequiredOutput)return output;hasRequiredOutput=1;function M(N){this.__parent=N,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}M.prototype.clone_empty=function(){var N=new M(this.__parent);return N.set_indent(this.__indent_count,this.__alignment_count),N},M.prototype.item=function(N){return N<0?this.__items[this.__items.length+N]:this.__items[N]},M.prototype.has_match=function(N){for(var B=this.__items.length-1;B>=0;B--)if(this.__items[B].match(N))return!0;return!1},M.prototype.set_indent=function(N,B){this.is_empty()&&(this.__indent_count=N||0,this.__alignment_count=B||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},M.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},M.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},M.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var N=this.__parent.current_line;return N.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),N.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),N.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,N.__items[0]===" "&&(N.__items.splice(0,1),N.__character_count-=1),!0}return!1},M.prototype.is_empty=function(){return this.__items.length===0},M.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},M.prototype.push=function(N){this.__items.push(N);var B=N.lastIndexOf(` `);B!==-1?this.__character_count=N.length-B:this.__character_count+=N.length},M.prototype.pop=function(){var N=null;return this.is_empty()||(N=this.__items.pop(),this.__character_count-=N.length),N},M.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},M.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},M.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},M.prototype.toString=function(){var N="";return this.is_empty()?this.__parent.indent_empty_lines&&(N=this.__parent.get_indent_string(this.__indent_count)):(N=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),N+=this.__items.join("")),N};function $(N,B){this.__cache=[""],this.__indent_size=N.indent_size,this.__indent_string=N.indent_char,N.indent_with_tabs||(this.__indent_string=new Array(N.indent_size+1).join(N.indent_char)),B=B||"",N.indent_level>0&&(B=new Array(N.indent_level+1).join(this.__indent_string)),this.__base_string=B,this.__base_string_length=B.length}$.prototype.get_indent_size=function(N,B){var j=this.__base_string_length;return B=B||0,N<0&&(j=0),j+=N*this.__indent_size,j+=B,j},$.prototype.get_indent_string=function(N,B){var j=this.__base_string;return B=B||0,N<0&&(N=0,j=""),B+=N*this.__indent_size,this.__ensure_cache(B),j+=this.__cache[B],j},$.prototype.__ensure_cache=function(N){for(;N>=this.__cache.length;)this.__add_column()},$.prototype.__add_column=function(){var N=this.__cache.length,B=0,j="";this.__indent_size&&N>=this.__indent_size&&(B=Math.floor(N/this.__indent_size),N-=B*this.__indent_size,j=new Array(B+1).join(this.__indent_string)),N&&(j+=new Array(N+1).join(" ")),this.__cache.push(j)};function I(N,B){this.__indent_cache=new $(N,B),this.raw=!1,this._end_with_newline=N.end_with_newline,this.indent_size=N.indent_size,this.wrap_line_length=N.wrap_line_length,this.indent_empty_lines=N.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new M(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return I.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},I.prototype.get_line_number=function(){return this.__lines.length},I.prototype.get_indent_string=function(N,B){return this.__indent_cache.get_indent_string(N,B)},I.prototype.get_indent_size=function(N,B){return this.__indent_cache.get_indent_size(N,B)},I.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},I.prototype.add_new_line=function(N){return this.is_empty()||!N&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},I.prototype.get_code=function(N){this.trim(!0);var B=this.current_line.pop();B&&(B[B.length-1]===` `&&(B=B.replace(/\n+$/g,"")),this.current_line.push(B)),this._end_with_newline&&this.__add_outputline();var j=this.__lines.join(` `);return N!==` `&&(j=j.replace(/[\n]/g,N)),j},I.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},I.prototype.set_indent=function(N,B){return N=N||0,B=B||0,this.next_line.set_indent(N,B),this.__lines.length>1?(this.current_line.set_indent(N,B),!0):(this.current_line.set_indent(),!1)},I.prototype.add_raw_token=function(N){for(var B=0;B<N.newlines;B++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(N.whitespace_before),this.current_line.push(N.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},I.prototype.add_token=function(N){this.__add_space_before_token(),this.current_line.push(N),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},I.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},I.prototype.remove_indent=function(N){for(var B=this.__lines.length;N<B;)this.__lines[N]._remove_indent(),N++;this.current_line._remove_wrap_indent()},I.prototype.trim=function(N){for(N=N===void 0?!1:N,this.current_line.trim();N&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},I.prototype.just_added_newline=function(){return this.current_line.is_empty()},I.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},I.prototype.ensure_empty_line_above=function(N,B){for(var j=this.__lines.length-2;j>=0;){var U=this.__lines[j];if(U.is_empty())break;if(U.item(0).indexOf(N)!==0&&U.item(-1)!==B){this.__lines.splice(j+1,0,new M(this)),this.previous_line=this.__lines[this.__lines.length-2];break}j--}},output.Output=I,output}var token$1={},hasRequiredToken;function requireToken(){if(hasRequiredToken)return token$1;hasRequiredToken=1;function M($,I,N,B){this.type=$,this.text=I,this.comments_before=null,this.newlines=N||0,this.whitespace_before=B||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return token$1.Token=M,token$1}var acorn={},hasRequiredAcorn;function requireAcorn(){return hasRequiredAcorn||(hasRequiredAcorn=1,function(M){var $="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",I="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",N="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",B="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",j="(?:\\\\u[0-9a-fA-F]{4}|["+$+N+"])",U="(?:\\\\u[0-9a-fA-F]{4}|["+I+N+B+"])*";M.identifier=new RegExp(j+U,"g"),M.identifierStart=new RegExp(j),M.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+I+N+B+"])+"),M.newline=/[\n\r\u2028\u2029]/,M.lineBreak=new RegExp(`\r |`+M.newline.source),M.allLineBreaks=new RegExp(M.lineBreak.source,"g")}(acorn)),acorn}var options$3={},options$2={},hasRequiredOptions$3;function requireOptions$3(){if(hasRequiredOptions$3)return options$2;hasRequiredOptions$3=1;function M(N,B){this.raw_options=$(N,B),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}M.prototype._get_array=function(N,B){var j=this.raw_options[N],U=B||[];return typeof j=="object"?j!==null&&typeof j.concat=="function"&&(U=j.concat()):typeof j=="string"&&(U=j.split(/[^a-zA-Z0-9_\/\-]+/)),U},M.prototype._get_boolean=function(N,B){var j=this.raw_options[N],U=j===void 0?!!B:!!j;return U},M.prototype._get_characters=function(N,B){var j=this.raw_options[N],U=B||"";return typeof j=="string"&&(U=j.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),U},M.prototype._get_number=function(N,B){var j=this.raw_options[N];B=parseInt(B,10),isNaN(B)&&(B=0);var U=parseInt(j,10);return isNaN(U)&&(U=B),U},M.prototype._get_selection=function(N,B,j){var U=this._get_selection_list(N,B,j);if(U.length!==1)throw new Error("Invalid Option Value: The option '"+N+`' can only be one of the following values: `+B+` You passed in: '`+this.raw_options[N]+"'");return U[0]},M.prototype._get_selection_list=function(N,B,j){if(!B||B.length===0)throw new Error("Selection list cannot be empty.");if(j=j||[B[0]],!this._is_valid_selection(j,B))throw new Error("Invalid Default Value!");var U=this._get_array(N,j);if(!this._is_valid_selection(U,B))throw new Error("Invalid Option Value: The option '"+N+`' can contain only the following values: `+B+` You passed in: '`+this.raw_options[N]+"'");return U},M.prototype._is_valid_selection=function(N,B){return N.length&&B.length&&!N.some(function(j){return B.indexOf(j)===-1})};function $(N,B){var j={};N=I(N);var U;for(U in N)U!==B&&(j[U]=N[U]);if(B&&N[B])for(U in N[B])j[U]=N[B][U];return j}function I(N){var B={},j;for(j in N){var U=j.replace(/-/g,"_");B[U]=N[j]}return B}return options$2.Options=M,options$2.normalizeOpts=I,options$2.mergeOpts=$,options$2}var hasRequiredOptions$2;function requireOptions$2(){if(hasRequiredOptions$2)return options$3;hasRequiredOptions$2=1;var M=requireOptions$3().Options,$=["before-newline","after-newline","preserve-newline"];function I(N){M.call(this,N,"js");var B=this.raw_options.brace_style||null;B==="expand-strict"?this.raw_options.brace_style="expand":B==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var j=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var U=0;U<j.length;U++)j[U]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=j[U];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",$),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return I.prototype=new M,options$3.Options=I,options$3}var tokenizer$2={},inputscanner={},hasRequiredInputscanner;function requireInputscanner(){if(hasRequiredInputscanner)return inputscanner;hasRequiredInputscanner=1;var M=RegExp.prototype.hasOwnProperty("sticky");function $(I){this.__input=I||"",this.__input_length=this.__input.length,this.__position=0}return $.prototype.restart=function(){this.__position=0},$.prototype.back=function(){this.__position>0&&(this.__position-=1)},$.prototype.hasNext=function(){return this.__position<this.__input_length},$.prototype.next=function(){var I=null;return this.hasNext()&&(I=this.__input.charAt(this.__position),this.__position+=1),I},$.prototype.peek=function(I){var N=null;return I=I||0,I+=this.__position,I>=0&&I<this.__input_length&&(N=this.__input.charAt(I)),N},$.prototype.__match=function(I,N){I.lastIndex=N;var B=I.exec(this.__input);return B&&!(M&&I.sticky)&&B.index!==N&&(B=null),B},$.prototype.test=function(I,N){return N=N||0,N+=this.__position,N>=0&&N<this.__input_length?!!this.__match(I,N):!1},$.prototype.testChar=function(I,N){var B=this.peek(N);return I.lastIndex=0,B!==null&&I.test(B)},$.prototype.match=function(I){var N=this.__match(I,this.__position);return N?this.__position+=N[0].length:N=null,N},$.prototype.read=function(I,N,B){var j="",U;return I&&(U=this.match(I),U&&(j+=U[0])),N&&(U||!I)&&(j+=this.readUntil(N,B)),j},$.prototype.readUntil=function(I,N){var B="",j=this.__position;I.lastIndex=this.__position;var U=I.exec(this.__input);return U?(j=U.index,N&&(j+=U[0].length)):j=this.__input_length,B=this.__input.substring(this.__position,j),this.__position=j,B},$.prototype.readUntilAfter=function(I){return this.readUntil(I,!0)},$.prototype.get_regexp=function(I,N){var B=null,j="g";return N&&M&&(j="y"),typeof I=="string"&&I!==""?B=new RegExp(I,j):I&&(B=new RegExp(I.source,j)),B},$.prototype.get_literal_regexp=function(I){return RegExp(I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},$.prototype.peekUntilAfter=function(I){var N=this.__position,B=this.readUntilAfter(I);return this.__position=N,B},$.prototype.lookBack=function(I){var N=this.__position-1;return N>=I.length&&this.__input.substring(N-I.length,N).toLowerCase()===I},inputscanner.InputScanner=$,inputscanner}var tokenizer$1={},tokenstream={},hasRequiredTokenstream;function requireTokenstream(){if(hasRequiredTokenstream)return tokenstream;hasRequiredTokenstream=1;function M($){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=$}return M.prototype.restart=function(){this.__position=0},M.prototype.isEmpty=function(){return this.__tokens_length===0},M.prototype.hasNext=function(){return this.__position<this.__tokens_length},M.prototype.next=function(){var $=null;return this.hasNext()&&($=this.__tokens[this.__position],this.__position+=1),$},M.prototype.peek=function($){var I=null;return $=$||0,$+=this.__position,$>=0&&$<this.__tokens_length&&(I=this.__tokens[$]),I},M.prototype.add=function($){this.__parent_token&&($.parent=this.__parent_token),this.__tokens.push($),this.__tokens_length+=1},tokenstream.TokenStream=M,tokenstream}var whitespacepattern={},pattern={},hasRequiredPattern;function requirePattern(){if(hasRequiredPattern)return pattern;hasRequiredPattern=1;function M($,I){this._input=$,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,I&&(this._starting_pattern=this._input.get_regexp(I._starting_pattern,!0),this._match_pattern=this._input.get_regexp(I._match_pattern,!0),this._until_pattern=this._input.get_regexp(I._until_pattern),this._until_after=I._until_after)}return M.prototype.read=function(){var $=this._input.read(this._starting_pattern);return(!this._starting_pattern||$)&&($+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),$},M.prototype.read_match=function(){return this._input.match(this._match_pattern)},M.prototype.until_after=function($){var I=this._create();return I._until_after=!0,I._until_pattern=this._input.get_regexp($),I._update(),I},M.prototype.until=function($){var I=this._create();return I._until_after=!1,I._until_pattern=this._input.get_regexp($),I._update(),I},M.prototype.starting_with=function($){var I=this._create();return I._starting_pattern=this._input.get_regexp($,!0),I._update(),I},M.prototype.matching=function($){var I=this._create();return I._match_pattern=this._input.get_regexp($,!0),I._update(),I},M.prototype._create=function(){return new M(this._input,this)},M.prototype._update=function(){},pattern.Pattern=M,pattern}var hasRequiredWhitespacepattern;function requireWhitespacepattern(){if(hasRequiredWhitespacepattern)return whitespacepattern;hasRequiredWhitespacepattern=1;var M=requirePattern().Pattern;function $(I,N){M.call(this,I,N),N?this._line_regexp=this._input.get_regexp(N._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return $.prototype=new M,$.prototype.__set_whitespace_patterns=function(I,N){I+="\\t ",N+="\\n\\r",this._match_pattern=this._input.get_regexp("["+I+N+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+N+"]")},$.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var I=this._input.read(this._match_pattern);if(I===" ")this.whitespace_before_token=" ";else if(I){var N=this.__split(this._newline_regexp,I);this.newline_count=N.length-1,this.whitespace_before_token=N[this.newline_count]}return I},$.prototype.matching=function(I,N){var B=this._create();return B.__set_whitespace_patterns(I,N),B._update(),B},$.prototype._create=function(){return new $(this._input,this)},$.prototype.__split=function(I,N){I.lastIndex=0;for(var B=0,j=[],U=I.exec(N);U;)j.push(N.substring(B,U.index)),B=U.index+U[0].length,U=I.exec(N);return B<N.length?j.push(N.substring(B,N.length)):j.push(""),j},whitespacepattern.WhitespacePattern=$,whitespacepattern}var hasRequiredTokenizer$2;function requireTokenizer$2(){if(hasRequiredTokenizer$2)return tokenizer$1;hasRequiredTokenizer$2=1;var M=requireInputscanner().InputScanner,$=requireToken().Token,I=requireTokenstream().TokenStream,N=requireWhitespacepattern().WhitespacePattern,B={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},j=function(U,q){this._input=new M(U),this._options=q||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new N(this._input)};return j.prototype.tokenize=function(){this._input.restart(),this.__tokens=new I,this._reset();for(var U,q=new $(B.START,""),Y=null,K=[],G=new I;q.type!==B.EOF;){for(U=this._get_next_token(q,Y);this._is_comment(U);)G.add(U),U=this._get_next_token(q,Y);G.isEmpty()||(U.comments_before=G,G=new I),U.parent=Y,this._is_opening(U)?(K.push(Y),Y=U):Y&&this._is_closing(U,Y)&&(U.opened=Y,Y.closed=U,Y=K.pop(),U.parent=Y),U.previous=q,q.next=U,this.__tokens.add(U),q=U}return this.__tokens},j.prototype._is_first_token=function(){return this.__tokens.isEmpty()},j.prototype._reset=function(){},j.prototype._get_next_token=function(U,q){this._readWhitespace();var Y=this._input.read(/.+/g);return Y?this._create_token(B.RAW,Y):this._create_token(B.EOF,"")},j.prototype._is_comment=function(U){return!1},j.prototype._is_opening=function(U){return!1},j.prototype._is_closing=function(U,q){return!1},j.prototype._create_token=function(U,q){var Y=new $(U,q,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return Y},j.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},tokenizer$1.Tokenizer=j,tokenizer$1.TOKEN=B,tokenizer$1}var directives={},hasRequiredDirectives;function requireDirectives(){if(hasRequiredDirectives)return directives;hasRequiredDirectives=1;function M($,I){$=typeof $=="string"?$:$.source,I=typeof I=="string"?I:I.source,this.__directives_block_pattern=new RegExp($+/ beautify( \w+[:]\w+)+ /.source+I,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp($+/\sbeautify\signore:end\s/.source+I,"g")}return M.prototype.get_directives=function($){if(!$.match(this.__directives_block_pattern))return null;var I={};this.__directive_pattern.lastIndex=0;for(var N=this.__directive_pattern.exec($);N;)I[N[1]]=N[2],N=this.__directive_pattern.exec($);return I},M.prototype.readIgnored=function($){return $.readUntilAfter(this.__directives_end_ignore_pattern)},directives.Directives=M,directives}var templatablepattern={},hasRequiredTemplatablepattern;function requireTemplatablepattern(){if(hasRequiredTemplatablepattern)return templatablepattern;hasRequiredTemplatablepattern=1;var M=requirePattern().Pattern,$={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function I(N,B){M.call(this,N,B),this.__template_pattern=null,this._disabled=Object.assign({},$),this._excluded=Object.assign({},$),B&&(this.__template_pattern=this._input.get_regexp(B.__template_pattern),this._excluded=Object.assign(this._excluded,B._excluded),this._disabled=Object.assign(this._disabled,B._disabled));var j=new M(N);this.__patterns={handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:j.starting_with(/{{{/).until_after(/}}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),php:j.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:j.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:j.starting_with(/{%/).until_after(/%}/),django_value:j.starting_with(/{{/).until_after(/}}/),django_comment:j.starting_with(/{#/).until_after(/#}/),smarty:j.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:j.starting_with(/{\*/).until_after(/\*}/),smarty_literal:j.starting_with(/{literal}/).until_after(/{\/literal}/)}}return I.prototype=new M,I.prototype._create=function(){return new I(this._input,this)},I.prototype._update=function(){this.__set_templated_pattern()},I.prototype.disable=function(N){var B=this._create();return B._disabled[N]=!0,B._update(),B},I.prototype.read_options=function(N){var B=this._create();for(var j in $)B._disabled[j]=N.templating.indexOf(j)===-1;return B._update(),B},I.prototype.exclude=function(N){var B=this._create();return B._excluded[N]=!0,B._update(),B},I.prototype.read=function(){var N="";this._match_pattern?N=this._input.read(this._starting_pattern):N=this._input.read(this._starting_pattern,this.__template_pattern);for(var B=this._read_template();B;)this._match_pattern?B+=this._input.read(this._match_pattern):B+=this._input.readUntil(this.__template_pattern),N+=B,B=this._read_template();return this._until_after&&(N+=this._input.readUntilAfter(this._until_pattern)),N},I.prototype.__set_templated_pattern=function(){var N=[];this._disabled.php||N.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||N.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||N.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(N.push(this.__patterns.django._starting_pattern.source),N.push(this.__patterns.django_value._starting_pattern.source),N.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||N.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&N.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+N.join("|")+")")},I.prototype._read_template=function(){var N="",B=this._input.peek();if(B==="<"){var j=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&j==="?"&&(N=N||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&j==="%"&&(N=N||this.__patterns.erb.read())}else B==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(N=N||this.__patterns.handlebars_comment.read(),N=N||this.__patterns.handlebars_unescaped.read(),N=N||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(N=N||this.__patterns.django_value.read()),this._excluded.django||(N=N||this.__patterns.django_comment.read(),N=N||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(N=N||this.__patterns.smarty_comment.read(),N=N||this.__patterns.smarty_literal.read(),N=N||this.__patterns.smarty.read()));return N},templatablepattern.TemplatablePattern=I,templatablepattern}var hasRequiredTokenizer$1;function requireTokenizer$1(){if(hasRequiredTokenizer$1)return tokenizer$2;hasRequiredTokenizer$1=1;var M=requireInputscanner().InputScanner,$=requireTokenizer$2().Tokenizer,I=requireTokenizer$2().TOKEN,N=requireDirectives().Directives,B=requireAcorn(),j=requirePattern().Pattern,U=requireTemplatablepattern().TemplatablePattern;function q(fe,ge){return ge.indexOf(fe)!==-1}var Y={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:I.START,RAW:I.RAW,EOF:I.EOF},K=new N(/\/\*/,/\*\//),G=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,J=/[0-9]/,Z=/[^\d\.]/,ee=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),te=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";te=te.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),te="\\?\\.(?!\\d) "+te,te=te.replace(/ /g,"|");var se=new RegExp(te),re="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ne=re.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ce=new RegExp("^(?:"+ne.join("|")+")$"),me,ue=function(fe,ge){$.call(this,fe,ge),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var ye=new j(this._input),xe=new U(this._input).read_options(this._options);this.__patterns={template:xe,identifier:xe.starting_with(B.identifier).matching(B.identifierMatch),number:ye.matching(G),punct:ye.matching(se),comment:ye.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:ye.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:ye.matching(/<!--/),html_comment_end:ye.matching(/-->/),include:ye.starting_with(/#include/).until_after(B.lineBreak),shebang:ye.starting_with(/#!/).until_after(B.lineBreak),xml:ye.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:xe.until(/['\\\n\r\u2028\u2029]/),double_quote:xe.until(/["\\\n\r\u2028\u2029]/),template_text:xe.until(/[`\\$]/),template_expression:xe.until(/[`}\\]/)}};ue.prototype=new $,ue.prototype._is_comment=function(fe){return fe.type===Y.COMMENT||fe.type===Y.BLOCK_COMMENT||fe.type===Y.UNKNOWN},ue.prototype._is_opening=function(fe){return fe.type===Y.START_BLOCK||fe.type===Y.START_EXPR},ue.prototype._is_closing=function(fe,ge){return(fe.type===Y.END_BLOCK||fe.type===Y.END_EXPR)&&ge&&(fe.text==="]"&&ge.text==="["||fe.text===")"&&ge.text==="("||fe.text==="}"&&ge.text==="{")},ue.prototype._reset=function(){me=!1},ue.prototype._get_next_token=function(fe,ge){var ye=null;this._readWhitespace();var xe=this._input.peek();return xe===null?this._create_token(Y.EOF,""):(ye=ye||this._read_non_javascript(xe),ye=ye||this._read_string(xe),ye=ye||this._read_word(fe),ye=ye||this._read_singles(xe),ye=ye||this._read_comment(xe),ye=ye||this._read_regexp(xe,fe),ye=ye||this._read_xml(xe,fe),ye=ye||this._read_punctuation(),ye=ye||this._create_token(Y.UNKNOWN,this._input.next()),ye)},ue.prototype._read_word=function(fe){var ge;if(ge=this.__patterns.identifier.read(),ge!=="")return ge=ge.replace(B.allLineBreaks,` `),!(fe.type===Y.DOT||fe.type===Y.RESERVED&&(fe.text==="set"||fe.text==="get"))&&ce.test(ge)?(ge==="in"||ge==="of")&&(fe.type===Y.WORD||fe.type===Y.STRING)?this._create_token(Y.OPERATOR,ge):this._create_token(Y.RESERVED,ge):this._create_token(Y.WORD,ge);if(ge=this.__patterns.number.read(),ge!=="")return this._create_token(Y.WORD,ge)},ue.prototype._read_singles=function(fe){var ge=null;return fe==="("||fe==="["?ge=this._create_token(Y.START_EXPR,fe):fe===")"||fe==="]"?ge=this._create_token(Y.END_EXPR,fe):fe==="{"?ge=this._create_token(Y.START_BLOCK,fe):fe==="}"?ge=this._create_token(Y.END_BLOCK,fe):fe===";"?ge=this._create_token(Y.SEMICOLON,fe):fe==="."&&Z.test(this._input.peek(1))?ge=this._create_token(Y.DOT,fe):fe===","&&(ge=this._create_token(Y.COMMA,fe)),ge&&this._input.next(),ge},ue.prototype._read_punctuation=function(){var fe=this.__patterns.punct.read();if(fe!=="")return fe==="="?this._create_token(Y.EQUALS,fe):fe==="?."?this._create_token(Y.DOT,fe):this._create_token(Y.OPERATOR,fe)},ue.prototype._read_non_javascript=function(fe){var ge="";if(fe==="#"){if(this._is_first_token()&&(ge=this.__patterns.shebang.read(),ge))return this._create_token(Y.UNKNOWN,ge.trim()+` `);if(ge=this.__patterns.include.read(),ge)return this._create_token(Y.UNKNOWN,ge.trim()+` `);fe=this._input.next();var ye="#";if(this._input.hasNext()&&this._input.testChar(J)){do fe=this._input.next(),ye+=fe;while(this._input.hasNext()&&fe!=="#"&&fe!=="=");return fe==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(ye+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(ye+="{}",this._input.next(),this._input.next())),this._create_token(Y.WORD,ye)}this._input.back()}else if(fe==="<"&&this._is_first_token()){if(ge=this.__patterns.html_comment_start.read(),ge){for(;this._input.hasNext()&&!this._input.testChar(B.newline);)ge+=this._input.next();return me=!0,this._create_token(Y.COMMENT,ge)}}else if(me&&fe==="-"&&(ge=this.__patterns.html_comment_end.read(),ge))return me=!1,this._create_token(Y.COMMENT,ge);return null},ue.prototype._read_comment=function(fe){var ge=null;if(fe==="/"){var ye="";if(this._input.peek(1)==="*"){ye=this.__patterns.block_comment.read();var xe=K.get_directives(ye);xe&&xe.ignore==="start"&&(ye+=K.readIgnored(this._input)),ye=ye.replace(B.allLineBreaks,` `),ge=this._create_token(Y.BLOCK_COMMENT,ye),ge.directives=xe}else this._input.peek(1)==="/"&&(ye=this.__patterns.comment.read(),ge=this._create_token(Y.COMMENT,ye))}return ge},ue.prototype._read_string=function(fe){if(fe==="`"||fe==="'"||fe==='"'){var ge=this._input.next();return this.has_char_escapes=!1,fe==="`"?ge+=this._read_string_recursive("`",!0,"${"):ge+=this._read_string_recursive(fe),this.has_char_escapes&&this._options.unescape_strings&&(ge=_e(ge)),this._input.peek()===fe&&(ge+=this._input.next()),ge=ge.replace(B.allLineBreaks,` `),this._create_token(Y.STRING,ge)}return null},ue.prototype._allow_regexp_or_xml=function(fe){return fe.type===Y.RESERVED&&q(fe.text,["return","case","throw","else","do","typeof","yield"])||fe.type===Y.END_EXPR&&fe.text===")"&&fe.opened.previous.type===Y.RESERVED&&q(fe.opened.previous.text,["if","while","for"])||q(fe.type,[Y.COMMENT,Y.START_EXPR,Y.START_BLOCK,Y.START,Y.END_BLOCK,Y.OPERATOR,Y.EQUALS,Y.EOF,Y.SEMICOLON,Y.COMMA])},ue.prototype._read_regexp=function(fe,ge){if(fe==="/"&&this._allow_regexp_or_xml(ge)){for(var ye=this._input.next(),xe=!1,le=!1;this._input.hasNext()&&(xe||le||this._input.peek()!==fe)&&!this._input.testChar(B.newline);)ye+=this._input.peek(),xe?xe=!1:(xe=this._input.peek()==="\\",this._input.peek()==="["?le=!0:this._input.peek()==="]"&&(le=!1)),this._input.next();return this._input.peek()===fe&&(ye+=this._input.next(),ye+=this._input.read(B.identifier)),this._create_token(Y.STRING,ye)}return null},ue.prototype._read_xml=function(fe,ge){if(this._options.e4x&&fe==="<"&&this._allow_regexp_or_xml(ge)){var ye="",xe=this.__patterns.xml.read_match();if(xe){for(var le=xe[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),be=le.indexOf("{")===0,ve=0;xe;){var we=!!xe[1],Ae=xe[2],Se=!!xe[xe.length-1]||Ae.slice(0,8)==="![CDATA[";if(!Se&&(Ae===le||be&&Ae.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(we?--ve:++ve),ye+=xe[0],ve<=0)break;xe=this.__patterns.xml.read_match()}return xe||(ye+=this._input.match(/[\s\S]*/g)[0]),ye=ye.replace(B.allLineBreaks,` `),this._create_token(Y.STRING,ye)}}return null};function _e(fe){for(var ge="",ye=0,xe=new M(fe),le=null;xe.hasNext();)if(le=xe.match(/([\s]|[^\\]|\\\\)+/g),le&&(ge+=le[0]),xe.peek()==="\\"){if(xe.next(),xe.peek()==="x")le=xe.match(/x([0-9A-Fa-f]{2})/g);else if(xe.peek()==="u")le=xe.match(/u([0-9A-Fa-f]{4})/g);else{ge+="\\",xe.hasNext()&&(ge+=xe.next());continue}if(!le||(ye=parseInt(le[1],16),ye>126&&ye<=255&&le[0].indexOf("x")===0))return fe;if(ye>=0&&ye<32){ge+="\\"+le[0];continue}else ye===34||ye===39||ye===92?ge+="\\"+String.fromCharCode(ye):ge+=String.fromCharCode(ye)}return ge}return ue.prototype._read_string_recursive=function(fe,ge,ye){var xe,le;fe==="'"?le=this.__patterns.single_quote:fe==='"'?le=this.__patterns.double_quote:fe==="`"?le=this.__patterns.template_text:fe==="}"&&(le=this.__patterns.template_expression);for(var be=le.read(),ve="";this._input.hasNext();){if(ve=this._input.next(),ve===fe||!ge&&B.newline.test(ve)){this._input.back();break}else ve==="\\"&&this._input.hasNext()?(xe=this._input.peek(),xe==="x"||xe==="u"?this.has_char_escapes=!0:xe==="\r"&&this._input.peek(1)===` `&&this._input.next(),ve+=this._input.next()):ye&&(ye==="${"&&ve==="$"&&this._input.peek()==="{"&&(ve+=this._input.next()),ye===ve&&(fe==="`"?ve+=this._read_string_recursive("}",ge,"`"):ve+=this._read_string_recursive("`",ge,"${"),this._input.hasNext()&&(ve+=this._input.next())));ve+=le.read(),be+=ve}return be},tokenizer$2.Tokenizer=ue,tokenizer$2.TOKEN=Y,tokenizer$2.positionable_operators=ee.slice(),tokenizer$2.line_starters=re.slice(),tokenizer$2}var hasRequiredBeautifier$2;function requireBeautifier$2(){if(hasRequiredBeautifier$2)return beautifier$2;hasRequiredBeautifier$2=1;var M=requireOutput().Output,$=requireToken().Token,I=requireAcorn(),N=requireOptions$2().Options,B=requireTokenizer$1().Tokenizer,j=requireTokenizer$1().line_starters,U=requireTokenizer$1().positionable_operators,q=requireTokenizer$1().TOKEN;function Y(le,be){return be.indexOf(le)!==-1}function K(le){return le.replace(/^\s+/g,"")}function G(le){for(var be={},ve=0;ve<le.length;ve++)be[le[ve].replace(/-/g,"_")]=le[ve];return be}function J(le,be){return le&&le.type===q.RESERVED&&le.text===be}function Z(le,be){return le&&le.type===q.RESERVED&&Y(le.text,be)}var ee=["case","return","do","if","throw","else","await","break","continue","async"],te=["before-newline","after-newline","preserve-newline"],se=G(te),re=[se.before_newline,se.preserve_newline],ne={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ce(le,be){be.multiline_frame||be.mode===ne.ForInitializer||be.mode===ne.Conditional||le.remove_indent(be.start_line_index)}function me(le){le=le.replace(I.allLineBreaks,` `);for(var be=[],ve=le.indexOf(` `);ve!==-1;)be.push(le.substring(0,ve)),le=le.substring(ve+1),ve=le.indexOf(` `);return le.length&&be.push(le),be}function ue(le){return le===ne.ArrayLiteral}function _e(le){return Y(le,[ne.Expression,ne.ForInitializer,ne.Conditional])}function fe(le,be){for(var ve=0;ve<le.length;ve++){var we=le[ve].trim();if(we.charAt(0)!==be)return!1}return!0}function ge(le,be){for(var ve=0,we=le.length,Ae;ve<we;ve++)if(Ae=le[ve],Ae&&Ae.indexOf(be)!==0)return!1;return!0}function ye(le,be){be=be||{},this._source_text=le||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new N(be)}ye.prototype.create_flags=function(le,be){var ve=0;le&&(ve=le.indentation_level,!this._output.just_added_newline()&&le.line_indent_level>ve&&(ve=le.line_indent_level));var we={mode:be,parent:le,last_token:le?le.last_token:new $(q.START_BLOCK,""),last_word:le?le.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ve,alignment:0,line_indent_level:le?le.line_indent_level:ve,start_line_index:this._output.get_line_number(),ternary_depth:0};return we},ye.prototype._reset=function(le){var be=le.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new M(this._options,be),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(ne.BlockStatement);var ve=new B(le,this._options);return this._tokens=ve.tokenize(),le},ye.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var le,be=this._reset(this._source_text),ve=this._options.eol;this._options.eol==="auto"&&(ve=` `,be&&I.lineBreak.test(be||"")&&(ve=be.match(I.lineBreak)[0]));for(var we=this._tokens.next();we;)this.handle_token(we),this._last_last_text=this._flags.last_token.text,this._flags.last_token=we,we=this._tokens.next();return le=this._output.get_code(ve),le},ye.prototype.handle_token=function(le,be){le.type===q.START_EXPR?this.handle_start_expr(le):le.type===q.END_EXPR?this.handle_end_expr(le):le.type===q.START_BLOCK?this.handle_start_block(le):le.type===q.END_BLOCK?this.handle_end_block(le):le.type===q.WORD?this.handle_word(le):le.type===q.RESERVED?this.handle_word(le):le.type===q.SEMICOLON?this.handle_semicolon(le):le.type===q.STRING?this.handle_string(le):le.type===q.EQUALS?this.handle_equals(le):le.type===q.OPERATOR?this.handle_operator(le):le.type===q.COMMA?this.handle_comma(le):le.type===q.BLOCK_COMMENT?this.handle_block_comment(le,be):le.type===q.COMMENT?this.handle_comment(le,be):le.type===q.DOT?this.handle_dot(le):le.type===q.EOF?this.handle_eof(le):le.type===q.UNKNOWN?this.handle_unknown(le,be):this.handle_unknown(le,be)},ye.prototype.handle_whitespace_and_comments=function(le,be){var ve=le.newlines,we=this._options.keep_array_indentation&&ue(this._flags.mode);if(le.comments_before)for(var Ae=le.comments_before.next();Ae;)this.handle_whitespace_and_comments(Ae,be),this.handle_token(Ae,be),Ae=le.comments_before.next();if(we)for(var Se=0;Se<ve;Se+=1)this.print_newline(Se>0,be);else if(this._options.max_preserve_newlines&&ve>this._options.max_preserve_newlines&&(ve=this._options.max_preserve_newlines),this._options.preserve_newlines&&ve>1){this.print_newline(!1,be);for(var Pe=1;Pe<ve;Pe+=1)this.print_newline(!0,be)}};var xe=["async","break","continue","return","throw","yield"];return ye.prototype.allow_wrap_or_preserved_newline=function(le,be){if(be=be===void 0?!1:be,!this._output.just_added_newline()){var ve=this._options.preserve_newlines&&le.newlines||be,we=Y(this._flags.last_token.text,U)||Y(le.text,U);if(we){var Ae=Y(this._flags.last_token.text,U)&&Y(this._options.operator_position,re)||Y(le.text,U);ve=ve&&Ae}if(ve)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Z(this._flags.last_token,xe))return;this._output.set_wrap_point()}}},ye.prototype.print_newline=function(le,be){if(!be&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==q.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var ve=this._tokens.peek();this._flags.mode===ne.Statement&&!(this._flags.if_block&&J(ve,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(le)&&(this._flags.multiline_frame=!0)},ye.prototype.print_token_line_indentation=function(le){this._output.just_added_newline()&&(this._options.keep_array_indentation&&le.newlines&&(le.text==="["||ue(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(le.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},ye.prototype.print_token=function(le){if(this._output.raw){this._output.add_raw_token(le);return}if(this._options.comma_first&&le.previous&&le.previous.type===q.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var be=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(be),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(le),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(le),this._output.non_breaking_space=!0,this._output.add_token(le.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},ye.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ye.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ye.prototype.set_mode=function(le){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,le),this._flags=this.create_flags(this._previous_flags,le),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ye.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===ne.Statement&&ce(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ye.prototype.start_of_object_property=function(){return this._flags.parent.mode===ne.ObjectLiteral&&this._flags.mode===ne.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Z(this._flags.last_token,["get","set"]))},ye.prototype.start_of_statement=function(le){var be=!1;return be=be||Z(this._flags.last_token,["var","let","const"])&&le.type===q.WORD,be=be||J(this._flags.last_token,"do"),be=be||!(this._flags.parent.mode===ne.ObjectLiteral&&this._flags.mode===ne.Statement)&&Z(this._flags.last_token,xe)&&!le.newlines,be=be||J(this._flags.last_token,"else")&&!(J(le,"if")&&!le.comments_before),be=be||this._flags.last_token.type===q.END_EXPR&&(this._previous_flags.mode===ne.ForInitializer||this._previous_flags.mode===ne.Conditional),be=be||this._flags.last_token.type===q.WORD&&this._flags.mode===ne.BlockStatement&&!this._flags.in_case&&!(le.text==="--"||le.text==="++")&&this._last_last_text!=="function"&&le.type!==q.WORD&&le.type!==q.RESERVED,be=be||this._flags.mode===ne.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Z(this._flags.last_token,["get","set"])),be?(this.set_mode(ne.Statement),this.indent(),this.handle_whitespace_and_comments(le,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(le,Z(le,["do","for","if","while"])),!0):!1},ye.prototype.handle_start_expr=function(le){this.start_of_statement(le)||this.handle_whitespace_and_comments(le);var be=ne.Expression;if(le.text==="["){if(this._flags.last_token.type===q.WORD||this._flags.last_token.text===")"){Z(this._flags.last_token,j)&&(this._output.space_before_token=!0),this.print_token(le),this.set_mode(be),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}be=ne.ArrayLiteral,ue(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),Y(this._flags.last_token.type,[q.START_EXPR,q.END_EXPR,q.WORD,q.OPERATOR,q.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===q.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,be=ne.ForInitializer):Y(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,be=ne.Conditional):Y(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&le.whitespace_before===""?this._output.space_before_token=!1:(Y(this._flags.last_token.text,j)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===q.EQUALS||this._flags.last_token.type===q.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(le);else if(this._flags.last_token.type===q.WORD){this._output.space_before_token=!1;var ve=this._tokens.peek(-3);if(this._options.space_after_named_function&&ve){var we=this._tokens.peek(-4);Z(ve,["async","function"])||ve.text==="*"&&Z(we,["async","function"])?this._output.space_before_token=!0:this._flags.mode===ne.ObjectLiteral?(ve.text==="{"||ve.text===","||ve.text==="*"&&(we.text==="{"||we.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(le);(this._flags.last_token.type===q.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(Y(this._last_last_text,["function","yield"])||this._flags.mode===ne.ObjectLiteral&&Y(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===q.START_BLOCK?this.print_newline():(this._flags.last_token.type===q.END_EXPR||this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===q.COMMA)&&this.allow_wrap_or_preserved_newline(le,le.newlines),this.print_token(le),this.set_mode(be),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ye.prototype.handle_end_expr=function(le){for(;this._flags.mode===ne.Statement;)this.restore_mode();this.handle_whitespace_and_comments(le),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(le,le.text==="]"&&ue(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===q.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(le),this.restore_mode(),ce(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===ne.Conditional&&(this._previous_flags.mode=ne.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},ye.prototype.handle_start_block=function(le){this.handle_whitespace_and_comments(le);var be=this._tokens.peek(),ve=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===q.END_EXPR?(this.set_mode(ne.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(ne.BlockStatement):ve&&(Y(ve.text,[":",","])&&Y(be.type,[q.STRING,q.WORD,q.RESERVED])||Y(be.text,["get","set","..."])&&Y(ve.type,[q.WORD,q.RESERVED]))?Y(this._last_last_text,["class","interface"])&&!Y(ve.text,[":",","])?this.set_mode(ne.BlockStatement):this.set_mode(ne.ObjectLiteral):this._flags.last_token.type===q.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(ne.BlockStatement):Y(this._flags.last_token.type,[q.EQUALS,q.START_EXPR,q.COMMA,q.OPERATOR])||Z(this._flags.last_token,["return","throw","import","default"])?this.set_mode(ne.ObjectLiteral):this.set_mode(ne.BlockStatement),this._flags.last_token&&Z(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var we=!be.comments_before&&be.text==="}",Ae=we&&this._flags.last_word==="function"&&this._flags.last_token.type===q.END_EXPR;if(this._options.brace_preserve_inline){var Se=0,Pe=null;this._flags.inline_frame=!0;do if(Se+=1,Pe=this._tokens.peek(Se-1),Pe.newlines){this._flags.inline_frame=!1;break}while(Pe.type!==q.EOF&&!(Pe.type===q.END_BLOCK&&Pe.opened===le))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&le.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==q.OPERATOR&&(Ae||this._flags.last_token.type===q.EQUALS||Z(this._flags.last_token,ee)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(ue(this._previous_flags.mode)&&(this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.COMMA)&&((this._flags.last_token.type===q.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(le),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==q.OPERATOR&&this._flags.last_token.type!==q.START_EXPR&&(this._flags.last_token.type===q.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(le),this.indent(),!we&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ye.prototype.handle_end_block=function(le){for(this.handle_whitespace_and_comments(le);this._flags.mode===ne.Statement;)this.restore_mode();var be=this._flags.last_token.type===q.START_BLOCK;this._flags.inline_frame&&!be?this._output.space_before_token=!0:this._options.brace_style==="expand"?be||this.print_newline():be||(ue(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(le)},ye.prototype.handle_word=function(le){if(le.type===q.RESERVED){if(Y(le.text,["set","get"])&&this._flags.mode!==ne.ObjectLiteral)le.type=q.WORD;else if(le.text==="import"&&Y(this._tokens.peek().text,["(","."]))le.type=q.WORD;else if(Y(le.text,["as","from"])&&!this._flags.import_block)le.type=q.WORD;else if(this._flags.mode===ne.ObjectLiteral){var be=this._tokens.peek();be.text===":"&&(le.type=q.WORD)}}if(this.start_of_statement(le)?Z(this._flags.last_token,["var","let","const"])&&le.type===q.WORD&&(this._flags.declaration_statement=!0):le.newlines&&!_e(this._flags.mode)&&(this._flags.last_token.type!==q.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==q.EQUALS&&(this._options.preserve_newlines||!Z(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(le),this.print_newline()):this.handle_whitespace_and_comments(le),this._flags.do_block&&!this._flags.do_while)if(J(le,"while")){this._output.space_before_token=!0,this.print_token(le),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&J(le,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===ne.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Z(le,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(le),this._flags.in_case=!0;return}if((this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.EQUALS||this._flags.last_token.type===q.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(le)),J(le,"function")){(Y(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(Y(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===q.OPERATOR))&&!this._output.just_added_blankline()&&!le.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===q.RESERVED||this._flags.last_token.type===q.WORD?Z(this._flags.last_token,["get","set","new","export"])||Z(this._flags.last_token,xe)?this._output.space_before_token=!0:J(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===q.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(_e(this._flags.mode)||ue(this._flags.mode))||this.print_newline(),this.print_token(le),this._flags.last_word=le.text;return}var ve="NONE";if(this._flags.last_token.type===q.END_BLOCK?this._previous_flags.inline_frame?ve="SPACE":Z(le,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&le.newlines?ve="NEWLINE":(ve="SPACE",this._output.space_before_token=!0):ve="NEWLINE":this._flags.last_token.type===q.SEMICOLON&&this._flags.mode===ne.BlockStatement?ve="NEWLINE":this._flags.last_token.type===q.SEMICOLON&&_e(this._flags.mode)?ve="SPACE":this._flags.last_token.type===q.STRING?ve="NEWLINE":this._flags.last_token.type===q.RESERVED||this._flags.last_token.type===q.WORD||this._flags.last_token.text==="*"&&(Y(this._last_last_text,["function","yield"])||this._flags.mode===ne.ObjectLiteral&&Y(this._last_last_text,["{",","]))?ve="SPACE":this._flags.last_token.type===q.START_BLOCK?this._flags.inline_frame?ve="SPACE":ve="NEWLINE":this._flags.last_token.type===q.END_EXPR&&(this._output.space_before_token=!0,ve="NEWLINE"),Z(le,j)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ve="SPACE":ve="NEWLINE"),Z(le,["else","catch","finally"]))if((!(this._flags.last_token.type===q.END_BLOCK&&this._previous_flags.mode===ne.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&le.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var we=this._output.current_line;we.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ve==="NEWLINE"?Z(this._flags.last_token,ee)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Z(le,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==q.END_EXPR?(this._flags.last_token.type!==q.START_EXPR||!Z(le,["var","let","const"]))&&this._flags.last_token.text!==":"&&(J(le,"if")&&J(le.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Z(le,j)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&ue(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ve==="SPACE"&&(this._output.space_before_token=!0);le.previous&&(le.previous.type===q.WORD||le.previous.type===q.RESERVED)&&(this._output.space_before_token=!0),this.print_token(le),this._flags.last_word=le.text,le.type===q.RESERVED&&(le.text==="do"?this._flags.do_block=!0:le.text==="if"?this._flags.if_block=!0:le.text==="import"?this._flags.import_block=!0:this._flags.import_block&&J(le,"from")&&(this._flags.import_block=!1))},ye.prototype.handle_semicolon=function(le){this.start_of_statement(le)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(le);for(var be=this._tokens.peek();this._flags.mode===ne.Statement&&!(this._flags.if_block&&J(be,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(le)},ye.prototype.handle_string=function(le){le.text.startsWith("`")&&le.newlines===0&&le.whitespace_before===""&&(le.previous.text===")"||this._flags.last_token.type===q.WORD)||(this.start_of_statement(le)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(le),this._flags.last_token.type===q.RESERVED||this._flags.last_token.type===q.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR||this._flags.last_token.type===q.EQUALS||this._flags.last_token.type===q.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(le):le.text.startsWith("`")&&this._flags.last_token.type===q.END_EXPR&&(le.previous.text==="]"||le.previous.text===")")&&le.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(le)},ye.prototype.handle_equals=function(le){this.start_of_statement(le)||this.handle_whitespace_and_comments(le),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(le),this._output.space_before_token=!0},ye.prototype.handle_comma=function(le){this.handle_whitespace_and_comments(le,!0),this.print_token(le),this._output.space_before_token=!0,this._flags.declaration_statement?(_e(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(le)):this._flags.mode===ne.ObjectLiteral||this._flags.mode===ne.Statement&&this._flags.parent.mode===ne.ObjectLiteral?(this._flags.mode===ne.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(le)},ye.prototype.handle_operator=function(le){var be=le.text==="*"&&(Z(this._flags.last_token,["function","yield"])||Y(this._flags.last_token.type,[q.START_BLOCK,q.COMMA,q.END_BLOCK,q.SEMICOLON])),ve=Y(le.text,["-","+"])&&(Y(this._flags.last_token.type,[q.START_BLOCK,q.START_EXPR,q.EQUALS,q.OPERATOR])||Y(this._flags.last_token.text,j)||this._flags.last_token.text===",");if(!this.start_of_statement(le)){var we=!be;this.handle_whitespace_and_comments(le,we)}if(le.text==="*"&&this._flags.last_token.type===q.DOT){this.print_token(le);return}if(le.text==="::"){this.print_token(le);return}if(this._flags.last_token.type===q.OPERATOR&&Y(this._options.operator_position,re)&&this.allow_wrap_or_preserved_newline(le),le.text===":"&&this._flags.in_case){this.print_token(le),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==q.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Ae=!0,Se=!0,Pe=!1;if(le.text===":"?this._flags.ternary_depth===0?Ae=!1:(this._flags.ternary_depth-=1,Pe=!0):le.text==="?"&&(this._flags.ternary_depth+=1),!ve&&!be&&this._options.preserve_newlines&&Y(le.text,U)){var Me=le.text===":",Be=Me&&Pe,ze=Me&&!Pe;switch(this._options.operator_position){case se.before_newline:this._output.space_before_token=!ze,this.print_token(le),(!Me||Be)&&this.allow_wrap_or_preserved_newline(le),this._output.space_before_token=!0;return;case se.after_newline:this._output.space_before_token=!0,!Me||Be?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(le):this._output.space_before_token=!1,this.print_token(le),this._output.space_before_token=!0;return;case se.preserve_newline:ze||this.allow_wrap_or_preserved_newline(le),Ae=!(this._output.just_added_newline()||ze),this._output.space_before_token=Ae,this.print_token(le),this._output.space_before_token=!0;return}}if(be){this.allow_wrap_or_preserved_newline(le),Ae=!1;var Ze=this._tokens.peek();Se=Ze&&Y(Ze.type,[q.WORD,q.RESERVED])}else if(le.text==="...")this.allow_wrap_or_preserved_newline(le),Ae=this._flags.last_token.type===q.START_BLOCK,Se=!1;else if(Y(le.text,["--","++","!","~"])||ve){if((this._flags.last_token.type===q.COMMA||this._flags.last_token.type===q.START_EXPR)&&this.allow_wrap_or_preserved_newline(le),Ae=!1,Se=!1,le.newlines&&(le.text==="--"||le.text==="++"||le.text==="~")){var ft=Z(this._flags.last_token,ee)&&le.newlines;ft&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(ft,!0)}this._flags.last_token.text===";"&&_e(this._flags.mode)&&(Ae=!0),this._flags.last_token.type===q.RESERVED?Ae=!0:this._flags.last_token.type===q.END_EXPR?Ae=!(this._flags.last_token.text==="]"&&(le.text==="--"||le.text==="++")):this._flags.last_token.type===q.OPERATOR&&(Ae=Y(le.text,["--","-","++","+"])&&Y(this._flags.last_token.text,["--","-","++","+"]),Y(le.text,["+","-"])&&Y(this._flags.last_token.text,["--","++"])&&(Se=!0)),(this._flags.mode===ne.BlockStatement&&!this._flags.inline_frame||this._flags.mode===ne.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ae,this.print_token(le),this._output.space_before_token=Se},ye.prototype.handle_block_comment=function(le,be){if(this._output.raw){this._output.add_raw_token(le),le.directives&&le.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(le.directives){this.print_newline(!1,be),this.print_token(le),le.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!I.newline.test(le.text)&&!le.newlines){this._output.space_before_token=!0,this.print_token(le),this._output.space_before_token=!0;return}else this.print_block_commment(le,be)},ye.prototype.print_block_commment=function(le,be){var ve=me(le.text),we,Ae=!1,Se=!1,Pe=le.whitespace_before,Me=Pe.length;if(this.print_newline(!1,be),this.print_token_line_indentation(le),this._output.add_token(ve[0]),this.print_newline(!1,be),ve.length>1){for(ve=ve.slice(1),Ae=fe(ve,"*"),Se=ge(ve,Pe),Ae&&(this._flags.alignment=1),we=0;we<ve.length;we++)Ae?(this.print_token_line_indentation(le),this._output.add_token(K(ve[we]))):Se&&ve[we]?(this.print_token_line_indentation(le),this._output.add_token(ve[we].substring(Me))):(this._output.current_line.set_indent(-1),this._output.add_token(ve[we])),this.print_newline(!1,be);this._flags.alignment=0}},ye.prototype.handle_comment=function(le,be){le.newlines?this.print_newline(!1,be):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(le),this.print_newline(!1,be)},ye.prototype.handle_dot=function(le){this.start_of_statement(le)||this.handle_whitespace_and_comments(le,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),Z(this._flags.last_token,ee)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(le,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(le)},ye.prototype.handle_unknown=function(le,be){this.print_token(le),le.text[le.text.length-1]===` `&&this.print_newline(!1,be)},ye.prototype.handle_eof=function(le){for(;this._flags.mode===ne.Statement;)this.restore_mode();this.handle_whitespace_and_comments(le)},beautifier$2.Beautifier=ye,beautifier$2}var hasRequiredJavascript$1;function requireJavascript$1(){if(hasRequiredJavascript$1)return javascript$3.exports;hasRequiredJavascript$1=1;var M=requireBeautifier$2().Beautifier,$=requireOptions$2().Options;function I(N,B){var j=new M(N,B);return j.beautify()}return javascript$3.exports=I,javascript$3.exports.defaultOptions=function(){return new $},javascript$3.exports}var css$2={exports:{}},beautifier$1={},options$1={},hasRequiredOptions$1;function requireOptions$1(){if(hasRequiredOptions$1)return options$1;hasRequiredOptions$1=1;var M=requireOptions$3().Options;function $(I){M.call(this,I,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var N=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||N;var B=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var j=0;j<B.length;j++)B[j]!=="expand"?this.brace_style="collapse":this.brace_style=B[j]}return $.prototype=new M,options$1.Options=$,options$1}var hasRequiredBeautifier$1;function requireBeautifier$1(){if(hasRequiredBeautifier$1)return beautifier$1;hasRequiredBeautifier$1=1;var M=requireOptions$1().Options,$=requireOutput().Output,I=requireInputscanner().InputScanner,N=requireDirectives().Directives,B=new N(/\/\*/,/\*\//),j=/\r\n|[\r\n]/,U=/\r\n|[\r\n]/g,q=/\s/,Y=/(?:\s|\n)+/g,K=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,G=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function J(Z,ee){this._source_text=Z||"",this._options=new M(ee),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return J.prototype.eatString=function(Z){var ee="";for(this._ch=this._input.next();this._ch;){if(ee+=this._ch,this._ch==="\\")ee+=this._input.next();else if(Z.indexOf(this._ch)!==-1||this._ch===` `)break;this._ch=this._input.next()}return ee},J.prototype.eatWhitespace=function(Z){for(var ee=q.test(this._input.peek()),te=0;q.test(this._input.peek());)this._ch=this._input.next(),Z&&this._ch===` `&&(te===0||te<this._options.max_preserve_newlines)&&(te++,this._output.add_new_line(!0));return ee},J.prototype.foundNestedPseudoClass=function(){for(var Z=0,ee=1,te=this._input.peek(ee);te;){if(te==="{")return!0;if(te==="(")Z+=1;else if(te===")"){if(Z===0)return!1;Z-=1}else if(te===";"||te==="}")return!1;ee++,te=this._input.peek(ee)}return!1},J.prototype.print_string=function(Z){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(Z)},J.prototype.preserveSingleSpace=function(Z){Z&&(this._output.space_before_token=!0)},J.prototype.indent=function(){this._indentLevel++},J.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},J.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Z=this._source_text,ee=this._options.eol;ee==="auto"&&(ee=` `,Z&&j.test(Z||"")&&(ee=Z.match(j)[0])),Z=Z.replace(U,` `);var te=Z.match(/^[\t ]*/)[0];this._output=new $(this._options,te),this._input=new I(Z),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var se=0,re=!1,ne=!1,ce=!1,me=!1,ue=!1,_e=!1,fe=this._ch,ge=!1,ye,xe,le;ye=this._input.read(Y),xe=ye!=="",le=fe,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),fe=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var be=this._input.read(K),ve=B.get_directives(be);ve&&ve.ignore==="start"&&(be+=B.readIgnored(this._input)),this.print_string(be),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(G)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(xe),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var we=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);we.match(/[ :]$/)&&(we=this.eatString(": ").replace(/\s$/,""),this.print_string(we),this._output.space_before_token=!0),we=we.replace(/\s$/,""),we==="extend"?me=!0:we==="import"&&(ue=!0),we in this.NESTED_AT_RULE?(this._nestedLevel+=1,we in this.CONDITIONAL_GROUP_RULE&&(ce=!0)):!re&&se===0&&we.indexOf(":")!==-1&&(ne=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(xe),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")ne&&(ne=!1,this.outdent()),ce?(ce=!1,re=this._indentLevel>=this._nestedLevel):re=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&re&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(le==="("?this._output.space_before_token=!1:le!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),le==="{"&&this._output.trim(!0),ue=!1,me=!1,ne&&(this.outdent(),ne=!1),this.print_string(this._ch),re=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Ae=0;Ae<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ae++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ae])){ge=!0;break}(re||ce)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!me&&se===0?(this.print_string(":"),ne||(ne=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Se=le==='"'||le==="'";this.preserveSingleSpace(Se||xe),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")ge=!1,se===0?(ne&&(this.outdent(),ne=!1),me=!1,ue=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),se++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),se&&(se--,this.outdent()));else{var Pe=!1;this._input.lookBack("with")&&(Pe=!0),this.preserveSingleSpace(xe||Pe),this.print_string(this._ch),ne&&le==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),_e=!0):(this.eatWhitespace(),se++,this.indent())}else if(this._ch===")")se&&(se--,this.outdent()),_e&&this._input.peek()===";"&&this._options.selector_separator_newline&&(_e=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!ne||_e)&&se===0&&!ue&&!me?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!ne&&se===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&q.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(xe),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),q.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Me=le==='"'||le==="'";this.preserveSingleSpace(Me||xe),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` `&&ge&&this._output.add_new_line()}var Be=this._output.get_code(ee);return Be},beautifier$1.Beautifier=J,beautifier$1}var hasRequiredCss;function requireCss(){if(hasRequiredCss)return css$2.exports;hasRequiredCss=1;var M=requireBeautifier$1().Beautifier,$=requireOptions$1().Options;function I(N,B){var j=new M(N,B);return j.beautify()}return css$2.exports=I,css$2.exports.defaultOptions=function(){return new $},css$2.exports}var html={exports:{}},beautifier={},options={},hasRequiredOptions;function requireOptions(){if(hasRequiredOptions)return options;hasRequiredOptions=1;var M=requireOptions$3().Options;function $(I){M.call(this,I,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return $.prototype=new M,options.Options=$,options}var tokenizer={},hasRequiredTokenizer;function requireTokenizer(){if(hasRequiredTokenizer)return tokenizer;hasRequiredTokenizer=1;var M=requireTokenizer$2().Tokenizer,$=requireTokenizer$2().TOKEN,I=requireDirectives().Directives,N=requireTemplatablepattern().TemplatablePattern,B=requirePattern().Pattern,j={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:$.START,RAW:$.RAW,EOF:$.EOF},U=new I(/<\!--/,/-->/),q=function(Y,K){M.call(this,Y,K),this._current_tag_name="";var G=new N(this._input).read_options(this._options),J=new B(this._input);if(this.__patterns={word:G.until(/[\n\r\t <]/),single_quote:G.until_after(/'/),double_quote:G.until_after(/"/),attribute:G.until(/[\n\r\t =>]|\/>/),element_name:G.until(/[\n\r\t >\/]/),handlebars_comment:J.starting_with(/{{!--/).until_after(/--}}/),handlebars:J.starting_with(/{{/).until_after(/}}/),handlebars_open:J.until(/[\n\r\t }]/),handlebars_raw_close:J.until(/}}/),comment:J.starting_with(/<!--/).until_after(/-->/),cdata:J.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:J.starting_with(/<!\[/).until_after(/]>/),processing:J.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var Z=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=J.matching(Z).until_after(Z)}};return q.prototype=new M,q.prototype._is_comment=function(Y){return!1},q.prototype._is_opening=function(Y){return Y.type===j.TAG_OPEN},q.prototype._is_closing=function(Y,K){return Y.type===j.TAG_CLOSE&&K&&((Y.text===">"||Y.text==="/>")&&K.text[0]==="<"||Y.text==="}}"&&K.text[0]==="{"&&K.text[1]==="{")},q.prototype._reset=function(){this._current_tag_name=""},q.prototype._get_next_token=function(Y,K){var G=null;this._readWhitespace();var J=this._input.peek();return J===null?this._create_token(j.EOF,""):(G=G||this._read_open_handlebars(J,K),G=G||this._read_attribute(J,Y,K),G=G||this._read_close(J,K),G=G||this._read_raw_content(J,Y,K),G=G||this._read_content_word(J),G=G||this._read_comment_or_cdata(J),G=G||this._read_processing(J),G=G||this._read_open(J,K),G=G||this._create_token(j.UNKNOWN,this._input.next()),G)},q.prototype._read_comment_or_cdata=function(Y){var K=null,G=null,J=null;if(Y==="<"){var Z=this._input.peek(1);Z==="!"&&(G=this.__patterns.comment.read(),G?(J=U.get_directives(G),J&&J.ignore==="start"&&(G+=U.readIgnored(this._input))):G=this.__patterns.cdata.read()),G&&(K=this._create_token(j.COMMENT,G),K.directives=J)}return K},q.prototype._read_processing=function(Y){var K=null,G=null,J=null;if(Y==="<"){var Z=this._input.peek(1);(Z==="!"||Z==="?")&&(G=this.__patterns.conditional_comment.read(),G=G||this.__patterns.processing.read()),G&&(K=this._create_token(j.COMMENT,G),K.directives=J)}return K},q.prototype._read_open=function(Y,K){var G=null,J=null;return K||Y==="<"&&(G=this._input.next(),this._input.peek()==="/"&&(G+=this._input.next()),G+=this.__patterns.element_name.read(),J=this._create_token(j.TAG_OPEN,G)),J},q.prototype._read_open_handlebars=function(Y,K){var G=null,J=null;return K||this._options.indent_handlebars&&Y==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(G=this.__patterns.handlebars_comment.read(),G=G||this.__patterns.handlebars.read(),J=this._create_token(j.COMMENT,G)):(G=this.__patterns.handlebars_open.read(),J=this._create_token(j.TAG_OPEN,G))),J},q.prototype._read_close=function(Y,K){var G=null,J=null;return K&&(K.text[0]==="<"&&(Y===">"||Y==="/"&&this._input.peek(1)===">")?(G=this._input.next(),Y==="/"&&(G+=this._input.next()),J=this._create_token(j.TAG_CLOSE,G)):K.text[0]==="{"&&Y==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),J=this._create_token(j.TAG_CLOSE,"}}"))),J},q.prototype._read_attribute=function(Y,K,G){var J=null,Z="";if(G&&G.text[0]==="<")if(Y==="=")J=this._create_token(j.EQUALS,this._input.next());else if(Y==='"'||Y==="'"){var ee=this._input.next();Y==='"'?ee+=this.__patterns.double_quote.read():ee+=this.__patterns.single_quote.read(),J=this._create_token(j.VALUE,ee)}else Z=this.__patterns.attribute.read(),Z&&(K.type===j.EQUALS?J=this._create_token(j.VALUE,Z):J=this._create_token(j.ATTRIBUTE,Z));return J},q.prototype._is_content_unformatted=function(Y){return this._options.void_elements.indexOf(Y)===-1&&(this._options.content_unformatted.indexOf(Y)!==-1||this._options.unformatted.indexOf(Y)!==-1)},q.prototype._read_raw_content=function(Y,K,G){var J="";if(G&&G.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(K.type===j.TAG_CLOSE&&K.opened.text[0]==="<"&&K.text[0]!=="/"){var Z=K.opened.text.substr(1).toLowerCase();if(Z==="script"||Z==="style"){var ee=this._read_comment_or_cdata(Y);if(ee)return ee.type=j.TEXT,ee;J=this._input.readUntil(new RegExp("</"+Z+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(Z)&&(J=this._input.readUntil(new RegExp("</"+Z+"[\\n\\r\\t ]*?>","ig")))}return J?this._create_token(j.TEXT,J):null},q.prototype._read_content_word=function(Y){var K="";if(this._options.unformatted_content_delimiter&&Y===this._options.unformatted_content_delimiter[0]&&(K=this.__patterns.unformatted_content_delimiter.read()),K||(K=this.__patterns.word.read()),K)return this._create_token(j.TEXT,K)},tokenizer.Tokenizer=q,tokenizer.TOKEN=j,tokenizer}var hasRequiredBeautifier;function requireBeautifier(){if(hasRequiredBeautifier)return beautifier;hasRequiredBeautifier=1;var M=requireOptions().Options,$=requireOutput().Output,I=requireTokenizer().Tokenizer,N=requireTokenizer().TOKEN,B=/\r\n|[\r\n]/,j=/\r\n|[\r\n]/g,U=function(re,ne){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=re.max_preserve_newlines,this.preserve_newlines=re.preserve_newlines,this._output=new $(re,ne)};U.prototype.current_line_has_match=function(re){return this._output.current_line.has_match(re)},U.prototype.set_space_before_token=function(re,ne){this._output.space_before_token=re,this._output.non_breaking_space=ne},U.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},U.prototype.add_raw_token=function(re){this._output.add_raw_token(re)},U.prototype.print_preserved_newlines=function(re){var ne=0;re.type!==N.TEXT&&re.previous.type!==N.TEXT&&(ne=re.newlines?1:0),this.preserve_newlines&&(ne=re.newlines<this.max_preserve_newlines+1?re.newlines:this.max_preserve_newlines+1);for(var ce=0;ce<ne;ce++)this.print_newline(ce>0);return ne!==0},U.prototype.traverse_whitespace=function(re){return re.whitespace_before||re.newlines?(this.print_preserved_newlines(re)||(this._output.space_before_token=!0),!0):!1},U.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},U.prototype.print_newline=function(re){this._output.add_new_line(re)},U.prototype.print_token=function(re){re.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(re.text))},U.prototype.indent=function(){this.indent_level++},U.prototype.get_full_indent=function(re){return re=this.indent_level+(re||0),re<1?"":this._output.get_indent_string(re)};var q=function(re){for(var ne=null,ce=re.next;ce.type!==N.EOF&&re.closed!==ce;){if(ce.type===N.ATTRIBUTE&&ce.text==="type"){ce.next&&ce.next.type===N.EQUALS&&ce.next.next&&ce.next.next.type===N.VALUE&&(ne=ce.next.next.text);break}ce=ce.next}return ne},Y=function(re,ne){var ce=null,me=null;return ne.closed?(re==="script"?ce="text/javascript":re==="style"&&(ce="text/css"),ce=q(ne)||ce,ce.search("text/css")>-1?me="css":ce.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?me="javascript":ce.search(/(text|application|dojo)\/(x-)?(html)/)>-1?me="html":ce.search(/test\/null/)>-1&&(me="null"),me):null};function K(re,ne){return ne.indexOf(re)!==-1}function G(re,ne,ce){this.parent=re||null,this.tag=ne?ne.tag_name:"",this.indent_level=ce||0,this.parser_token=ne||null}function J(re){this._printer=re,this._current_frame=null}J.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},J.prototype.record_tag=function(re){var ne=new G(this._current_frame,re,this._printer.indent_level);this._current_frame=ne},J.prototype._try_pop_frame=function(re){var ne=null;return re&&(ne=re.parser_token,this._printer.indent_level=re.indent_level,this._current_frame=re.parent),ne},J.prototype._get_frame=function(re,ne){for(var ce=this._current_frame;ce&&re.indexOf(ce.tag)===-1;){if(ne&&ne.indexOf(ce.tag)!==-1){ce=null;break}ce=ce.parent}return ce},J.prototype.try_pop=function(re,ne){var ce=this._get_frame([re],ne);return this._try_pop_frame(ce)},J.prototype.indent_to_tag=function(re){var ne=this._get_frame(re);ne&&(this._printer.indent_level=ne.indent_level)};function Z(re,ne,ce,me){this._source_text=re||"",ne=ne||{},this._js_beautify=ce,this._css_beautify=me,this._tag_stack=null;var ue=new M(ne,"html");this._options=ue,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}Z.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var re=this._source_text,ne=this._options.eol;this._options.eol==="auto"&&(ne=` `,re&&B.test(re)&&(ne=re.match(B)[0])),re=re.replace(j,` `);var ce=re.match(/^[\t ]*/)[0],me={text:"",type:""},ue=new ee,_e=new U(this._options,ce),fe=new I(re,this._options).tokenize();this._tag_stack=new J(_e);for(var ge=null,ye=fe.next();ye.type!==N.EOF;)ye.type===N.TAG_OPEN||ye.type===N.COMMENT?(ge=this._handle_tag_open(_e,ye,ue,me),ue=ge):ye.type===N.ATTRIBUTE||ye.type===N.EQUALS||ye.type===N.VALUE||ye.type===N.TEXT&&!ue.tag_complete?ge=this._handle_inside_tag(_e,ye,ue,fe):ye.type===N.TAG_CLOSE?ge=this._handle_tag_close(_e,ye,ue):ye.type===N.TEXT?ge=this._handle_text(_e,ye,ue):_e.add_raw_token(ye),me=ge,ye=fe.next();var xe=_e._output.get_code(ne);return xe},Z.prototype._handle_tag_close=function(re,ne,ce){var me={text:ne.text,type:ne.type};return re.alignment_size=0,ce.tag_complete=!0,re.set_space_before_token(ne.newlines||ne.whitespace_before!=="",!0),ce.is_unformatted?re.add_raw_token(ne):(ce.tag_start_char==="<"&&(re.set_space_before_token(ne.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&ce.has_wrapped_attrs&&re.print_newline(!1)),re.print_token(ne)),ce.indent_content&&!(ce.is_unformatted||ce.is_content_unformatted)&&(re.indent(),ce.indent_content=!1),!ce.is_inline_element&&!(ce.is_unformatted||ce.is_content_unformatted)&&re.set_wrap_point(),me},Z.prototype._handle_inside_tag=function(re,ne,ce,me){var ue=ce.has_wrapped_attrs,_e={text:ne.text,type:ne.type};if(re.set_space_before_token(ne.newlines||ne.whitespace_before!=="",!0),ce.is_unformatted)re.add_raw_token(ne);else if(ce.tag_start_char==="{"&&ne.type===N.TEXT)re.print_preserved_newlines(ne)?(ne.newlines=0,re.add_raw_token(ne)):re.print_token(ne);else{if(ne.type===N.ATTRIBUTE?(re.set_space_before_token(!0),ce.attr_count+=1):(ne.type===N.EQUALS||ne.type===N.VALUE&&ne.previous.type===N.EQUALS)&&re.set_space_before_token(!1),ne.type===N.ATTRIBUTE&&ce.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(re.traverse_whitespace(ne),ue=ue||ne.newlines!==0),this._is_wrap_attributes_force)){var fe=ce.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&ce.attr_count===1){var ge=!0,ye=0,xe;do{if(xe=me.peek(ye),xe.type===N.ATTRIBUTE){ge=!1;break}ye+=1}while(ye<4&&xe.type!==N.EOF&&xe.type!==N.TAG_CLOSE);fe=!ge}fe&&(re.print_newline(!1),ue=!0)}re.print_token(ne),ue=ue||re.previous_token_wrapped(),ce.has_wrapped_attrs=ue}return _e},Z.prototype._handle_text=function(re,ne,ce){var me={text:ne.text,type:"TK_CONTENT"};return ce.custom_beautifier_name?this._print_custom_beatifier_text(re,ne,ce):ce.is_unformatted||ce.is_content_unformatted?re.add_raw_token(ne):(re.traverse_whitespace(ne),re.print_token(ne)),me},Z.prototype._print_custom_beatifier_text=function(re,ne,ce){var me=this;if(ne.text!==""){var ue=ne.text,_e,fe=1,ge="",ye="";ce.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?_e=this._js_beautify:ce.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?_e=this._css_beautify:ce.custom_beautifier_name==="html"&&(_e=function(Ae,Se){var Pe=new Z(Ae,Se,me._js_beautify,me._css_beautify);return Pe.beautify()}),this._options.indent_scripts==="keep"?fe=0:this._options.indent_scripts==="separate"&&(fe=-re.indent_level);var xe=re.get_full_indent(fe);if(ue=ue.replace(/\n[ \t]*$/,""),ce.custom_beautifier_name!=="html"&&ue[0]==="<"&&ue.match(/^(<!--|<!\[CDATA\[)/)){var le=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ue);if(!le){re.add_raw_token(ne);return}ge=xe+le[1]+` `,ue=le[4],le[5]&&(ye=xe+le[5]),ue=ue.replace(/\n[ \t]*$/,""),(le[2]||le[3].indexOf(` `)!==-1)&&(le=le[3].match(/[ \t]+$/),le&&(ne.whitespace_before=le[0]))}if(ue)if(_e){var be=function(){this.eol=` `};be.prototype=this._options.raw_options;var ve=new be;ue=_e(xe+ue,ve)}else{var we=ne.whitespace_before;we&&(ue=ue.replace(new RegExp(` (`+we+")?","g"),` `)),ue=xe+ue.replace(/\n/g,` `+xe)}ge&&(ue?ue=ge+ue+` `+ye:ue=ge+ye),re.print_newline(!1),ue&&(ne.text=ue,ne.whitespace_before="",ne.newlines=0,re.add_raw_token(ne),re.print_newline(!0))}},Z.prototype._handle_tag_open=function(re,ne,ce,me){var ue=this._get_tag_open_token(ne);return(ce.is_unformatted||ce.is_content_unformatted)&&!ce.is_empty_element&&ne.type===N.TAG_OPEN&&ne.text.indexOf("</")===0?(re.add_raw_token(ne),ue.start_tag_token=this._tag_stack.try_pop(ue.tag_name)):(re.traverse_whitespace(ne),this._set_tag_position(re,ne,ue,ce,me),ue.is_inline_element||re.set_wrap_point(),re.print_token(ne)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(ue.alignment_size=ne.text.length+1),!ue.tag_complete&&!ue.is_unformatted&&(re.alignment_size=ue.alignment_size),ue};var ee=function(re,ne){if(this.parent=re||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!ne)this.tag_complete=!0;else{var ce;this.tag_start_char=ne.text[0],this.text=ne.text,this.tag_start_char==="<"?(ce=ne.text.match(/^<([^\s>]*)/),this.tag_check=ce?ce[1]:""):(ce=ne.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=ce?ce[1]:"",(ne.text.startsWith("{{#>")||ne.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&ne.next!==null?this.tag_check=ne.next.text.split(" ")[0]:this.tag_check=ne.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),ne.type===N.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||ne.closed&&ne.closed.text==="/>";var me=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(me=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(me)))}};Z.prototype._get_tag_open_token=function(re){var ne=new ee(this._tag_stack.get_parser_token(),re);return ne.alignment_size=this._options.wrap_attributes_indent_size,ne.is_end_tag=ne.is_end_tag||K(ne.tag_check,this._options.void_elements),ne.is_empty_element=ne.tag_complete||ne.is_start_tag&&ne.is_end_tag,ne.is_unformatted=!ne.tag_complete&&K(ne.tag_check,this._options.unformatted),ne.is_content_unformatted=!ne.is_empty_element&&K(ne.tag_check,this._options.content_unformatted),ne.is_inline_element=K(ne.tag_name,this._options.inline)||ne.tag_name.includes("-")||ne.tag_start_char==="{",ne},Z.prototype._set_tag_position=function(re,ne,ce,me,ue){if(ce.is_empty_element||(ce.is_end_tag?ce.start_tag_token=this._tag_stack.try_pop(ce.tag_name):(this._do_optional_end_element(ce)&&(ce.is_inline_element||re.print_newline(!1)),this._tag_stack.record_tag(ce),(ce.tag_name==="script"||ce.tag_name==="style")&&!(ce.is_unformatted||ce.is_content_unformatted)&&(ce.custom_beautifier_name=Y(ce.tag_check,ne)))),K(ce.tag_check,this._options.extra_liners)&&(re.print_newline(!1),re._output.just_added_blankline()||re.print_newline(!0)),ce.is_empty_element){if(ce.tag_start_char==="{"&&ce.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),ce.indent_content=!0;var _e=re.current_line_has_match(/{{#if/);_e||re.print_newline(!1)}ce.tag_name==="!--"&&ue.type===N.TAG_CLOSE&&me.is_end_tag&&ce.text.indexOf(` `)===-1||(ce.is_inline_element||ce.is_unformatted||re.print_newline(!1),this._calcluate_parent_multiline(re,ce))}else if(ce.is_end_tag){var fe=!1;fe=ce.start_tag_token&&ce.start_tag_token.multiline_content,fe=fe||!ce.is_inline_element&&!(me.is_inline_element||me.is_unformatted)&&!(ue.type===N.TAG_CLOSE&&ce.start_tag_token===me)&&ue.type!=="TK_CONTENT",(ce.is_content_unformatted||ce.is_unformatted)&&(fe=!1),fe&&re.print_newline(!1)}else ce.indent_content=!ce.custom_beautifier_name,ce.tag_start_char==="<"&&(ce.tag_name==="html"?ce.indent_content=this._options.indent_inner_html:ce.tag_name==="head"?ce.indent_content=this._options.indent_head_inner_html:ce.tag_name==="body"&&(ce.indent_content=this._options.indent_body_inner_html)),!(ce.is_inline_element||ce.is_unformatted)&&(ue.type!=="TK_CONTENT"||ce.is_content_unformatted)&&re.print_newline(!1),this._calcluate_parent_multiline(re,ce)},Z.prototype._calcluate_parent_multiline=function(re,ne){ne.parent&&re._output.just_added_newline()&&!((ne.is_inline_element||ne.is_unformatted)&&ne.parent.is_inline_element)&&(ne.parent.multiline_content=!0)};var te=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],se=["a","audio","del","ins","map","noscript","video"];return Z.prototype._do_optional_end_element=function(re){var ne=null;if(!(re.is_empty_element||!re.is_start_tag||!re.parent)){if(re.tag_name==="body")ne=ne||this._tag_stack.try_pop("head");else if(re.tag_name==="li")ne=ne||this._tag_stack.try_pop("li",["ol","ul"]);else if(re.tag_name==="dd"||re.tag_name==="dt")ne=ne||this._tag_stack.try_pop("dt",["dl"]),ne=ne||this._tag_stack.try_pop("dd",["dl"]);else if(re.parent.tag_name==="p"&&te.indexOf(re.tag_name)!==-1){var ce=re.parent.parent;(!ce||se.indexOf(ce.tag_name)===-1)&&(ne=ne||this._tag_stack.try_pop("p"))}else re.tag_name==="rp"||re.tag_name==="rt"?(ne=ne||this._tag_stack.try_pop("rt",["ruby","rtc"]),ne=ne||this._tag_stack.try_pop("rp",["ruby","rtc"])):re.tag_name==="optgroup"?ne=ne||this._tag_stack.try_pop("optgroup",["select"]):re.tag_name==="option"?ne=ne||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):re.tag_name==="colgroup"?ne=ne||this._tag_stack.try_pop("caption",["table"]):re.tag_name==="thead"?(ne=ne||this._tag_stack.try_pop("caption",["table"]),ne=ne||this._tag_stack.try_pop("colgroup",["table"])):re.tag_name==="tbody"||re.tag_name==="tfoot"?(ne=ne||this._tag_stack.try_pop("caption",["table"]),ne=ne||this._tag_stack.try_pop("colgroup",["table"]),ne=ne||this._tag_stack.try_pop("thead",["table"]),ne=ne||this._tag_stack.try_pop("tbody",["table"])):re.tag_name==="tr"?(ne=ne||this._tag_stack.try_pop("caption",["table"]),ne=ne||this._tag_stack.try_pop("colgroup",["table"]),ne=ne||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(re.tag_name==="th"||re.tag_name==="td")&&(ne=ne||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),ne=ne||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return re.parent=this._tag_stack.get_parser_token(),ne}},beautifier.Beautifier=Z,beautifier}var hasRequiredHtml;function requireHtml(){if(hasRequiredHtml)return html.exports;hasRequiredHtml=1;var M=requireBeautifier().Beautifier,$=requireOptions().Options;function I(N,B,j,U){var q=new M(N,B,j,U);return q.beautify()}return html.exports=I,html.exports.defaultOptions=function(){return new $},html.exports}var hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src$1;hasRequiredSrc=1;var M=requireJavascript$1(),$=requireCss(),I=requireHtml();function N(B,j,U,q){return U=U||M,q=q||$,I(B,j,U,q)}return N.defaultOptions=I.defaultOptions,src$1.js=M,src$1.css=$,src$1.html=N,src$1}(function(M){function $(I,N,B){var j=function(U,q){return I.js_beautify(U,q)};return j.js=I.js_beautify,j.css=N.css_beautify,j.html=B.html_beautify,j.js_beautify=I.js_beautify,j.css_beautify=N.css_beautify,j.html_beautify=B.html_beautify,j}(function(I){var N=requireSrc();N.js_beautify=N.js,N.css_beautify=N.css,N.html_beautify=N.html,I.exports=$(N,N,N)})(M)})(js);var jsExports=js.exports;/*! * is-whitespace <https://github.com/jonschlinkert/is-whitespace> * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */var cache,isWhitespace$1=function M($){return typeof $=="string"&®ex().test($)};function regex(){return cache||(cache=new RegExp(`^[\\s \v\f\r \u2028\u2029\uFEFF"]+$`))}/*! * is-extendable <https://github.com/jonschlinkert/is-extendable> * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */var isExtendable=function M($){return typeof $<"u"&&$!==null&&(typeof $=="object"||typeof $=="function")},isObject$2=isExtendable,extendShallow=function M($){isObject$2($)||($={});for(var I=arguments.length,N=1;N<I;N++){var B=arguments[N];isObject$2(B)&&assign$2($,B)}return $};function assign$2(M,$){for(var I in $)hasOwn$2($,I)&&(M[I]=$[I])}function hasOwn$2(M,$){return Object.prototype.hasOwnProperty.call(M,$)}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */var isBuffer_1=function(M){return M!=null&&(isBuffer$2(M)||isSlowBuffer(M)||!!M._isBuffer)};function isBuffer$2(M){return!!M.constructor&&typeof M.constructor.isBuffer=="function"&&M.constructor.isBuffer(M)}function isSlowBuffer(M){return typeof M.readFloatLE=="function"&&typeof M.slice=="function"&&isBuffer$2(M.slice(0,0))}var isBuffer$1=isBuffer_1,toString$1=Object.prototype.toString,kindOf=function M($){if(typeof $>"u")return"undefined";if($===null)return"null";if($===!0||$===!1||$ instanceof Boolean)return"boolean";if(typeof $=="string"||$ instanceof String)return"string";if(typeof $=="number"||$ instanceof Number)return"number";if(typeof $=="function"||$ instanceof Function)return"function";if(typeof Array.isArray<"u"&&Array.isArray($))return"array";if($ instanceof RegExp)return"regexp";if($ instanceof Date)return"date";var I=toString$1.call($);return I==="[object RegExp]"?"regexp":I==="[object Date]"?"date":I==="[object Arguments]"?"arguments":I==="[object Error]"?"error":isBuffer$1($)?"buffer":I==="[object Set]"?"set":I==="[object WeakSet]"?"weakset":I==="[object Map]"?"map":I==="[object WeakMap]"?"weakmap":I==="[object Symbol]"?"symbol":I==="[object Int8Array]"?"int8array":I==="[object Uint8Array]"?"uint8array":I==="[object Uint8ClampedArray]"?"uint8clampedarray":I==="[object Int16Array]"?"int16array":I==="[object Uint16Array]"?"uint16array":I==="[object Int32Array]"?"int32array":I==="[object Uint32Array]"?"uint32array":I==="[object Float32Array]"?"float32array":I==="[object Float64Array]"?"float64array":"object"};/*! * condense-newlines <https://github.com/jonschlinkert/condense-newlines> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT License */var isWhitespace=isWhitespace$1,extend$2=extendShallow,typeOf=kindOf,condenseNewlines=function(M,$){var I=extend$2({},$),N=I.sep||` `,B=I.min,j;return typeof B=="number"&&B!==2&&(j=new RegExp("(\\r\\n|\\n|\\u2424) {"+B+",}")),typeof j>"u"&&(j=I.regex||/(\r\n|\n|\u2424){2,}/g),I.keepWhitespace!==!0&&(M=M.split(` `).map(function(U){return isWhitespace(U)?U.trim():U}).join(` `)),M=trailingNewline(M,I),M.replace(j,N)};function trailingNewline(M,$){var I=$.trailingNewline;if(I===!1)return M;switch(typeOf(I)){case"string":M=M.replace(/\s+$/,$.trailingNewline);break;case"function":M=$.trailingNewline(M);break;case"undefined":case"boolean":default:{M=M.replace(/\s+$/,` `);break}}return M}/*! * pretty <https://github.com/jonschlinkert/pretty> * * Copyright (c) 2013-2015, 2017, Jon Schlinkert. * Released under the MIT License. */var beautify=jsExports,condense=condenseNewlines,extend$1=extendShallow,defaults$3={unformatted:["code","pre","em","strong","span"],indent_inner_html:!0,indent_char:" ",indent_size:2,sep:` `},pretty=function M($,I){var N=extend$1({},defaults$3,I);return $=beautify.html($,N),N.ocd===!0?(N.newlines&&(N.sep=N.newlines),ocd($,N)):$};function ocd(M,$){return condense(M,$).replace(/^\s+/g,"").replace(/\s+$/g,` `).replace(/(\s*<!--)/g,` $1`).replace(/>(\s*)(?=<!--\s*\/)/g,"> ")}const pretty$1=getDefaultExportFromCjs$1(pretty),_sfc_main$2c={props:["html"],inject:["bard"],computed:{blocks(){return this.html.split(/(<bard-set>.*?<\/bard-set>)/).map(M=>{if(M.startsWith("<bard-set>")){let $=M.match(/^<bard-set>(.*)<\/bard-set>$/)[1];return{type:"set",set:JSON.parse($).values.type}}return{type:"text",text:pretty$1(M)}})}},methods:{setDisplay(M){return _.findWhere(this.bard.setConfigs,{handle:M}).display||M}}};var _sfc_render$2c=function M(){var $=this,I=$._self._c;return I("div",$._l($.blocks,function(N,B){return I("div",{key:B,staticClass:"p-4"},[N.type==="text"?I("pre",{staticClass:"whitespace-pre-wrap leading-normal text-xs font-mono",domProps:{textContent:$._s(N.text)}}):$._e(),N.type==="set"?I("div",{staticClass:"border border-dashed p-2 rounded text-xs",domProps:{textContent:$._s($.setDisplay(N.set))}}):$._e()])}),0)},_sfc_staticRenderFns$2c=[],__component__$2d=normalizeComponent$2(_sfc_main$2c,_sfc_render$2c,_sfc_staticRenderFns$2c,!1,null,null,null,null);const BardSource=__component__$2d.exports,_sfc_main$2b={props:{sets:Array,enabled:{type:Boolean,default:!0}},data(){return{selectedGroupHandle:null,search:null,selectionIndex:0,keybindings:[]}},computed:{showSearch(){return!this.hasMultipleGroups||!this.selectedGroup},showGroupBreadcrumb(){return this.hasMultipleGroups&&this.selectedGroup},showGroups(){return this.hasMultipleGroups&&!this.selectedGroup&&!this.search},hasMultipleSets(){return this.sets.reduce((M,$)=>M+$.sets.length,0)>1},hasMultipleGroups(){return this.sets.length>1},selectedGroup(){return this.sets.find(M=>M.handle===this.selectedGroupHandle)},selectedGroupDisplayText(){return this.selectedGroup?__(this.selectedGroup.display||this.selectedGroup.handle):null},visibleSets(){if(!this.selectedGroup&&!this.search)return[];let M=this.selectedGroup?this.selectedGroup.sets:this.sets.reduce(($,I)=>$.concat(I.sets),[]);return this.search?M.filter($=>!$.hide).filter($=>__($.display).toLowerCase().includes(this.search.toLowerCase())||$.handle.toLowerCase().includes(this.search.toLowerCase())):M.filter($=>!$.hide)},items(){let M=[];return this.showGroups&&this.sets.forEach($=>{M.push({...$,type:"group"})}),this.visibleSets.forEach($=>{M.push({...$,type:"set"})}),M},noSearchResults(){return this.search&&this.visibleSets.length===0},iconBaseDirectory(){return this.$config.get("setIconsDirectory")},iconSubFolder(){return this.$config.get("setIconsFolder")},iconDirectory(){let M=this.$config.get("setIconsDirectory"),$=this.$config.get("setIconsFolder");return $&&(M=M+"/"+$),M}},watch:{search(){this.selectionIndex=0}},methods:{addSet(M){this.$emit("added",M),this.unselectGroup(),this.search=null,this.$refs.popover.close()},selectGroup(M){this.selectedGroupHandle=M,this.selectionIndex=0},unselectGroup(){this.selectedGroupHandle=null},opened(){this.$refs.search.focus(),this.sets.length===1&&(this.selectedGroupHandle=this.sets[0].handle),this.bindKeys()},closed(){this.unbindKeys()},bindKeys(){this.keybindings=[this.$keys.bindGlobal("up",M=>this.keypressUp(M)),this.$keys.bindGlobal("down",M=>this.keypressDown(M)),this.$keys.bindGlobal("enter",M=>this.keypressEnter(M))]},unbindKeys(){this.keybindings.forEach(M=>M.destroy()),this.keybindings=[]},keypressUp(M){M.preventDefault(),this.selectionIndex=this.selectionIndex===0?this.items.length-1:this.selectionIndex-1},keypressDown(M){M.preventDefault(),this.selectionIndex=this.selectionIndex===this.items.length-1?0:this.selectionIndex+1},keypressEnter(M){M.preventDefault();const $=this.items[this.selectionIndex];$.type==="group"?this.selectGroup($.handle):this.addSet($.handle)},triggerWasClicked(){this.hasMultipleSets||this.addSet(this.sets[0].sets[0].handle)},groupIconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:"folder-generic"},setIconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:"light/add"}}};var _sfc_render$2b=function M(){var $=this,I=$._self._c;return I("popover",{ref:"popover",staticClass:"set-picker select-none",attrs:{placement:"bottom-start",disabled:!$.enabled||!$.hasMultipleSets},on:{opened:$.opened,closed:$.closed,click:$.triggerWasClicked,"clicked-away":function(N){return $.$emit("clicked-away",N)}},scopedSlots:$._u([{key:"trigger",fn:function(){return[$._t("trigger")]},proxy:!0},{key:"default",fn:function(){return[I("div",{staticClass:"set-picker-header p-3 border-b dark:border-dark-900 text-xs flex items-center"},[I("input",{directives:[{name:"show",rawName:"v-show",value:$.showSearch,expression:"showSearch"},{name:"model",rawName:"v-model",value:$.search,expression:"search"}],ref:"search",staticClass:"input-text text-xs h-auto py-1 px-2 border rounded w-full dark:bg-dark-650 dark:border-gray-900",attrs:{type:"text",placeholder:$.__("Search Sets")},domProps:{value:$.search},on:{input:function(N){N.target.composing||($.search=N.target.value)}}}),$.showGroupBreadcrumb?I("div",{staticClass:"flex items-center text-gray-700 dark:text-gray-600 font-medium"},[I("button",{staticClass:"hover:text-gray-900 dark:hover:text-gray-500 rtl:mr-2.5 ltr:ml-2.5 rounded",on:{click:$.unselectGroup}},[$._v(" "+$._s($.__("Groups"))+" ")]),I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"micro/chevron-right"}}),I("span",[$._v($._s($.selectedGroupDisplayText))])],1):$._e()]),I("div",{staticClass:"p-1 max-h-[21rem] overflow-auto"},[$._l($.items,function(N,B){return I("div",{key:N.handle,staticClass:"cursor-pointer rounded",class:{"bg-gray-200 dark:bg-dark-600":$.selectionIndex===B},on:{mouseover:function(j){$.selectionIndex=B}}},[N.type==="group"?I("div",{staticClass:"flex items-center group px-2 py-1.5 rounded-md",on:{click:function(j){return $.selectGroup(N.handle)}}},[I("svg-icon",{staticClass:"h-9 w-9 rounded bg-white dark:bg-dark-650 border border-gray-600 dark:border-dark-800 rtl:ml-2 ltr:mr-2 p-2 text-gray-800 dark:text-dark-175",attrs:{name:$.groupIconName(N.icon),directory:$.iconBaseDirectory}}),I("div",{staticClass:"flex-1"},[I("div",{staticClass:"text-md font-medium text-gray-800 dark:text-dark-175 truncate w-52"},[$._v($._s($.__(N.display||N.handle)))]),N.instructions?I("div",{staticClass:"text-2xs text-gray-700 dark:text-dark-175 truncate w-52"},[$._v($._s($.__(N.instructions)))]):$._e()]),I("svg-icon",{staticClass:"text-gray-600 group-hover:text-dark-800 dark:group-hover:text-dark-175",attrs:{name:"micro/chevron-right-thin"}})],1):$._e(),N.type==="set"?I("div",{staticClass:"flex items-center group px-2 py-1.5 rounded-md",on:{click:function(j){return $.addSet(N.handle)}}},[I("svg-icon",{staticClass:"h-9 w-9 rounded bg-white dark:bg-dark-650 border border-gray-600 dark:border-dark-800 rtl:ml-2 ltr:mr-2 p-2 text-gray-800 dark:text-dark-175",attrs:{name:$.setIconName(N.icon),directory:$.iconBaseDirectory}}),I("div",{staticClass:"flex-1"},[I("div",{staticClass:"text-md font-medium text-gray-800 dark:text-dark-175 truncate w-52"},[$._v($._s($.__(N.display||N.handle)))]),N.instructions?I("div",{staticClass:"text-2xs text-gray-700 dark:text-dark-175 truncate w-52"},[$._v($._s($.__(N.instructions)))]):$._e()])],1):$._e()])}),$.noSearchResults?I("div",{staticClass:"text-center text-gray-600 text-xs p-3"},[$._v(" "+$._s($.__("No results"))+" ")]):$._e()],2)]},proxy:!0}],null,!0)})},_sfc_staticRenderFns$2b=[],__component__$2c=normalizeComponent$2(_sfc_main$2b,_sfc_render$2b,_sfc_staticRenderFns$2b,!1,null,null,null,null);const SetPicker=__component__$2c.exports,Document=Node$1.create({name:"doc",topNode:!0,content:"block+"}),DocumentBlock=Document.extend({content:"(block | root)+"}),DocumentInline=Document.extend({content:"paragraph"}),_sfc_main$2a={props:{field:{type:Object,required:!0},meta:{type:Object},value:{required:!0},parentName:{type:String,required:!0},setIndex:{type:Number,required:!0},fieldPath:{type:String},readOnly:Boolean,showFieldPreviews:Boolean},inject:{storeName:{default:null},isInsideConfigFields:{default:!1}},data(){return{hasField:!1}},computed:{fieldtypeComponent(){return`${this.field.component||this.field.type}-fieldtype`},namePrefix(){return`${this.parentName}[${this.setIndex}]`},display(){return __(this.field.display||this.field.handle[0].toUpperCase()+this.field.handle.slice(1))},instructions(){return this.field.instructions?this.$options.filters.markdown(__(this.field.instructions)):null},storeState(){return this.$store.state.publish[this.storeName]||[]},errors(){return this.storeState.errors[this.fieldPath]||[]},hasError(){return this.errors.length>0},hasNestedError(){const M=`${this.fieldPath}.`;return Object.keys(this.storeState.errors).some($=>$.startsWith(M))},isReadOnly(){return this.readOnly||this.field.visibility==="read_only"||!1},classes(){return["form-group publish-field",`${this.field.type}-fieldtype`,`${tailwind_width_class(this.field.width)}`,this.showLabel?"has-field-label":"",this.shouldShowFieldActions?"has-field-dropdown":"",this.isReadOnly?"read-only-field":"",this.field.classes||"",{"has-error":this.hasError||this.hasNestedError}]},showLabel(){return this.showLabelText||this.isReadOnly||this.field.required},showLabelText(){return!this.field.hide_display},fieldId(){return(this.fieldPath?this.fieldPath+".":"")+"field_"+this.field.handle},shouldShowFieldActions(){return!this.isInsideConfigFields&&this.fieldActions.length>0},fieldActions(){return this.hasField?this.$refs.field.fieldActions:[]}},mounted(){this.$refs.field&&(this.hasField=!0)}};var _sfc_render$2a=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"p-4 m-0 @container",class:$.classes},[I("div",{staticClass:"field-inner"},[$.showLabel?I("label",{staticClass:"block",attrs:{for:$.fieldId}},[$.showLabelText?I("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.field.handle,delay:500,autoHide:!1},expression:"{content: field.handle, delay: 500, autoHide: false}"}]},[$._v($._s($.display))]):$._e(),$.field.required?I("i",{staticClass:"required"},[$._v("*")]):$._e(),$.isReadOnly?I("span",{staticClass:"text-gray-500 font-normal text-2xs mx-1",domProps:{textContent:$._s($.__("Read Only"))}}):$._e()]):$._e(),$.instructions&&$.field.instructions_position!=="below"?I("div",{staticClass:"help-block",class:{"-mt-2":$.showLabel},domProps:{innerHTML:$._s($.instructions)}}):$._e(),$.shouldShowFieldActions?I("publish-field-actions",{attrs:{actions:$.fieldActions}}):$._e()],1),I($.fieldtypeComponent,{ref:"field",tag:"component",attrs:{config:$.field,meta:$.meta,value:$.value,handle:$.field.handle,"name-prefix":$.namePrefix,"field-path-prefix":$.fieldPath,"has-error":$.hasError||$.hasNestedError,"read-only":$.isReadOnly,"show-field-previews":$.showFieldPreviews},on:{input:function(N){return $.$emit("updated",N)},"meta-updated":function(N){return $.$emit("meta-updated",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")},"replicator-preview-updated":function(N){return $.$emit("replicator-preview-updated",N)}}}),$.instructions&&$.field.instructions_position==="below"?I("div",{staticClass:"help-block mt-2",domProps:{innerHTML:$._s($.instructions)}}):$._e(),$.hasError?I("div",$._l($.errors,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s(N)}})}),0):$._e()],1)},_sfc_staticRenderFns$2a=[],__component__$2b=normalizeComponent$2(_sfc_main$2a,_sfc_render$2a,_sfc_staticRenderFns$2a,!1,null,null,null,null);const SetField=__component__$2b.exports,ManagesPreviewText={computed:{previewText(){const M=_(this.previews).filter(($,I)=>{const N=_.findWhere(this.config.fields,{handle:I})||{};return N.replicator_preview===void 0?this.showFieldPreviews:N.replicator_preview});return Object.values(M).filter($=>["null","[]","{}",""].includes(JSON.stringify($))?null:$).map($=>$ instanceof PreviewHtml?$.html:typeof $=="string"?escapeHtml($):Array.isArray($)&&typeof $[0]=="string"?escapeHtml($.join(", ")):escapeHtml(JSON.stringify($))).join(" / ")}}},_sfc_main$29={props:["editor","node","decorations","selected","extension","getPos","updateAttributes","deleteNode"],components:{NodeViewWrapper,SetField,DropdownActions},mixins:[ValidatesFieldConditions,ManagesPreviewText,HasFieldActions],inject:["bard","bardSets","storeName"],computed:{fields(){return this.config.fields},display(){return __(this.config.display||this.values.type)},values(){return this.node.attrs.values},meta(){return this.extension.options.bard.meta.existing[this.node.attrs.id]||{}},previews(){return this.extension.options.bard.meta.previews[this.node.attrs.id]||{}},collapsed(){return this.extension.options.bard.meta.collapsed.includes(this.node.attrs.id)},config(){return _.findWhere(this.setConfigs,{handle:this.values.type})||{}},setConfigs(){return this.bard.setConfigs},setGroup(){return this.bardSets.length<1?null:this.bardSets.find(M=>M.sets.filter($=>$.handle===this.config.handle).length>0)},isSetGroupVisible(){var M;return this.bardSets.length>1&&((M=this.setGroup)==null?void 0:M.display)},isReadOnly(){return this.bard.isReadOnly},enabled:{get(){return this.node.attrs.enabled},set(M){return this.updateAttributes({enabled:M})}},parentName(){return this.extension.options.bard.name},index(){return this.extension.options.bard.setIndexes[this.node.attrs.id]},instructions(){return this.config.instructions?markdown(__(this.config.instructions)):null},hasError(){return this.extension.options.bard.setsWithErrors.includes(this.index)},showFieldPreviews(){return this.extension.options.bard.config.previews},isInvalid(){return Object.keys(this.config).length===0},decorationSpecs(){return Object.assign({},...this.decorations.map(M=>M.type.spec))},withinSelection(){return this.decorationSpecs.withinSelection},fieldVm(){return this.extension.options.bard},fieldActionPayload(){return{vm:this,fieldVm:this.fieldVm,fieldPathPrefix:this.fieldVm.fieldPathPrefix||this.fieldVm.handle,index:this.index,values:this.values,config:this.config,meta:this.meta,update:(M,$)=>this.updated(M,$),updateMeta:(M,$)=>this.metaUpdated(M,$),isReadOnly:this.isReadOnly,store:this.$store,storeName:this.storeName}}},methods:{updated(M,$){let I=Object.assign({},this.values);I.type=this.config.handle,I[M]=$,this.updateAttributes({values:I})},metaUpdated(M,$){let I=clone(this.meta);I[M]=$,this.extension.options.bard.updateSetMeta(this.node.attrs.id,I)},previewUpdated(M,$){this.extension.options.bard.updateSetPreviews(this.node.attrs.id,{...this.previews,[M]:$})},focused(){this.extension.options.bard.$emit("focus")},blurred(){setTimeout(()=>{const M=this.extension.options.bard;M.$el.contains(document.activeElement)||M.$emit("blur")},1)},toggleCollapsedState(){this.collapsed?this.expand():this.collapse()},collapse(){this.extension.options.bard.collapseSet(this.node.attrs.id)},expand(){this.extension.options.bard.expandSet(this.node.attrs.id)},duplicate(){this.extension.options.bard.duplicateSet(this.node.attrs.id,this.node.attrs,this.getPos()+this.node.nodeSize)},fieldPath(M){return`${this.extension.options.bard.fieldPathPrefix||this.extension.options.bard.handle}.${this.index}.attrs.values.${M.handle}`}},updated(){this.$el.setAttribute("draggable",!1)}};var _sfc_render$29=function M(){var $=this,I=$._self._c;return I("node-view-wrapper",[I("div",{staticClass:"bard-set whitespace-normal my-6 rounded bg-white dark:bg-dark-500 border dark:border-dark-900 shadow-md",class:{"border-blue-400 dark:border-dark-blue-100":$.selected||$.withinSelection,"has-error":$.hasError},attrs:{"data-type":$.config.handle,contenteditable:"false"},on:{copy:function(N){N.stopPropagation()},paste:function(N){N.stopPropagation()},cut:function(N){N.stopPropagation()}}},[I("div",{ref:"content",attrs:{hidden:""}}),I("div",{staticClass:"replicator-set-header",class:{collapsed:$.collapsed,invalid:$.isInvalid}},[I("div",{staticClass:"item-move sortable-handle",attrs:{"data-drag-handle":""}}),I("div",{staticClass:"flex items-center flex-1 p-2 replicator-set-header-inner cursor-pointer",class:{"flex items-center":$.collapsed},on:{click:$.toggleCollapsedState}},[I("label",{staticClass:"text-xs rtl:ml-2 ltr:mr-2"},[$.isSetGroupVisible?I("span",[$._v(" "+$._s($.__($.setGroup.display))+" "),I("svg-icon",{staticClass:"w-4",attrs:{name:"micro/chevron-right"}})],1):$._e(),$._v(" "+$._s($.display||$.config.handle)+" ")]),$.config.instructions&&!$.collapsed?I("div",{staticClass:"flex items-center"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.$options.filters.markdown($.__($.config.instructions)),html:!0},expression:"{ content: $options.filters.markdown(__(config.instructions)), html:true }"}],staticClass:"text-gray-700 dark:text-dark-175 hover:text-gray-800 dark:hover:text-dark-100 h-3 w-3 text-xs",attrs:{name:"micro/circle-help"}})],1):$._e(),I("div",{directives:[{name:"show",rawName:"v-show",value:$.collapsed,expression:"collapsed"}],staticClass:"flex-1 min-w-0 w-1 rtl:pl-8 ltr:pr-8"},[I("div",{staticClass:"help-block mb-0 whitespace-nowrap overflow-hidden text-ellipsis",domProps:{innerHTML:$._s($.previewText)}})])]),I("div",{staticClass:"replicator-set-controls"},[I("toggle-fieldtype",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.enabled?$.__("Included in output"):$.__("Hidden from output"),expression:"(enabled) ? __('Included in output') : __('Hidden from output')",modifiers:{top:!0}}],staticClass:"toggle-sm rtl:ml-4 ltr:mr-4",attrs:{handle:"set-enabled"},model:{value:$.enabled,callback:function(N){$.enabled=N},expression:"enabled"}}),I("dropdown-list",[$.fieldActions.length?I("dropdown-actions",{attrs:{actions:$.fieldActions}}):$._e(),I("div",{staticClass:"divider"}),I("dropdown-item",{attrs:{text:$.__($.collapsed?$.__("Expand Set"):$.__("Collapse Set"))},on:{click:$.toggleCollapsedState}}),I("dropdown-item",{attrs:{text:$.__("Duplicate Set")},on:{click:$.duplicate}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete Set")},on:{click:$.deleteNode}})],1)],1)]),$.index!==void 0?I("div",{directives:[{name:"show",rawName:"v-show",value:!$.collapsed,expression:"!collapsed"}],staticClass:"replicator-set-body publish-fields @container"},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N)),expression:"showField(field, fieldPath(field))"}],key:N.handle,attrs:{field:N,value:$.values[N.handle],meta:$.meta[N.handle],"parent-name":$.parentName,"set-index":$.index,"field-path":$.fieldPath(N),"read-only":$.isReadOnly,"show-field-previews":$.showFieldPreviews},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.metaUpdated(N.handle,B)},focus:$.focused,blur:$.blurred,"replicator-preview-updated":function(B){return $.previewUpdated(N.handle,B)}}})}),1):$._e()])])},_sfc_staticRenderFns$29=[],__component__$2a=normalizeComponent$2(_sfc_main$29,_sfc_render$29,_sfc_staticRenderFns$29,!1,null,null,null,null);const BardSet=__component__$2a.exports,Set$1=Node$1.create({name:"set",addNodeView(){return VueNodeViewRenderer(BardSet)},draggable:!0,group:"root",addAttributes(){return{id:{default:null,parseHTML:M=>{var $;return($=M.querySelector("div"))==null?void 0:$.getAttribute("id")}},enabled:{default:!0,parseHTML:M=>{var $;return($=M.querySelector("div"))==null?void 0:$.getAttribute("enabled")}},values:{default:null,parseHTML:M=>{var $;return($=M.querySelector("a"))==null?void 0:$.getAttribute("values")}}}},parseHTML(){return[{tag:"bard-set",getAttrs:M=>JSON.parse(M.innerHTML)}]},renderHTML({HTMLAttributes:M}){return["bard-set",{},JSON.stringify(M)]},addCommands(){return{set:M=>({tr:$,dispatch:I})=>{const{selection:N}=$,B=this.type.create(M);if(I){const j=N instanceof TextSelection?$.insert(N.$cursor.pos-1,B):$.insert(N.$head.pos,B);I(j)}},setAt:({attrs:M,pos:$})=>({tr:I,dispatch:N})=>{const B=this.type.create(M);if(N){const j=I.insert($,B);N(j)}}}},addProseMirrorPlugins(){const M=this.options.bard,$=this.type;return[new Plugin({key:new PluginKey("setSelectionDecorator"),props:{decorations(I){const{from:N,to:B}=I.selection,j=[];return I.doc.nodesBetween(N,B,(U,q)=>{U.type===$&&j.push(Decoration.node(q,q+U.nodeSize,{},{withinSelection:!0}))}),DecorationSet.create(I.doc,j)}}}),new Plugin({key:new PluginKey("setPastedTransformer"),props:{transformPasted:I=>{const{content:N}=I.content;return new Slice(Fragment.fromArray(N.map(B=>B.type===$?B.type.create(M.pasteSet(B.attrs)):B.copy(B.content))),I.openStart,I.openEnd)}}})]}}),Small=Mark.create({name:"small",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"small"}]},renderHTML({HTMLAttributes:M}){return["small",mergeAttributes(this.options.HTMLAttributes,M),0]},addCommands(){return{toggleSmall:()=>({commands:M})=>M.toggleMark(this.name)}}}),_sfc_main$28={mixins:[Asset],components:{NodeViewWrapper,Selector},inject:["storeName"],props:["editor","node","decorations","selected","extension","getPos","updateAttributes","deleteNode"],data(){return{assetId:null,assetAlt:null,editorAsset:null,showingSelector:!1,loading:!1,alt:this.node.attrs.alt,showingAltEdit:!!this.node.attrs.alt}},computed:{src(){if(this.editorAsset)return this.editorAsset.url},actualSrc(){return this.editorAsset?`asset::${this.assetId}`:this.src},selections(){return this.assetId?[this.assetId]:[]}},created(){let M=this.node.attrs.src;this.node.isNew&&this.openSelector(),M&&M.startsWith("asset:")&&(this.assetId=M.substr(7));let $=this.assetId||M;$&&this.loadAsset($)},watch:{actualSrc(M){this.node.attrs.src||this.updateAttributes({src:M,asset:!!this.assetId})},alt(M){this.updateAttributes({alt:M})}},methods:{openSelector(){this.showingSelector=!0},closeSelector(){this.showingSelector=!1},assetsSelected(M){this.loading=!0,this.assetId=M[0],this.loadAsset(this.assetId)},loadAsset(M){_.find(this.$store.state.publish[this.storeName].preloadedAssets,$=>$.id===M),this.$axios.post(cp_url("assets-fieldtype"),{assets:[M]}).then($=>{this.setAsset($.data[0])})},setAsset(M){this.editorAsset=M,this.assetId=M.id,this.assetAlt=M.values.alt,this.loading=!1,this.updateAttributes({src:this.actualSrc})},toggleAltEditor(){this.showingAltEdit=!this.showingAltEdit,this.showingAltEdit||(this.alt=null)},editorAssetSaved(M){this.setAsset(M),this.closeEditor()}},updated(){this.$el.setAttribute("draggable",!1)}};var _sfc_render$28=function M(){var $=this,I=$._self._c;return I("node-view-wrapper",[I("div",{staticClass:"bard-inline-image-container shadow-sm",class:{"border-blue-400":$.selected}},[$.src?I("div",{staticClass:"p-2 text-center",attrs:{draggable:"true","data-drag-handle":""}},[I("div",{ref:"content",attrs:{hidden:""}}),I("img",{staticClass:"block mx-auto rounded-sm",attrs:{src:$.src}})]):$._e(),I("div",{staticClass:"@container/toolbar flex items-center border-t dark:border-dark-900 justify-center py-2 px-2 text-2xs text-white dark:text-dark-150 text-center space-x-1 sm:space-x-3 rtl:space-x-reverse"},[$.src?$._e():I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",attrs:{type:"button"},on:{click:$.openSelector}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"folder-image"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Choose Image")))])],1),$.src?I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",attrs:{type:"button"},on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"pencil"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Edit Image")))])],1):$._e(),$.src?I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",class:{active:$.showingAltEdit},attrs:{type:"button"},on:{click:$.toggleAltEditor}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"rename-file"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Override Alt")))])],1):$._e(),$.src?I("button",{staticClass:"flex btn btn-sm px-3 py-1.5",attrs:{type:"button"},on:{click:$.openSelector}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"swap"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Replace")))])],1):$._e(),I("button",{staticClass:"flex btn btn-sm text-red-500 px-3 py-1.5",on:{click:$.deleteNode}},[I("svg-icon",{staticClass:"h-4",attrs:{name:"trash"}}),I("span",{staticClass:"rtl:mr-2 ltr:ml-2 hidden @md/toolbar:inline-block"},[$._v($._s($.__("Remove")))])],1)]),$.showingAltEdit?I("div",{staticClass:"flex items-center p-2 border-t dark:border-dark-900 rounded-b",on:{paste:function(N){N.stopPropagation()}}},[I("text-input",{staticClass:"flex-1",attrs:{name:"alt",focus:$.showingAltEdit,placeholder:$.assetAlt,prepend:$.__("Alt Text")},model:{value:$.alt,callback:function(N){$.alt=N},expression:"alt"}})],1):$._e(),$.showingSelector?I("stack",{attrs:{name:"asset-selector"},on:{closed:$.closeSelector}},[I("selector",{attrs:{container:$.extension.options.bard.config.container,folder:$.extension.options.bard.config.folder||"/","restrict-folder-navigation":$.extension.options.bard.config.restrict_assets,selected:$.selections,"view-mode":"grid","max-files":1},on:{selected:$.assetsSelected,closed:$.closeSelector}})],1):$._e(),$.editing?I("asset-editor",{attrs:{id:$.assetId,showToolbar:!1,"allow-deleting":!1},on:{closed:$.closeEditor,saved:$.editorAssetSaved,actionCompleted:$.actionCompleted}}):$._e()],1)])},_sfc_staticRenderFns$28=[],__component__$29=normalizeComponent$2(_sfc_main$28,_sfc_render$28,_sfc_staticRenderFns$28,!1,null,null,null,null);const ImageComponent=__component__$29.exports,Image=Node$1.create({name:"image",addNodeView(){return VueNodeViewRenderer(ImageComponent)},inline:!0,group:"inline",draggable:!0,selectable:!0,addAttributes(){return{src:{default:null,parseHTML:M=>{var $;return($=M.querySelector("img"))==null?void 0:$.getAttribute("data-src")}},alt:{default:null,parseHTML:M=>{var $;return($=M.querySelector("img"))==null?void 0:$.getAttribute("alt")}}}},parseHTML(){return[{tag:"img[src]",getAttrs:M=>({src:M.getAttribute("data-src"),alt:M.getAttribute("alt")})}]},renderHTML({HTMLAttributes:M}){return["img",{...M,src:"","data-src":M.src}]},addCommands(){return{insertImage:M=>({tr:$,dispatch:I})=>{const{selection:N}=$,B=N.$cursor?N.$cursor.pos:N.$to.pos,j=this.type.create(M);if(j.isNew=!0,I){const U=$.insert(B,j);I(U)}}}}}),Link=Mark.create({name:"link",inclusive:!1,addAttributes(){return{href:{default:null},rel:{default:null},target:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]"}]},renderHTML({HTMLAttributes:M}){return["a",M,0]},addCommands(){return{setLink:M=>({chain:$})=>M.href?$().setMark(this.name,M).run():$().unsetMark(this.name,{extendEmptyMarkRange:!0}).run()}},addPasteRules(){return[markPasteRule({find:/https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_+.~#?&//=]*)/g,type:this.type,getAttributes:M=>({href:M[0]})})]},addKeyboardShortcuts(){return{"Mod-k":()=>this.options.vm.$emit("link-toggle")}},addProseMirrorPlugins(){const M=this.options.vm;return[new Plugin({key:new PluginKey("eventHandler"),props:{handleClick($,I){const{schema:N,doc:B,tr:j}=$.state,U=getMarkRange(B.resolve(I),N.marks.link);if(U){if(U.to===I)return;const q=B.resolve(U.from),Y=B.resolve(U.to),K=new TextSelection(q,Y),G=j.setSelection(K),J=getAttributes($.state,N.marks.link);$.dispatch(G),M.$emit("link-selected",J)}else M.$emit("link-deselected")}}})]}});var shams=function M(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var $={},I=Symbol("test"),N=Object(I);if(typeof I=="string"||Object.prototype.toString.call(I)!=="[object Symbol]"||Object.prototype.toString.call(N)!=="[object Symbol]")return!1;var B=42;$[I]=B;for(I in $)return!1;if(typeof Object.keys=="function"&&Object.keys($).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames($).length!==0)return!1;var j=Object.getOwnPropertySymbols($);if(j.length!==1||j[0]!==I||!Object.prototype.propertyIsEnumerable.call($,I))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var U=Object.getOwnPropertyDescriptor($,I);if(U.value!==B||U.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function M(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function M($){var I=this;if(typeof I!="function"||toStr$1.call(I)!==funcType)throw new TypeError(ERROR_MESSAGE+I);for(var N=slice.call(arguments,1),B,j=function(){if(this instanceof B){var G=I.apply(this,N.concat(slice.call(arguments)));return Object(G)===G?G:this}else return I.apply($,N.concat(slice.call(arguments)))},U=Math.max(0,I.length-N.length),q=[],Y=0;Y<U;Y++)q.push("$"+Y);if(B=Function("binder","return function ("+q.join(",")+"){ return binder.apply(this,arguments); }")(j),I.prototype){var K=function(){};K.prototype=I.prototype,B.prototype=new K,K.prototype=null}return B},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$2=functionBind,src=bind$2.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(M){try{return $Function('"use strict"; return ('+M+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function(M){return M.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};try{null.error}catch(M){var errorProto=getProto(getProto(M));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function M($){var I;if($==="%AsyncFunction%")I=getEvalledConstructor("async function () {}");else if($==="%GeneratorFunction%")I=getEvalledConstructor("function* () {}");else if($==="%AsyncGeneratorFunction%")I=getEvalledConstructor("async function* () {}");else if($==="%AsyncGenerator%"){var N=M("%AsyncGeneratorFunction%");N&&(I=N.prototype)}else if($==="%AsyncIteratorPrototype%"){var B=M("%AsyncGenerator%");B&&(I=getProto(B.prototype))}return INTRINSICS[$]=I,I},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$1=functionBind,hasOwn$1=src,$concat$1=bind$1.call(Function.call,Array.prototype.concat),$spliceApply=bind$1.call(Function.apply,Array.prototype.splice),$replace$1=bind$1.call(Function.call,String.prototype.replace),$strSlice=bind$1.call(Function.call,String.prototype.slice),$exec=bind$1.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function M($){var I=$strSlice($,0,1),N=$strSlice($,-1);if(I==="%"&&N!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&I!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var B=[];return $replace$1($,rePropName,function(j,U,q,Y){B[B.length]=q?$replace$1(Y,reEscapeChar,"$1"):U||j}),B},getBaseIntrinsic=function M($,I){var N=$,B;if(hasOwn$1(LEGACY_ALIASES,N)&&(B=LEGACY_ALIASES[N],N="%"+B[0]+"%"),hasOwn$1(INTRINSICS,N)){var j=INTRINSICS[N];if(j===needsEval&&(j=doEval(N)),typeof j>"u"&&!I)throw new $TypeError$1("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:B,name:N,value:j}}throw new $SyntaxError("intrinsic "+$+" does not exist!")},getIntrinsic=function M($,I){if(typeof $!="string"||$.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,$)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=stringToPath($),B=N.length>0?N[0]:"",j=getBaseIntrinsic("%"+B+"%",I),U=j.name,q=j.value,Y=!1,K=j.alias;K&&(B=K[0],$spliceApply(N,$concat$1([0,1],K)));for(var G=1,J=!0;G<N.length;G+=1){var Z=N[G],ee=$strSlice(Z,0,1),te=$strSlice(Z,-1);if((ee==='"'||ee==="'"||ee==="`"||te==='"'||te==="'"||te==="`")&&ee!==te)throw new $SyntaxError("property names with quotes must have matching quotes");if((Z==="constructor"||!J)&&(Y=!0),B+="."+Z,U="%"+B+"%",hasOwn$1(INTRINSICS,U))q=INTRINSICS[U];else if(q!=null){if(!(Z in q)){if(!I)throw new $TypeError$1("base intrinsic for "+$+" exists, but the property is not available.");return}if($gOPD&&G+1>=N.length){var se=$gOPD(q,Z);J=!!se,J&&"get"in se&&!("originalValue"in se.get)?q=se.get:q=q[Z]}else J=hasOwn$1(q,Z),q=q[Z];J&&!Y&&(INTRINSICS[U]=q)}}return q},callBind$1={exports:{}};(function(M){var $=functionBind,I=getIntrinsic,N=I("%Function.prototype.apply%"),B=I("%Function.prototype.call%"),j=I("%Reflect.apply%",!0)||$.call(B,N),U=I("%Object.getOwnPropertyDescriptor%",!0),q=I("%Object.defineProperty%",!0),Y=I("%Math.max%");if(q)try{q({},"a",{value:1})}catch{q=null}M.exports=function(J){var Z=j($,B,arguments);if(U&&q){var ee=U(Z,"length");ee.configurable&&q(Z,"length",{value:1+Y(0,J.length-(arguments.length-1))})}return Z};var K=function(){return j($,N,arguments)};q?q(M.exports,"apply",{value:K}):M.exports.apply=K})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function M($,I){var N=GetIntrinsic$1($,!!I);return typeof N=="function"&&$indexOf($,".prototype.")>-1?callBind(N):N},hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(M){return M.__proto__}:null);function addNumericSeparator(M,$){if(M===1/0||M===-1/0||M!==M||M&&M>-1e3&&M<1e3||$test.call(/e/,$))return $;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof M=="number"){var N=M<0?-$floor(-M):$floor(M);if(N!==M){var B=String(N),j=$slice.call($,B.length+1);return $replace.call(B,I,"$&_")+"."+$replace.call($replace.call(j,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call($,I,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function M($,I,N,B){var j=I||{};if(has$3(j,"quoteStyle")&&j.quoteStyle!=="single"&&j.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(j,"maxStringLength")&&(typeof j.maxStringLength=="number"?j.maxStringLength<0&&j.maxStringLength!==1/0:j.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var U=has$3(j,"customInspect")?j.customInspect:!0;if(typeof U!="boolean"&&U!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(j,"indent")&&j.indent!==null&&j.indent!==" "&&!(parseInt(j.indent,10)===j.indent&&j.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(j,"numericSeparator")&&typeof j.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var q=j.numericSeparator;if(typeof $>"u")return"undefined";if($===null)return"null";if(typeof $=="boolean")return $?"true":"false";if(typeof $=="string")return inspectString($,j);if(typeof $=="number"){if($===0)return 1/0/$>0?"0":"-0";var Y=String($);return q?addNumericSeparator($,Y):Y}if(typeof $=="bigint"){var K=String($)+"n";return q?addNumericSeparator($,K):K}var G=typeof j.depth>"u"?5:j.depth;if(typeof N>"u"&&(N=0),N>=G&&G>0&&typeof $=="object")return isArray$4($)?"[Array]":"[Object]";var J=getIndent(j,N);if(typeof B>"u")B=[];else if(indexOf$1(B,$)>=0)return"[Circular]";function Z(we,Ae,Se){if(Ae&&(B=$arrSlice.call(B),B.push(Ae)),Se){var Pe={depth:j.depth};return has$3(j,"quoteStyle")&&(Pe.quoteStyle=j.quoteStyle),M(we,Pe,N+1,B)}return M(we,j,N+1,B)}if(typeof $=="function"&&!isRegExp$1($)){var ee=nameOf($),te=arrObjKeys($,Z);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+$join.call(te,", ")+" }":"")}if(isSymbol($)){var se=hasShammedSymbols?$replace.call(String($),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call($);return typeof $=="object"&&!hasShammedSymbols?markBoxed(se):se}if(isElement$1($)){for(var re="<"+$toLowerCase.call(String($.nodeName)),ne=$.attributes||[],ce=0;ce<ne.length;ce++)re+=" "+ne[ce].name+"="+wrapQuotes(quote(ne[ce].value),"double",j);return re+=">",$.childNodes&&$.childNodes.length&&(re+="..."),re+="</"+$toLowerCase.call(String($.nodeName))+">",re}if(isArray$4($)){if($.length===0)return"[]";var me=arrObjKeys($,Z);return J&&!singleLineValues(me)?"["+indentedJoin(me,J)+"]":"[ "+$join.call(me,", ")+" ]"}if(isError($)){var ue=arrObjKeys($,Z);return!("cause"in Error.prototype)&&"cause"in $&&!isEnumerable.call($,"cause")?"{ ["+String($)+"] "+$join.call($concat.call("[cause]: "+Z($.cause),ue),", ")+" }":ue.length===0?"["+String($)+"]":"{ ["+String($)+"] "+$join.call(ue,", ")+" }"}if(typeof $=="object"&&U){if(inspectSymbol&&typeof $[inspectSymbol]=="function"&&utilInspect)return utilInspect($,{depth:G-N});if(U!=="symbol"&&typeof $.inspect=="function")return $.inspect()}if(isMap($)){var _e=[];return mapForEach&&mapForEach.call($,function(we,Ae){_e.push(Z(Ae,$,!0)+" => "+Z(we,$))}),collectionOf("Map",mapSize.call($),_e,J)}if(isSet($)){var fe=[];return setForEach&&setForEach.call($,function(we){fe.push(Z(we,$))}),collectionOf("Set",setSize.call($),fe,J)}if(isWeakMap($))return weakCollectionOf("WeakMap");if(isWeakSet($))return weakCollectionOf("WeakSet");if(isWeakRef($))return weakCollectionOf("WeakRef");if(isNumber$1($))return markBoxed(Z(Number($)));if(isBigInt($))return markBoxed(Z(bigIntValueOf.call($)));if(isBoolean($))return markBoxed(booleanValueOf.call($));if(isString$2($))return markBoxed(Z(String($)));if(!isDate$1($)&&!isRegExp$1($)){var ge=arrObjKeys($,Z),ye=gPO?gPO($)===Object.prototype:$ instanceof Object||$.constructor===Object,xe=$ instanceof Object?"":"null prototype",le=!ye&&toStringTag&&Object($)===$&&toStringTag in $?$slice.call(toStr($),8,-1):xe?"Object":"",be=ye||typeof $.constructor!="function"?"":$.constructor.name?$.constructor.name+" ":"",ve=be+(le||xe?"["+$join.call($concat.call([],le||[],xe||[]),": ")+"] ":"");return ge.length===0?ve+"{}":J?ve+"{"+indentedJoin(ge,J)+"}":ve+"{ "+$join.call(ge,", ")+" }"}return String($)};function wrapQuotes(M,$,I){var N=(I.quoteStyle||$)==="double"?'"':"'";return N+M+N}function quote(M){return $replace.call(String(M),/"/g,""")}function isArray$4(M){return toStr(M)==="[object Array]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isDate$1(M){return toStr(M)==="[object Date]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isRegExp$1(M){return toStr(M)==="[object RegExp]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isError(M){return toStr(M)==="[object Error]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isString$2(M){return toStr(M)==="[object String]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isNumber$1(M){return toStr(M)==="[object Number]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isBoolean(M){return toStr(M)==="[object Boolean]"&&(!toStringTag||!(typeof M=="object"&&toStringTag in M))}function isSymbol(M){if(hasShammedSymbols)return M&&typeof M=="object"&&M instanceof Symbol;if(typeof M=="symbol")return!0;if(!M||typeof M!="object"||!symToString)return!1;try{return symToString.call(M),!0}catch{}return!1}function isBigInt(M){if(!M||typeof M!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(M),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(M){return M in this};function has$3(M,$){return hasOwn.call(M,$)}function toStr(M){return objectToString.call(M)}function nameOf(M){if(M.name)return M.name;var $=$match.call(functionToString.call(M),/^function\s*([\w$]+)/);return $?$[1]:null}function indexOf$1(M,$){if(M.indexOf)return M.indexOf($);for(var I=0,N=M.length;I<N;I++)if(M[I]===$)return I;return-1}function isMap(M){if(!mapSize||!M||typeof M!="object")return!1;try{mapSize.call(M);try{setSize.call(M)}catch{return!0}return M instanceof Map}catch{}return!1}function isWeakMap(M){if(!weakMapHas||!M||typeof M!="object")return!1;try{weakMapHas.call(M,weakMapHas);try{weakSetHas.call(M,weakSetHas)}catch{return!0}return M instanceof WeakMap}catch{}return!1}function isWeakRef(M){if(!weakRefDeref||!M||typeof M!="object")return!1;try{return weakRefDeref.call(M),!0}catch{}return!1}function isSet(M){if(!setSize||!M||typeof M!="object")return!1;try{setSize.call(M);try{mapSize.call(M)}catch{return!0}return M instanceof Set}catch{}return!1}function isWeakSet(M){if(!weakSetHas||!M||typeof M!="object")return!1;try{weakSetHas.call(M,weakSetHas);try{weakMapHas.call(M,weakMapHas)}catch{return!0}return M instanceof WeakSet}catch{}return!1}function isElement$1(M){return!M||typeof M!="object"?!1:typeof HTMLElement<"u"&&M instanceof HTMLElement?!0:typeof M.nodeName=="string"&&typeof M.getAttribute=="function"}function inspectString(M,$){if(M.length>$.maxStringLength){var I=M.length-$.maxStringLength,N="... "+I+" more character"+(I>1?"s":"");return inspectString($slice.call(M,0,$.maxStringLength),$)+N}var B=$replace.call($replace.call(M,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(B,"single",$)}function lowbyte(M){var $=M.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[$];return I?"\\"+I:"\\x"+($<16?"0":"")+$toUpperCase.call($.toString(16))}function markBoxed(M){return"Object("+M+")"}function weakCollectionOf(M){return M+" { ? }"}function collectionOf(M,$,I,N){var B=N?indentedJoin(I,N):$join.call(I,", ");return M+" ("+$+") {"+B+"}"}function singleLineValues(M){for(var $=0;$<M.length;$++)if(indexOf$1(M[$],` `)>=0)return!1;return!0}function getIndent(M,$){var I;if(M.indent===" ")I=" ";else if(typeof M.indent=="number"&&M.indent>0)I=$join.call(Array(M.indent+1)," ");else return null;return{base:I,prev:$join.call(Array($+1),I)}}function indentedJoin(M,$){if(M.length===0)return"";var I=` `+$.prev+$.base;return I+$join.call(M,","+I)+` `+$.prev}function arrObjKeys(M,$){var I=isArray$4(M),N=[];if(I){N.length=M.length;for(var B=0;B<M.length;B++)N[B]=has$3(M,B)?$(M[B],M):""}var j=typeof gOPS=="function"?gOPS(M):[],U;if(hasShammedSymbols){U={};for(var q=0;q<j.length;q++)U["$"+j[q]]=j[q]}for(var Y in M)has$3(M,Y)&&(I&&String(Number(Y))===Y&&Y<M.length||hasShammedSymbols&&U["$"+Y]instanceof Symbol||($test.call(/[^\w$]/,Y)?N.push($(Y,M)+": "+$(M[Y],M)):N.push(Y+": "+$(M[Y],M))));if(typeof gOPS=="function")for(var K=0;K<j.length;K++)isEnumerable.call(M,j[K])&&N.push("["+$(j[K])+"]: "+$(M[j[K]],M));return N}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect$1=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(M,$){for(var I=M,N;(N=I.next)!==null;I=N)if(N.key===$)return I.next=N.next,N.next=M.next,M.next=N,N},listGet=function(M,$){var I=listGetNode(M,$);return I&&I.value},listSet=function(M,$,I){var N=listGetNode(M,$);N?N.value=I:M.next={key:$,next:M.next,value:I}},listHas=function(M,$){return!!listGetNode(M,$)},sideChannel=function M(){var $,I,N,B={assert:function(j){if(!B.has(j))throw new $TypeError("Side channel does not contain "+inspect$1(j))},get:function(j){if($WeakMap&&j&&(typeof j=="object"||typeof j=="function")){if($)return $weakMapGet($,j)}else if($Map){if(I)return $mapGet(I,j)}else if(N)return listGet(N,j)},has:function(j){if($WeakMap&&j&&(typeof j=="object"||typeof j=="function")){if($)return $weakMapHas($,j)}else if($Map){if(I)return $mapHas(I,j)}else if(N)return listHas(N,j);return!1},set:function(j,U){$WeakMap&&j&&(typeof j=="object"||typeof j=="function")?($||($=new $WeakMap),$weakMapSet($,j,U)):$Map?(I||(I=new $Map),$mapSet(I,j,U)):(N||(N={key:{},next:null}),listSet(N,j,U))}};return B},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(M){return replace.call(M,percentTwenties,"+")},RFC3986:function(M){return String(M)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$3=Array.isArray,hexTable=function(){for(var M=[],$=0;$<256;++$)M.push("%"+(($<16?"0":"")+$.toString(16)).toUpperCase());return M}(),compactQueue=function M($){for(;$.length>1;){var I=$.pop(),N=I.obj[I.prop];if(isArray$3(N)){for(var B=[],j=0;j<N.length;++j)typeof N[j]<"u"&&B.push(N[j]);I.obj[I.prop]=B}}},arrayToObject=function M($,I){for(var N=I&&I.plainObjects?Object.create(null):{},B=0;B<$.length;++B)typeof $[B]<"u"&&(N[B]=$[B]);return N},merge$1=function M($,I,N){if(!I)return $;if(typeof I!="object"){if(isArray$3($))$.push(I);else if($&&typeof $=="object")(N&&(N.plainObjects||N.allowPrototypes)||!has$2.call(Object.prototype,I))&&($[I]=!0);else return[$,I];return $}if(!$||typeof $!="object")return[$].concat(I);var B=$;return isArray$3($)&&!isArray$3(I)&&(B=arrayToObject($,N)),isArray$3($)&&isArray$3(I)?(I.forEach(function(j,U){if(has$2.call($,U)){var q=$[U];q&&typeof q=="object"&&j&&typeof j=="object"?$[U]=M(q,j,N):$.push(j)}else $[U]=j}),$):Object.keys(I).reduce(function(j,U){var q=I[U];return has$2.call(j,U)?j[U]=M(j[U],q,N):j[U]=q,j},B)},assign$1=function M($,I){return Object.keys(I).reduce(function(N,B){return N[B]=I[B],N},$)},decode=function(M,$,I){var N=M.replace(/\+/g," ");if(I==="iso-8859-1")return N.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(N)}catch{return N}},encode=function M($,I,N,B,j){if($.length===0)return $;var U=$;if(typeof $=="symbol"?U=Symbol.prototype.toString.call($):typeof $!="string"&&(U=String($)),N==="iso-8859-1")return escape(U).replace(/%u[0-9a-f]{4}/gi,function(G){return"%26%23"+parseInt(G.slice(2),16)+"%3B"});for(var q="",Y=0;Y<U.length;++Y){var K=U.charCodeAt(Y);if(K===45||K===46||K===95||K===126||K>=48&&K<=57||K>=65&&K<=90||K>=97&&K<=122||j===formats$2.RFC1738&&(K===40||K===41)){q+=U.charAt(Y);continue}if(K<128){q=q+hexTable[K];continue}if(K<2048){q=q+(hexTable[192|K>>6]+hexTable[128|K&63]);continue}if(K<55296||K>=57344){q=q+(hexTable[224|K>>12]+hexTable[128|K>>6&63]+hexTable[128|K&63]);continue}Y+=1,K=65536+((K&1023)<<10|U.charCodeAt(Y)&1023),q+=hexTable[240|K>>18]+hexTable[128|K>>12&63]+hexTable[128|K>>6&63]+hexTable[128|K&63]}return q},compact=function M($){for(var I=[{obj:{o:$},prop:"o"}],N=[],B=0;B<I.length;++B)for(var j=I[B],U=j.obj[j.prop],q=Object.keys(U),Y=0;Y<q.length;++Y){var K=q[Y],G=U[K];typeof G=="object"&&G!==null&&N.indexOf(G)===-1&&(I.push({obj:U,prop:K}),N.push(G))}return compactQueue(I),$},isRegExp=function M($){return Object.prototype.toString.call($)==="[object RegExp]"},isBuffer=function M($){return!$||typeof $!="object"?!1:!!($.constructor&&$.constructor.isBuffer&&$.constructor.isBuffer($))},combine=function M($,I){return[].concat($,I)},maybeMap=function M($,I){if(isArray$3($)){for(var N=[],B=0;B<$.length;B+=1)N.push(I($[B]));return N}return I($)},utils$2={arrayToObject,assign:assign$1,combine,compact,decode,encode,isBuffer,isRegExp,maybeMap,merge:merge$1},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function M($){return $+"[]"},comma:"comma",indices:function M($,I){return $+"["+I+"]"},repeat:function M($){return $}},isArray$2=Array.isArray,push=Array.prototype.push,pushToArray=function(M,$){push.apply(M,isArray$2($)?$:[$])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$2={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$1.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function M($){return toISO.call($)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function M($){return typeof $=="string"||typeof $=="number"||typeof $=="boolean"||typeof $=="symbol"||typeof $=="bigint"},sentinel={},stringify$1=function M($,I,N,B,j,U,q,Y,K,G,J,Z,ee,te,se,re){for(var ne=$,ce=re,me=0,ue=!1;(ce=ce.get(sentinel))!==void 0&&!ue;){var _e=ce.get($);if(me+=1,typeof _e<"u"){if(_e===me)throw new RangeError("Cyclic object value");ue=!0}typeof ce.get(sentinel)>"u"&&(me=0)}if(typeof Y=="function"?ne=Y(I,ne):ne instanceof Date?ne=J(ne):N==="comma"&&isArray$2(ne)&&(ne=utils$1.maybeMap(ne,function(Pe){return Pe instanceof Date?J(Pe):Pe})),ne===null){if(j)return q&&!te?q(I,defaults$2.encoder,se,"key",Z):I;ne=""}if(isNonNullishPrimitive(ne)||utils$1.isBuffer(ne)){if(q){var fe=te?I:q(I,defaults$2.encoder,se,"key",Z);return[ee(fe)+"="+ee(q(ne,defaults$2.encoder,se,"value",Z))]}return[ee(I)+"="+ee(String(ne))]}var ge=[];if(typeof ne>"u")return ge;var ye;if(N==="comma"&&isArray$2(ne))te&&q&&(ne=utils$1.maybeMap(ne,q)),ye=[{value:ne.length>0?ne.join(",")||null:void 0}];else if(isArray$2(Y))ye=Y;else{var xe=Object.keys(ne);ye=K?xe.sort(K):xe}for(var le=B&&isArray$2(ne)&&ne.length===1?I+"[]":I,be=0;be<ye.length;++be){var ve=ye[be],we=typeof ve=="object"&&typeof ve.value<"u"?ve.value:ne[ve];if(!(U&&we===null)){var Ae=isArray$2(ne)?typeof N=="function"?N(le,ve):le:le+(G?"."+ve:"["+ve+"]");re.set($,me);var Se=getSideChannel();Se.set(sentinel,re),pushToArray(ge,M(we,Ae,N,B,j,U,N==="comma"&&te&&isArray$2(ne)?null:q,Y,K,G,J,Z,ee,te,se,Se))}}return ge},normalizeStringifyOptions=function M($){if(!$)return defaults$2;if($.encoder!==null&&typeof $.encoder<"u"&&typeof $.encoder!="function")throw new TypeError("Encoder has to be a function.");var I=$.charset||defaults$2.charset;if(typeof $.charset<"u"&&$.charset!=="utf-8"&&$.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var N=formats$1.default;if(typeof $.format<"u"){if(!has$1.call(formats$1.formatters,$.format))throw new TypeError("Unknown format option provided.");N=$.format}var B=formats$1.formatters[N],j=defaults$2.filter;return(typeof $.filter=="function"||isArray$2($.filter))&&(j=$.filter),{addQueryPrefix:typeof $.addQueryPrefix=="boolean"?$.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof $.allowDots>"u"?defaults$2.allowDots:!!$.allowDots,charset:I,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof $.delimiter>"u"?defaults$2.delimiter:$.delimiter,encode:typeof $.encode=="boolean"?$.encode:defaults$2.encode,encoder:typeof $.encoder=="function"?$.encoder:defaults$2.encoder,encodeValuesOnly:typeof $.encodeValuesOnly=="boolean"?$.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:j,format:N,formatter:B,serializeDate:typeof $.serializeDate=="function"?$.serializeDate:defaults$2.serializeDate,skipNulls:typeof $.skipNulls=="boolean"?$.skipNulls:defaults$2.skipNulls,sort:typeof $.sort=="function"?$.sort:null,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function(M,$){var I=M,N=normalizeStringifyOptions($),B,j;typeof N.filter=="function"?(j=N.filter,I=j("",I)):isArray$2(N.filter)&&(j=N.filter,B=j);var U=[];if(typeof I!="object"||I===null)return"";var q;$&&$.arrayFormat in arrayPrefixGenerators?q=$.arrayFormat:$&&"indices"in $?q=$.indices?"indices":"repeat":q="indices";var Y=arrayPrefixGenerators[q];if($&&"commaRoundTrip"in $&&typeof $.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var K=Y==="comma"&&$&&$.commaRoundTrip;B||(B=Object.keys(I)),N.sort&&B.sort(N.sort);for(var G=getSideChannel(),J=0;J<B.length;++J){var Z=B[J];N.skipNulls&&I[Z]===null||pushToArray(U,stringify$1(I[Z],Z,Y,K,N.strictNullHandling,N.skipNulls,N.encode?N.encoder:null,N.filter,N.sort,N.allowDots,N.serializeDate,N.format,N.formatter,N.encodeValuesOnly,N.charset,G))}var ee=U.join(N.delimiter),te=N.addQueryPrefix===!0?"?":"";return N.charsetSentinel&&(N.charset==="iso-8859-1"?te+="utf8=%26%2310003%3B&":te+="utf8=%E2%9C%93&"),ee.length>0?te+ee:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray$1=Array.isArray,defaults$1={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(M){return M.replace(/&#(\d+);/g,function($,I){return String.fromCharCode(parseInt(I,10))})},parseArrayValue=function(M,$){return M&&typeof M=="string"&&$.comma&&M.indexOf(",")>-1?M.split(","):M},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function M($,I){var N={},B=I.ignoreQueryPrefix?$.replace(/^\?/,""):$,j=I.parameterLimit===1/0?void 0:I.parameterLimit,U=B.split(I.delimiter,j),q=-1,Y,K=I.charset;if(I.charsetSentinel)for(Y=0;Y<U.length;++Y)U[Y].indexOf("utf8=")===0&&(U[Y]===charsetSentinel?K="utf-8":U[Y]===isoSentinel&&(K="iso-8859-1"),q=Y,Y=U.length);for(Y=0;Y<U.length;++Y)if(Y!==q){var G=U[Y],J=G.indexOf("]="),Z=J===-1?G.indexOf("="):J+1,ee,te;Z===-1?(ee=I.decoder(G,defaults$1.decoder,K,"key"),te=I.strictNullHandling?null:""):(ee=I.decoder(G.slice(0,Z),defaults$1.decoder,K,"key"),te=utils.maybeMap(parseArrayValue(G.slice(Z+1),I),function(se){return I.decoder(se,defaults$1.decoder,K,"value")})),te&&I.interpretNumericEntities&&K==="iso-8859-1"&&(te=interpretNumericEntities(te)),G.indexOf("[]=")>-1&&(te=isArray$1(te)?[te]:te),has.call(N,ee)?N[ee]=utils.combine(N[ee],te):N[ee]=te}return N},parseObject=function(M,$,I,N){for(var B=N?$:parseArrayValue($,I),j=M.length-1;j>=0;--j){var U,q=M[j];if(q==="[]"&&I.parseArrays)U=[].concat(B);else{U=I.plainObjects?Object.create(null):{};var Y=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,K=parseInt(Y,10);!I.parseArrays&&Y===""?U={0:B}:!isNaN(K)&&q!==Y&&String(K)===Y&&K>=0&&I.parseArrays&&K<=I.arrayLimit?(U=[],U[K]=B):Y!=="__proto__"&&(U[Y]=B)}B=U}return B},parseKeys=function M($,I,N,B){if($){var j=N.allowDots?$.replace(/\.([^.[]+)/g,"[$1]"):$,U=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Y=N.depth>0&&U.exec(j),K=Y?j.slice(0,Y.index):j,G=[];if(K){if(!N.plainObjects&&has.call(Object.prototype,K)&&!N.allowPrototypes)return;G.push(K)}for(var J=0;N.depth>0&&(Y=q.exec(j))!==null&&J<N.depth;){if(J+=1,!N.plainObjects&&has.call(Object.prototype,Y[1].slice(1,-1))&&!N.allowPrototypes)return;G.push(Y[1])}return Y&&G.push("["+j.slice(Y.index)+"]"),parseObject(G,I,N,B)}},normalizeParseOptions=function M($){if(!$)return defaults$1;if($.decoder!==null&&$.decoder!==void 0&&typeof $.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof $.charset<"u"&&$.charset!=="utf-8"&&$.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var I=typeof $.charset>"u"?defaults$1.charset:$.charset;return{allowDots:typeof $.allowDots>"u"?defaults$1.allowDots:!!$.allowDots,allowPrototypes:typeof $.allowPrototypes=="boolean"?$.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof $.allowSparse=="boolean"?$.allowSparse:defaults$1.allowSparse,arrayLimit:typeof $.arrayLimit=="number"?$.arrayLimit:defaults$1.arrayLimit,charset:I,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:defaults$1.charsetSentinel,comma:typeof $.comma=="boolean"?$.comma:defaults$1.comma,decoder:typeof $.decoder=="function"?$.decoder:defaults$1.decoder,delimiter:typeof $.delimiter=="string"||utils.isRegExp($.delimiter)?$.delimiter:defaults$1.delimiter,depth:typeof $.depth=="number"||$.depth===!1?+$.depth:defaults$1.depth,ignoreQueryPrefix:$.ignoreQueryPrefix===!0,interpretNumericEntities:typeof $.interpretNumericEntities=="boolean"?$.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof $.parameterLimit=="number"?$.parameterLimit:defaults$1.parameterLimit,parseArrays:$.parseArrays!==!1,plainObjects:typeof $.plainObjects=="boolean"?$.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:defaults$1.strictNullHandling}},parse$1=function(M,$){var I=normalizeParseOptions($);if(M===""||M===null||typeof M>"u")return I.plainObjects?Object.create(null):{};for(var N=typeof M=="string"?parseValues(M,I):M,B=I.plainObjects?Object.create(null):{},j=Object.keys(N),U=0;U<j.length;++U){var q=j[U],Y=parseKeys(q,N[q],I,typeof M=="string");B=utils.merge(B,Y,I)}return I.allowSparse===!0?B:utils.compact(B)},stringify=stringify_1,parse=parse$1,formats=formats$3,lib={formats,parse,stringify};const qs=getDefaultExportFromCjs$1(lib),_sfc_main$27={components:{AssetSelector:Selector,SvgIcon},props:{bard:{},config:Object,linkAttrs:Object},data(){return{linkType:"url",linkTypes:[{type:"url",title:__("URL")},{type:"entry",title:__("Entry")},{type:"asset",title:__("Asset")},{type:"mailto",title:__("Email")},{type:"tel",title:__("Phone")}],url:{},urlData:{},itemData:{},title:null,rel:null,targetBlank:null,showAssetSelector:!1,isLoading:!1}},computed:{visibleLinkTypes(){return this.linkTypes.filter(M=>!(M.type==="asset"&&!this.config.container))},displayValue(){switch(this.linkType){case"url":return this.url.url;case"entry":return this.itemData.entry?this.itemData.entry.title:null;case"asset":return this.itemData.asset?this.itemData.asset.basename:null;case"mailto":return this.urlData.mailto?this.urlData.mailto:null;case"tel":return this.urlData.tel?this.urlData.tel:null}},canCommit(){return!!this.url[this.linkType]},href(){return this.sanitizeLink(this.url[this.linkType])},defaultRel(){let M=[];return this.config.link_noopener&&M.push("noopener"),this.config.link_noreferrer&&M.push("noreferrer"),M.length?M.join(" "):null},relationshipConfig(){return{type:"entries",collections:this.collections,max_items:1}},itemDataUrl(){return cp_url("fieldtypes/relationship/data")+"?"+qs.stringify({config:this.configParameter})},selectionsUrl(){return cp_url("fieldtypes/relationship")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},filtersUrl(){return cp_url("fieldtypes/relationship/filters")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},configParameter(){return utf8btoa(JSON.stringify(this.relationshipConfig))},collections(){return this.bard.meta.linkCollections},canHaveTarget(){return["url","entry","asset"].includes(this.linkType)},selectedTextIsEmail(){const{view:M,state:$}=this.bard.editor,{from:I,to:N}=M.state.selection;return $.doc.textBetween(I,N,"").match(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)}},watch:{linkType(){this.autofocus()},urlData:{deep:!0,handler(){["mailto","tel"].includes(this.linkType)&&this.setUrl(this.linkType,this.urlData[this.linkType]?`${this.linkType}:${this.urlData[this.linkType]}`:null)}}},created(){this.applyAttrs(this.linkAttrs),this.bard.$on("link-selected",this.applyAttrs),this.bard.$on("link-deselected",()=>this.$emit("deselected")),_.isEmpty(this.linkAttrs)&&this.selectedTextIsEmail&&(this.linkType="mailto",this.urlData={mailto:this.selectedTextIsEmail})},mounted(){this.autofocus()},beforeDestroy(){this.bard.$off("link-selected"),this.bard.$off("link-deselected")},methods:{applyAttrs(M){this.linkType=this.getLinkTypeForUrl(M.href),this.url={[this.linkType]:M.href},this.urlData={[this.linkType]:this.getUrlDataForUrl(M.href)},this.itemData={[this.linkType]:this.getItemDataForUrl(M.href)},this.title=M.title,this.rel=M.href?M.rel:this.defaultRel,this.targetBlank=M.href?M.target==="_blank":this.config.target_blank},autofocus(){this.linkType==="url"&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.urlInput.focus()},50)})},setUrl(M,$){this.url={...this.url,[M]:$}},setItemData(M,$){this.itemData={...this.itemData,[M]:$}},remove(){this.$emit("updated",{href:null})},commit(){if(!this.href)return this.remove();this.$emit("updated",{href:this.href,rel:this.rel,target:this.canHaveTarget&&this.targetBlank?"_blank":null,title:this.title})},sanitizeLink(M){const $=M.trim();return $.match(/^\w[\w\-_\.]+\.(co|uk|com|org|net|gov|biz|info|us|eu|de|fr|it|es|pl|nz)/i)?`https://${$}`:$},openSelector(){this.linkType==="entry"?this.openEntrySelector():this.linkType==="asset"&&this.openAssetSelector()},openEntrySelector(){this.$refs.relationshipInput.$refs.existing.click()},openAssetSelector(){this.showAssetSelector=!0},closeAssetSelector(){this.showAssetSelector=!1},assetSelected(M){M.length&&this.loadAssetData(M[0])},loadAssetData(M){this.$axios.post(cp_url("assets-fieldtype"),{assets:[M]}).then($=>{this.selectItem("asset",$.data[0]),this.isLoading=!1})},entrySelected(M){M.length&&this.selectItem("entry",M[0])},selectItem(M,$){const I=`${M}::${$.id}`;this.setItemData(M,$),this.setUrl(M,`statamic://${I}`),this.putItemDataIntoMeta(I,$)},putItemDataIntoMeta(M,$){let I=this.bard.meta;I.linkData[M]=$,this.bard.updateMeta(I)},getLinkTypeForUrl(M){const{type:$}=this.parseDataUrl(M);if($)return $;const I=M?M.match(/^(mailto|tel):(.*)$/):null;return I?I[1]:"url"},getUrlDataForUrl(M){const $=M?M.match(/^(mailto|tel):(.*)$/):null;return $?$[2]:null},getItemDataForUrl(M){const{ref:$}=this.parseDataUrl(M);return $?this.bard.meta.linkData[$]:null},parseDataUrl(M){if(!M)return{};const $=/^statamic:\/\/((.*?)::(.*))$/,I=M.match($);if(!I)return{};const[N,B,j,U]=I;return{ref:B,type:j,id:U}}}};var _sfc_render$27=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"bard-link-toolbar"},[I("div",[I("div",{staticClass:"px-4 py-4 border-b dark:border-dark-900"},[I("div",{staticClass:"flex"},[I("div",{staticClass:"h-8 mb-4 bg-gray-100 dark:bg-dark-600 text-gray-800 dark:text-dark-150 border dark:border-dark-200 rounded shadow-inner flex items-center rtl:ml-1 ltr:mr-1"},[I("select",{directives:[{name:"model",rawName:"v-model",value:$.linkType,expression:"linkType"}],staticClass:"input w-auto text-sm px-1",on:{change:function(N){var B=Array.prototype.filter.call(N.target.options,function(j){return j.selected}).map(function(j){var U="_value"in j?j._value:j.value;return U});$.linkType=N.target.multiple?B:B[0]}}},$._l($.visibleLinkTypes,function(N){return I("option",{domProps:{value:N.type}},[$._v(" "+$._s(N.title)+" ")])}),0)]),I("div",{staticClass:"h-8 mb-4 p-2 bg-gray-100 dark:bg-dark-600 text-gray-800 dark:text-dark-150 w-full border dark:border-dark-200 rounded shadow-inner placeholder:text-gray-600 dark:placeholder:dark-text-dark-175 flex items-center"},[$.linkType==="url"?I("input",{directives:[{name:"model",rawName:"v-model",value:$.url.url,expression:"url.url"}],ref:"urlInput",staticClass:"input h-auto text-sm",attrs:{type:"text",placeholder:$.__("URL")},domProps:{value:$.url.url},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.commit.apply(null,arguments))},input:function(N){N.target.composing||$.$set($.url,"url",N.target.value)}}}):$.linkType==="mailto"?I("input",{directives:[{name:"model",rawName:"v-model",value:$.urlData.mailto,expression:"urlData.mailto"}],ref:"mailtoInput",staticClass:"input h-auto text-sm",attrs:{type:"text",placeholder:$.__("Email Address")},domProps:{value:$.urlData.mailto},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.commit.apply(null,arguments))},input:function(N){N.target.composing||$.$set($.urlData,"mailto",N.target.value)}}}):$.linkType==="tel"?I("input",{directives:[{name:"model",rawName:"v-model",value:$.urlData.tel,expression:"urlData.tel"}],ref:"telInput",staticClass:"input h-auto text-sm",attrs:{type:"text",placeholder:"Phone Number"},domProps:{value:$.urlData.tel},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.commit.apply(null,arguments))},input:function(N){N.target.composing||$.$set($.urlData,"tel",N.target.value)}}}):I("div",{staticClass:"w-full flex items-center justify-between cursor-pointer",on:{click:$.openSelector}},[$.isLoading?I("loading-graphic",{attrs:{inline:!0}}):I("div",{staticClass:"flex-1 flex items-center rtl:ml-2 ltr:mr-2 truncate"},[$.linkType==="asset"&&$.itemData.asset&&$.itemData.isImage?I("img",{staticClass:"asset-thumbnail max-h-full max-w-full rounded w-6 h-6 rtl:ml-2 ltr:mr-2 object-cover lazyloaded",attrs:{src:$.itemData.asset.thumbnail||$.itemData.asset.url}}):$._e(),$._v(" "+$._s($.displayValue)+" ")]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:`${$.__("Browse")}...`,expression:"`${__('Browse')}...`"}],staticClass:"flex items-center",attrs:{"aria-label":`${$.__("Browse")}...`},on:{click:$.openSelector}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.linkType==="asset",expression:"linkType === 'asset'"}],staticClass:"h-4 w-4",attrs:{name:"folder-image"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.linkType!=="asset",expression:"linkType !== 'asset'"}],staticClass:"h-4 w-4",attrs:{name:"folder-generic"}})],1)],1)])]),I("div",{staticClass:"h-8 mb-4 p-2 bg-gray-100 dark:bg-dark-600 text-gray-800 dark:text-dark-150 w-full border dark:border-dark-200 rounded shadow-inner placeholder:text-gray-600 dark:placeholder:dark-text-dark-175 flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],ref:"input",staticClass:"input h-auto text-sm placeholder-gray-50",attrs:{type:"text",placeholder:`${$.__("Label")} (${$.__("Optional")})`},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}})]),I("div",{staticClass:"h-8 p-2 bg-gray-100 dark:bg-dark-600 text-gray-800 dark:text-dark-150 w-full border dark:border-dark-200 rounded shadow-inner placeholder:text-gray-600 dark:placeholder:dark-text-dark-175 flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.rel,expression:"rel"}],ref:"input",staticClass:"input h-auto text-sm placeholder-gray-50",attrs:{type:"text",placeholder:`${$.__("Relationship")} (${$.__("Optional")})`},domProps:{value:$.rel},on:{input:function(N){N.target.composing||($.rel=N.target.value)}}})]),$.canHaveTarget?I("label",{staticClass:"mt-4 flex items-center font-normal cursor-pointer text-gray-800 dark:text-dark-150 hover:text-black dark:hover:text-dark-100",attrs:{for:"target-blank"}},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.targetBlank,expression:"targetBlank"}],staticClass:"checkbox rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox",id:"target-blank"},domProps:{checked:Array.isArray($.targetBlank)?$._i($.targetBlank,null)>-1:$.targetBlank},on:{change:function(N){var B=$.targetBlank,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.targetBlank=B.concat([q])):Y>-1&&($.targetBlank=B.slice(0,Y).concat(B.slice(Y+1)))}else $.targetBlank=U}}}),$._v(" "+$._s($.__("Open in new window"))+" ")]):$._e()]),I("footer",{staticClass:"bg-gray-100 dark:bg-dark-575 rounded-b-md flex items-center justify-end space-x-3 rtl:space-x-reverse font-normal p-2"},[I("button",{staticClass:"text-xs text-gray-600 dark:text-dark-175 hover:text-gray-800 dark:hover-text-dark-100",on:{click:function(N){return $.$emit("canceled")}}},[$._v(" "+$._s($.__("Cancel"))+" ")]),I("button",{staticClass:"btn btn-sm",attrs:{"aria-label":$.__("Remove Link")},on:{click:$.remove}},[$._v(" "+$._s($.__("Remove Link"))+" ")]),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Apply Link"),expression:"__('Apply Link')"}],staticClass:"btn btn-sm",attrs:{disabled:!$.canCommit,"aria-label":$.__("Apply Link")},on:{click:$.commit}},[$._v(" "+$._s($.__("Save"))+" ")])])]),I("relationship-input",{ref:"relationshipInput",staticClass:"hidden",attrs:{name:"link",value:[],config:$.relationshipConfig,"item-data-url":$.itemDataUrl,"selections-url":$.selectionsUrl,"filters-url":$.filtersUrl,columns:[{label:$.__("Title"),field:"title"}],"max-items":1,site:$.bard.site,search:!0},on:{loading:function(N){$.isLoading=N},"item-data-updated":$.entrySelected}}),$.showAssetSelector?I("stack",{attrs:{name:"asset-selector"},on:{closed:$.closeAssetSelector}},[I("asset-selector",{attrs:{container:$.config.container,folder:$.config.folder||"/","restrict-folder-navigation":$.config.restrict_assets,selected:[],"view-mode":"grid","max-files":1},on:{selected:$.assetSelected,closed:$.closeAssetSelector}})],1):$._e()],1)},_sfc_staticRenderFns$27=[],__component__$28=normalizeComponent$2(_sfc_main$27,_sfc_render$27,_sfc_staticRenderFns$27,!1,null,null,null,null);const LinkToolbar=__component__$28.exports,_sfc_main$26={mixins:[BardToolbarButton],components:{LinkToolbar},data(){return{linkAttrs:null,showingToolbar:!1}},methods:{toggleLinkToolbar(){this.showingToolbar=!this.showingToolbar,this.showingToolbar?this.linkAttrs=this.editor.getAttributes("link"):this.editor.commands.focus()},close(){this.showingToolbar=!1,this.$refs.popover.close()},popoverClosed(){this.showingToolbar=!1},setLink(M){this.editor.chain().focus().setLink(M).run(),this.linkAttrs=null,this.close()}},created(){this.bard.$on("link-toggle",()=>{this.toggleLinkToolbar(),this.$refs.popover.toggle()})},beforeDestroy(){this.bard.$off("link-toggle")}};var _sfc_render$26=function M(){var $=this,I=$._self._c;return I("popover",{ref:"popover",attrs:{placement:"bottom-end",clickaway:!1},on:{closed:$.popoverClosed},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.button.text,expression:"button.text"}],staticClass:"bard-toolbar-button",class:{active:$.active},attrs:{"aria-label":$.button.text},on:{click:$.toggleLinkToolbar}},[$.button.svg?I("svg-icon",{attrs:{name:$.button.svg}}):$._e()],1)]},proxy:!0},{key:"default",fn:function(){return[$.showingToolbar?I("link-toolbar",{ref:"toolbar",staticClass:"w-84",attrs:{"link-attrs":$.linkAttrs,config:$.config,bard:$.bard},on:{updated:$.setLink,canceled:$.close}}):$._e()]},proxy:!0}])})},_sfc_staticRenderFns$26=[],__component__$27=normalizeComponent$2(_sfc_main$26,_sfc_render$26,_sfc_staticRenderFns$26,!1,null,null,null,null);const LinkToolbarButton=__component__$27.exports,ManagesRowMeta={methods:{updateRowMeta(M,$){this.updateMeta({...this.meta,existing:{...this.meta.existing,[M]:clone($)}})},removeRowMeta(M){this.updateMeta({...this.meta,existing:_.omit(this.meta.existing,M)})}}},ManagesSetMeta={mixins:[ManagesRowMeta],methods:{updateSetMeta(M,$){this.updateRowMeta(M,$)},removeSetMeta(M){this.removeRowMeta(M)}}},availableButtons$1=()=>[{name:"h1",text:__("Heading 1"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:1},svg:"h1"},{name:"h2",text:__("Heading 2"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:2},svg:"h2"},{name:"h3",text:__("Heading 3"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:3},svg:"h3"},{name:"h4",text:__("Heading 4"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:4},svg:"h4"},{name:"h5",text:__("Heading 5"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:5},svg:"h5"},{name:"h6",text:__("Heading 6"),command:(M,$)=>M.chain().focus().toggleHeading($).run(),activeName:"heading",args:{level:6},svg:"h6"},{name:"bold",text:__("Bold"),command:M=>M.chain().focus().toggleBold().run(),svg:"text-bold"},{name:"italic",text:__("Italic"),command:M=>M.chain().focus().toggleItalic().run(),svg:"text-italic"},{name:"underline",text:__("Underline"),command:M=>M.chain().focus().toggleUnderline().run(),svg:"text-underline"},{name:"strikethrough",text:__("Strikethrough"),command:M=>M.chain().focus().toggleStrike().run(),activeName:"strike",svg:"text-strike-through"},{name:"small",text:__("Small"),command:M=>M.chain().focus().toggleSmall().run(),svg:"text-small"},{name:"unorderedlist",text:__("Unordered List"),command:M=>M.chain().focus().toggleBulletList().run(),activeName:"bulletList",svg:"list-ul"},{name:"orderedlist",text:__("Ordered List"),command:M=>M.chain().focus().toggleOrderedList().run(),activeName:"orderedList",svg:"list-ol"},{name:"removeformat",text:__("Remove Formatting"),command:M=>M.chain().focus().clearNodes().unsetAllMarks().run(),svg:"eraser"},{name:"quote",text:__("Blockquote"),command:M=>M.chain().focus().toggleBlockquote().run(),activeName:"blockquote",svg:"quote"},{name:"superscript",text:__("Superscript"),command:M=>M.chain().focus().toggleSuperscript().run(),svg:"superscript"},{name:"subscript",text:__("Subscript"),command:M=>M.chain().focus().toggleSubscript().run(),svg:"subscript"},{name:"anchor",text:__("Link"),command:M=>M.commands.setLink(),activeName:"link",svg:"insert-link",component:"LinkToolbarButton"},{name:"table",text:__("Table"),command:(M,$)=>M.commands.insertTable($),args:{rowsCount:3,colsCount:3,withHeaderRow:!1},svg:"add-table"},{name:"image",text:__("Image"),command:M=>M.commands.insertImage(),args:{src:""},svg:"insert-image",condition:M=>M.container},{name:"code",text:__("Inline Code"),command:M=>M.commands.toggleCode(),svg:"code-inline"},{name:"codeblock",text:__("Code Block"),command:M=>M.commands.toggleCodeBlock(),activeName:"codeBlock",svg:"code-block"},{name:"horizontalrule",text:__("Horizontal Rule"),command:M=>M.commands.setHorizontalRule(),activeName:"horizontalRule",svg:"subtract"},{name:"alignleft",text:__("Align Left"),command:M=>M.chain().focus().setTextAlign("left").run(),svg:"paragraph-align-left"},{name:"aligncenter",text:__("Align Center"),command:M=>M.chain().focus().setTextAlign("center").run(),svg:"paragraph-align-center"},{name:"alignright",text:__("Align Right"),command:M=>M.chain().focus().setTextAlign("right").run(),svg:"paragraph-align-right"},{name:"alignjustify",text:__("Align Justify"),command:M=>M.chain().focus().setTextAlign("justify").run(),svg:"paragraph-align-justified"}],addButtonHtml=M=>M.map($=>$),WORDS_PER_MIN=275,IMAGE_READ_TIME=12,CHINESE_KOREAN_READ_TIME=500,IMAGE_TAGS=["img","Image"];function imageCount(M,$){const N=`<(${M.join("|")})([\\w\\W]+?)[\\/]?>`,B=new RegExp(N,"g");return($.match(B)||[]).length}function imageReadTime(M=IMAGE_READ_TIME,$=IMAGE_TAGS,I){let N=0;const B=imageCount($,I);return B>10?N=B/2*(M+3)+(B-10)*3:N=B/2*(2*M+(1-B)),{time:N/60,count:B}}function wordsCount(M){const $="\\w+",I=new RegExp($,"g");return(M.match(I)||[]).length}function otherLanguageReadTime(M){const $="[-ヿ㐀-䶿一-鿿豈-ヲ-゚]",I=new RegExp($,"g"),N=(M.match(I)||[]).length,B=N/CHINESE_KOREAN_READ_TIME,j=M.replace(I,"");return{count:N,time:B,formattedString:j}}function wordsReadTime(M,$=WORDS_PER_MIN){const{count:I,time:N,formattedString:B}=otherLanguageReadTime(M),j=wordsCount(B),U=j/$;return{characterCount:I,otherLanguageTime:N,wordTime:U,wordCount:j}}function stripTags(M){const $=`<\\w+(\\s+("[^"]*"|\\'[^\\']*'|[^>])+)?>|<\\/\\w+>`,I=new RegExp($,"gi");return M.replace(I,"")}function stripWhitespace(M){return M.replace(/^\s+/,"").replace(/\s+$/,"")}function humanizeTime(M){return M<.5?"less than a minute":M>=.5&&M<1.5?"1 minute":`${Math.ceil(M)} minutes`}function readTime(M,$,I,N,B){const{time:j,count:U}=imageReadTime(I,B,M),q=stripTags(stripWhitespace(M)),{characterCount:Y,otherLanguageTime:K,wordTime:G,wordCount:J}=wordsReadTime(q,$);return{humanizedDuration:humanizeTime(j+G),duration:j+G,totalWords:J,wordTime:G,totalImages:U,imageTime:j,otherLanguageTimeCharacters:Y,otherLanguageTime:K}}function cPlusPlus(M){const $=M.regex,I=M.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),N="decltype\\(auto\\)",B="[a-zA-Z_]\\w*::",j="<[^<>]+>",U="(?!struct)("+N+"|"+$.optional(B)+"[a-zA-Z_]\\w*"+$.optional(j)+")",q={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},Y="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",K={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+Y+"|.)",end:"'",illegal:"."},M.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},G={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},J={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(K,{className:"string"}),{className:"string",begin:/<.*?>/},I,M.C_BLOCK_COMMENT_MODE]},Z={className:"title",begin:$.optional(B)+M.IDENT_RE,relevance:0},ee=$.optional(B)+M.IDENT_RE+"\\s*\\(",te=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],se=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],re=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],ne=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],ue={type:se,keyword:te,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:re},_e={className:"function.dispatch",relevance:0,keywords:{_hint:ne},begin:$.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,M.IDENT_RE,$.lookahead(/(<[^<>]+>|)\s*\(/))},fe=[_e,J,q,I,M.C_BLOCK_COMMENT_MODE,G,K],ge={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:ue,contains:fe.concat([{begin:/\(/,end:/\)/,keywords:ue,contains:fe.concat(["self"]),relevance:0}]),relevance:0},ye={className:"function",begin:"("+U+"[\\*&\\s]+)+"+ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:ue,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:N,keywords:ue,relevance:0},{begin:ee,returnBegin:!0,contains:[Z],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[K,G]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:[I,M.C_BLOCK_COMMENT_MODE,K,G,q,{begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:["self",I,M.C_BLOCK_COMMENT_MODE,K,G,q]}]},q,I,M.C_BLOCK_COMMENT_MODE,J]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:ue,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ge,ye,_e,fe,[J,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:ue,contains:["self",q]},{begin:M.IDENT_RE+"::",keywords:ue},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function arduino(M){const $={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},I=cPlusPlus(M),N=I.keywords;return N.type=[...N.type,...$.type],N.literal=[...N.literal,...$.literal],N.built_in=[...N.built_in,...$.built_in],N._hints=$._hints,I.name="Arduino",I.aliases=["ino"],I.supersetOf="cpp",I}function bash(M){const $=M.regex,I={},N={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[I]}]};Object.assign(I,{className:"variable",variants:[{begin:$.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},N]});const B={className:"subst",begin:/\$\(/,end:/\)/,contains:[M.BACKSLASH_ESCAPE]},j={begin:/<<-?\s*(?=\w+)/,starts:{contains:[M.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},U={className:"string",begin:/"/,end:/"/,contains:[M.BACKSLASH_ESCAPE,I,B]};B.contains.push(U);const q={className:"",begin:/\\"/},Y={className:"string",begin:/'/,end:/'/},K={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},M.NUMBER_MODE,I]},G=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],J=M.SHEBANG({binary:`(${G.join("|")})`,relevance:10}),Z={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[M.inherit(M.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},ee=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],te=["true","false"],se={match:/(\/[a-z._-]+)+/},re=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],ne=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],ce=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],me=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:ee,literal:te,built_in:[...re,...ne,"set","shopt",...ce,...me]},contains:[J,M.SHEBANG(),Z,K,M.HASH_COMMENT_MODE,j,se,U,q,Y,I]}}function c(M){const $=M.regex,I=M.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),N="decltype\\(auto\\)",B="[a-zA-Z_]\\w*::",j="<[^<>]+>",U="("+N+"|"+$.optional(B)+"[a-zA-Z_]\\w*"+$.optional(j)+")",q={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},Y="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",K={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+Y+"|.)",end:"'",illegal:"."},M.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},G={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},J={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(K,{className:"string"}),{className:"string",begin:/<.*?>/},I,M.C_BLOCK_COMMENT_MODE]},Z={className:"title",begin:$.optional(B)+M.IDENT_RE,relevance:0},ee=$.optional(B)+M.IDENT_RE+"\\s*\\(",re={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},ne=[J,q,I,M.C_BLOCK_COMMENT_MODE,G,K],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:re,contains:ne.concat([{begin:/\(/,end:/\)/,keywords:re,contains:ne.concat(["self"]),relevance:0}]),relevance:0},me={begin:"("+U+"[\\*&\\s]+)+"+ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:re,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:N,keywords:re,relevance:0},{begin:ee,returnBegin:!0,contains:[M.inherit(Z,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:re,relevance:0,contains:[I,M.C_BLOCK_COMMENT_MODE,K,G,q,{begin:/\(/,end:/\)/,keywords:re,relevance:0,contains:["self",I,M.C_BLOCK_COMMENT_MODE,K,G,q]}]},q,I,M.C_BLOCK_COMMENT_MODE,J]};return{name:"C",aliases:["h"],keywords:re,disableAutodetect:!0,illegal:"</",contains:[].concat(ce,me,ne,[J,{begin:M.IDENT_RE+"::",keywords:re},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},M.TITLE_MODE]}]),exports:{preprocessor:J,strings:K,keywords:re}}}function cpp(M){const $=M.regex,I=M.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),N="decltype\\(auto\\)",B="[a-zA-Z_]\\w*::",j="<[^<>]+>",U="(?!struct)("+N+"|"+$.optional(B)+"[a-zA-Z_]\\w*"+$.optional(j)+")",q={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},Y="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",K={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+Y+"|.)",end:"'",illegal:"."},M.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},G={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},J={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(K,{className:"string"}),{className:"string",begin:/<.*?>/},I,M.C_BLOCK_COMMENT_MODE]},Z={className:"title",begin:$.optional(B)+M.IDENT_RE,relevance:0},ee=$.optional(B)+M.IDENT_RE+"\\s*\\(",te=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],se=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],re=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],ne=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],ue={type:se,keyword:te,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:re},_e={className:"function.dispatch",relevance:0,keywords:{_hint:ne},begin:$.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,M.IDENT_RE,$.lookahead(/(<[^<>]+>|)\s*\(/))},fe=[_e,J,q,I,M.C_BLOCK_COMMENT_MODE,G,K],ge={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:ue,contains:fe.concat([{begin:/\(/,end:/\)/,keywords:ue,contains:fe.concat(["self"]),relevance:0}]),relevance:0},ye={className:"function",begin:"("+U+"[\\*&\\s]+)+"+ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:ue,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:N,keywords:ue,relevance:0},{begin:ee,returnBegin:!0,contains:[Z],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[K,G]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:[I,M.C_BLOCK_COMMENT_MODE,K,G,q,{begin:/\(/,end:/\)/,keywords:ue,relevance:0,contains:["self",I,M.C_BLOCK_COMMENT_MODE,K,G,q]}]},q,I,M.C_BLOCK_COMMENT_MODE,J]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:ue,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ge,ye,_e,fe,[J,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:ue,contains:["self",q]},{begin:M.IDENT_RE+"::",keywords:ue},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function csharp(M){const $=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],I=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],N=["default","false","null","true"],B=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],j=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],U={keyword:B.concat(j),built_in:$,literal:N},q=M.inherit(M.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),Y={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},K={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},G=M.inherit(K,{illegal:/\n/}),J={className:"subst",begin:/\{/,end:/\}/,keywords:U},Z=M.inherit(J,{illegal:/\n/}),ee={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},M.BACKSLASH_ESCAPE,Z]},te={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},J]},se=M.inherit(te,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},Z]});J.contains=[te,ee,K,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,Y,M.C_BLOCK_COMMENT_MODE],Z.contains=[se,ee,G,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,Y,M.inherit(M.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const re={variants:[te,ee,K,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},ne={begin:"<",end:">",contains:[{beginKeywords:"in out"},q]},ce=M.IDENT_RE+"(<"+M.IDENT_RE+"(\\s*,\\s*"+M.IDENT_RE+")*>)?(\\[\\])?",me={begin:"@"+M.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:U,illegal:/::/,contains:[M.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},re,Y,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},q,ne,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[q,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[q,ne,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+ce+"\\s+)+"+M.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:U,contains:[{beginKeywords:I.join(" "),relevance:0},{begin:M.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[M.TITLE_MODE,ne],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,relevance:0,contains:[re,Y,M.C_BLOCK_COMMENT_MODE]},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},me]}}const MODES$3=M=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:M.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:M.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS$2=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES$2=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES$2=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS$2=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES$2=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function css$1(M){const $=M.regex,I=MODES$3(M),N={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},B="and or not only",j=/@-?\w[\w]*(-\w+)*/,U="[a-zA-Z-][a-zA-Z0-9_-]*",q=[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[I.BLOCK_COMMENT,N,I.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+U,relevance:0},I.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+PSEUDO_CLASSES$2.join("|")+")"},{begin:":(:)?("+PSEUDO_ELEMENTS$2.join("|")+")"}]},I.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES$2.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[I.BLOCK_COMMENT,I.HEXCOLOR,I.IMPORTANT,I.CSS_NUMBER_MODE,...q,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...q,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},I.FUNCTION_DISPATCH]},{begin:$.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:j},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:B,attribute:MEDIA_FEATURES$2.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...q,I.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+TAGS$2.join("|")+")\\b"}]}}function diff$1(M){const $=M.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:$.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:$.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function go(M){const j={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:j,illegal:"</",contains:[M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,{className:"string",variants:[M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:M.C_NUMBER_RE+"[i]",relevance:1},M.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[M.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:j,illegal:/["']/}]}]}}function graphql(M){const $=M.regex,I=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[M.HASH_COMMENT_MODE,M.QUOTE_STRING_MODE,M.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:$.concat(I,$.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function ini(M){const $=M.regex,I={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:M.NUMBER_RE}]},N=M.COMMENT();N.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const B={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},j={className:"literal",begin:/\bon|off|true|false|yes|no\b/},U={className:"string",contains:[M.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},q={begin:/\[/,end:/\]/,contains:[N,j,B,U,I,"self"],relevance:0},Y=/[A-Za-z0-9_-]+/,K=/"(\\"|[^"])*"/,G=/'[^']*'/,J=$.either(Y,K,G),Z=$.concat(J,"(\\s*\\.\\s*",J,")*",$.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[N,{className:"section",begin:/\[+/,end:/\]+/},{begin:Z,className:"attr",starts:{end:/$/,contains:[N,q,j,B,U,I]}}]}}var decimalDigits$1="[0-9](_*[0-9])*",frac$1=`\\.(${decimalDigits$1})`,hexDigits$1="[0-9a-fA-F](_*[0-9a-fA-F])*",NUMERIC$1={className:"number",variants:[{begin:`(\\b(${decimalDigits$1})((${frac$1})|\\.)?|(${frac$1}))[eE][+-]?(${decimalDigits$1})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$1})((${frac$1})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${frac$1})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$1})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits$1})\\.?|(${hexDigits$1})?\\.(${hexDigits$1}))[pP][+-]?(${decimalDigits$1})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits$1})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function recurRegex(M,$,I){return I===-1?"":M.replace($,N=>recurRegex(M,$,I-1))}function java(M){const $=M.regex,I="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",N=I+recurRegex("(?:<"+I+"~~~(?:\\s*,\\s*"+I+"~~~)*>)?",/~~~/g,2),Y={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},K={className:"meta",begin:"@"+I,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},G={className:"params",begin:/\(/,end:/\)/,keywords:Y,relevance:0,contains:[M.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:Y,illegal:/<\/|#/,contains:[M.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[M.BACKSLASH_ESCAPE]},M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,I],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[$.concat(/(?!else)/,I),/\s+/,I,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,I],className:{1:"keyword",3:"title.class"},contains:[G,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+N+"\\s+)",M.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:Y,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:Y,relevance:0,contains:[K,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,NUMERIC$1,M.C_BLOCK_COMMENT_MODE]},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},NUMERIC$1,K]}}const IDENT_RE$2="[A-Za-z$_][0-9A-Za-z$_]*",KEYWORDS$1=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],LITERALS$1=["true","false","null","undefined","NaN","Infinity"],TYPES$1=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ERROR_TYPES$1=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BUILT_IN_GLOBALS$1=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BUILT_IN_VARIABLES$1=["arguments","this","super","console","window","document","localStorage","module","global"],BUILT_INS$1=[].concat(BUILT_IN_GLOBALS$1,TYPES$1,ERROR_TYPES$1);function javascript$2(M){const $=M.regex,I=(Me,{after:Be})=>{const ze="</"+Me[0].slice(1);return Me.input.indexOf(ze,Be)!==-1},N=IDENT_RE$2,B={begin:"<>",end:"</>"},j=/<[A-Za-z0-9\\._:-]+\s*\/>/,U={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Me,Be)=>{const ze=Me[0].length+Me.index,Ze=Me.input[ze];if(Ze==="<"||Ze===","){Be.ignoreMatch();return}Ze===">"&&(I(Me,{after:ze})||Be.ignoreMatch());let ft;const Ye=Me.input.substring(ze);if(ft=Ye.match(/^\s*=/)){Be.ignoreMatch();return}if((ft=Ye.match(/^\s+extends\s+/))&&ft.index===0){Be.ignoreMatch();return}}},q={$pattern:IDENT_RE$2,keyword:KEYWORDS$1,literal:LITERALS$1,built_in:BUILT_INS$1,"variable.language":BUILT_IN_VARIABLES$1},Y="[0-9](_?[0-9])*",K=`\\.(${Y})`,G="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",J={className:"number",variants:[{begin:`(\\b(${G})((${K})|\\.)?|(${K}))[eE][+-]?(${Y})\\b`},{begin:`\\b(${G})\\b((${K})\\b|\\.)?|(${K})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:q,contains:[]},ee={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"xml"}},te={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"css"}},se={className:"string",begin:"`",end:"`",contains:[M.BACKSLASH_ESCAPE,Z]},ne={className:"comment",variants:[M.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:N+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),M.C_BLOCK_COMMENT_MODE,M.C_LINE_COMMENT_MODE]},ce=[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,se,{match:/\$\d+/},J];Z.contains=ce.concat({begin:/\{/,end:/\}/,keywords:q,contains:["self"].concat(ce)});const me=[].concat(ne,Z.contains),ue=me.concat([{begin:/\(/,end:/\)/,keywords:q,contains:["self"].concat(me)}]),_e={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue},fe={variants:[{match:[/class/,/\s+/,N,/\s+/,/extends/,/\s+/,$.concat(N,"(",$.concat(/\./,N),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,N],scope:{1:"keyword",3:"title.class"}}]},ge={relevance:0,match:$.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TYPES$1,...ERROR_TYPES$1]}},ye={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},xe={variants:[{match:[/function/,/\s+/,N,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_e],illegal:/%/},le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function be(Me){return $.concat("(?!",Me.join("|"),")")}const ve={match:$.concat(/\b/,be([...BUILT_IN_GLOBALS$1,"super","import"]),N,$.lookahead(/\(/)),className:"title.function",relevance:0},we={begin:$.concat(/\./,$.lookahead($.concat(N,/(?![0-9A-Za-z$_(])/))),end:N,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ae={match:[/get|set/,/\s+/,N,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_e]},Se="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+M.UNDERSCORE_IDENT_RE+")\\s*=>",Pe={match:[/const|var|let/,/\s+/,N,/\s*/,/=\s*/,/(async\s*)?/,$.lookahead(Se)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_e]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:q,exports:{PARAMS_CONTAINS:ue,CLASS_REFERENCE:ge},illegal:/#(?![$_A-z])/,contains:[M.SHEBANG({label:"shebang",binary:"node",relevance:5}),ye,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,se,ne,{match:/\$\d+/},J,ge,{className:"attr",begin:N+$.lookahead(":"),relevance:0},Pe,{begin:"("+M.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ne,M.REGEXP_MODE,{className:"function",begin:Se,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:M.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:B.begin,end:B.end},{match:j},{begin:U.begin,"on:begin":U.isTrulyOpeningTag,end:U.end}],subLanguage:"xml",contains:[{begin:U.begin,end:U.end,skip:!0,contains:["self"]}]}]},xe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+M.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_e,M.inherit(M.TITLE_MODE,{begin:N,className:"title.function"})]},{match:/\.\.\./,relevance:0},we,{match:"\\$"+N,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_e]},ve,le,fe,Ae,{match:/\$[(.]/}]}}function json(M){const $={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},I={match:/[{}[\],:]/,className:"punctuation",relevance:0},N=["true","false","null"],B={scope:"literal",beginKeywords:N.join(" ")};return{name:"JSON",keywords:{literal:N},contains:[$,I,M.QUOTE_STRING_MODE,B,M.C_NUMBER_MODE,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var decimalDigits="[0-9](_*[0-9])*",frac=`\\.(${decimalDigits})`,hexDigits="[0-9a-fA-F](_*[0-9a-fA-F])*",NUMERIC={className:"number",variants:[{begin:`(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b`},{begin:`\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${frac})[fFdD]?\\b`},{begin:`\\b(${decimalDigits})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function kotlin(M){const $={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},I={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},N={className:"symbol",begin:M.UNDERSCORE_IDENT_RE+"@"},B={className:"subst",begin:/\$\{/,end:/\}/,contains:[M.C_NUMBER_MODE]},j={className:"variable",begin:"\\$"+M.UNDERSCORE_IDENT_RE},U={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[j,B]},{begin:"'",end:"'",illegal:/\n/,contains:[M.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[M.BACKSLASH_ESCAPE,j,B]}]};B.contains.push(U);const q={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+M.UNDERSCORE_IDENT_RE+")?"},Y={className:"meta",begin:"@"+M.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[M.inherit(U,{className:"string"}),"self"]}]},K=NUMERIC,G=M.COMMENT("/\\*","\\*/",{contains:[M.C_BLOCK_COMMENT_MODE]}),J={variants:[{className:"type",begin:M.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},Z=J;return Z.variants[1].contains=[J],J.variants[1].contains=[Z],{name:"Kotlin",aliases:["kt","kts"],keywords:$,contains:[M.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),M.C_LINE_COMMENT_MODE,G,I,N,q,Y,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:$,relevance:5,contains:[{begin:M.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[M.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:$,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[J,M.C_LINE_COMMENT_MODE,G],relevance:0},M.C_LINE_COMMENT_MODE,G,q,Y,U,M.C_NUMBER_MODE]},G]},{begin:[/class|interface|trait/,/\s+/,M.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},M.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},q,Y]},U,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},K]}}const MODES$2=M=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:M.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:M.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS$1=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES$1=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES$1=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS$1=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES$1=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),PSEUDO_SELECTORS=PSEUDO_CLASSES$1.concat(PSEUDO_ELEMENTS$1);function less(M){const $=MODES$2(M),I=PSEUDO_SELECTORS,N="and or not only",B="[\\w-]+",j="("+B+"|@\\{"+B+"\\})",U=[],q=[],Y=function(me){return{className:"string",begin:"~?"+me+".*?"+me}},K=function(me,ue,_e){return{className:me,begin:ue,relevance:_e}},G={$pattern:/[a-z-]+/,keyword:N,attribute:MEDIA_FEATURES$1.join(" ")},J={begin:"\\(",end:"\\)",contains:q,keywords:G,relevance:0};q.push(M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,Y("'"),Y('"'),$.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},$.HEXCOLOR,J,K("variable","@@?"+B,10),K("variable","@\\{"+B+"\\}"),K("built_in","~?`[^`]*?`"),{className:"attribute",begin:B+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},$.IMPORTANT,{beginKeywords:"and not"},$.FUNCTION_DISPATCH);const Z=q.concat({begin:/\{/,end:/\}/,contains:U}),ee={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(q)},te={begin:j+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},$.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES$1.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:q}}]},se={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:G,returnEnd:!0,contains:q,relevance:0}},re={className:"variable",variants:[{begin:"@"+B+"\\s*:",relevance:15},{begin:"@"+B}],starts:{end:"[;}]",returnEnd:!0,contains:Z}},ne={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:j,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,ee,K("keyword","all\\b"),K("variable","@\\{"+B+"\\}"),{begin:"\\b("+TAGS$1.join("|")+")\\b",className:"selector-tag"},$.CSS_NUMBER_MODE,K("selector-tag",j,0),K("selector-id","#"+j),K("selector-class","\\."+j,0),K("selector-tag","&",0),$.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+PSEUDO_CLASSES$1.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+PSEUDO_ELEMENTS$1.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:Z},{begin:"!important"},$.FUNCTION_DISPATCH]},ce={begin:B+`:(:)?(${I.join("|")})`,returnBegin:!0,contains:[ne]};return U.push(M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,se,re,ce,te,ne,ee,$.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:U}}function lua(M){const $="\\[=*\\[",I="\\]=*\\]",N={begin:$,end:I,contains:["self"]},B=[M.COMMENT("--(?!"+$+")","$"),M.COMMENT("--"+$,I,{contains:[N],relevance:10})];return{name:"Lua",keywords:{$pattern:M.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:B.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[M.inherit(M.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:B}].concat(B)},M.C_NUMBER_MODE,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,{className:"string",begin:$,end:I,contains:[N],relevance:5}])}}function makefile(M){const $={className:"variable",variants:[{begin:"\\$\\("+M.UNDERSCORE_IDENT_RE+"\\)",contains:[M.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},I={className:"string",begin:/"/,end:/"/,contains:[M.BACKSLASH_ESCAPE,$]},N={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[$]},B={begin:"^"+M.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},j={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},U={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[$]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[M.HASH_COMMENT_MODE,$,I,N,B,j,U]}}function markdown$2(M){const $=M.regex,I={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},N={begin:"^[-\\*]{3,}",end:"$"},B={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},j={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},U={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},q=/[A-Za-z][A-Za-z0-9+.-]*/,Y={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:$.concat(/\[.+?\]\(/,q,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},K={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},G={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},J=M.inherit(K,{contains:[]}),Z=M.inherit(G,{contains:[]});K.contains.push(Z),G.contains.push(J);let ee=[I,Y];return[K,G,J,Z].forEach(re=>{re.contains=re.contains.concat(ee)}),ee=ee.concat(K,G),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:ee},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:ee}]}]},I,j,K,G,{className:"quote",begin:"^>\\s+",contains:ee,end:"$"},B,N,Y,U]}}function objectivec(M){const $={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},I=/[a-zA-Z@][a-zA-Z0-9_]*/,q={"variable.language":["this","super"],$pattern:I,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},Y={$pattern:I,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:q,illegal:"</",contains:[$,M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,M.C_NUMBER_MODE,M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[M.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},M.inherit(M.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+Y.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:Y,contains:[M.UNDERSCORE_TITLE_MODE]},{begin:"\\."+M.UNDERSCORE_IDENT_RE,relevance:0}]}}function perl(M){const $=M.regex,I=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],N=/[dualxmsipngr]{0,12}/,B={$pattern:/[\w.]+/,keyword:I.join(" ")},j={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:B},U={begin:/->\{/,end:/\}/},q={variants:[{begin:/\$\d/},{begin:$.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},Y=[M.BACKSLASH_ESCAPE,j,q],K=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],G=(ee,te,se="\\1")=>{const re=se==="\\1"?se:$.concat(se,te);return $.concat($.concat("(?:",ee,")"),te,/(?:\\.|[^\\\/])*?/,re,/(?:\\.|[^\\\/])*?/,se,N)},J=(ee,te,se)=>$.concat($.concat("(?:",ee,")"),te,/(?:\\.|[^\\\/])*?/,se,N),Z=[q,M.HASH_COMMENT_MODE,M.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),U,{className:"string",contains:Y,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[M.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[M.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+M.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[M.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:G("s|tr|y",$.either(...K,{capture:!0}))},{begin:G("s|tr|y","\\(","\\)")},{begin:G("s|tr|y","\\[","\\]")},{begin:G("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:J("(?:m|qr)?",/\//,/\//)},{begin:J("m|qr",$.either(...K,{capture:!0}),/\1/)},{begin:J("m|qr",/\(/,/\)/)},{begin:J("m|qr",/\[/,/\]/)},{begin:J("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[M.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return j.contains=Z,U.contains=Z,{name:"Perl",aliases:["pl","pm"],keywords:B,contains:Z}}function php(M){const $=M.regex,I=/(?![A-Za-z0-9])(?![$])/,N=$.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,I),B=$.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,I),j={scope:"variable",match:"\\$+"+N},U={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},q={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},Y=M.inherit(M.APOS_STRING_MODE,{illegal:null}),K=M.inherit(M.QUOTE_STRING_MODE,{illegal:null,contains:M.QUOTE_STRING_MODE.contains.concat(q)}),G=M.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:M.QUOTE_STRING_MODE.contains.concat(q)}),J=`[ ]`,Z={scope:"string",variants:[K,Y,G]},ee={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},te=["false","null","true"],se=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],re=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],ce={keyword:se,literal:(ve=>{const we=[];return ve.forEach(Ae=>{we.push(Ae),Ae.toLowerCase()===Ae?we.push(Ae.toUpperCase()):we.push(Ae.toLowerCase())}),we})(te),built_in:re},me=ve=>ve.map(we=>we.replace(/\|\d+$/,"")),ue={variants:[{match:[/new/,$.concat(J,"+"),$.concat("(?!",me(re).join("\\b|"),"\\b)"),B],scope:{1:"keyword",4:"title.class"}}]},_e=$.concat(N,"\\b(?!\\()"),fe={variants:[{match:[$.concat(/::/,$.lookahead(/(?!class\b)/)),_e],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[B,$.concat(/::/,$.lookahead(/(?!class\b)/)),_e],scope:{1:"title.class",3:"variable.constant"}},{match:[B,$.concat("::",$.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[B,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ge={scope:"attr",match:$.concat(N,$.lookahead(":"),$.lookahead(/(?!::)/))},ye={relevance:0,begin:/\(/,end:/\)/,keywords:ce,contains:[ge,j,fe,M.C_BLOCK_COMMENT_MODE,Z,ee,ue]},xe={relevance:0,match:[/\b/,$.concat("(?!fn\\b|function\\b|",me(se).join("\\b|"),"|",me(re).join("\\b|"),"\\b)"),N,$.concat(J,"*"),$.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ye]};ye.contains.push(xe);const le=[ge,fe,M.C_BLOCK_COMMENT_MODE,Z,ee,ue],be={begin:$.concat(/#\[\s*/,B),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:te,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:te,keyword:["new","array"]},contains:["self",...le]},...le,{scope:"meta",match:B}]};return{case_insensitive:!1,keywords:ce,contains:[be,M.HASH_COMMENT_MODE,M.COMMENT("//","$"),M.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:M.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},U,{scope:"variable.language",match:/\$this\b/},j,xe,fe,{match:[/const/,/\s/,N],scope:{1:"keyword",3:"variable.constant"}},ue,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},M.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:ce,contains:["self",j,fe,M.C_BLOCK_COMMENT_MODE,Z,ee]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},M.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[M.inherit(M.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},M.UNDERSCORE_TITLE_MODE]},Z,ee]}}function phpTemplate(M){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},M.inherit(M.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),M.inherit(M.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function plaintext(M){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function python(M){const $=M.regex,I=/[\p{XID_Start}_]\p{XID_Continue}*/u,N=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],q={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:N,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},Y={className:"meta",begin:/^(>>>|\.\.\.) /},K={className:"subst",begin:/\{/,end:/\}/,keywords:q,illegal:/#/},G={begin:/\{\{/,relevance:0},J={className:"string",contains:[M.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[M.BACKSLASH_ESCAPE,Y],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[M.BACKSLASH_ESCAPE,Y],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[M.BACKSLASH_ESCAPE,Y,G,K]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[M.BACKSLASH_ESCAPE,Y,G,K]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[M.BACKSLASH_ESCAPE,G,K]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[M.BACKSLASH_ESCAPE,G,K]},M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},Z="[0-9](_?[0-9])*",ee=`(\\b(${Z}))?\\.(${Z})|\\b(${Z})\\.`,te=`\\b|${N.join("|")}`,se={className:"number",relevance:0,variants:[{begin:`(\\b(${Z})|(${ee}))[eE][+-]?(${Z})[jJ]?(?=${te})`},{begin:`(${ee})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${te})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${te})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${te})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${te})`},{begin:`\\b(${Z})[jJ](?=${te})`}]},re={className:"comment",begin:$.lookahead(/# type:/),end:/$/,keywords:q,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},ne={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:["self",Y,se,J,M.HASH_COMMENT_MODE]}]};return K.contains=[J,se,Y],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:q,illegal:/(<\/|->|\?)|=>/,contains:[Y,se,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},J,re,M.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,I],scope:{1:"keyword",3:"title.function"},contains:[ne]},{variants:[{match:[/\bclass/,/\s+/,I,/\s*/,/\(\s*/,I,/\s*\)/]},{match:[/\bclass/,/\s+/,I]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[se,ne,J]}]}}function pythonRepl(M){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function r(M){const $=M.regex,I=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,N=$.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),B=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,j=$.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:I,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[M.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:$.lookahead($.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:I},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),M.HASH_COMMENT_MODE,{scope:"string",contains:[M.BACKSLASH_ESCAPE],variants:[M.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),M.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),M.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),M.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),M.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),M.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[B,N]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,N]},{scope:{1:"punctuation",2:"number"},match:[j,N]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,N]}]},{scope:{3:"operator"},match:[I,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:B},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:j},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function ruby$1(M){const $=M.regex,I="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",N=$.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),B=$.concat(N,/(::\w+)*/),U={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},q={className:"doctag",begin:"@[A-Za-z]+"},Y={begin:"#<",end:">"},K=[M.COMMENT("#","$",{contains:[q]}),M.COMMENT("^=begin","^=end",{contains:[q],relevance:10}),M.COMMENT("^__END__",M.MATCH_NOTHING_RE)],G={className:"subst",begin:/#\{/,end:/\}/,keywords:U},J={className:"string",contains:[M.BACKSLASH_ESCAPE,G],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:$.concat(/<<[-~]?'?/,$.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[M.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[M.BACKSLASH_ESCAPE,G]})]}]},Z="[1-9](_?[0-9])*|0",ee="[0-9](_?[0-9])*",te={className:"number",relevance:0,variants:[{begin:`\\b(${Z})(\\.(${ee}))?([eE][+-]?(${ee})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},se={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:U}]},fe=[J,{variants:[{match:[/class\s+/,B,/\s+<\s+/,B]},{match:[/\b(class|module)\s+/,B]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:U},{match:[/(include|extend)\s+/,B],scope:{2:"title.class"},keywords:U},{relevance:0,match:[B,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:N,scope:"title.class"},{match:[/def/,/\s+/,I],scope:{1:"keyword",3:"title.function"},contains:[se]},{begin:M.IDENT_RE+"::"},{className:"symbol",begin:M.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[J,{begin:I}],relevance:0},te,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:U},{begin:"("+M.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[M.BACKSLASH_ESCAPE,G],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(Y,K),relevance:0}].concat(Y,K);G.contains=fe,se.contains=fe;const ge="[>?]>",ye="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",xe="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",le=[{begin:/^\s*=>/,starts:{end:"$",contains:fe}},{className:"meta.prompt",begin:"^("+ge+"|"+ye+"|"+xe+")(?=[ ])",starts:{end:"$",keywords:U,contains:fe}}];return K.unshift(Y),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:U,illegal:/\/\*/,contains:[M.SHEBANG({binary:"ruby"})].concat(le).concat(K).concat(fe)}}function rust(M){const $=M.regex,I={className:"title.function.invoke",relevance:0,begin:$.concat(/\b/,/(?!let\b)/,M.IDENT_RE,$.lookahead(/\s*\(/))},N="([ui](8|16|32|64|128|size)|f(32|64))?",B=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],j=["true","false","Some","None","Ok","Err"],U=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],q=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:M.IDENT_RE+"!?",type:q,keyword:B,literal:j,built_in:U},illegal:"</",contains:[M.C_LINE_COMMENT_MODE,M.COMMENT("/\\*","\\*/",{contains:["self"]}),M.inherit(M.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+N},{begin:"\\b0o([0-7_]+)"+N},{begin:"\\b0x([A-Fa-f0-9_]+)"+N},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+N}],relevance:0},{begin:[/fn/,/\s+/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,M.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,M.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:M.IDENT_RE+"::",keywords:{keyword:"Self",built_in:U,type:q}},{className:"punctuation",begin:"->"},I]}}const MODES$1=M=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:M.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:M.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function scss(M){const $=MODES$1(M),I=PSEUDO_ELEMENTS,N=PSEUDO_CLASSES,B="@[a-z-]+",j="and or not only",q={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[M.C_LINE_COMMENT_MODE,M.C_BLOCK_COMMENT_MODE,$.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},$.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+TAGS.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+N.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+I.join("|")+")"},q,{begin:/\(/,end:/\)/,contains:[$.CSS_NUMBER_MODE]},$.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[$.BLOCK_COMMENT,q,$.HEXCOLOR,$.CSS_NUMBER_MODE,M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,$.IMPORTANT,$.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:B,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:j,attribute:MEDIA_FEATURES.join(" ")},contains:[{begin:B,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},q,M.QUOTE_STRING_MODE,M.APOS_STRING_MODE,$.HEXCOLOR,$.CSS_NUMBER_MODE]},$.FUNCTION_DISPATCH]}}function shell(M){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function sql(M){const $=M.regex,I=M.COMMENT("--","$"),N={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},B={begin:/"/,end:/"/,contains:[{begin:/""/}]},j=["true","false","unknown"],U=["double precision","large object","with timezone","without timezone"],q=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],Y=["add","asc","collation","desc","final","first","last","view"],K=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],G=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],J=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],Z=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],ee=G,te=[...K,...Y].filter(me=>!G.includes(me)),se={className:"variable",begin:/@[a-z0-9]+/},re={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},ne={begin:$.concat(/\b/,$.either(...ee),/\s*\(/),relevance:0,keywords:{built_in:ee}};function ce(me,{exceptions:ue,when:_e}={}){const fe=_e;return ue=ue||[],me.map(ge=>ge.match(/\|\d+$/)||ue.includes(ge)?ge:fe(ge)?`${ge}|0`:ge)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:ce(te,{when:me=>me.length<3}),literal:j,type:q,built_in:J},contains:[{begin:$.either(...Z),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:te.concat(Z),literal:j,type:q}},{className:"type",begin:$.either(...U)},ne,se,N,B,M.C_NUMBER_MODE,M.C_BLOCK_COMMENT_MODE,I,re]}}function source$1(M){return M?typeof M=="string"?M:M.source:null}function lookahead$1(M){return concat$1("(?=",M,")")}function concat$1(...M){return M.map(I=>source$1(I)).join("")}function stripOptionsFromArgs$1(M){const $=M[M.length-1];return typeof $=="object"&&$.constructor===Object?(M.splice(M.length-1,1),$):{}}function either$1(...M){return"("+(stripOptionsFromArgs$1(M).capture?"":"?:")+M.map(N=>source$1(N)).join("|")+")"}const keywordWrapper=M=>concat$1(/\b/,M,/\w$/.test(M)?/\b/:/\B/),dotKeywords=["Protocol","Type"].map(keywordWrapper),optionalDotKeywords=["init","self"].map(keywordWrapper),keywordTypes=["Any","Self"],keywords=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],literals=["false","nil","true"],precedencegroupKeywords=["assignment","associativity","higherThan","left","lowerThan","none","right"],numberSignKeywords=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],builtIns=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],operatorHead=either$1(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),operatorCharacter=either$1(operatorHead,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),operator=concat$1(operatorHead,operatorCharacter,"*"),identifierHead=either$1(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),identifierCharacter=either$1(identifierHead,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),identifier=concat$1(identifierHead,identifierCharacter,"*"),typeIdentifier=concat$1(/[A-Z]/,identifierCharacter,"*"),keywordAttributes=["autoclosure",concat$1(/convention\(/,either$1("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",concat$1(/objc\(/,identifier,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],availabilityKeywords=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function swift(M){const $={match:/\s+/,relevance:0},I=M.COMMENT("/\\*","\\*/",{contains:["self"]}),N=[M.C_LINE_COMMENT_MODE,I],B={match:[/\./,either$1(...dotKeywords,...optionalDotKeywords)],className:{2:"keyword"}},j={match:concat$1(/\./,either$1(...keywords)),relevance:0},U=keywords.filter(tn=>typeof tn=="string").concat(["_|0"]),q=keywords.filter(tn=>typeof tn!="string").concat(keywordTypes).map(keywordWrapper),Y={variants:[{className:"keyword",match:either$1(...q,...optionalDotKeywords)}]},K={$pattern:either$1(/\b\w+/,/#\w+/),keyword:U.concat(numberSignKeywords),literal:literals},G=[B,j,Y],J={match:concat$1(/\./,either$1(...builtIns)),relevance:0},Z={className:"built_in",match:concat$1(/\b/,either$1(...builtIns),/(?=\()/)},ee=[J,Z],te={match:/->/,relevance:0},se={className:"operator",relevance:0,variants:[{match:operator},{match:`\\.(\\.|${operatorCharacter})+`}]},re=[te,se],ne="([0-9]_*)+",ce="([0-9a-fA-F]_*)+",me={className:"number",relevance:0,variants:[{match:`\\b(${ne})(\\.(${ne}))?([eE][+-]?(${ne}))?\\b`},{match:`\\b0x(${ce})(\\.(${ce}))?([pP][+-]?(${ne}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ue=(tn="")=>({className:"subst",variants:[{match:concat$1(/\\/,tn,/[0\\tnr"']/)},{match:concat$1(/\\/,tn,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_e=(tn="")=>({className:"subst",match:concat$1(/\\/,tn,/[\t ]*(?:[\r\n]|\r\n)/)}),fe=(tn="")=>({className:"subst",label:"interpol",begin:concat$1(/\\/,tn,/\(/),end:/\)/}),ge=(tn="")=>({begin:concat$1(tn,/"""/),end:concat$1(/"""/,tn),contains:[ue(tn),_e(tn),fe(tn)]}),ye=(tn="")=>({begin:concat$1(tn,/"/),end:concat$1(/"/,tn),contains:[ue(tn),fe(tn)]}),xe={className:"string",variants:[ge(),ge("#"),ge("##"),ge("###"),ye(),ye("#"),ye("##"),ye("###")]},le={match:concat$1(/`/,identifier,/`/)},be={className:"variable",match:/\$\d+/},ve={className:"variable",match:`\\$${identifierCharacter}+`},we=[le,be,ve],Ae={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:availabilityKeywords,contains:[...re,me,xe]}]}},Se={className:"keyword",match:concat$1(/@/,either$1(...keywordAttributes))},Pe={className:"meta",match:concat$1(/@/,identifier)},Me=[Ae,Se,Pe],Be={match:lookahead$1(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:concat$1(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,identifierCharacter,"+")},{className:"type",match:typeIdentifier,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:concat$1(/\s+&\s+/,lookahead$1(typeIdentifier)),relevance:0}]},ze={begin:/</,end:/>/,keywords:K,contains:[...N,...G,...Me,te,Be]};Be.contains.push(ze);const Ze={match:concat$1(identifier,/\s*:/),keywords:"_|0",relevance:0},ft={begin:/\(/,end:/\)/,relevance:0,keywords:K,contains:["self",Ze,...N,...G,...ee,...re,me,xe,...we,...Me,Be]},Ye={begin:/</,end:/>/,contains:[...N,Be]},Ve={begin:either$1(lookahead$1(concat$1(identifier,/\s*:/)),lookahead$1(concat$1(identifier,/\s+/,identifier,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:identifier}]},Dt={begin:/\(/,end:/\)/,keywords:K,contains:[Ve,...N,...G,...re,me,xe,...Me,Be,ft],endsParent:!0,illegal:/["']/},Nt={match:[/func/,/\s+/,either$1(le.match,identifier,operator)],className:{1:"keyword",3:"title.function"},contains:[Ye,Dt,$],illegal:[/\[/,/%/]},Vt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ye,Dt,$],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,operator],className:{1:"keyword",3:"title"}},Gt={begin:[/precedencegroup/,/\s+/,typeIdentifier],className:{1:"keyword",3:"title"},contains:[Be],keywords:[...precedencegroupKeywords,...literals],end:/}/};for(const tn of xe.variants){const Qt=tn.contains.find(kn=>kn.label==="interpol");Qt.keywords=K;const En=[...G,...ee,...re,me,xe,...we];Qt.contains=[...En,{begin:/\(/,end:/\)/,contains:["self",...En]}]}return{name:"Swift",keywords:K,contains:[...N,Nt,Vt,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:K,contains:[M.inherit(M.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...G]},Wt,Gt,{beginKeywords:"import",end:/$/,contains:[...N],relevance:0},...G,...ee,...re,me,xe,...we,...Me,Be,ft]}}const IDENT_RE$1="[A-Za-z$_][0-9A-Za-z$_]*",KEYWORDS=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],LITERALS=["true","false","null","undefined","NaN","Infinity"],TYPES=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ERROR_TYPES=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BUILT_IN_GLOBALS=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BUILT_IN_VARIABLES=["arguments","this","super","console","window","document","localStorage","module","global"],BUILT_INS=[].concat(BUILT_IN_GLOBALS,TYPES,ERROR_TYPES);function javascript$1(M){const $=M.regex,I=(Me,{after:Be})=>{const ze="</"+Me[0].slice(1);return Me.input.indexOf(ze,Be)!==-1},N=IDENT_RE$1,B={begin:"<>",end:"</>"},j=/<[A-Za-z0-9\\._:-]+\s*\/>/,U={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Me,Be)=>{const ze=Me[0].length+Me.index,Ze=Me.input[ze];if(Ze==="<"||Ze===","){Be.ignoreMatch();return}Ze===">"&&(I(Me,{after:ze})||Be.ignoreMatch());let ft;const Ye=Me.input.substring(ze);if(ft=Ye.match(/^\s*=/)){Be.ignoreMatch();return}if((ft=Ye.match(/^\s+extends\s+/))&&ft.index===0){Be.ignoreMatch();return}}},q={$pattern:IDENT_RE$1,keyword:KEYWORDS,literal:LITERALS,built_in:BUILT_INS,"variable.language":BUILT_IN_VARIABLES},Y="[0-9](_?[0-9])*",K=`\\.(${Y})`,G="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",J={className:"number",variants:[{begin:`(\\b(${G})((${K})|\\.)?|(${K}))[eE][+-]?(${Y})\\b`},{begin:`\\b(${G})\\b((${K})\\b|\\.)?|(${K})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:q,contains:[]},ee={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"xml"}},te={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[M.BACKSLASH_ESCAPE,Z],subLanguage:"css"}},se={className:"string",begin:"`",end:"`",contains:[M.BACKSLASH_ESCAPE,Z]},ne={className:"comment",variants:[M.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:N+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),M.C_BLOCK_COMMENT_MODE,M.C_LINE_COMMENT_MODE]},ce=[M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,se,{match:/\$\d+/},J];Z.contains=ce.concat({begin:/\{/,end:/\}/,keywords:q,contains:["self"].concat(ce)});const me=[].concat(ne,Z.contains),ue=me.concat([{begin:/\(/,end:/\)/,keywords:q,contains:["self"].concat(me)}]),_e={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue},fe={variants:[{match:[/class/,/\s+/,N,/\s+/,/extends/,/\s+/,$.concat(N,"(",$.concat(/\./,N),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,N],scope:{1:"keyword",3:"title.class"}}]},ge={relevance:0,match:$.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TYPES,...ERROR_TYPES]}},ye={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},xe={variants:[{match:[/function/,/\s+/,N,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_e],illegal:/%/},le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function be(Me){return $.concat("(?!",Me.join("|"),")")}const ve={match:$.concat(/\b/,be([...BUILT_IN_GLOBALS,"super","import"]),N,$.lookahead(/\(/)),className:"title.function",relevance:0},we={begin:$.concat(/\./,$.lookahead($.concat(N,/(?![0-9A-Za-z$_(])/))),end:N,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ae={match:[/get|set/,/\s+/,N,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_e]},Se="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+M.UNDERSCORE_IDENT_RE+")\\s*=>",Pe={match:[/const|var|let/,/\s+/,N,/\s*/,/=\s*/,/(async\s*)?/,$.lookahead(Se)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_e]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:q,exports:{PARAMS_CONTAINS:ue,CLASS_REFERENCE:ge},illegal:/#(?![$_A-z])/,contains:[M.SHEBANG({label:"shebang",binary:"node",relevance:5}),ye,M.APOS_STRING_MODE,M.QUOTE_STRING_MODE,ee,te,se,ne,{match:/\$\d+/},J,ge,{className:"attr",begin:N+$.lookahead(":"),relevance:0},Pe,{begin:"("+M.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ne,M.REGEXP_MODE,{className:"function",begin:Se,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:M.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:q,contains:ue}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:B.begin,end:B.end},{match:j},{begin:U.begin,"on:begin":U.isTrulyOpeningTag,end:U.end}],subLanguage:"xml",contains:[{begin:U.begin,end:U.end,skip:!0,contains:["self"]}]}]},xe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+M.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_e,M.inherit(M.TITLE_MODE,{begin:N,className:"title.function"})]},{match:/\.\.\./,relevance:0},we,{match:"\\$"+N,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_e]},ve,le,fe,Ae,{match:/\$[(.]/}]}}function typescript(M){const $=javascript$1(M),I=IDENT_RE$1,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],B={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[$.exports.CLASS_REFERENCE]},j={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[$.exports.CLASS_REFERENCE]},U={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},q=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],Y={$pattern:IDENT_RE$1,keyword:KEYWORDS.concat(q),literal:LITERALS,built_in:BUILT_INS.concat(N),"variable.language":BUILT_IN_VARIABLES},K={className:"meta",begin:"@"+I},G=(Z,ee,te)=>{const se=Z.contains.findIndex(re=>re.label===ee);if(se===-1)throw new Error("can not find mode to replace");Z.contains.splice(se,1,te)};Object.assign($.keywords,Y),$.exports.PARAMS_CONTAINS.push(K),$.contains=$.contains.concat([K,B,j]),G($,"shebang",M.SHEBANG()),G($,"use_strict",U);const J=$.contains.find(Z=>Z.label==="func.def");return J.relevance=0,Object.assign($,{name:"TypeScript",aliases:["ts","tsx"]}),$}function vbnet(M){const $=M.regex,I={className:"string",begin:/"(""|[^/n])"C\b/},N={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},B=/\d{1,2}\/\d{1,2}\/\d{4}/,j=/\d{4}-\d{1,2}-\d{1,2}/,U=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,q=/\d{1,2}(:\d{1,2}){1,2}/,Y={className:"literal",variants:[{begin:$.concat(/# */,$.either(j,B),/ *#/)},{begin:$.concat(/# */,q,/ *#/)},{begin:$.concat(/# */,U,/ *#/)},{begin:$.concat(/# */,$.either(j,B),/ +/,$.either(U,q),/ *#/)}]},K={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},G={className:"label",begin:/^\w+:/},J=M.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),Z=M.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[I,N,Y,K,G,J,Z,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[Z]}]}}function wasm(M){M.regex;const $=M.COMMENT(/\(;/,/;\)/);$.contains.push("self");const I=M.COMMENT(/;;/,/$/),N=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],B={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},j={className:"variable",begin:/\$[\w_]+/},U={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},q={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},Y={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},K={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:N},contains:[I,$,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},j,U,B,M.QUOTE_STRING_MODE,Y,K,q]}}function xml$1(M){const $=M.regex,I=$.concat(/[\p{L}_]/u,$.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),N=/[\p{L}0-9._:-]+/u,B={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},j={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},U=M.inherit(j,{begin:/\(/,end:/\)/}),q=M.inherit(M.APOS_STRING_MODE,{className:"string"}),Y=M.inherit(M.QUOTE_STRING_MODE,{className:"string"}),K={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:N,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[B]},{begin:/'/,end:/'/,contains:[B]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[j,Y,q,U,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[j,U,Y,q]}]}]},M.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},B,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[Y]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[K],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[K],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:$.concat(/</,$.lookahead($.concat(I,$.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:I,relevance:0,starts:K}]},{className:"tag",begin:$.concat(/<\//,$.lookahead($.concat(I,/>/))),contains:[{className:"name",begin:I,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function yaml$1(M){const $="true false yes no null",I="[\\w#;/?:@&=+$,.~*'()[\\]]+",N={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},B={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},j={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[M.BACKSLASH_ESCAPE,B]},U=M.inherit(j,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),q="[0-9]{4}(-[0-9][0-9]){0,2}",Y="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",K="(\\.[0-9]*)?",G="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",J={className:"number",begin:"\\b"+q+Y+K+G+"\\b"},Z={end:",",endsWithParent:!0,excludeEnd:!0,keywords:$,relevance:0},ee={begin:/\{/,end:/\}/,contains:[Z],illegal:"\\n",relevance:0},te={begin:"\\[",end:"\\]",contains:[Z],illegal:"\\n",relevance:0},se=[N,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+I},{className:"type",begin:"!<"+I+">"},{className:"type",begin:"!"+I},{className:"type",begin:"!!"+I},{className:"meta",begin:"&"+M.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+M.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},M.HASH_COMMENT_MODE,{beginKeywords:$,keywords:{literal:$}},J,{className:"number",begin:M.C_NUMBER_RE+"\\b",relevance:0},ee,te,j],re=[...se];return re.pop(),re.push(U),Z.contains=re,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:se}}var deepFreezeEs6={exports:{}};function deepFreeze(M){return M instanceof Map?M.clear=M.delete=M.set=function(){throw new Error("map is read-only")}:M instanceof Set&&(M.add=M.clear=M.delete=function(){throw new Error("set is read-only")}),Object.freeze(M),Object.getOwnPropertyNames(M).forEach(function($){var I=M[$];typeof I=="object"&&!Object.isFrozen(I)&&deepFreeze(I)}),M}deepFreezeEs6.exports=deepFreeze;deepFreezeEs6.exports.default=deepFreeze;let Response$1=class{constructor($){$.data===void 0&&($.data={}),this.data=$.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML(M){return M.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1(M,...$){const I=Object.create(null);for(const N in M)I[N]=M[N];return $.forEach(function(N){for(const B in N)I[B]=N[B]}),I}const SPAN_CLOSE="</span>",emitsWrappingTags=M=>!!M.scope||M.sublanguage&&M.language,scopeToCSSClass=(M,{prefix:$})=>{if(M.includes(".")){const I=M.split(".");return[`${$}${I.shift()}`,...I.map((N,B)=>`${N}${"_".repeat(B+1)}`)].join(" ")}return`${$}${M}`};class HTMLRenderer{constructor($,I){this.buffer="",this.classPrefix=I.classPrefix,$.walk(this)}addText($){this.buffer+=escapeHTML($)}openNode($){if(!emitsWrappingTags($))return;let I="";$.sublanguage?I=`language-${$.language}`:I=scopeToCSSClass($.scope,{prefix:this.classPrefix}),this.span(I)}closeNode($){emitsWrappingTags($)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span($){this.buffer+=`<span class="${$}">`}}const newNode=(M={})=>{const $={children:[]};return Object.assign($,M),$};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add($){this.top.children.push($)}openNode($){const I=newNode({scope:$});this.add(I),this.stack.push(I)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk($){return this.constructor._walk($,this.rootNode)}static _walk($,I){return typeof I=="string"?$.addText(I):I.children&&($.openNode(I),I.children.forEach(N=>this._walk($,N)),$.closeNode(I)),$}static _collapse($){typeof $!="string"&&$.children&&($.children.every(I=>typeof I=="string")?$.children=[$.children.join("")]:$.children.forEach(I=>{TokenTree._collapse(I)}))}}class TokenTreeEmitter extends TokenTree{constructor($){super(),this.options=$}addKeyword($,I){$!==""&&(this.openNode(I),this.addText($),this.closeNode())}addText($){$!==""&&this.add($)}addSublanguage($,I){const N=$.root;N.sublanguage=!0,N.language=I,this.add(N)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return!0}}function source(M){return M?typeof M=="string"?M:M.source:null}function lookahead(M){return concat("(?=",M,")")}function anyNumberOfTimes(M){return concat("(?:",M,")*")}function optional(M){return concat("(?:",M,")?")}function concat(...M){return M.map(I=>source(I)).join("")}function stripOptionsFromArgs(M){const $=M[M.length-1];return typeof $=="object"&&$.constructor===Object?(M.splice(M.length-1,1),$):{}}function either(...M){return"("+(stripOptionsFromArgs(M).capture?"":"?:")+M.map(N=>source(N)).join("|")+")"}function countMatchGroups(M){return new RegExp(M.toString()+"|").exec("").length-1}function startsWith(M,$){const I=M&&M.exec($);return I&&I.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(M,{joinWith:$}){let I=0;return M.map(N=>{I+=1;const B=I;let j=source(N),U="";for(;j.length>0;){const q=BACKREF_RE.exec(j);if(!q){U+=j;break}U+=j.substring(0,q.index),j=j.substring(q.index+q[0].length),q[0][0]==="\\"&&q[1]?U+="\\"+String(Number(q[1])+B):(U+=q[0],q[0]==="("&&I++)}return U}).map(N=>`(${N})`).join($)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(M={})=>{const $=/^#![ ]*\//;return M.binary&&(M.begin=concat($,/.*\b/,M.binary,/\b.*/)),inherit$1({scope:"meta",begin:$,end:/$/,relevance:0,"on:begin":(I,N)=>{I.index!==0&&N.ignoreMatch()}},M)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT=function(M,$,I={}){const N=inherit$1({scope:"comment",begin:M,end:$,contains:[]},I);N.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const B=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return N.contains.push({begin:concat(/[ ]+/,"(",B,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),N},C_LINE_COMMENT_MODE=COMMENT("//","$"),C_BLOCK_COMMENT_MODE=COMMENT("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]}]},TITLE_MODE={scope:"title",begin:IDENT_RE,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(M){return Object.assign(M,{"on:begin":($,I)=>{I.data._beginMatch=$[1]},"on:end":($,I)=>{I.data._beginMatch!==$[1]&&I.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,MATCH_NOTHING_RE,IDENT_RE,UNDERSCORE_IDENT_RE,NUMBER_RE,C_NUMBER_RE,BINARY_NUMBER_RE,RE_STARTERS_RE,SHEBANG,BACKSLASH_ESCAPE,APOS_STRING_MODE,QUOTE_STRING_MODE,PHRASAL_WORDS_MODE,COMMENT,C_LINE_COMMENT_MODE,C_BLOCK_COMMENT_MODE,HASH_COMMENT_MODE,NUMBER_MODE,C_NUMBER_MODE,BINARY_NUMBER_MODE,REGEXP_MODE,TITLE_MODE,UNDERSCORE_TITLE_MODE,METHOD_GUARD,END_SAME_AS_BEGIN});function skipIfHasPrecedingDot(M,$){M.input[M.index-1]==="."&&$.ignoreMatch()}function scopeClassName(M,$){M.className!==void 0&&(M.scope=M.className,delete M.className)}function beginKeywords(M,$){$&&M.beginKeywords&&(M.begin="\\b("+M.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",M.__beforeBegin=skipIfHasPrecedingDot,M.keywords=M.keywords||M.beginKeywords,delete M.beginKeywords,M.relevance===void 0&&(M.relevance=0))}function compileIllegal(M,$){Array.isArray(M.illegal)&&(M.illegal=either(...M.illegal))}function compileMatch(M,$){if(M.match){if(M.begin||M.end)throw new Error("begin & end are not supported with match");M.begin=M.match,delete M.match}}function compileRelevance(M,$){M.relevance===void 0&&(M.relevance=1)}const beforeMatchExt=(M,$)=>{if(!M.beforeMatch)return;if(M.starts)throw new Error("beforeMatch cannot be used with starts");const I=Object.assign({},M);Object.keys(M).forEach(N=>{delete M[N]}),M.keywords=I.keywords,M.begin=concat(I.beforeMatch,lookahead(I.begin)),M.starts={relevance:0,contains:[Object.assign(I,{endsParent:!0})]},M.relevance=0,delete I.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(M,$,I=DEFAULT_KEYWORD_SCOPE){const N=Object.create(null);return typeof M=="string"?B(I,M.split(" ")):Array.isArray(M)?B(I,M):Object.keys(M).forEach(function(j){Object.assign(N,compileKeywords(M[j],$,j))}),N;function B(j,U){$&&(U=U.map(q=>q.toLowerCase())),U.forEach(function(q){const Y=q.split("|");N[Y[0]]=[j,scoreForKeyword(Y[0],Y[1])]})}}function scoreForKeyword(M,$){return $?Number($):commonKeyword(M)?0:1}function commonKeyword(M){return COMMON_KEYWORDS.includes(M.toLowerCase())}const seenDeprecations={},error$1=M=>{console.error(M)},warn$1=(M,...$)=>{console.log(`WARN: ${M}`,...$)},deprecated=(M,$)=>{seenDeprecations[`${M}/${$}`]||(console.log(`Deprecated as of ${M}. ${$}`),seenDeprecations[`${M}/${$}`]=!0)},MultiClassError=new Error;function remapScopeNames(M,$,{key:I}){let N=0;const B=M[I],j={},U={};for(let q=1;q<=$.length;q++)U[q+N]=B[q],j[q+N]=!0,N+=countMatchGroups($[q-1]);M[I]=U,M[I]._emit=j,M[I]._multi=!0}function beginMultiClass(M){if(Array.isArray(M.begin)){if(M.skip||M.excludeBegin||M.returnBegin)throw error$1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof M.beginScope!="object"||M.beginScope===null)throw error$1("beginScope must be object"),MultiClassError;remapScopeNames(M,M.begin,{key:"beginScope"}),M.begin=_rewriteBackreferences(M.begin,{joinWith:""})}}function endMultiClass(M){if(Array.isArray(M.end)){if(M.skip||M.excludeEnd||M.returnEnd)throw error$1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof M.endScope!="object"||M.endScope===null)throw error$1("endScope must be object"),MultiClassError;remapScopeNames(M,M.end,{key:"endScope"}),M.end=_rewriteBackreferences(M.end,{joinWith:""})}}function scopeSugar(M){M.scope&&typeof M.scope=="object"&&M.scope!==null&&(M.beginScope=M.scope,delete M.scope)}function MultiClass(M){scopeSugar(M),typeof M.beginScope=="string"&&(M.beginScope={_wrap:M.beginScope}),typeof M.endScope=="string"&&(M.endScope={_wrap:M.endScope}),beginMultiClass(M),endMultiClass(M)}function compileLanguage(M){function $(U,q){return new RegExp(source(U),"m"+(M.case_insensitive?"i":"")+(M.unicodeRegex?"u":"")+(q?"g":""))}class I{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(q,Y){Y.position=this.position++,this.matchIndexes[this.matchAt]=Y,this.regexes.push([Y,q]),this.matchAt+=countMatchGroups(q)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const q=this.regexes.map(Y=>Y[1]);this.matcherRe=$(_rewriteBackreferences(q,{joinWith:"|"}),!0),this.lastIndex=0}exec(q){this.matcherRe.lastIndex=this.lastIndex;const Y=this.matcherRe.exec(q);if(!Y)return null;const K=Y.findIndex((J,Z)=>Z>0&&J!==void 0),G=this.matchIndexes[K];return Y.splice(0,K),Object.assign(Y,G)}}class N{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(q){if(this.multiRegexes[q])return this.multiRegexes[q];const Y=new I;return this.rules.slice(q).forEach(([K,G])=>Y.addRule(K,G)),Y.compile(),this.multiRegexes[q]=Y,Y}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(q,Y){this.rules.push([q,Y]),Y.type==="begin"&&this.count++}exec(q){const Y=this.getMatcher(this.regexIndex);Y.lastIndex=this.lastIndex;let K=Y.exec(q);if(this.resumingScanAtSamePosition()&&!(K&&K.index===this.lastIndex)){const G=this.getMatcher(0);G.lastIndex=this.lastIndex+1,K=G.exec(q)}return K&&(this.regexIndex+=K.position+1,this.regexIndex===this.count&&this.considerAll()),K}}function B(U){const q=new N;return U.contains.forEach(Y=>q.addRule(Y.begin,{rule:Y,type:"begin"})),U.terminatorEnd&&q.addRule(U.terminatorEnd,{type:"end"}),U.illegal&&q.addRule(U.illegal,{type:"illegal"}),q}function j(U,q){const Y=U;if(U.isCompiled)return Y;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(G=>G(U,q)),M.compilerExtensions.forEach(G=>G(U,q)),U.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(G=>G(U,q)),U.isCompiled=!0;let K=null;return typeof U.keywords=="object"&&U.keywords.$pattern&&(U.keywords=Object.assign({},U.keywords),K=U.keywords.$pattern,delete U.keywords.$pattern),K=K||/\w+/,U.keywords&&(U.keywords=compileKeywords(U.keywords,M.case_insensitive)),Y.keywordPatternRe=$(K,!0),q&&(U.begin||(U.begin=/\B|\b/),Y.beginRe=$(Y.begin),!U.end&&!U.endsWithParent&&(U.end=/\B|\b/),U.end&&(Y.endRe=$(Y.end)),Y.terminatorEnd=source(Y.end)||"",U.endsWithParent&&q.terminatorEnd&&(Y.terminatorEnd+=(U.end?"|":"")+q.terminatorEnd)),U.illegal&&(Y.illegalRe=$(U.illegal)),U.contains||(U.contains=[]),U.contains=[].concat(...U.contains.map(function(G){return expandOrCloneMode(G==="self"?U:G)})),U.contains.forEach(function(G){j(G,Y)}),U.starts&&j(U.starts,q),Y.matcher=B(Y),Y}if(M.compilerExtensions||(M.compilerExtensions=[]),M.contains&&M.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return M.classNameAliases=inherit$1(M.classNameAliases||{}),j(M)}function dependencyOnParent(M){return M?M.endsWithParent||dependencyOnParent(M.starts):!1}function expandOrCloneMode(M){return M.variants&&!M.cachedVariants&&(M.cachedVariants=M.variants.map(function($){return inherit$1(M,{variants:null},$)})),M.cachedVariants?M.cachedVariants:dependencyOnParent(M)?inherit$1(M,{starts:M.starts?inherit$1(M.starts):null}):Object.isFrozen(M)?inherit$1(M):M}var version="11.7.0";class HTMLInjectionError extends Error{constructor($,I){super($),this.name="HTMLInjectionError",this.html=I}}const escape$1=escapeHTML,inherit=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(M){const $=Object.create(null),I=Object.create(null),N=[];let B=!0;const j="Could not find the language '{}', did you forget to load/include a language module?",U={disableAutodetect:!0,name:"Plain text",contains:[]};let q={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function Y(Pe){return q.noHighlightRe.test(Pe)}function K(Pe){let Me=Pe.className+" ";Me+=Pe.parentNode?Pe.parentNode.className:"";const Be=q.languageDetectRe.exec(Me);if(Be){const ze=xe(Be[1]);return ze||(warn$1(j.replace("{}",Be[1])),warn$1("Falling back to no-highlight mode for this block.",Pe)),ze?Be[1]:"no-highlight"}return Me.split(/\s+/).find(ze=>Y(ze)||xe(ze))}function G(Pe,Me,Be){let ze="",Ze="";typeof Me=="object"?(ze=Pe,Be=Me.ignoreIllegals,Ze=Me.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),Ze=Pe,ze=Me),Be===void 0&&(Be=!0);const ft={code:ze,language:Ze};Ae("before:highlight",ft);const Ye=ft.result?ft.result:J(ft.language,ft.code,Be);return Ye.code=ft.code,Ae("after:highlight",Ye),Ye}function J(Pe,Me,Be,ze){const Ze=Object.create(null);function ft(Ge,rt){return Ge.keywords[rt]}function Ye(){if(!Ln.keywords){We.addText(xt);return}let Ge=0;Ln.keywordPatternRe.lastIndex=0;let rt=Ln.keywordPatternRe.exec(xt),ut="";for(;rt;){ut+=xt.substring(Ge,rt.index);const ct=An.case_insensitive?rt[0].toLowerCase():rt[0],it=ft(Ln,ct);if(it){const[ot,Ot]=it;if(We.addText(ut),ut="",Ze[ct]=(Ze[ct]||0)+1,Ze[ct]<=MAX_KEYWORD_HITS&&(Ue+=Ot),ot.startsWith("_"))ut+=rt[0];else{const dn=An.classNameAliases[ot]||ot;We.addKeyword(rt[0],dn)}}else ut+=rt[0];Ge=Ln.keywordPatternRe.lastIndex,rt=Ln.keywordPatternRe.exec(xt)}ut+=xt.substring(Ge),We.addText(ut)}function Ve(){if(xt==="")return;let Ge=null;if(typeof Ln.subLanguage=="string"){if(!$[Ln.subLanguage]){We.addText(xt);return}Ge=J(Ln.subLanguage,xt,!0,Et[Ln.subLanguage]),Et[Ln.subLanguage]=Ge._top}else Ge=ee(xt,Ln.subLanguage.length?Ln.subLanguage:null);Ln.relevance>0&&(Ue+=Ge.relevance),We.addSublanguage(Ge._emitter,Ge.language)}function Dt(){Ln.subLanguage!=null?Ve():Ye(),xt=""}function Nt(Ge,rt){let ut=1;const ct=rt.length-1;for(;ut<=ct;){if(!Ge._emit[ut]){ut++;continue}const it=An.classNameAliases[Ge[ut]]||Ge[ut],ot=rt[ut];it?We.addKeyword(ot,it):(xt=ot,Ye(),xt=""),ut++}}function Vt(Ge,rt){return Ge.scope&&typeof Ge.scope=="string"&&We.openNode(An.classNameAliases[Ge.scope]||Ge.scope),Ge.beginScope&&(Ge.beginScope._wrap?(We.addKeyword(xt,An.classNameAliases[Ge.beginScope._wrap]||Ge.beginScope._wrap),xt=""):Ge.beginScope._multi&&(Nt(Ge.beginScope,rt),xt="")),Ln=Object.create(Ge,{parent:{value:Ln}}),Ln}function Wt(Ge,rt,ut){let ct=startsWith(Ge.endRe,ut);if(ct){if(Ge["on:end"]){const it=new Response$1(Ge);Ge["on:end"](rt,it),it.isMatchIgnored&&(ct=!1)}if(ct){for(;Ge.endsParent&&Ge.parent;)Ge=Ge.parent;return Ge}}if(Ge.endsWithParent)return Wt(Ge.parent,rt,ut)}function Gt(Ge){return Ln.matcher.regexIndex===0?(xt+=Ge[0],1):($e=!0,0)}function tn(Ge){const rt=Ge[0],ut=Ge.rule,ct=new Response$1(ut),it=[ut.__beforeBegin,ut["on:begin"]];for(const ot of it)if(ot&&(ot(Ge,ct),ct.isMatchIgnored))return Gt(rt);return ut.skip?xt+=rt:(ut.excludeBegin&&(xt+=rt),Dt(),!ut.returnBegin&&!ut.excludeBegin&&(xt=rt)),Vt(ut,Ge),ut.returnBegin?0:rt.length}function Qt(Ge){const rt=Ge[0],ut=Me.substring(Ge.index),ct=Wt(Ln,Ge,ut);if(!ct)return NO_MATCH;const it=Ln;Ln.endScope&&Ln.endScope._wrap?(Dt(),We.addKeyword(rt,Ln.endScope._wrap)):Ln.endScope&&Ln.endScope._multi?(Dt(),Nt(Ln.endScope,Ge)):it.skip?xt+=rt:(it.returnEnd||it.excludeEnd||(xt+=rt),Dt(),it.excludeEnd&&(xt=rt));do Ln.scope&&We.closeNode(),!Ln.skip&&!Ln.subLanguage&&(Ue+=Ln.relevance),Ln=Ln.parent;while(Ln!==ct.parent);return ct.starts&&Vt(ct.starts,Ge),it.returnEnd?0:rt.length}function En(){const Ge=[];for(let rt=Ln;rt!==An;rt=rt.parent)rt.scope&&Ge.unshift(rt.scope);Ge.forEach(rt=>We.openNode(rt))}let kn={};function Gn(Ge,rt){const ut=rt&&rt[0];if(xt+=Ge,ut==null)return Dt(),0;if(kn.type==="begin"&&rt.type==="end"&&kn.index===rt.index&&ut===""){if(xt+=Me.slice(rt.index,rt.index+1),!B){const ct=new Error(`0 width match regex (${Pe})`);throw ct.languageName=Pe,ct.badRule=kn.rule,ct}return 1}if(kn=rt,rt.type==="begin")return tn(rt);if(rt.type==="illegal"&&!Be){const ct=new Error('Illegal lexeme "'+ut+'" for mode "'+(Ln.scope||"<unnamed>")+'"');throw ct.mode=Ln,ct}else if(rt.type==="end"){const ct=Qt(rt);if(ct!==NO_MATCH)return ct}if(rt.type==="illegal"&&ut==="")return 1;if(ke>1e5&&ke>rt.index*3)throw new Error("potential infinite loop, way more iterations than matches");return xt+=ut,ut.length}const An=xe(Pe);if(!An)throw error$1(j.replace("{}",Pe)),new Error('Unknown language: "'+Pe+'"');const jn=compileLanguage(An);let Mn="",Ln=ze||jn;const Et={},We=new q.__emitter(q);En();let xt="",Ue=0,Oe=0,ke=0,$e=!1;try{for(Ln.matcher.considerAll();;){ke++,$e?$e=!1:Ln.matcher.considerAll(),Ln.matcher.lastIndex=Oe;const Ge=Ln.matcher.exec(Me);if(!Ge)break;const rt=Me.substring(Oe,Ge.index),ut=Gn(rt,Ge);Oe=Ge.index+ut}return Gn(Me.substring(Oe)),We.closeAllNodes(),We.finalize(),Mn=We.toHTML(),{language:Pe,value:Mn,relevance:Ue,illegal:!1,_emitter:We,_top:Ln}}catch(Ge){if(Ge.message&&Ge.message.includes("Illegal"))return{language:Pe,value:escape$1(Me),illegal:!0,relevance:0,_illegalBy:{message:Ge.message,index:Oe,context:Me.slice(Oe-100,Oe+100),mode:Ge.mode,resultSoFar:Mn},_emitter:We};if(B)return{language:Pe,value:escape$1(Me),illegal:!1,relevance:0,errorRaised:Ge,_emitter:We,_top:Ln};throw Ge}}function Z(Pe){const Me={value:escape$1(Pe),illegal:!1,relevance:0,_top:U,_emitter:new q.__emitter(q)};return Me._emitter.addText(Pe),Me}function ee(Pe,Me){Me=Me||q.languages||Object.keys($);const Be=Z(Pe),ze=Me.filter(xe).filter(be).map(Dt=>J(Dt,Pe,!1));ze.unshift(Be);const Ze=ze.sort((Dt,Nt)=>{if(Dt.relevance!==Nt.relevance)return Nt.relevance-Dt.relevance;if(Dt.language&&Nt.language){if(xe(Dt.language).supersetOf===Nt.language)return 1;if(xe(Nt.language).supersetOf===Dt.language)return-1}return 0}),[ft,Ye]=Ze,Ve=ft;return Ve.secondBest=Ye,Ve}function te(Pe,Me,Be){const ze=Me&&I[Me]||Be;Pe.classList.add("hljs"),Pe.classList.add(`language-${ze}`)}function se(Pe){let Me=null;const Be=K(Pe);if(Y(Be))return;if(Ae("before:highlightElement",{el:Pe,language:Be}),Pe.children.length>0&&(q.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Pe)),q.throwUnescapedHTML))throw new HTMLInjectionError("One of your code blocks includes unescaped HTML.",Pe.innerHTML);Me=Pe;const ze=Me.textContent,Ze=Be?G(ze,{language:Be,ignoreIllegals:!0}):ee(ze);Pe.innerHTML=Ze.value,te(Pe,Be,Ze.language),Pe.result={language:Ze.language,re:Ze.relevance,relevance:Ze.relevance},Ze.secondBest&&(Pe.secondBest={language:Ze.secondBest.language,relevance:Ze.secondBest.relevance}),Ae("after:highlightElement",{el:Pe,result:Ze,text:ze})}function re(Pe){q=inherit(q,Pe)}const ne=()=>{ue(),deprecated("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ce(){ue(),deprecated("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let me=!1;function ue(){if(document.readyState==="loading"){me=!0;return}document.querySelectorAll(q.cssSelector).forEach(se)}function _e(){me&&ue()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_e,!1);function fe(Pe,Me){let Be=null;try{Be=Me(M)}catch(ze){if(error$1("Language definition for '{}' could not be registered.".replace("{}",Pe)),B)error$1(ze);else throw ze;Be=U}Be.name||(Be.name=Pe),$[Pe]=Be,Be.rawDefinition=Me.bind(null,M),Be.aliases&&le(Be.aliases,{languageName:Pe})}function ge(Pe){delete $[Pe];for(const Me of Object.keys(I))I[Me]===Pe&&delete I[Me]}function ye(){return Object.keys($)}function xe(Pe){return Pe=(Pe||"").toLowerCase(),$[Pe]||$[I[Pe]]}function le(Pe,{languageName:Me}){typeof Pe=="string"&&(Pe=[Pe]),Pe.forEach(Be=>{I[Be.toLowerCase()]=Me})}function be(Pe){const Me=xe(Pe);return Me&&!Me.disableAutodetect}function ve(Pe){Pe["before:highlightBlock"]&&!Pe["before:highlightElement"]&&(Pe["before:highlightElement"]=Me=>{Pe["before:highlightBlock"](Object.assign({block:Me.el},Me))}),Pe["after:highlightBlock"]&&!Pe["after:highlightElement"]&&(Pe["after:highlightElement"]=Me=>{Pe["after:highlightBlock"](Object.assign({block:Me.el},Me))})}function we(Pe){ve(Pe),N.push(Pe)}function Ae(Pe,Me){const Be=Pe;N.forEach(function(ze){ze[Be]&&ze[Be](Me)})}function Se(Pe){return deprecated("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated("10.7.0","Please use highlightElement now."),se(Pe)}Object.assign(M,{highlight:G,highlightAuto:ee,highlightAll:ue,highlightElement:se,highlightBlock:Se,configure:re,initHighlighting:ne,initHighlightingOnLoad:ce,registerLanguage:fe,unregisterLanguage:ge,listLanguages:ye,getLanguage:xe,registerAliases:le,autoDetection:be,inherit,addPlugin:we}),M.debugMode=function(){B=!1},M.safeMode=function(){B=!0},M.versionString=version,M.regex={concat,lookahead,either,optional,anyNumberOfTimes};for(const Pe in MODES)typeof MODES[Pe]=="object"&&deepFreezeEs6.exports(MODES[Pe]);return Object.assign(M,MODES),M};var highlight$1=HLJS({}),core=highlight$1;highlight$1.HighlightJS=highlight$1;highlight$1.default=highlight$1;const HighlightJS=getDefaultExportFromCjs$1(core);var format$1={exports:{}};(function(M){(function(){var $;$=M.exports=B,$.format=B,$.vsprintf=N,typeof console<"u"&&typeof console.log=="function"&&($.printf=I);function I(){console.log(B.apply(null,arguments))}function N(j,U){return B.apply(null,[j].concat(U))}function B(j){for(var U=1,q=[].slice.call(arguments),Y=0,K=j.length,G="",J,Z=!1,ee,te,se=!1,re,ne=function(){return q[U++]},ce=function(){for(var me="";/\d/.test(j[Y]);)me+=j[Y++],J=j[Y];return me.length>0?parseInt(me):null};Y<K;++Y)if(J=j[Y],Z)switch(Z=!1,J=="."?(se=!1,J=j[++Y]):J=="0"&&j[Y+1]=="."?(se=!0,Y+=2,J=j[Y]):se=!0,re=ce(),J){case"b":G+=parseInt(ne(),10).toString(2);break;case"c":ee=ne(),typeof ee=="string"||ee instanceof String?G+=ee:G+=String.fromCharCode(parseInt(ee,10));break;case"d":G+=parseInt(ne(),10);break;case"f":te=String(parseFloat(ne()).toFixed(re||6)),G+=se?te:te.replace(/^0/,"");break;case"j":G+=JSON.stringify(ne());break;case"o":G+="0"+parseInt(ne(),10).toString(8);break;case"s":G+=ne();break;case"x":G+="0x"+parseInt(ne(),10).toString(16);break;case"X":G+="0x"+parseInt(ne(),10).toString(16).toUpperCase();break;default:G+=J;break}else J==="%"?Z=!0:G+=J;return G}})()})(format$1);var formatExports=format$1.exports;const formatter=getDefaultExportFromCjs$1(formatExports),fault=Object.assign(create(Error),{eval:create(EvalError),range:create(RangeError),reference:create(ReferenceError),syntax:create(SyntaxError),type:create(TypeError),uri:create(URIError)});function create(M){return $.displayName=M.displayName||M.name,$;function $(I,...N){const B=I&&formatter(I,...N);return new M(B)}}const own={}.hasOwnProperty,defaultPrefix="hljs-";function highlight(M,$,I={}){let N=I.prefix;if(typeof M!="string")throw fault("Expected `string` for name, got `%s`",M);if(!HighlightJS.getLanguage(M))throw fault("Unknown language: `%s` is not registered",M);if(typeof $!="string")throw fault("Expected `string` for value, got `%s`",$);N==null&&(N=defaultPrefix),HighlightJS.configure({__emitter:HastEmitter,classPrefix:N});const B=HighlightJS.highlight($,{language:M,ignoreIllegals:!0});if(HighlightJS.configure({}),B.errorRaised)throw B.errorRaised;return B._emitter.root.data.language=B.language,B._emitter.root.data.relevance=B.relevance,B._emitter.root}function highlightAuto(M,$={}){const I=$.subset||HighlightJS.listLanguages();$.prefix;let N=-1,B={type:"root",data:{language:null,relevance:0},children:[]};if(typeof M!="string")throw fault("Expected `string` for value, got `%s`",M);for(;++N<I.length;){const j=I[N];if(!HighlightJS.getLanguage(j))continue;const U=highlight(j,M,$);U.data.relevance>B.data.relevance&&(B=U)}return B}function registerLanguage(M,$){HighlightJS.registerLanguage(M,$)}const registerAlias=function(M,$){if(typeof M=="string")HighlightJS.registerAliases($,{languageName:M});else{let I;for(I in M)own.call(M,I)&&HighlightJS.registerAliases(M[I],{languageName:I})}};function registered(M){return!!HighlightJS.getLanguage(M)}function listLanguages(){return HighlightJS.listLanguages()}class HastEmitter{constructor($){this.options=$,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText($){if($==="")return;const I=this.stack[this.stack.length-1],N=I.children[I.children.length-1];N&&N.type==="text"?N.value+=$:I.children.push({type:"text",value:$})}addKeyword($,I){this.openNode(I),this.addText($),this.closeNode()}addSublanguage($,I){const N=this.stack[this.stack.length-1],B=$.root.children;I?N.children.push({type:"element",tagName:"span",properties:{className:[I]},children:B}):N.children.push(...B)}openNode($){const I=$.split(".").map((j,U)=>U?j+"_".repeat(U):this.options.classPrefix+j),N=this.stack[this.stack.length-1],B={type:"element",tagName:"span",properties:{className:I},children:[]};N.children.push(B),this.stack.push(B)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const lowlight={highlight,highlightAuto,registerLanguage,registered,listLanguages,registerAlias};lowlight.registerLanguage("arduino",arduino);lowlight.registerLanguage("bash",bash);lowlight.registerLanguage("c",c);lowlight.registerLanguage("cpp",cpp);lowlight.registerLanguage("csharp",csharp);lowlight.registerLanguage("css",css$1);lowlight.registerLanguage("diff",diff$1);lowlight.registerLanguage("go",go);lowlight.registerLanguage("graphql",graphql);lowlight.registerLanguage("ini",ini);lowlight.registerLanguage("java",java);lowlight.registerLanguage("javascript",javascript$2);lowlight.registerLanguage("json",json);lowlight.registerLanguage("kotlin",kotlin);lowlight.registerLanguage("less",less);lowlight.registerLanguage("lua",lua);lowlight.registerLanguage("makefile",makefile);lowlight.registerLanguage("markdown",markdown$2);lowlight.registerLanguage("objectivec",objectivec);lowlight.registerLanguage("perl",perl);lowlight.registerLanguage("php",php);lowlight.registerLanguage("php-template",phpTemplate);lowlight.registerLanguage("plaintext",plaintext);lowlight.registerLanguage("python",python);lowlight.registerLanguage("python-repl",pythonRepl);lowlight.registerLanguage("r",r);lowlight.registerLanguage("ruby",ruby$1);lowlight.registerLanguage("rust",rust);lowlight.registerLanguage("scss",scss);lowlight.registerLanguage("shell",shell);lowlight.registerLanguage("sql",sql);lowlight.registerLanguage("swift",swift);lowlight.registerLanguage("typescript",typescript);lowlight.registerLanguage("vbnet",vbnet);lowlight.registerLanguage("wasm",wasm);lowlight.registerLanguage("xml",xml$1);lowlight.registerLanguage("yaml",yaml$1);const github="",_sfc_main$25={mixins:[Fieldtype,ManagesSetMeta],components:{BubbleMenu,BardSource,BardToolbarButton,SetPicker,EditorContent,FloatingMenu,LinkToolbarButton},inject:["storeName"],data(){return{editor:null,html:null,json:[],showSource:!1,fullScreenMode:!1,buttons:[],collapsed:this.meta.collapsed,previews:this.meta.previews,mounted:!1,initError:null,pageHeader:null,escBinding:null,showAddSetButton:!1,provide:{bard:this.makeBardProvide(),storeName:this.storeName,bardSets:this.config.sets}}},computed:{allowSource(){return this.config.allow_source===void 0?!0:this.config.allow_source},toolbarIsFixed(){return this.config.toolbar_mode==="fixed"},toolbarIsFloating(){return this.config.toolbar_mode==="floating"},showFixedToolbar(){return this.toolbarIsFixed&&(this.visibleButtons.length>0||this.allowSource||this.hasExtraButtons)},hasExtraButtons(){return this.allowSource||this.setConfigs.length>0||this.config.fullscreen},readingTime(){if(this.html){var M=readTime(this.html,265,12,500,["img","Image","bard-set"]),$=moment.duration(M.duration,"minutes");return moment.utc($.asMilliseconds()).format("mm:ss")}},characterAndWordCountText(){const M=this.config.word_count,$=this.editor.storage.characterCount.words(),I=`${__n(":count word|:count words",$)}`,N=this.config.character_limit,B=N>0,j=this.editor.storage.characterCount.characters();if(B&&M)return`${I}, ${__(":count/:total characters",{count:j,total:N})}`;if(B)return`${j}/${N}`;if(M)return I},isFirstCreation(){return!this.$config.get("bard.meta").hasOwnProperty(this.id)},id(){return`${this.storeName}.${this.name}`},setIndexes(){let M={};return this.json.forEach(($,I)=>{$.type==="set"&&(M[$.attrs.id]=I)}),M},storeState(){if(this.storeName)return this.$store.state.publish[this.storeName]},site(){return this.storeState?this.storeState.site:this.$config.get("selectedSite")},htmlWithReplacedLinks(){return this.html.replaceAll(/\"statamic:\/\/(.*?)\"/g,(M,$)=>{const I=this.meta.linkData[$];return I?`"${I.permalink}"`:(this.$toast.error(`${__("No link data found for")} ${$}`),'""')})},setsWithErrors(){return this.storeState?Object.values(this.setIndexes).filter(M=>{const $=`${this.fieldPathPrefix||this.handle}.${M}.`;return Object.keys(this.storeState.errors).some(I=>I.startsWith($))}):[]},replicatorPreview(){if(!this.showFieldPreviews||!this.config.replicator_preview)return;const M=[...this.value];let $="";for(;M.length;){const I=M.shift();if(I.type==="text")$+=` ${I.text||""}`;else if(I.type==="set"){const N=I.attrs.values.type,B=this.setConfigs.find(j=>j.handle===N);$+=` [${__(B?B.display:N)}]`}if($.length>150)break;I.content&&M.unshift(...I.content)}return $},inputIsInline(){return this.config.inline},wrapperClasses(){return`form-group publish-field publish-field__${this.handle} bard-fieldtype`},setConfigs(){return reduce(this.groupConfigs,(M,$)=>M.concat($.sets),[])},groupConfigs(){return this.config.sets},internalFieldActions(){return[{title:__("Expand All Sets"),icon:"arrows-horizontal-expand",quick:!0,visibleWhenReadOnly:!0,run:this.expandAll,visible:this.setConfigs.length>0},{title:__("Collapse All Sets"),icon:"arrows-horizontal-collapse",quick:!0,visibleWhenReadOnly:!0,run:this.collapseAll,visible:this.setConfigs.length>0},{title:__("Toggle Fullscreen Mode"),icon:({vm:M})=>M.fullScreenMode?"shrink-all":"expand-bold",quick:!0,run:this.toggleFullscreen,visibleWhenReadOnly:!0,visible:this.config.fullscreen},{title:__("Show HTML Source"),run:()=>this.showSource=!this.showSource,visibleWhenReadOnly:!0,visible:this.allowSource}]}},mounted(){this.initToolbarButtons(),this.initEditor(),this.json=this.editor.getJSON().content,this.html=this.editor.getHTML(),this.escBinding=this.$keys.bind("esc",this.closeFullscreen),this.$nextTick(()=>{this.mounted=!0,this.config.collapse&&this.collapseAll()}),this.pageHeader=document.querySelector(".global-header"),this.$nextTick(()=>{let M=document.querySelector(`label[for="${this.fieldId}"]`);M&&M.addEventListener("click",()=>{this.editor.commands.focus()})})},beforeDestroy(){this.editor.destroy(),this.escBinding.destroy()},watch:{json(M,$){this.mounted&&M!==$&&this.updateDebounced(M)},value(M,$){const I=this.editor.getJSON(),N=this.valueToContent(M);JSON.stringify(N)!==JSON.stringify(I)&&(this.editor.commands.clearContent(),this.editor.commands.setContent(N,!0))},readOnly(M){this.editor.setEditable(!this.readOnly)},collapsed(M){const $=this.meta;$.collapsed=M,this.updateMeta($)},previews:{deep:!0,handler(M){if(JSON.stringify(this.meta.previews)===JSON.stringify(M))return;const $=this.meta;$.previews=M,this.updateMeta($)}},fullScreenMode(){this.initEditor()}},methods:{addSet(M){const $=uniqid$1(),I=Object.assign({},{type:M},this.meta.defaults[M]);let N={};Object.keys(this.meta.defaults[M]).forEach(U=>N[U]=null),this.previews=Object.assign({},this.previews,{[$]:N}),this.updateSetMeta($,this.meta.new[M]);const{$head:B}=this.editor.view.state.selection,{nodeBefore:j}=B;this.$nextTick(()=>{j?this.editor.commands.setAt({attrs:{id:$,values:I},pos:B.pos}):this.editor.commands.set({id:$,values:I})})},duplicateSet(M,$,I){const N=uniqid$1(),B=$.enabled,j=Object.assign({},$.values);let U=Object.assign({},this.previews[M]);this.previews=Object.assign({},this.previews,{[N]:U}),this.updateSetMeta(N,this.meta.existing[M]),this.$nextTick(()=>{this.editor.commands.setAt({attrs:{id:N,enabled:B,values:j},pos:I})})},pasteSet(M){const $=M.id,I=uniqid$1(),N=M.enabled,B=Object.assign({},M.values);let j=Object.assign({},this.previews[$]||{});return this.previews=Object.assign({},this.previews,{[I]:j}),this.updateSetMeta(I,this.meta.existing[$]||this.meta.defaults[B.type]||{}),{id:I,enabled:N,values:B}},collapseSet(M){this.collapsed.includes(M)||this.collapsed.push(M)},expandSet(M){if(this.config.collapse==="accordion"){this.collapsed=Object.keys(this.meta.existing).filter(I=>I!==M);return}if(this.collapsed.includes(M)){var $=this.collapsed.indexOf(M);this.collapsed.splice($,1)}},collapseAll(){this.collapsed=Object.keys(this.meta.existing)},expandAll(){this.collapsed=[]},toggleCollapseSets(){this.collapsed.length===0?this.collapseAll():this.expandAll()},toggleFullscreen(){this.fullScreenMode=!this.fullScreenMode},closeFullscreen(){this.fullScreenMode=!1},shouldShowSetButton({view:M,state:$}){var K,G;const{selection:I}=$,{$anchor:N,empty:B}=I,j=N.depth===1,U=N.parent.isTextblock&&!N.parent.type.spec.code&&!N.parent.textContent,q=((K=$.selection.$to.nodeBefore)==null?void 0:K.type.name)==="image"||((G=$.selection.$to.nodeAfter)==null?void 0:G.type.name)==="image",Y=M.hasFocus()&&B&&j&&U&&!q;return this.setConfigs.length&&(this.config.always_show_set_button||Y)},initToolbarButtons(){const M=this.config.buttons||["h2","h3","bold","italic","unorderedlist","orderedlist","removeformat","quote","anchor","table"];M.includes("table")&&M.push("deletetable","addcolumnbefore","addcolumnafter","deletecolumn","addrowbefore","addrowafter","deleterow","togglecellmerge","toggleheadercell");let $=M.map(I=>_.findWhere(availableButtons$1(),{name:I.toLowerCase()})||I);this.$bard.buttonCallbacks.forEach(I=>{const B=I($,j=>M.includes(j.name)?j:null);B&&($=$.concat(Array.isArray(B)?B:[B]))}),$=$.filter(I=>!!I),$=$.filter(I=>typeof I!="string"),$=addButtonHtml($),$=$.filter(I=>I.condition?I.condition.call(null,this.config):!0),_.findWhere($,{name:"table"})&&$.push({name:"deletetable",text:__("Delete Table"),command:I=>I.commands.deleteTable(),svg:"delete-table",visibleWhenActive:"table"},{name:"addcolumnbefore",text:__("Add Column Before"),command:I=>I.commands.addColumnBefore(),svg:"add-col-before",visibleWhenActive:"table"},{name:"addcolumnafter",text:__("Add Column After"),command:I=>I.commands.addColumnAfter(),svg:"add-col-after",visibleWhenActive:"table"},{name:"deletecolumn",text:__("Delete Column"),command:I=>I.commands.deleteColumn(),svg:"delete-col",visibleWhenActive:"table"},{name:"addrowbefore",text:__("Add Row Before"),command:I=>I.commands.addRowBefore(),svg:"add-row-before",visibleWhenActive:"table"},{name:"addrowafter",text:__("Add Row After"),command:I=>I.commands.addRowAfter(),svg:"add-row-after",visibleWhenActive:"table"},{name:"deleterow",text:__("Delete Row"),command:I=>I.commands.deleteRow(),svg:"delete-row",visibleWhenActive:"table"},{name:"toggleheadercell",text:__("Toggle Header Cell"),command:I=>I.commands.toggleHeaderCell(),svg:"flip-vertical",visibleWhenActive:"table"},{name:"togglecellmerge",text:__("Merge Cells"),command:I=>I.commands.mergeCells(),svg:"combine-cells",visibleWhenActive:"table"}),this.buttons=$},buttonIsActive(M){if(M.hasOwnProperty("active"))return M.active(this.editor,M.args);const $=M.hasOwnProperty("activeName")?"activeName":"name",I=M[$];return this.editor.isActive(I,M.args)},buttonIsVisible(M){return M.hasOwnProperty("visible")?M.visible(this.editor,M.args):M.hasOwnProperty("visibleWhenActive")?this.editor.isActive(M.visibleWhenActive,M.args):!0},visibleButtons(M){return M.filter($=>this.buttonIsVisible($))},initEditor(){this.editor&&this.editor.destroy();const M=this.valueToContent(clone(this.value));this.editor=new Editor({extensions:this.getExtensions(),content:M,editable:!this.readOnly,enableInputRules:this.config.enable_input_rules,enablePasteRules:this.config.enable_paste_rules,editorProps:{attributes:{class:"bard-content"}},onFocus:()=>this.$emit("focus"),onBlur:()=>{setTimeout(()=>{this.$refs.container.contains(document.activeElement)||(this.$emit("blur"),this.showAddSetButton=!1)},1)},onUpdate:()=>{this.json=clone(this.editor.getJSON().content),this.html=this.editor.getHTML()},onCreate:({editor:$})=>{const I=$.view.state;if(M!==null&&typeof M=="object")try{I.schema.nodeFromJSON(M)}catch(N){const B=this.invalidError(N);B?this.initError=B:(this.initError=__("Something went wrong"),console.error(N))}}})},invalidError(M){const $={"Invalid text node in JSON":"Invalid content, text values must be strings","Empty text nodes are not allowed":"Invalid content, text values cannot be empty"};if($[M.message])return __($[M.message]);let I;if(I=M.message.match(/^(?:There is no|Unknown) (?:node|mark) type:? (\w*)(?: in this schema)?$/))return I[1]?__("Invalid content, :type button/extension is not enabled",{type:I[1]}):__("Invalid content, nodes and marks must have a type")},valueToContent(M){return M.length?{type:"doc",content:M}:null},getExtensions(){let M=this.inputIsInline?[DocumentInline]:[DocumentBlock,HardBreak];this.config.inline==="break"&&M.push(HardBreak.extend({addKeyboardShortcuts(){var q;return{...(q=this.parent)==null?void 0:q.call(this),Enter:()=>this.editor.commands.setHardBreak()}}})),this.config.placeholder&&M.push(Placeholder.configure({placeholder:__(this.config.placeholder)}));const $=Extension.create({addKeyboardShortcuts(){return{"Ctrl-Enter":()=>!0,"Cmd-Enter":()=>!0}}});let I=[CharacterCount.configure({limit:this.config.character_limit}),...M,$,Dropcursor,Gapcursor,History,Paragraph,Set$1.configure({bard:this}),Text];this.config.smart_typography&&I.push(Typography);let N=this.buttons.map(q=>q.name);N.includes("anchor")&&I.push(Link.configure({vm:this})),N.includes("bold")&&I.push(Bold),N.includes("code")&&I.push(Code),N.includes("codeblock")&&I.push(CodeBlockLowlight.configure({lowlight})),N.includes("horizontalrule")&&I.push(HorizontalRule),N.includes("image")&&I.push(Image.configure({bard:this})),N.includes("italic")&&I.push(Italic),N.includes("quote")&&I.push(Blockquote),N.includes("orderedlist")&&I.push(OrderedList),(N.includes("orderedlist")||N.includes("unorderedlist"))&&I.push(ListItem),N.includes("underline")&&I.push(Underline),N.includes("unorderedlist")&&I.push(BulletList),N.includes("small")&&I.push(Small),N.includes("strikethrough")&&I.push(Strike),N.includes("subscript")&&I.push(Subscript),N.includes("superscript")&&I.push(Superscript);let B=[];N.includes("h1")&&B.push(1),N.includes("h2")&&B.push(2),N.includes("h3")&&B.push(3),N.includes("h4")&&B.push(4),N.includes("h5")&&B.push(5),N.includes("h6")&&B.push(6),B.length&&I.push(Heading.configure({levels:B}));let j=["paragraph"];B.length&&j.push("heading");let U=[];return N.includes("alignleft")&&U.push("left"),N.includes("aligncenter")&&U.push("center"),N.includes("alignright")&&U.push("right"),N.includes("alignjustify")&&U.push("justify"),U.length&&I.push(TextAlign.configure({types:j,alignments:U})),N.includes("table")&&I.push(Table.configure({resizable:!0}),TableHeader,TableCell,TableRow),this.$bard.extensionCallbacks.forEach(q=>{let Y=q({bard:this});I=I.concat(Array.isArray(Y)?Y:[Y])}),this.$bard.extensionReplacementCallbacks.forEach(({callback:q,name:Y})=>{let K=I.findIndex(Z=>Z.name===Y);if(K===-1)return;let G=I[K],J=q({bard:this,extension:G});I[K]=J}),I},updateSetPreviews(M,$){this.previews[M]=$},ignorePageHeader(M){this.pageHeader&&(this.pageHeader.style["pointer-events"]=M?"none":"all")},makeBardProvide(){const M={};return Object.defineProperties(M,{setConfigs:{get:()=>this.setConfigs},isReadOnly:{get:()=>this.readOnly}}),M},addSetButtonClicked(){this.setConfigs.length===1&&this.addSet(this.setConfigs[0].handle)},clickedAwayFromSetPicker(M){this.$el.contains(M.target)||(this.showAddSetButton=!1)}}};var _sfc_render$25=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"bard-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("div",{class:{"publish-fields":$.fullScreenMode}},[I("div",{class:$.fullScreenMode&&$.wrapperClasses},[I("div",{ref:"container",staticClass:"bard-fieldtype-wrapper",class:{"bard-fullscreen":$.fullScreenMode},on:{dragstart:function(N){return N.stopPropagation(),$.ignorePageHeader(!0)},dragend:function(N){return $.ignorePageHeader(!1)}}},[$.fullScreenMode?I("publish-field-fullscreen-header",{attrs:{title:$.config.display,"field-actions":$.fieldActions},on:{close:$.toggleFullscreen}},[!$.readOnly&&$.showFixedToolbar?I("div",{staticClass:"bard-fixed-toolbar border-0"},[$.toolbarIsFixed?I("div",{staticClass:"flex flex-wrap flex-1 items-center no-select"},$._l($.visibleButtons($.buttons),function(N){return I(N.component||"BardToolbarButton",{key:N.name,tag:"component",attrs:{button:N,active:$.buttonIsActive(N),config:$.config,bard:$._self,editor:$.editor}})}),1):$._e()]):$._e()]):$._e(),!$.readOnly&&$.showFixedToolbar&&!$.fullScreenMode?I("div",{staticClass:"bard-fixed-toolbar"},[$.toolbarIsFixed?I("div",{staticClass:"flex flex-wrap flex-1 items-center no-select"},$._l($.visibleButtons($.buttons),function(N){return I(N.component||"BardToolbarButton",{key:N.name,tag:"component",attrs:{button:N,active:$.buttonIsActive(N),config:$.config,bard:$._self,editor:$.editor}})}),1):$._e()]):$._e(),I("div",{staticClass:"bard-editor @container/bard",class:{"mode:read-only":$.readOnly,"mode:minimal":!$.showFixedToolbar,"mode:inline":$.inputIsInline},attrs:{tabindex:"0"}},[$.editor&&$.toolbarIsFloating&&!$.readOnly?I("bubble-menu",{staticClass:"bard-floating-toolbar",attrs:{editor:$.editor,"tippy-options":{maxWidth:"none",zIndex:1e3}}},$._l($.visibleButtons($.buttons),function(N){return I(N.component||"BardToolbarButton",{key:N.name,tag:"component",attrs:{button:N,active:$.buttonIsActive(N),bard:$._self,config:$.config,editor:$.editor}})}),1):$._e(),$.editor?I("floating-menu",{staticClass:"bard-set-selector",attrs:{editor:$.editor,"should-show":$.shouldShowSetButton,"is-showing":$.showAddSetButton},on:{shown:function(N){$.showAddSetButton=!0},hidden:function(N){$.showAddSetButton=!1}},scopedSlots:$._u([{key:"default",fn:function({y:N}){return[$.showAddSetButton?I("set-picker",{attrs:{sets:$.groupConfigs},on:{added:$.addSet,"clicked-away":$.clickedAwayFromSetPicker},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Add Set"),expression:"__('Add Set')"}],staticClass:"btn-round group bard-add-set-button",style:{transform:`translateY(${N}px)`},attrs:{type:"button","aria-label":$.__("Add Set")},on:{click:$.addSetButtonClicked}},[I("svg-icon",{staticClass:"w-3 h-3 text-gray-800 dark:text-dark-175 group-hover:text-black dark:group-hover:dark-text-100",attrs:{name:"micro/plus"}})],1)]},proxy:!0}],null,!0)}):$._e()]}}],null,!1,4134713302)}):$._e(),$.initError?I("div",{staticClass:"bard-error",domProps:{innerHTML:$._s($.initError)}}):$._e(),I("editor-content",{directives:[{name:"show",rawName:"v-show",value:!$.showSource,expression:"!showSource"}],attrs:{editor:$.editor,id:$.fieldId}}),$.showSource?I("bard-source",{attrs:{html:$.htmlWithReplacedLinks}}):$._e()],1),$.editor&&($.config.reading_time||$.config.character_limit||$.config.word_count)?I("div",{staticClass:"bard-footer-toolbar"},[$.config.reading_time?I("div",[$._v($._s($.readingTime)+" "+$._s($.__("Reading Time")))]):I("div"),$.config.character_limit||$.config.word_count?I("div",{domProps:{textContent:$._s($.characterAndWordCountText)}}):$._e()]):$._e()],1)])])])},_sfc_staticRenderFns$25=[],__component__$26=normalizeComponent$2(_sfc_main$25,_sfc_render$25,_sfc_staticRenderFns$25,!1,null,null,null,null);const BardFieldtype=__component__$26.exports,_sfc_main$24={mixins:[Fieldtype],data(){return{data:this.value,buttons:[],autoBindChangeWatcher:!1}},mounted(){this.initButtons(),this.initSortable()},watch:{buttons:{deep:!0,handler(M){const $=M.filter(I=>I.enabled).map(I=>I.name);JSON.stringify($)!==JSON.stringify(this.data)&&(this.data=$)}},data(M){this.update(M)}},methods:{initButtons(){let M=availableButtons$1();this.$bard.buttonCallbacks.map(j=>{let q=j(M,Y=>Y);q&&(M=M.concat(Array.isArray(q)?q:[q]))}),M=addButtonHtml(M);let $=M.map(j=>(j.enabled=this.data.includes(j.name),j)),I=M.map(j=>j.name),N=this.data.filter(j=>!I.includes(j));N.length&&(N=N.map(j=>({name:j,text:j,html:`<span>${j.charAt(0).toUpperCase()}</span>`,enabled:!0})),$=[...$,...N]);let B=$.filter(j=>j.enabled).map(j=>j.name);if(JSON.stringify(B)!==JSON.stringify(this.data)){$=this.data.map(U=>_.findWhere($,{name:U}));let j=M.filter(U=>!this.data.includes(U.name));$=[...$,...j]}this.buttons=$},initSortable(){new draggable_bundleExports.Sortable(this.$refs.buttons,{draggable:"button",mirror:{constrainDimensions:!0,xAxis:!0,appendTo:"body"},swapAnimation:{horizontal:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation],distance:10}).on("sortable:stop",M=>{this.buttons.splice(M.newIndex,0,this.buttons.splice(M.oldIndex,1)[0])}).on("mirror:create",M=>M.cancel())},toggleButton(M){const $=_.findWhere(this.buttons,{name:M});$.enabled=!$.enabled},enabled(M){return _.findWhere(this.buttons,{name:M}).enabled}}};var _sfc_render$24=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative"},[I("div",{ref:"buttons",staticClass:"bard-fixed-toolbar dark bard-toolbar-setting"},$._l($.buttons,function(N){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:N.text,expression:"button.text"}],key:N.name,class:{active:$.enabled(N.name)},on:{click:function(B){return $.toggleButton(N.name)}}},[N.svg?I("svg-icon",{attrs:{name:N.svg}}):$._e(),N.html?I("div",{staticClass:"flex items-center",domProps:{innerHTML:$._s(N.html)}}):$._e()],1)}),0)])},_sfc_staticRenderFns$24=[],__component__$25=normalizeComponent$2(_sfc_main$24,_sfc_render$24,_sfc_staticRenderFns$24,!1,null,null,null,null);const BardButtonsSettingFieldtype=__component__$25.exports,_sfc_main$23={mixins:[Fieldtype,HasInputOptions],data(){return{resizeObserver:null}},mounted(){this.setupResizeObserver()},beforeDestroy(){this.resizeObserver.disconnect()},computed:{options(){return this.normalizeInputOptions(this.meta.options||this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview)){var M=_.findWhere(this.options,{value:this.value});return M?M.label:this.value}}},methods:{updateSelectedOption(M){this.update(this.value==M&&this.config.clearable?null:M)},setupResizeObserver(){this.resizeObserver=new index$1(()=>{this.handleWrappingOfNode(this.$refs.buttonGroup)}),this.resizeObserver.observe(this.$refs.buttonGroup)},handleWrappingOfNode(M){const $=M.lastChild;$&&(M.classList.remove("btn-vertical"),$.offsetTop>M.clientTop&&M.classList.add("btn-vertical"))},focus(){this.$refs.button[0].focus()}}};var _sfc_render$23=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"button-group-fieldtype-wrapper",class:{"inline-mode":$.config.inline}},[I("div",{ref:"buttonGroup",staticClass:"btn-group"},$._l($.options,function(N,B){return I("button",{key:B,ref:"button",refInFor:!0,staticClass:"btn px-4",class:{active:$.value==N.value},attrs:{type:"button",name:$.name,value:N.value,disabled:$.isReadOnly},domProps:{textContent:$._s(N.label||N.value)},on:{click:function(j){return $.updateSelectedOption(N.value)}}})}),0)])},_sfc_staticRenderFns$23=[],__component__$24=normalizeComponent$2(_sfc_main$23,_sfc_render$23,_sfc_staticRenderFns$23,!1,null,null,null,null);const ButtonGroupFieldtype=__component__$24.exports,_sfc_main$22={mixins:[Fieldtype,HasInputOptions],data(){return{values:this.value||[]}},computed:{options(){return this.normalizeInputOptions(this.meta.options||this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.values.map(M=>{const $=_.findWhere(this.options,{value:M});return $?$.label:M}).join(", ")}},watch:{values(M,$){M=this.sortValues(M),JSON.stringify(M)!==JSON.stringify($)&&this.update(M)},value(M){this.values=this.sortValues(M)}},methods:{focus(){this.$refs.checkbox[0].focus()},sortValues(M){return M?this.options.filter($=>M.includes($.value)).map($=>$.value):[]}}};var _sfc_render$22=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"checkboxes-fieldtype-wrapper",class:{"inline-mode":$.config.inline}},$._l($.options,function(N,B){return I("div",{key:B,staticClass:"option"},[I("label",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.values,expression:"values"}],ref:"checkbox",refInFor:!0,attrs:{type:"checkbox",name:$.name+"[]",disabled:$.isReadOnly},domProps:{value:N.value,checked:Array.isArray($.values)?$._i($.values,N.value)>-1:$.values},on:{change:function(j){var U=$.values,q=j.target,Y=!!q.checked;if(Array.isArray(U)){var K=N.value,G=$._i(U,K);q.checked?G<0&&($.values=U.concat([K])):G>-1&&($.values=U.slice(0,G).concat(U.slice(G+1)))}else $.values=Y}}}),$._v(" "+$._s(N.label||N.value)+" ")])])}),0)},_sfc_staticRenderFns$22=[],__component__$23=normalizeComponent$2(_sfc_main$22,_sfc_render$22,_sfc_staticRenderFns$22,!1,null,null,null,null);const CheckboxesFieldtype=__component__$23.exports;var codemirror={exports:{}};(function(M,$){(function(I,N){M.exports=N()})(commonjsGlobal,function(){var I=navigator.userAgent,N=navigator.platform,B=/gecko\/\d/i.test(I),j=/MSIE \d/.test(I),U=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),q=/Edge\/(\d+)/.exec(I),Y=j||U||q,K=Y&&(j?document.documentMode||6:+(q||U)[1]),G=!q&&/WebKit\//.test(I),J=G&&/Qt\/\d+\.\d+/.test(I),Z=!q&&/Chrome\/(\d+)/.exec(I),ee=Z&&+Z[1],te=/Opera\//.test(I),se=/Apple Computer/.test(navigator.vendor),re=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),ne=/PhantomJS/.test(I),ce=se&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),me=/Android/.test(I),ue=ce||me||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),_e=ce||/Mac/.test(N),fe=/\bCrOS\b/.test(I),ge=/win/i.test(N),ye=te&&I.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(te=!1,G=!0);var xe=_e&&(J||te&&(ye==null||ye<12.11)),le=B||Y&&K>=9;function be(X){return new RegExp("(^|\\s)"+X+"(?:$|\\s)\\s*")}var ve=function(X,Q){var ae=X.className,oe=be(Q).exec(ae);if(oe){var de=ae.slice(oe.index+oe[0].length);X.className=ae.slice(0,oe.index)+(de?oe[1]+de:"")}};function we(X){for(var Q=X.childNodes.length;Q>0;--Q)X.removeChild(X.firstChild);return X}function Ae(X,Q){return we(X).appendChild(Q)}function Se(X,Q,ae,oe){var de=document.createElement(X);if(ae&&(de.className=ae),oe&&(de.style.cssText=oe),typeof Q=="string")de.appendChild(document.createTextNode(Q));else if(Q)for(var Ee=0;Ee<Q.length;++Ee)de.appendChild(Q[Ee]);return de}function Pe(X,Q,ae,oe){var de=Se(X,Q,ae,oe);return de.setAttribute("role","presentation"),de}var Me;document.createRange?Me=function(X,Q,ae,oe){var de=document.createRange();return de.setEnd(oe||X,ae),de.setStart(X,Q),de}:Me=function(X,Q,ae){var oe=document.body.createTextRange();try{oe.moveToElementText(X.parentNode)}catch{return oe}return oe.collapse(!0),oe.moveEnd("character",ae),oe.moveStart("character",Q),oe};function Be(X,Q){if(Q.nodeType==3&&(Q=Q.parentNode),X.contains)return X.contains(Q);do if(Q.nodeType==11&&(Q=Q.host),Q==X)return!0;while(Q=Q.parentNode)}function ze(X){var Q;try{Q=X.activeElement}catch{Q=X.body||null}for(;Q&&Q.shadowRoot&&Q.shadowRoot.activeElement;)Q=Q.shadowRoot.activeElement;return Q}function Ze(X,Q){var ae=X.className;be(Q).test(ae)||(X.className+=(ae?" ":"")+Q)}function ft(X,Q){for(var ae=X.split(" "),oe=0;oe<ae.length;oe++)ae[oe]&&!be(ae[oe]).test(Q)&&(Q+=" "+ae[oe]);return Q}var Ye=function(X){X.select()};ce?Ye=function(X){X.selectionStart=0,X.selectionEnd=X.value.length}:Y&&(Ye=function(X){try{X.select()}catch{}});function Ve(X){return X.display.wrapper.ownerDocument}function Dt(X){return Ve(X).defaultView}function Nt(X){var Q=Array.prototype.slice.call(arguments,1);return function(){return X.apply(null,Q)}}function Vt(X,Q,ae){Q||(Q={});for(var oe in X)X.hasOwnProperty(oe)&&(ae!==!1||!Q.hasOwnProperty(oe))&&(Q[oe]=X[oe]);return Q}function Wt(X,Q,ae,oe,de){Q==null&&(Q=X.search(/[^\s\u00a0]/),Q==-1&&(Q=X.length));for(var Ee=oe||0,Ie=de||0;;){var He=X.indexOf(" ",Ee);if(He<0||He>=Q)return Ie+(Q-Ee);Ie+=He-Ee,Ie+=ae-Ie%ae,Ee=He+1}}var Gt=function(){this.id=null,this.f=null,this.time=0,this.handler=Nt(this.onTimeout,this)};Gt.prototype.onTimeout=function(X){X.id=0,X.time<=+new Date?X.f():setTimeout(X.handler,X.time-+new Date)},Gt.prototype.set=function(X,Q){this.f=Q;var ae=+new Date+X;(!this.id||ae<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,X),this.time=ae)};function tn(X,Q){for(var ae=0;ae<X.length;++ae)if(X[ae]==Q)return ae;return-1}var Qt=50,En={toString:function(){return"CodeMirror.Pass"}},kn={scroll:!1},Gn={origin:"*mouse"},An={origin:"+move"};function jn(X,Q,ae){for(var oe=0,de=0;;){var Ee=X.indexOf(" ",oe);Ee==-1&&(Ee=X.length);var Ie=Ee-oe;if(Ee==X.length||de+Ie>=Q)return oe+Math.min(Ie,Q-de);if(de+=Ee-oe,de+=ae-de%ae,oe=Ee+1,de>=Q)return oe}}var Mn=[""];function Ln(X){for(;Mn.length<=X;)Mn.push(Et(Mn)+" ");return Mn[X]}function Et(X){return X[X.length-1]}function We(X,Q){for(var ae=[],oe=0;oe<X.length;oe++)ae[oe]=Q(X[oe],oe);return ae}function xt(X,Q,ae){for(var oe=0,de=ae(Q);oe<X.length&&ae(X[oe])<=de;)oe++;X.splice(oe,0,Q)}function Ue(){}function Oe(X,Q){var ae;return Object.create?ae=Object.create(X):(Ue.prototype=X,ae=new Ue),Q&&Vt(Q,ae),ae}var ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $e(X){return/\w/.test(X)||X>""&&(X.toUpperCase()!=X.toLowerCase()||ke.test(X))}function Ge(X,Q){return Q?Q.source.indexOf("\\w")>-1&&$e(X)?!0:Q.test(X):$e(X)}function rt(X){for(var Q in X)if(X.hasOwnProperty(Q)&&X[Q])return!1;return!0}var ut=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ct(X){return X.charCodeAt(0)>=768&&ut.test(X)}function it(X,Q,ae){for(;(ae<0?Q>0:Q<X.length)&&ct(X.charAt(Q));)Q+=ae;return Q}function ot(X,Q,ae){for(var oe=Q>ae?-1:1;;){if(Q==ae)return Q;var de=(Q+ae)/2,Ee=oe<0?Math.ceil(de):Math.floor(de);if(Ee==Q)return X(Ee)?Q:ae;X(Ee)?ae=Ee:Q=Ee+oe}}function Ot(X,Q,ae,oe){if(!X)return oe(Q,ae,"ltr",0);for(var de=!1,Ee=0;Ee<X.length;++Ee){var Ie=X[Ee];(Ie.from<ae&&Ie.to>Q||Q==ae&&Ie.to==Q)&&(oe(Math.max(Ie.from,Q),Math.min(Ie.to,ae),Ie.level==1?"rtl":"ltr",Ee),de=!0)}de||oe(Q,ae,"ltr")}var dn=null;function Fn(X,Q,ae){var oe;dn=null;for(var de=0;de<X.length;++de){var Ee=X[de];if(Ee.from<Q&&Ee.to>Q)return de;Ee.to==Q&&(Ee.from!=Ee.to&&ae=="before"?oe=de:dn=de),Ee.from==Q&&(Ee.from!=Ee.to&&ae!="before"?oe=de:dn=de)}return oe??dn}var Zt=function(){var X="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",Q="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ae(tt){return tt<=247?X.charAt(tt):1424<=tt&&tt<=1524?"R":1536<=tt&&tt<=1785?Q.charAt(tt-1536):1774<=tt&&tt<=2220?"r":8192<=tt&&tt<=8203?"w":tt==8204?"b":"L"}var oe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,de=/[stwN]/,Ee=/[LRr]/,Ie=/[Lb1n]/,He=/[1n]/;function Xe(tt,At,It){this.level=tt,this.from=At,this.to=It}return function(tt,At){var It=At=="ltr"?"L":"R";if(tt.length==0||At=="ltr"&&!oe.test(tt))return!1;for(var rn=tt.length,Jt=[],$n=0;$n<rn;++$n)Jt.push(ae(tt.charCodeAt($n)));for(var Nn=0,qn=It;Nn<rn;++Nn){var nr=Jt[Nn];nr=="m"?Jt[Nn]=qn:qn=nr}for(var dr=0,rr=It;dr<rn;++dr){var gr=Jt[dr];gr=="1"&&rr=="r"?Jt[dr]="n":Ee.test(gr)&&(rr=gr,gr=="r"&&(Jt[dr]="R"))}for(var Or=1,Sr=Jt[0];Or<rn-1;++Or){var Vr=Jt[Or];Vr=="+"&&Sr=="1"&&Jt[Or+1]=="1"?Jt[Or]="1":Vr==","&&Sr==Jt[Or+1]&&(Sr=="1"||Sr=="n")&&(Jt[Or]=Sr),Sr=Vr}for(var ui=0;ui<rn;++ui){var zi=Jt[ui];if(zi==",")Jt[ui]="N";else if(zi=="%"){var xi=void 0;for(xi=ui+1;xi<rn&&Jt[xi]=="%";++xi);for(var ms=ui&&Jt[ui-1]=="!"||xi<rn&&Jt[xi]=="1"?"1":"N",ss=ui;ss<xi;++ss)Jt[ss]=ms;ui=xi-1}}for(var Ai=0,ls=It;Ai<rn;++Ai){var Ui=Jt[Ai];ls=="L"&&Ui=="1"?Jt[Ai]="L":Ee.test(Ui)&&(ls=Ui)}for(var Ni=0;Ni<rn;++Ni)if(de.test(Jt[Ni])){var Ri=void 0;for(Ri=Ni+1;Ri<rn&&de.test(Jt[Ri]);++Ri);for(var Si=(Ni?Jt[Ni-1]:It)=="L",cs=(Ri<rn?Jt[Ri]:It)=="L",$a=Si==cs?Si?"L":"R":It,Po=Ni;Po<Ri;++Po)Jt[Po]=$a;Ni=Ri-1}for(var Ki=[],Xs,ji=0;ji<rn;)if(Ie.test(Jt[ji])){var _c=ji;for(++ji;ji<rn&&Ie.test(Jt[ji]);++ji);Ki.push(new Xe(0,_c,ji))}else{var uo=ji,Zo=Ki.length,Qo=At=="rtl"?1:0;for(++ji;ji<rn&&Jt[ji]!="L";++ji);for(var Xi=uo;Xi<ji;)if(He.test(Jt[Xi])){uo<Xi&&(Ki.splice(Zo,0,new Xe(1,uo,Xi)),Zo+=Qo);var Ta=Xi;for(++Xi;Xi<ji&&He.test(Jt[Xi]);++Xi);Ki.splice(Zo,0,new Xe(2,Ta,Xi)),Zo+=Qo,uo=Xi}else++Xi;uo<ji&&Ki.splice(Zo,0,new Xe(1,uo,ji))}return At=="ltr"&&(Ki[0].level==1&&(Xs=tt.match(/^\s+/))&&(Ki[0].from=Xs[0].length,Ki.unshift(new Xe(0,0,Xs[0].length))),Et(Ki).level==1&&(Xs=tt.match(/\s+$/))&&(Et(Ki).to-=Xs[0].length,Ki.push(new Xe(0,rn-Xs[0].length,rn)))),At=="rtl"?Ki.reverse():Ki}}();function vn(X,Q){var ae=X.order;return ae==null&&(ae=X.order=Zt(X.text,Q)),ae}var lt=[],pt=function(X,Q,ae){if(X.addEventListener)X.addEventListener(Q,ae,!1);else if(X.attachEvent)X.attachEvent("on"+Q,ae);else{var oe=X._handlers||(X._handlers={});oe[Q]=(oe[Q]||lt).concat(ae)}};function Pt(X,Q){return X._handlers&&X._handlers[Q]||lt}function qt(X,Q,ae){if(X.removeEventListener)X.removeEventListener(Q,ae,!1);else if(X.detachEvent)X.detachEvent("on"+Q,ae);else{var oe=X._handlers,de=oe&&oe[Q];if(de){var Ee=tn(de,ae);Ee>-1&&(oe[Q]=de.slice(0,Ee).concat(de.slice(Ee+1)))}}}function Ht(X,Q){var ae=Pt(X,Q);if(ae.length)for(var oe=Array.prototype.slice.call(arguments,2),de=0;de<ae.length;++de)ae[de].apply(null,oe)}function mn(X,Q,ae){return typeof Q=="string"&&(Q={type:Q,preventDefault:function(){this.defaultPrevented=!0}}),Ht(X,ae||Q.type,X,Q),fn(Q)||Q.codemirrorIgnore}function Yn(X){var Q=X._handlers&&X._handlers.cursorActivity;if(Q)for(var ae=X.curOp.cursorActivityHandlers||(X.curOp.cursorActivityHandlers=[]),oe=0;oe<Q.length;++oe)tn(ae,Q[oe])==-1&&ae.push(Q[oe])}function Ct(X,Q){return Pt(X,Q).length>0}function ht(X){X.prototype.on=function(Q,ae){pt(this,Q,ae)},X.prototype.off=function(Q,ae){qt(this,Q,ae)}}function Tt(X){X.preventDefault?X.preventDefault():X.returnValue=!1}function Lt(X){X.stopPropagation?X.stopPropagation():X.cancelBubble=!0}function fn(X){return X.defaultPrevented!=null?X.defaultPrevented:X.returnValue==!1}function hn(X){Tt(X),Lt(X)}function wn(X){return X.target||X.srcElement}function cr(X){var Q=X.which;return Q==null&&(X.button&1?Q=1:X.button&2?Q=3:X.button&4&&(Q=2)),_e&&X.ctrlKey&&Q==1&&(Q=3),Q}var zn=function(){if(Y&&K<9)return!1;var X=Se("div");return"draggable"in X||"dragDrop"in X}(),ir;function Ir(X){if(ir==null){var Q=Se("span","");Ae(X,Se("span",[Q,document.createTextNode("x")])),X.firstChild.offsetHeight!=0&&(ir=Q.offsetWidth<=1&&Q.offsetHeight>2&&!(Y&&K<8))}var ae=ir?Se("span",""):Se("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return ae.setAttribute("cm-text",""),ae}var Er;function Dr(X){if(Er!=null)return Er;var Q=Ae(X,document.createTextNode("AخA")),ae=Me(Q,0,1).getBoundingClientRect(),oe=Me(Q,1,2).getBoundingClientRect();return we(X),!ae||ae.left==ae.right?!1:Er=oe.right-ae.right<3}var Ur=` b`.split(/\n/).length!=3?function(X){for(var Q=0,ae=[],oe=X.length;Q<=oe;){var de=X.indexOf(` `,Q);de==-1&&(de=X.length);var Ee=X.slice(Q,X.charAt(de-1)=="\r"?de-1:de),Ie=Ee.indexOf("\r");Ie!=-1?(ae.push(Ee.slice(0,Ie)),Q+=Ie+1):(ae.push(Ee),Q=de+1)}return ae}:function(X){return X.split(/\r\n?|\n/)},Ke=window.getSelection?function(X){try{return X.selectionStart!=X.selectionEnd}catch{return!1}}:function(X){var Q;try{Q=X.ownerDocument.selection.createRange()}catch{}return!Q||Q.parentElement()!=X?!1:Q.compareEndPoints("StartToEnd",Q)!=0},mt=function(){var X=Se("div");return"oncopy"in X?!0:(X.setAttribute("oncopy","return;"),typeof X.oncopy=="function")}(),dt=null;function Ne(X){if(dt!=null)return dt;var Q=Ae(X,Se("span","x")),ae=Q.getBoundingClientRect(),oe=Me(Q,0,1).getBoundingClientRect();return dt=Math.abs(ae.left-oe.left)>1}var _t={},Xt={};function sn(X,Q){arguments.length>2&&(Q.dependencies=Array.prototype.slice.call(arguments,2)),_t[X]=Q}function Tn(X,Q){Xt[X]=Q}function In(X){if(typeof X=="string"&&Xt.hasOwnProperty(X))X=Xt[X];else if(X&&typeof X.name=="string"&&Xt.hasOwnProperty(X.name)){var Q=Xt[X.name];typeof Q=="string"&&(Q={name:Q}),X=Oe(Q,X),X.name=Q.name}else{if(typeof X=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(X))return In("application/xml");if(typeof X=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(X))return In("application/json")}return typeof X=="string"?{name:X}:X||{name:"null"}}function Qn(X,Q){Q=In(Q);var ae=_t[Q.name];if(!ae)return Qn(X,"text/plain");var oe=ae(X,Q);if(Xn.hasOwnProperty(Q.name)){var de=Xn[Q.name];for(var Ee in de)de.hasOwnProperty(Ee)&&(oe.hasOwnProperty(Ee)&&(oe["_"+Ee]=oe[Ee]),oe[Ee]=de[Ee])}if(oe.name=Q.name,Q.helperType&&(oe.helperType=Q.helperType),Q.modeProps)for(var Ie in Q.modeProps)oe[Ie]=Q.modeProps[Ie];return oe}var Xn={};function Rr(X,Q){var ae=Xn.hasOwnProperty(X)?Xn[X]:Xn[X]={};Vt(Q,ae)}function tr(X,Q){if(Q===!0)return Q;if(X.copyState)return X.copyState(Q);var ae={};for(var oe in Q){var de=Q[oe];de instanceof Array&&(de=de.concat([])),ae[oe]=de}return ae}function fr(X,Q){for(var ae;X.innerMode&&(ae=X.innerMode(Q),!(!ae||ae.mode==X));)Q=ae.state,X=ae.mode;return ae||{mode:X,state:Q}}function kr(X,Q,ae){return X.startState?X.startState(Q,ae):!0}var sr=function(X,Q,ae){this.pos=this.start=0,this.string=X,this.tabSize=Q||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ae};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.prototype.eat=function(X){var Q=this.string.charAt(this.pos),ae;if(typeof X=="string"?ae=Q==X:ae=Q&&(X.test?X.test(Q):X(Q)),ae)return++this.pos,Q},sr.prototype.eatWhile=function(X){for(var Q=this.pos;this.eat(X););return this.pos>Q},sr.prototype.eatSpace=function(){for(var X=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>X},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(X){var Q=this.string.indexOf(X,this.pos);if(Q>-1)return this.pos=Q,!0},sr.prototype.backUp=function(X){this.pos-=X},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Wt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Wt(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Wt(this.string,null,this.tabSize)-(this.lineStart?Wt(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(X,Q,ae){if(typeof X=="string"){var oe=function(Ie){return ae?Ie.toLowerCase():Ie},de=this.string.substr(this.pos,X.length);if(oe(de)==oe(X))return Q!==!1&&(this.pos+=X.length),!0}else{var Ee=this.string.slice(this.pos).match(X);return Ee&&Ee.index>0?null:(Ee&&Q!==!1&&(this.pos+=Ee[0].length),Ee)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(X,Q){this.lineStart+=X;try{return Q()}finally{this.lineStart-=X}},sr.prototype.lookAhead=function(X){var Q=this.lineOracle;return Q&&Q.lookAhead(X)},sr.prototype.baseToken=function(){var X=this.lineOracle;return X&&X.baseToken(this.pos)};function Pn(X,Q){if(Q-=X.first,Q<0||Q>=X.size)throw new Error("There is no line "+(Q+X.first)+" in the document.");for(var ae=X;!ae.lines;)for(var oe=0;;++oe){var de=ae.children[oe],Ee=de.chunkSize();if(Q<Ee){ae=de;break}Q-=Ee}return ae.lines[Q]}function mr(X,Q,ae){var oe=[],de=Q.line;return X.iter(Q.line,ae.line+1,function(Ee){var Ie=Ee.text;de==ae.line&&(Ie=Ie.slice(0,ae.ch)),de==Q.line&&(Ie=Ie.slice(Q.ch)),oe.push(Ie),++de}),oe}function br(X,Q,ae){var oe=[];return X.iter(Q,ae,function(de){oe.push(de.text)}),oe}function hr(X,Q){var ae=Q-X.height;if(ae)for(var oe=X;oe;oe=oe.parent)oe.height+=ae}function Bn(X){if(X.parent==null)return null;for(var Q=X.parent,ae=tn(Q.lines,X),oe=Q.parent;oe;Q=oe,oe=oe.parent)for(var de=0;oe.children[de]!=Q;++de)ae+=oe.children[de].chunkSize();return ae+Q.first}function er(X,Q){var ae=X.first;e:do{for(var oe=0;oe<X.children.length;++oe){var de=X.children[oe],Ee=de.height;if(Q<Ee){X=de;continue e}Q-=Ee,ae+=de.chunkSize()}return ae}while(!X.lines);for(var Ie=0;Ie<X.lines.length;++Ie){var He=X.lines[Ie],Xe=He.height;if(Q<Xe)break;Q-=Xe}return ae+Ie}function Qe(X,Q){return Q>=X.first&&Q<X.first+X.size}function bt(X,Q){return String(X.lineNumberFormatter(Q+X.firstLineNumber))}function wt(X,Q,ae){if(ae===void 0&&(ae=null),!(this instanceof wt))return new wt(X,Q,ae);this.line=X,this.ch=Q,this.sticky=ae}function Bt(X,Q){return X.line-Q.line||X.ch-Q.ch}function Yt(X,Q){return X.sticky==Q.sticky&&Bt(X,Q)==0}function Mt(X){return wt(X.line,X.ch)}function en(X,Q){return Bt(X,Q)<0?Q:X}function pn(X,Q){return Bt(X,Q)<0?X:Q}function Sn(X,Q){return Math.max(X.first,Math.min(Q,X.first+X.size-1))}function cn(X,Q){if(Q.line<X.first)return wt(X.first,0);var ae=X.first+X.size-1;return Q.line>ae?wt(ae,Pn(X,ae).text.length):ur(Q,Pn(X,Q.line).text.length)}function ur(X,Q){var ae=X.ch;return ae==null||ae>Q?wt(X.line,Q):ae<0?wt(X.line,0):X}function or(X,Q){for(var ae=[],oe=0;oe<Q.length;oe++)ae[oe]=cn(X,Q[oe]);return ae}var nt=function(X,Q){this.state=X,this.lookAhead=Q},gt=function(X,Q,ae,oe){this.state=Q,this.doc=X,this.line=ae,this.maxLookAhead=oe||0,this.baseTokens=null,this.baseTokenPos=1};gt.prototype.lookAhead=function(X){var Q=this.doc.getLine(this.line+X);return Q!=null&&X>this.maxLookAhead&&(this.maxLookAhead=X),Q},gt.prototype.baseToken=function(X){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=X;)this.baseTokenPos+=2;var Q=this.baseTokens[this.baseTokenPos+1];return{type:Q&&Q.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-X}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(X,Q,ae){return Q instanceof nt?new gt(X,tr(X.mode,Q.state),ae,Q.lookAhead):new gt(X,tr(X.mode,Q),ae)},gt.prototype.save=function(X){var Q=X!==!1?tr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new nt(Q,this.maxLookAhead):Q};function et(X,Q,ae,oe){var de=[X.state.modeGen],Ee={};Qr(X,Q.text,X.doc.mode,ae,function(tt,At){return de.push(tt,At)},Ee,oe);for(var Ie=ae.state,He=function(tt){ae.baseTokens=de;var At=X.state.overlays[tt],It=1,rn=0;ae.state=!0,Qr(X,Q.text,At.mode,ae,function(Jt,$n){for(var Nn=It;rn<Jt;){var qn=de[It];qn>Jt&&de.splice(It,1,Jt,de[It+1],qn),It+=2,rn=Math.min(Jt,qn)}if($n)if(At.opaque)de.splice(Nn,It-Nn,Jt,"overlay "+$n),It=Nn+2;else for(;Nn<It;Nn+=2){var nr=de[Nn+1];de[Nn+1]=(nr?nr+" ":"")+"overlay "+$n}},Ee),ae.state=Ie,ae.baseTokens=null,ae.baseTokenPos=1},Xe=0;Xe<X.state.overlays.length;++Xe)He(Xe);return{styles:de,classes:Ee.bgClass||Ee.textClass?Ee:null}}function nn(X,Q,ae){if(!Q.styles||Q.styles[0]!=X.state.modeGen){var oe=xn(X,Bn(Q)),de=Q.text.length>X.options.maxHighlightLength&&tr(X.doc.mode,oe.state),Ee=et(X,Q,oe);de&&(oe.state=de),Q.stateAfter=oe.save(!de),Q.styles=Ee.styles,Ee.classes?Q.styleClasses=Ee.classes:Q.styleClasses&&(Q.styleClasses=null),ae===X.doc.highlightFrontier&&(X.doc.modeFrontier=Math.max(X.doc.modeFrontier,++X.doc.highlightFrontier))}return Q.styles}function xn(X,Q,ae){var oe=X.doc,de=X.display;if(!oe.mode.startState)return new gt(oe,!0,Q);var Ee=ni(X,Q,ae),Ie=Ee>oe.first&&Pn(oe,Ee-1).stateAfter,He=Ie?gt.fromSaved(oe,Ie,Ee):new gt(oe,kr(oe.mode),Ee);return oe.iter(Ee,Q,function(Xe){Un(X,Xe.text,He);var tt=He.line;Xe.stateAfter=tt==Q-1||tt%5==0||tt>=de.viewFrom&&tt<de.viewTo?He.save():null,He.nextLine()}),ae&&(oe.modeFrontier=He.line),He}function Un(X,Q,ae,oe){var de=X.doc.mode,Ee=new sr(Q,X.options.tabSize,ae);for(Ee.start=Ee.pos=oe||0,Q==""&&Jn(de,ae.state);!Ee.eol();)_r(de,Ee,ae.state),Ee.start=Ee.pos}function Jn(X,Q){if(X.blankLine)return X.blankLine(Q);if(X.innerMode){var ae=fr(X,Q);if(ae.mode.blankLine)return ae.mode.blankLine(ae.state)}}function _r(X,Q,ae,oe){for(var de=0;de<10;de++){oe&&(oe[0]=fr(X,ae).mode);var Ee=X.token(Q,ae);if(Q.pos>Q.start)return Ee}throw new Error("Mode "+X.name+" failed to advance stream.")}var xr=function(X,Q,ae){this.start=X.start,this.end=X.pos,this.string=X.current(),this.type=Q||null,this.state=ae};function Nr(X,Q,ae,oe){var de=X.doc,Ee=de.mode,Ie;Q=cn(de,Q);var He=Pn(de,Q.line),Xe=xn(X,Q.line,ae),tt=new sr(He.text,X.options.tabSize,Xe),At;for(oe&&(At=[]);(oe||tt.pos<Q.ch)&&!tt.eol();)tt.start=tt.pos,Ie=_r(Ee,tt,Xe.state),oe&&At.push(new xr(tt,Ie,tr(de.mode,Xe.state)));return oe?At:new xr(tt,Ie,Xe.state)}function Mr(X,Q){if(X)for(;;){var ae=X.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ae)break;X=X.slice(0,ae.index)+X.slice(ae.index+ae[0].length);var oe=ae[1]?"bgClass":"textClass";Q[oe]==null?Q[oe]=ae[2]:new RegExp("(?:^|\\s)"+ae[2]+"(?:$|\\s)").test(Q[oe])||(Q[oe]+=" "+ae[2])}return X}function Qr(X,Q,ae,oe,de,Ee,Ie){var He=ae.flattenSpans;He==null&&(He=X.options.flattenSpans);var Xe=0,tt=null,At=new sr(Q,X.options.tabSize,oe),It,rn=X.options.addModeClass&&[null];for(Q==""&&Mr(Jn(ae,oe.state),Ee);!At.eol();){if(At.pos>X.options.maxHighlightLength?(He=!1,Ie&&Un(X,Q,oe,At.pos),At.pos=Q.length,It=null):It=Mr(_r(ae,At,oe.state,rn),Ee),rn){var Jt=rn[0].name;Jt&&(It="m-"+(It?Jt+" "+It:Jt))}if(!He||tt!=It){for(;Xe<At.start;)Xe=Math.min(At.start,Xe+5e3),de(Xe,tt);tt=It}At.start=At.pos}for(;Xe<At.pos;){var $n=Math.min(At.pos,Xe+5e3);de($n,tt),Xe=$n}}function ni(X,Q,ae){for(var oe,de,Ee=X.doc,Ie=ae?-1:Q-(X.doc.mode.innerMode?1e3:100),He=Q;He>Ie;--He){if(He<=Ee.first)return Ee.first;var Xe=Pn(Ee,He-1),tt=Xe.stateAfter;if(tt&&(!ae||He+(tt instanceof nt?tt.lookAhead:0)<=Ee.modeFrontier))return He;var At=Wt(Xe.text,null,X.options.tabSize);(de==null||oe>At)&&(de=He-1,oe=At)}return de}function Jr(X,Q){if(X.modeFrontier=Math.min(X.modeFrontier,Q),!(X.highlightFrontier<Q-10)){for(var ae=X.first,oe=Q-1;oe>ae;oe--){var de=Pn(X,oe).stateAfter;if(de&&(!(de instanceof nt)||oe+de.lookAhead<Q)){ae=oe+1;break}}X.highlightFrontier=Math.min(X.highlightFrontier,ae)}}var ri=!1,Yr=!1;function ti(){ri=!0}function gi(){Yr=!0}function Di(X,Q,ae){this.marker=X,this.from=Q,this.to=ae}function Zi(X,Q){if(X)for(var ae=0;ae<X.length;++ae){var oe=X[ae];if(oe.marker==Q)return oe}}function Io(X,Q){for(var ae,oe=0;oe<X.length;++oe)X[oe]!=Q&&(ae||(ae=[])).push(X[oe]);return ae}function No(X,Q,ae){var oe=ae&&window.WeakSet&&(ae.markedSpans||(ae.markedSpans=new WeakSet));oe&&X.markedSpans&&oe.has(X.markedSpans)?X.markedSpans.push(Q):(X.markedSpans=X.markedSpans?X.markedSpans.concat([Q]):[Q],oe&&oe.add(X.markedSpans)),Q.marker.attachLine(X)}function Lo(X,Q,ae){var oe;if(X)for(var de=0;de<X.length;++de){var Ee=X[de],Ie=Ee.marker,He=Ee.from==null||(Ie.inclusiveLeft?Ee.from<=Q:Ee.from<Q);if(He||Ee.from==Q&&Ie.type=="bookmark"&&(!ae||!Ee.marker.insertLeft)){var Xe=Ee.to==null||(Ie.inclusiveRight?Ee.to>=Q:Ee.to>Q);(oe||(oe=[])).push(new Di(Ie,Ee.from,Xe?null:Ee.to))}}return oe}function Fo(X,Q,ae){var oe;if(X)for(var de=0;de<X.length;++de){var Ee=X[de],Ie=Ee.marker,He=Ee.to==null||(Ie.inclusiveRight?Ee.to>=Q:Ee.to>Q);if(He||Ee.from==Q&&Ie.type=="bookmark"&&(!ae||Ee.marker.insertLeft)){var Xe=Ee.from==null||(Ie.inclusiveLeft?Ee.from<=Q:Ee.from<Q);(oe||(oe=[])).push(new Di(Ie,Xe?null:Ee.from-Q,Ee.to==null?null:Ee.to-Q))}}return oe}function Qi(X,Q){if(Q.full)return null;var ae=Qe(X,Q.from.line)&&Pn(X,Q.from.line).markedSpans,oe=Qe(X,Q.to.line)&&Pn(X,Q.to.line).markedSpans;if(!ae&&!oe)return null;var de=Q.from.ch,Ee=Q.to.ch,Ie=Bt(Q.from,Q.to)==0,He=Lo(ae,de,Ie),Xe=Fo(oe,Ee,Ie),tt=Q.text.length==1,At=Et(Q.text).length+(tt?de:0);if(He)for(var It=0;It<He.length;++It){var rn=He[It];if(rn.to==null){var Jt=Zi(Xe,rn.marker);Jt?tt&&(rn.to=Jt.to==null?null:Jt.to+At):rn.to=de}}if(Xe)for(var $n=0;$n<Xe.length;++$n){var Nn=Xe[$n];if(Nn.to!=null&&(Nn.to+=At),Nn.from==null){var qn=Zi(He,Nn.marker);qn||(Nn.from=At,tt&&(He||(He=[])).push(Nn))}else Nn.from+=At,tt&&(He||(He=[])).push(Nn)}He&&(He=Js(He)),Xe&&Xe!=He&&(Xe=Js(Xe));var nr=[He];if(!tt){var dr=Q.text.length-2,rr;if(dr>0&&He)for(var gr=0;gr<He.length;++gr)He[gr].to==null&&(rr||(rr=[])).push(new Di(He[gr].marker,null,null));for(var Or=0;Or<dr;++Or)nr.push(rr);nr.push(Xe)}return nr}function Js(X){for(var Q=0;Q<X.length;++Q){var ae=X[Q];ae.from!=null&&ae.from==ae.to&&ae.marker.clearWhenEmpty!==!1&&X.splice(Q--,1)}return X.length?X:null}function po(X,Q,ae){var oe=null;if(X.iter(Q.line,ae.line+1,function(Jt){if(Jt.markedSpans)for(var $n=0;$n<Jt.markedSpans.length;++$n){var Nn=Jt.markedSpans[$n].marker;Nn.readOnly&&(!oe||tn(oe,Nn)==-1)&&(oe||(oe=[])).push(Nn)}}),!oe)return null;for(var de=[{from:Q,to:ae}],Ee=0;Ee<oe.length;++Ee)for(var Ie=oe[Ee],He=Ie.find(0),Xe=0;Xe<de.length;++Xe){var tt=de[Xe];if(!(Bt(tt.to,He.from)<0||Bt(tt.from,He.to)>0)){var At=[Xe,1],It=Bt(tt.from,He.from),rn=Bt(tt.to,He.to);(It<0||!Ie.inclusiveLeft&&!It)&&At.push({from:tt.from,to:He.from}),(rn>0||!Ie.inclusiveRight&&!rn)&&At.push({from:He.to,to:tt.to}),de.splice.apply(de,At),Xe+=At.length-3}}return de}function Zs(X){var Q=X.markedSpans;if(Q){for(var ae=0;ae<Q.length;++ae)Q[ae].marker.detachLine(X);X.markedSpans=null}}function zs(X,Q){if(Q){for(var ae=0;ae<Q.length;++ae)Q[ae].marker.attachLine(X);X.markedSpans=Q}}function As(X){return X.inclusiveLeft?-1:0}function gs(X){return X.inclusiveRight?1:0}function Cs(X,Q){var ae=X.lines.length-Q.lines.length;if(ae!=0)return ae;var oe=X.find(),de=Q.find(),Ee=Bt(oe.from,de.from)||As(X)-As(Q);if(Ee)return-Ee;var Ie=Bt(oe.to,de.to)||gs(X)-gs(Q);return Ie||Q.id-X.id}function Rs(X,Q){var ae=Yr&&X.markedSpans,oe;if(ae)for(var de=void 0,Ee=0;Ee<ae.length;++Ee)de=ae[Ee],de.marker.collapsed&&(Q?de.from:de.to)==null&&(!oe||Cs(oe,de.marker)<0)&&(oe=de.marker);return oe}function Qs(X){return Rs(X,!0)}function pe(X){return Rs(X,!1)}function Te(X,Q){var ae=Yr&&X.markedSpans,oe;if(ae)for(var de=0;de<ae.length;++de){var Ee=ae[de];Ee.marker.collapsed&&(Ee.from==null||Ee.from<Q)&&(Ee.to==null||Ee.to>Q)&&(!oe||Cs(oe,Ee.marker)<0)&&(oe=Ee.marker)}return oe}function Re(X,Q,ae,oe,de){var Ee=Pn(X,Q),Ie=Yr&&Ee.markedSpans;if(Ie)for(var He=0;He<Ie.length;++He){var Xe=Ie[He];if(Xe.marker.collapsed){var tt=Xe.marker.find(0),At=Bt(tt.from,ae)||As(Xe.marker)-As(de),It=Bt(tt.to,oe)||gs(Xe.marker)-gs(de);if(!(At>=0&&It<=0||At<=0&&It>=0)&&(At<=0&&(Xe.marker.inclusiveRight&&de.inclusiveLeft?Bt(tt.to,ae)>=0:Bt(tt.to,ae)>0)||At>=0&&(Xe.marker.inclusiveRight&&de.inclusiveLeft?Bt(tt.from,oe)<=0:Bt(tt.from,oe)<0)))return!0}}}function je(X){for(var Q;Q=Qs(X);)X=Q.find(-1,!0).line;return X}function qe(X){for(var Q;Q=pe(X);)X=Q.find(1,!0).line;return X}function Je(X){for(var Q,ae;Q=pe(X);)X=Q.find(1,!0).line,(ae||(ae=[])).push(X);return ae}function vt(X,Q){var ae=Pn(X,Q),oe=je(ae);return ae==oe?Q:Bn(oe)}function Rt(X,Q){if(Q>X.lastLine())return Q;var ae=Pn(X,Q),oe;if(!St(X,ae))return Q;for(;oe=pe(ae);)ae=oe.find(1,!0).line;return Bn(ae)+1}function St(X,Q){var ae=Yr&&Q.markedSpans;if(ae){for(var oe=void 0,de=0;de<ae.length;++de)if(oe=ae[de],!!oe.marker.collapsed){if(oe.from==null)return!0;if(!oe.marker.widgetNode&&oe.from==0&&oe.marker.inclusiveLeft&&zt(X,Q,oe))return!0}}}function zt(X,Q,ae){if(ae.to==null){var oe=ae.marker.find(1,!0);return zt(X,oe.line,Zi(oe.line.markedSpans,ae.marker))}if(ae.marker.inclusiveRight&&ae.to==Q.text.length)return!0;for(var de=void 0,Ee=0;Ee<Q.markedSpans.length;++Ee)if(de=Q.markedSpans[Ee],de.marker.collapsed&&!de.marker.widgetNode&&de.from==ae.to&&(de.to==null||de.to!=ae.from)&&(de.marker.inclusiveLeft||ae.marker.inclusiveRight)&&zt(X,Q,de))return!0}function jt(X){X=je(X);for(var Q=0,ae=X.parent,oe=0;oe<ae.lines.length;++oe){var de=ae.lines[oe];if(de==X)break;Q+=de.height}for(var Ee=ae.parent;Ee;ae=Ee,Ee=ae.parent)for(var Ie=0;Ie<Ee.children.length;++Ie){var He=Ee.children[Ie];if(He==ae)break;Q+=He.height}return Q}function yn(X){if(X.height==0)return 0;for(var Q=X.text.length,ae,oe=X;ae=Qs(oe);){var de=ae.find(0,!0);oe=de.from.line,Q+=de.from.ch-de.to.ch}for(oe=X;ae=pe(oe);){var Ee=ae.find(0,!0);Q-=oe.text.length-Ee.from.ch,oe=Ee.to.line,Q+=oe.text.length-Ee.to.ch}return Q}function Dn(X){var Q=X.display,ae=X.doc;Q.maxLine=Pn(ae,ae.first),Q.maxLineLength=yn(Q.maxLine),Q.maxLineChanged=!0,ae.iter(function(oe){var de=yn(oe);de>Q.maxLineLength&&(Q.maxLineLength=de,Q.maxLine=oe)})}var _n=function(X,Q,ae){this.text=X,zs(this,Q),this.height=ae?ae(this):1};_n.prototype.lineNo=function(){return Bn(this)},ht(_n);function gn(X,Q,ae,oe){X.text=Q,X.stateAfter&&(X.stateAfter=null),X.styles&&(X.styles=null),X.order!=null&&(X.order=null),Zs(X),zs(X,ae);var de=oe?oe(X):1;de!=X.height&&hr(X,de)}function ar(X){X.parent=null,Zs(X)}var Hn={},Cr={};function Pr(X,Q){if(!X||/^\s*$/.test(X))return null;var ae=Q.addModeClass?Cr:Hn;return ae[X]||(ae[X]=X.replace(/\S+/g,"cm-$&"))}function vr(X,Q){var ae=Pe("span",null,null,G?"padding-right: .1px":null),oe={pre:Pe("pre",[ae],"CodeMirror-line"),content:ae,col:0,pos:0,cm:X,trailingSpace:!1,splitSpaces:X.getOption("lineWrapping")};Q.measure={};for(var de=0;de<=(Q.rest?Q.rest.length:0);de++){var Ee=de?Q.rest[de-1]:Q.line,Ie=void 0;oe.pos=0,oe.addToken=di,Dr(X.display.measure)&&(Ie=vn(Ee,X.doc.direction))&&(oe.addToken=wi(oe.addToken,Ie)),oe.map=[];var He=Q!=X.display.externalMeasured&&Bn(Ee);Br(Ee,oe,nn(X,Ee,He)),Ee.styleClasses&&(Ee.styleClasses.bgClass&&(oe.bgClass=ft(Ee.styleClasses.bgClass,oe.bgClass||"")),Ee.styleClasses.textClass&&(oe.textClass=ft(Ee.styleClasses.textClass,oe.textClass||""))),oe.map.length==0&&oe.map.push(0,0,oe.content.appendChild(Ir(X.display.measure))),de==0?(Q.measure.map=oe.map,Q.measure.cache={}):((Q.measure.maps||(Q.measure.maps=[])).push(oe.map),(Q.measure.caches||(Q.measure.caches=[])).push({}))}if(G){var Xe=oe.content.lastChild;(/\bcm-tab\b/.test(Xe.className)||Xe.querySelector&&Xe.querySelector(".cm-tab"))&&(oe.content.className="cm-tab-wrap-hack")}return Ht(X,"renderLine",X,Q.line,oe.pre),oe.pre.className&&(oe.textClass=ft(oe.pre.className,oe.textClass||"")),oe}function Hr(X){var Q=Se("span","•","cm-invalidchar");return Q.title="\\u"+X.charCodeAt(0).toString(16),Q.setAttribute("aria-label",Q.title),Q}function di(X,Q,ae,oe,de,Ee,Ie){if(Q){var He=X.splitSpaces?ai(Q,X.trailingSpace):Q,Xe=X.cm.state.specialChars,tt=!1,At;if(!Xe.test(Q))X.col+=Q.length,At=document.createTextNode(He),X.map.push(X.pos,X.pos+Q.length,At),Y&&K<9&&(tt=!0),X.pos+=Q.length;else{At=document.createDocumentFragment();for(var It=0;;){Xe.lastIndex=It;var rn=Xe.exec(Q),Jt=rn?rn.index-It:Q.length-It;if(Jt){var $n=document.createTextNode(He.slice(It,It+Jt));Y&&K<9?At.appendChild(Se("span",[$n])):At.appendChild($n),X.map.push(X.pos,X.pos+Jt,$n),X.col+=Jt,X.pos+=Jt}if(!rn)break;It+=Jt+1;var Nn=void 0;if(rn[0]==" "){var qn=X.cm.options.tabSize,nr=qn-X.col%qn;Nn=At.appendChild(Se("span",Ln(nr),"cm-tab")),Nn.setAttribute("role","presentation"),Nn.setAttribute("cm-text"," "),X.col+=nr}else rn[0]=="\r"||rn[0]==` `?(Nn=At.appendChild(Se("span",rn[0]=="\r"?"␍":"","cm-invalidchar")),Nn.setAttribute("cm-text",rn[0]),X.col+=1):(Nn=X.cm.options.specialCharPlaceholder(rn[0]),Nn.setAttribute("cm-text",rn[0]),Y&&K<9?At.appendChild(Se("span",[Nn])):At.appendChild(Nn),X.col+=1);X.map.push(X.pos,X.pos+1,Nn),X.pos++}}if(X.trailingSpace=He.charCodeAt(Q.length-1)==32,ae||oe||de||tt||Ee||Ie){var dr=ae||"";oe&&(dr+=oe),de&&(dr+=de);var rr=Se("span",[At],dr,Ee);if(Ie)for(var gr in Ie)Ie.hasOwnProperty(gr)&&gr!="style"&&gr!="class"&&rr.setAttribute(gr,Ie[gr]);return X.content.appendChild(rr)}X.content.appendChild(At)}}function ai(X,Q){if(X.length>1&&!/ /.test(X))return X;for(var ae=Q,oe="",de=0;de<X.length;de++){var Ee=X.charAt(de);Ee==" "&&ae&&(de==X.length-1||X.charCodeAt(de+1)==32)&&(Ee=" "),oe+=Ee,ae=Ee==" "}return oe}function wi(X,Q){return function(ae,oe,de,Ee,Ie,He,Xe){de=de?de+" cm-force-border":"cm-force-border";for(var tt=ae.pos,At=tt+oe.length;;){for(var It=void 0,rn=0;rn<Q.length&&(It=Q[rn],!(It.to>tt&&It.from<=tt));rn++);if(It.to>=At)return X(ae,oe,de,Ee,Ie,He,Xe);X(ae,oe.slice(0,It.to-tt),de,Ee,null,He,Xe),Ee=null,oe=oe.slice(It.to-tt),tt=It.to}}}function Gr(X,Q,ae,oe){var de=!oe&&ae.widgetNode;de&&X.map.push(X.pos,X.pos+Q,de),!oe&&X.cm.display.input.needsContentAttribute&&(de||(de=X.content.appendChild(document.createElement("span"))),de.setAttribute("cm-marker",ae.id)),de&&(X.cm.display.input.setUneditable(de),X.content.appendChild(de)),X.pos+=Q,X.trailingSpace=!1}function Br(X,Q,ae){var oe=X.markedSpans,de=X.text,Ee=0;if(!oe){for(var Ie=1;Ie<ae.length;Ie+=2)Q.addToken(Q,de.slice(Ee,Ee=ae[Ie]),Pr(ae[Ie+1],Q.cm.options));return}for(var He=de.length,Xe=0,tt=1,At="",It,rn,Jt=0,$n,Nn,qn,nr,dr;;){if(Jt==Xe){$n=Nn=qn=rn="",dr=null,nr=null,Jt=1/0;for(var rr=[],gr=void 0,Or=0;Or<oe.length;++Or){var Sr=oe[Or],Vr=Sr.marker;if(Vr.type=="bookmark"&&Sr.from==Xe&&Vr.widgetNode)rr.push(Vr);else if(Sr.from<=Xe&&(Sr.to==null||Sr.to>Xe||Vr.collapsed&&Sr.to==Xe&&Sr.from==Xe)){if(Sr.to!=null&&Sr.to!=Xe&&Jt>Sr.to&&(Jt=Sr.to,Nn=""),Vr.className&&($n+=" "+Vr.className),Vr.css&&(rn=(rn?rn+";":"")+Vr.css),Vr.startStyle&&Sr.from==Xe&&(qn+=" "+Vr.startStyle),Vr.endStyle&&Sr.to==Jt&&(gr||(gr=[])).push(Vr.endStyle,Sr.to),Vr.title&&((dr||(dr={})).title=Vr.title),Vr.attributes)for(var ui in Vr.attributes)(dr||(dr={}))[ui]=Vr.attributes[ui];Vr.collapsed&&(!nr||Cs(nr.marker,Vr)<0)&&(nr=Sr)}else Sr.from>Xe&&Jt>Sr.from&&(Jt=Sr.from)}if(gr)for(var zi=0;zi<gr.length;zi+=2)gr[zi+1]==Jt&&(Nn+=" "+gr[zi]);if(!nr||nr.from==Xe)for(var xi=0;xi<rr.length;++xi)Gr(Q,0,rr[xi]);if(nr&&(nr.from||0)==Xe){if(Gr(Q,(nr.to==null?He+1:nr.to)-Xe,nr.marker,nr.from==null),nr.to==null)return;nr.to==Xe&&(nr=!1)}}if(Xe>=He)break;for(var ms=Math.min(He,Jt);;){if(At){var ss=Xe+At.length;if(!nr){var Ai=ss>ms?At.slice(0,ms-Xe):At;Q.addToken(Q,Ai,It?It+$n:$n,qn,Xe+Ai.length==Jt?Nn:"",rn,dr)}if(ss>=ms){At=At.slice(ms-Xe),Xe=ms;break}Xe=ss,qn=""}At=de.slice(Ee,Ee=ae[tt++]),It=Pr(ae[tt++],Q.cm.options)}}}function pi(X,Q,ae){this.line=Q,this.rest=Je(Q),this.size=this.rest?Bn(Et(this.rest))-ae+1:1,this.node=this.text=null,this.hidden=St(X,Q)}function hi(X,Q,ae){for(var oe=[],de,Ee=Q;Ee<ae;Ee=de){var Ie=new pi(X.doc,Pn(X.doc,Ee),Ee);de=Ee+Ie.size,oe.push(Ie)}return oe}var li=null;function _s(X){li?li.ops.push(X):X.ownsGroup=li={ops:[X],delayedCallbacks:[]}}function Ds(X){var Q=X.delayedCallbacks,ae=0;do{for(;ae<Q.length;ae++)Q[ae].call(null);for(var oe=0;oe<X.ops.length;oe++){var de=X.ops[oe];if(de.cursorActivityHandlers)for(;de.cursorActivityCalled<de.cursorActivityHandlers.length;)de.cursorActivityHandlers[de.cursorActivityCalled++].call(null,de.cm)}}while(ae<Q.length)}function es(X,Q){var ae=X.ownsGroup;if(ae)try{Ds(ae)}finally{li=null,Q(ae)}}var Vs=null;function mi(X,Q){var ae=Pt(X,Q);if(ae.length){var oe=Array.prototype.slice.call(arguments,2),de;li?de=li.delayedCallbacks:Vs?de=Vs:(de=Vs=[],setTimeout(Pa,0));for(var Ee=function(He){de.push(function(){return ae[He].apply(null,oe)})},Ie=0;Ie<ae.length;++Ie)Ee(Ie)}}function Pa(){var X=Vs;Vs=null;for(var Q=0;Q<X.length;++Q)X[Q]()}function oa(X,Q,ae,oe){for(var de=0;de<Q.changes.length;de++){var Ee=Q.changes[de];Ee=="text"?Aa(X,Q):Ee=="gutter"?ho(X,Q,ae,oe):Ee=="class"?Bo(X,Q):Ee=="widget"&&zo(X,Q,oe)}Q.changes=null}function Us(X){return X.node==X.text&&(X.node=Se("div",null,null,"position: relative"),X.text.parentNode&&X.text.parentNode.replaceChild(X.node,X.text),X.node.appendChild(X.text),Y&&K<8&&(X.node.style.zIndex=2)),X.node}function aa(X,Q){var ae=Q.bgClass?Q.bgClass+" "+(Q.line.bgClass||""):Q.line.bgClass;if(ae&&(ae+=" CodeMirror-linebackground"),Q.background)ae?Q.background.className=ae:(Q.background.parentNode.removeChild(Q.background),Q.background=null);else if(ae){var oe=Us(Q);Q.background=oe.insertBefore(Se("div",null,ae),oe.firstChild),X.display.input.setUneditable(Q.background)}}function eo(X,Q){var ae=X.display.externalMeasured;return ae&&ae.line==Q.line?(X.display.externalMeasured=null,Q.measure=ae.measure,ae.built):vr(X,Q)}function Aa(X,Q){var ae=Q.text.className,oe=eo(X,Q);Q.text==Q.node&&(Q.node=oe.pre),Q.text.parentNode.replaceChild(oe.pre,Q.text),Q.text=oe.pre,oe.bgClass!=Q.bgClass||oe.textClass!=Q.textClass?(Q.bgClass=oe.bgClass,Q.textClass=oe.textClass,Bo(X,Q)):ae&&(Q.text.className=ae)}function Bo(X,Q){aa(X,Q),Q.line.wrapClass?Us(Q).className=Q.line.wrapClass:Q.node!=Q.text&&(Q.node.className="");var ae=Q.textClass?Q.textClass+" "+(Q.line.textClass||""):Q.line.textClass;Q.text.className=ae||""}function ho(X,Q,ae,oe){if(Q.gutter&&(Q.node.removeChild(Q.gutter),Q.gutter=null),Q.gutterBackground&&(Q.node.removeChild(Q.gutterBackground),Q.gutterBackground=null),Q.line.gutterClass){var de=Us(Q);Q.gutterBackground=Se("div",null,"CodeMirror-gutter-background "+Q.line.gutterClass,"left: "+(X.options.fixedGutter?oe.fixedPos:-oe.gutterTotalWidth)+"px; width: "+oe.gutterTotalWidth+"px"),X.display.input.setUneditable(Q.gutterBackground),de.insertBefore(Q.gutterBackground,Q.text)}var Ee=Q.line.gutterMarkers;if(X.options.lineNumbers||Ee){var Ie=Us(Q),He=Q.gutter=Se("div",null,"CodeMirror-gutter-wrapper","left: "+(X.options.fixedGutter?oe.fixedPos:-oe.gutterTotalWidth)+"px");if(He.setAttribute("aria-hidden","true"),X.display.input.setUneditable(He),Ie.insertBefore(He,Q.text),Q.line.gutterClass&&(He.className+=" "+Q.line.gutterClass),X.options.lineNumbers&&(!Ee||!Ee["CodeMirror-linenumbers"])&&(Q.lineNumber=He.appendChild(Se("div",bt(X.options,ae),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+oe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+X.display.lineNumInnerWidth+"px"))),Ee)for(var Xe=0;Xe<X.display.gutterSpecs.length;++Xe){var tt=X.display.gutterSpecs[Xe].className,At=Ee.hasOwnProperty(tt)&&Ee[tt];At&&He.appendChild(Se("div",[At],"CodeMirror-gutter-elt","left: "+oe.gutterLeft[tt]+"px; width: "+oe.gutterWidth[tt]+"px"))}}}function zo(X,Q,ae){Q.alignable&&(Q.alignable=null);for(var oe=be("CodeMirror-linewidget"),de=Q.node.firstChild,Ee=void 0;de;de=Ee)Ee=de.nextSibling,oe.test(de.className)&&Q.node.removeChild(de);la(X,Q,ae)}function Ra(X,Q,ae,oe){var de=eo(X,Q);return Q.text=Q.node=de.pre,de.bgClass&&(Q.bgClass=de.bgClass),de.textClass&&(Q.textClass=de.textClass),Bo(X,Q),ho(X,Q,ae,oe),la(X,Q,oe),Q.node}function la(X,Q,ae){if(ca(X,Q.line,Q,ae,!0),Q.rest)for(var oe=0;oe<Q.rest.length;oe++)ca(X,Q.rest[oe],Q,ae,!1)}function ca(X,Q,ae,oe,de){if(Q.widgets)for(var Ee=Us(ae),Ie=0,He=Q.widgets;Ie<He.length;++Ie){var Xe=He[Ie],tt=Se("div",[Xe.node],"CodeMirror-linewidget"+(Xe.className?" "+Xe.className:""));Xe.handleMouseEvents||tt.setAttribute("cm-ignore-events","true"),mo(Xe,tt,ae,oe),X.display.input.setUneditable(tt),de&&Xe.above?Ee.insertBefore(tt,ae.gutter||ae.text):Ee.appendChild(tt),mi(Xe,"redraw")}}function mo(X,Q,ae,oe){if(X.noHScroll){(ae.alignable||(ae.alignable=[])).push(Q);var de=oe.wrapperWidth;Q.style.left=oe.fixedPos+"px",X.coverGutter||(de-=oe.gutterTotalWidth,Q.style.paddingLeft=oe.gutterTotalWidth+"px"),Q.style.width=de+"px"}X.coverGutter&&(Q.style.zIndex=5,Q.style.position="relative",X.noHScroll||(Q.style.marginLeft=-oe.gutterTotalWidth+"px"))}function vs(X){if(X.height!=null)return X.height;var Q=X.doc.cm;if(!Q)return 0;if(!Be(document.body,X.node)){var ae="position: relative;";X.coverGutter&&(ae+="margin-left: -"+Q.display.gutters.offsetWidth+"px;"),X.noHScroll&&(ae+="width: "+Q.display.wrapper.clientWidth+"px;"),Ae(Q.display.measure,Se("div",[X.node],null,ae))}return X.height=X.node.parentNode.offsetHeight}function bs(X,Q){for(var ae=wn(Q);ae!=X.wrapper;ae=ae.parentNode)if(!ae||ae.nodeType==1&&ae.getAttribute("cm-ignore-events")=="true"||ae.parentNode==X.sizer&&ae!=X.mover)return!0}function ys(X){return X.lineSpace.offsetTop}function Li(X){return X.mover.offsetHeight-X.lineSpace.offsetHeight}function _o(X){if(X.cachedPaddingH)return X.cachedPaddingH;var Q=Ae(X.measure,Se("pre","x","CodeMirror-line-like")),ae=window.getComputedStyle?window.getComputedStyle(Q):Q.currentStyle,oe={left:parseInt(ae.paddingLeft),right:parseInt(ae.paddingRight)};return!isNaN(oe.left)&&!isNaN(oe.right)&&(X.cachedPaddingH=oe),oe}function us(X){return Qt-X.display.nativeBarWidth}function Ms(X){return X.display.scroller.clientWidth-us(X)-X.display.barWidth}function jo(X){return X.display.scroller.clientHeight-us(X)-X.display.barHeight}function Da(X,Q,ae){var oe=X.options.lineWrapping,de=oe&&Ms(X);if(!Q.measure.heights||oe&&Q.measure.width!=de){var Ee=Q.measure.heights=[];if(oe){Q.measure.width=de;for(var Ie=Q.text.firstChild.getClientRects(),He=0;He<Ie.length-1;He++){var Xe=Ie[He],tt=Ie[He+1];Math.abs(Xe.bottom-tt.bottom)>2&&Ee.push((Xe.bottom+tt.top)/2-ae.top)}}Ee.push(ae.bottom-ae.top)}}function ua(X,Q,ae){if(X.line==Q)return{map:X.measure.map,cache:X.measure.cache};if(X.rest){for(var oe=0;oe<X.rest.length;oe++)if(X.rest[oe]==Q)return{map:X.measure.maps[oe],cache:X.measure.caches[oe]};for(var de=0;de<X.rest.length;de++)if(Bn(X.rest[de])>ae)return{map:X.measure.maps[de],cache:X.measure.caches[de],before:!0}}}function Ce(X,Q){Q=je(Q);var ae=Bn(Q),oe=X.display.externalMeasured=new pi(X.doc,Q,ae);oe.lineN=ae;var de=oe.built=vr(X,oe);return oe.text=de.pre,Ae(X.display.lineMeasure,de.pre),oe}function Fe(X,Q,ae,oe){return Ft(X,kt(X,Q),ae,oe)}function st(X,Q){if(Q>=X.display.viewFrom&&Q<X.display.viewTo)return X.display.view[ws(X,Q)];var ae=X.display.externalMeasured;if(ae&&Q>=ae.lineN&&Q<ae.lineN+ae.size)return ae}function kt(X,Q){var ae=Bn(Q),oe=st(X,ae);oe&&!oe.text?oe=null:oe&&oe.changes&&(oa(X,oe,ae,$s(X)),X.curOp.forceUpdate=!0),oe||(oe=Ce(X,Q));var de=ua(oe,Q,ae);return{line:Q,view:oe,rect:null,map:de.map,cache:de.cache,before:de.before,hasHeights:!1}}function Ft(X,Q,ae,oe,de){Q.before&&(ae=-1);var Ee=ae+(oe||""),Ie;return Q.cache.hasOwnProperty(Ee)?Ie=Q.cache[Ee]:(Q.rect||(Q.rect=Q.view.text.getBoundingClientRect()),Q.hasHeights||(Da(X,Q.view,Q.rect),Q.hasHeights=!0),Ie=Rn(X,Q,ae,oe),Ie.bogus||(Q.cache[Ee]=Ie)),{left:Ie.left,right:Ie.right,top:de?Ie.rtop:Ie.top,bottom:de?Ie.rbottom:Ie.bottom}}var Kt={left:0,right:0,top:0,bottom:0};function ln(X,Q,ae){for(var oe,de,Ee,Ie,He,Xe,tt=0;tt<X.length;tt+=3)if(He=X[tt],Xe=X[tt+1],Q<He?(de=0,Ee=1,Ie="left"):Q<Xe?(de=Q-He,Ee=de+1):(tt==X.length-3||Q==Xe&&X[tt+3]>Q)&&(Ee=Xe-He,de=Ee-1,Q>=Xe&&(Ie="right")),de!=null){if(oe=X[tt+2],He==Xe&&ae==(oe.insertLeft?"left":"right")&&(Ie=ae),ae=="left"&&de==0)for(;tt&&X[tt-2]==X[tt-3]&&X[tt-1].insertLeft;)oe=X[(tt-=3)+2],Ie="left";if(ae=="right"&&de==Xe-He)for(;tt<X.length-3&&X[tt+3]==X[tt+4]&&!X[tt+5].insertLeft;)oe=X[(tt+=3)+2],Ie="right";break}return{node:oe,start:de,end:Ee,collapse:Ie,coverStart:He,coverEnd:Xe}}function un(X,Q){var ae=Kt;if(Q=="left")for(var oe=0;oe<X.length&&(ae=X[oe]).left==ae.right;oe++);else for(var de=X.length-1;de>=0&&(ae=X[de]).left==ae.right;de--);return ae}function Rn(X,Q,ae,oe){var de=ln(Q.map,ae,oe),Ee=de.node,Ie=de.start,He=de.end,Xe=de.collapse,tt;if(Ee.nodeType==3){for(var At=0;At<4;At++){for(;Ie&&ct(Q.line.text.charAt(de.coverStart+Ie));)--Ie;for(;de.coverStart+He<de.coverEnd&&ct(Q.line.text.charAt(de.coverStart+He));)++He;if(Y&&K<9&&Ie==0&&He==de.coverEnd-de.coverStart?tt=Ee.parentNode.getBoundingClientRect():tt=un(Me(Ee,Ie,He).getClientRects(),oe),tt.left||tt.right||Ie==0)break;He=Ie,Ie=Ie-1,Xe="right"}Y&&K<11&&(tt=bn(X.display.measure,tt))}else{Ie>0&&(Xe=oe="right");var It;X.options.lineWrapping&&(It=Ee.getClientRects()).length>1?tt=It[oe=="right"?It.length-1:0]:tt=Ee.getBoundingClientRect()}if(Y&&K<9&&!Ie&&(!tt||!tt.left&&!tt.right)){var rn=Ee.parentNode.getClientRects()[0];rn?tt={left:rn.left,right:rn.left+ds(X.display),top:rn.top,bottom:rn.bottom}:tt=Kt}for(var Jt=tt.top-Q.rect.top,$n=tt.bottom-Q.rect.top,Nn=(Jt+$n)/2,qn=Q.view.measure.heights,nr=0;nr<qn.length-1&&!(Nn<qn[nr]);nr++);var dr=nr?qn[nr-1]:0,rr=qn[nr],gr={left:(Xe=="right"?tt.right:tt.left)-Q.rect.left,right:(Xe=="left"?tt.left:tt.right)-Q.rect.left,top:dr,bottom:rr};return!tt.left&&!tt.right&&(gr.bogus=!0),X.options.singleCursorHeightPerLine||(gr.rtop=Jt,gr.rbottom=$n),gr}function bn(X,Q){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ne(X))return Q;var ae=screen.logicalXDPI/screen.deviceXDPI,oe=screen.logicalYDPI/screen.deviceYDPI;return{left:Q.left*ae,right:Q.right*ae,top:Q.top*oe,bottom:Q.bottom*oe}}function Wn(X){if(X.measure&&(X.measure.cache={},X.measure.heights=null,X.rest))for(var Q=0;Q<X.rest.length;Q++)X.measure.caches[Q]={}}function yr(X){X.display.externalMeasure=null,we(X.display.lineMeasure);for(var Q=0;Q<X.display.view.length;Q++)Wn(X.display.view[Q])}function wr(X){yr(X),X.display.cachedCharWidth=X.display.cachedTextHeight=X.display.cachedPaddingH=null,X.options.lineWrapping||(X.display.maxLineChanged=!0),X.display.lineNumChars=null}function Wr(X){return Z&&me?-(X.body.getBoundingClientRect().left-parseInt(getComputedStyle(X.body).marginLeft)):X.defaultView.pageXOffset||(X.documentElement||X.body).scrollLeft}function Zr(X){return Z&&me?-(X.body.getBoundingClientRect().top-parseInt(getComputedStyle(X.body).marginTop)):X.defaultView.pageYOffset||(X.documentElement||X.body).scrollTop}function zr(X){var Q=je(X),ae=Q.widgets,oe=0;if(ae)for(var de=0;de<ae.length;++de)ae[de].above&&(oe+=vs(ae[de]));return oe}function ii(X,Q,ae,oe,de){if(!de){var Ee=zr(Q);ae.top+=Ee,ae.bottom+=Ee}if(oe=="line")return ae;oe||(oe="local");var Ie=jt(Q);if(oe=="local"?Ie+=ys(X.display):Ie-=X.display.viewOffset,oe=="page"||oe=="window"){var He=X.display.lineSpace.getBoundingClientRect();Ie+=He.top+(oe=="window"?0:Zr(Ve(X)));var Xe=He.left+(oe=="window"?0:Wr(Ve(X)));ae.left+=Xe,ae.right+=Xe}return ae.top+=Ie,ae.bottom+=Ie,ae}function fi(X,Q,ae){if(ae=="div")return Q;var oe=Q.left,de=Q.top;if(ae=="page")oe-=Wr(Ve(X)),de-=Zr(Ve(X));else if(ae=="local"||!ae){var Ee=X.display.sizer.getBoundingClientRect();oe+=Ee.left,de+=Ee.top}var Ie=X.display.lineSpace.getBoundingClientRect();return{left:oe-Ie.left,top:de-Ie.top}}function si(X,Q,ae,oe,de){return oe||(oe=Pn(X.doc,Q.line)),ii(X,oe,Fe(X,oe,Q.ch,de),ae)}function ei(X,Q,ae,oe,de,Ee){oe=oe||Pn(X.doc,Q.line),de||(de=kt(X,oe));function Ie($n,Nn){var qn=Ft(X,de,$n,Nn?"right":"left",Ee);return Nn?qn.left=qn.right:qn.right=qn.left,ii(X,oe,qn,ae)}var He=vn(oe,X.doc.direction),Xe=Q.ch,tt=Q.sticky;if(Xe>=oe.text.length?(Xe=oe.text.length,tt="before"):Xe<=0&&(Xe=0,tt="after"),!He)return Ie(tt=="before"?Xe-1:Xe,tt=="before");function At($n,Nn,qn){var nr=He[Nn],dr=nr.level==1;return Ie(qn?$n-1:$n,dr!=qn)}var It=Fn(He,Xe,tt),rn=dn,Jt=At(Xe,It,tt=="before");return rn!=null&&(Jt.other=At(Xe,rn,tt!="before")),Jt}function Xr(X,Q){var ae=0;Q=cn(X.doc,Q),X.options.lineWrapping||(ae=ds(X.display)*Q.ch);var oe=Pn(X.doc,Q.line),de=jt(oe)+ys(X.display);return{left:ae,right:ae,top:de,bottom:de+oe.height}}function Ei(X,Q,ae,oe,de){var Ee=wt(X,Q,ae);return Ee.xRel=de,oe&&(Ee.outside=oe),Ee}function vi(X,Q,ae){var oe=X.doc;if(ae+=X.display.viewOffset,ae<0)return Ei(oe.first,0,null,-1,-1);var de=er(oe,ae),Ee=oe.first+oe.size-1;if(de>Ee)return Ei(oe.first+oe.size-1,Pn(oe,Ee).text.length,null,1,1);Q<0&&(Q=0);for(var Ie=Pn(oe,de);;){var He=Hi(X,Ie,de,Q,ae),Xe=Te(Ie,He.ch+(He.xRel>0||He.outside>0?1:0));if(!Xe)return He;var tt=Xe.find(1);if(tt.line==de)return tt;Ie=Pn(oe,de=tt.line)}}function Ci(X,Q,ae,oe){oe-=zr(Q);var de=Q.text.length,Ee=ot(function(Ie){return Ft(X,ae,Ie-1).bottom<=oe},de,0);return de=ot(function(Ie){return Ft(X,ae,Ie).top>oe},Ee,de),{begin:Ee,end:de}}function Fi(X,Q,ae,oe){ae||(ae=kt(X,Q));var de=ii(X,Q,Ft(X,ae,oe),"line").top;return Ci(X,Q,ae,de)}function Mi(X,Q,ae,oe){return X.bottom<=ae?!1:X.top>ae?!0:(oe?X.left:X.right)>Q}function Hi(X,Q,ae,oe,de){de-=jt(Q);var Ee=kt(X,Q),Ie=zr(Q),He=0,Xe=Q.text.length,tt=!0,At=vn(Q,X.doc.direction);if(At){var It=(X.options.lineWrapping?ts:Gi)(X,Q,ae,Ee,At,oe,de);tt=It.level!=1,He=tt?It.from:It.to-1,Xe=tt?It.to:It.from-1}var rn=null,Jt=null,$n=ot(function(Or){var Sr=Ft(X,Ee,Or);return Sr.top+=Ie,Sr.bottom+=Ie,Mi(Sr,oe,de,!1)?(Sr.top<=de&&Sr.left<=oe&&(rn=Or,Jt=Sr),!0):!1},He,Xe),Nn,qn,nr=!1;if(Jt){var dr=oe-Jt.left<Jt.right-oe,rr=dr==tt;$n=rn+(rr?0:1),qn=rr?"after":"before",Nn=dr?Jt.left:Jt.right}else{!tt&&($n==Xe||$n==He)&&$n++,qn=$n==0?"after":$n==Q.text.length?"before":Ft(X,Ee,$n-(tt?1:0)).bottom+Ie<=de==tt?"after":"before";var gr=ei(X,wt(ae,$n,qn),"line",Q,Ee);Nn=gr.left,nr=de<gr.top?-1:de>=gr.bottom?1:0}return $n=it(Q.text,$n,1),Ei(ae,$n,qn,nr,oe-Nn)}function Gi(X,Q,ae,oe,de,Ee,Ie){var He=ot(function(It){var rn=de[It],Jt=rn.level!=1;return Mi(ei(X,wt(ae,Jt?rn.to:rn.from,Jt?"before":"after"),"line",Q,oe),Ee,Ie,!0)},0,de.length-1),Xe=de[He];if(He>0){var tt=Xe.level!=1,At=ei(X,wt(ae,tt?Xe.from:Xe.to,tt?"after":"before"),"line",Q,oe);Mi(At,Ee,Ie,!0)&&At.top>Ie&&(Xe=de[He-1])}return Xe}function ts(X,Q,ae,oe,de,Ee,Ie){var He=Ci(X,Q,oe,Ie),Xe=He.begin,tt=He.end;/\s/.test(Q.text.charAt(tt-1))&&tt--;for(var At=null,It=null,rn=0;rn<de.length;rn++){var Jt=de[rn];if(!(Jt.from>=tt||Jt.to<=Xe)){var $n=Jt.level!=1,Nn=Ft(X,oe,$n?Math.min(tt,Jt.to)-1:Math.max(Xe,Jt.from)).right,qn=Nn<Ee?Ee-Nn+1e9:Nn-Ee;(!At||It>qn)&&(At=Jt,It=qn)}}return At||(At=de[de.length-1]),At.from<Xe&&(At={from:Xe,to:At.to,level:At.level}),At.to>tt&&(At={from:At.from,to:tt,level:At.level}),At}var bi;function Vi(X){if(X.cachedTextHeight!=null)return X.cachedTextHeight;if(bi==null){bi=Se("pre",null,"CodeMirror-line-like");for(var Q=0;Q<49;++Q)bi.appendChild(document.createTextNode("x")),bi.appendChild(Se("br"));bi.appendChild(document.createTextNode("x"))}Ae(X.measure,bi);var ae=bi.offsetHeight/50;return ae>3&&(X.cachedTextHeight=ae),we(X.measure),ae||1}function ds(X){if(X.cachedCharWidth!=null)return X.cachedCharWidth;var Q=Se("span","xxxxxxxxxx"),ae=Se("pre",[Q],"CodeMirror-line-like");Ae(X.measure,ae);var oe=Q.getBoundingClientRect(),de=(oe.right-oe.left)/10;return de>2&&(X.cachedCharWidth=de),de||10}function $s(X){for(var Q=X.display,ae={},oe={},de=Q.gutters.clientLeft,Ee=Q.gutters.firstChild,Ie=0;Ee;Ee=Ee.nextSibling,++Ie){var He=X.display.gutterSpecs[Ie].className;ae[He]=Ee.offsetLeft+Ee.clientLeft+de,oe[He]=Ee.clientWidth}return{fixedPos:xs(Q),gutterTotalWidth:Q.gutters.offsetWidth,gutterLeft:ae,gutterWidth:oe,wrapperWidth:Q.wrapper.clientWidth}}function xs(X){return X.scroller.getBoundingClientRect().left-X.sizer.getBoundingClientRect().left}function vo(X){var Q=Vi(X.display),ae=X.options.lineWrapping,oe=ae&&Math.max(5,X.display.scroller.clientWidth/ds(X.display)-3);return function(de){if(St(X.doc,de))return 0;var Ee=0;if(de.widgets)for(var Ie=0;Ie<de.widgets.length;Ie++)de.widgets[Ie].height&&(Ee+=de.widgets[Ie].height);return ae?Ee+(Math.ceil(de.text.length/oe)||1)*Q:Ee+Q}}function Ts(X){var Q=X.doc,ae=vo(X);Q.iter(function(oe){var de=ae(oe);de!=oe.height&&hr(oe,de)})}function fs(X,Q,ae,oe){var de=X.display;if(!ae&&wn(Q).getAttribute("cm-not-content")=="true")return null;var Ee,Ie,He=de.lineSpace.getBoundingClientRect();try{Ee=Q.clientX-He.left,Ie=Q.clientY-He.top}catch{return null}var Xe=vi(X,Ee,Ie),tt;if(oe&&Xe.xRel>0&&(tt=Pn(X.doc,Xe.line).text).length==Xe.ch){var At=Wt(tt,tt.length,X.options.tabSize)-tt.length;Xe=wt(Xe.line,Math.max(0,Math.round((Ee-_o(X.display).left)/ds(X.display))-At))}return Xe}function ws(X,Q){if(Q>=X.display.viewTo||(Q-=X.display.viewFrom,Q<0))return null;for(var ae=X.display.view,oe=0;oe<ae.length;oe++)if(Q-=ae[oe].size,Q<0)return oe}function yi(X,Q,ae,oe){Q==null&&(Q=X.doc.first),ae==null&&(ae=X.doc.first+X.doc.size),oe||(oe=0);var de=X.display;if(oe&&ae<de.viewTo&&(de.updateLineNumbers==null||de.updateLineNumbers>Q)&&(de.updateLineNumbers=Q),X.curOp.viewChanged=!0,Q>=de.viewTo)Yr&&vt(X.doc,Q)<de.viewTo&&Bi(X);else if(ae<=de.viewFrom)Yr&&Rt(X.doc,ae+oe)>de.viewFrom?Bi(X):(de.viewFrom+=oe,de.viewTo+=oe);else if(Q<=de.viewFrom&&ae>=de.viewTo)Bi(X);else if(Q<=de.viewFrom){var Ee=Pi(X,ae,ae+oe,1);Ee?(de.view=de.view.slice(Ee.index),de.viewFrom=Ee.lineN,de.viewTo+=oe):Bi(X)}else if(ae>=de.viewTo){var Ie=Pi(X,Q,Q,-1);Ie?(de.view=de.view.slice(0,Ie.index),de.viewTo=Ie.lineN):Bi(X)}else{var He=Pi(X,Q,Q,-1),Xe=Pi(X,ae,ae+oe,1);He&&Xe?(de.view=de.view.slice(0,He.index).concat(hi(X,He.lineN,Xe.lineN)).concat(de.view.slice(Xe.index)),de.viewTo+=oe):Bi(X)}var tt=de.externalMeasured;tt&&(ae<tt.lineN?tt.lineN+=oe:Q<tt.lineN+tt.size&&(de.externalMeasured=null))}function ns(X,Q,ae){X.curOp.viewChanged=!0;var oe=X.display,de=X.display.externalMeasured;if(de&&Q>=de.lineN&&Q<de.lineN+de.size&&(oe.externalMeasured=null),!(Q<oe.viewFrom||Q>=oe.viewTo)){var Ee=oe.view[ws(X,Q)];if(Ee.node!=null){var Ie=Ee.changes||(Ee.changes=[]);tn(Ie,ae)==-1&&Ie.push(ae)}}}function Bi(X){X.display.viewFrom=X.display.viewTo=X.doc.first,X.display.view=[],X.display.viewOffset=0}function Pi(X,Q,ae,oe){var de=ws(X,Q),Ee,Ie=X.display.view;if(!Yr||ae==X.doc.first+X.doc.size)return{index:de,lineN:ae};for(var He=X.display.viewFrom,Xe=0;Xe<de;Xe++)He+=Ie[Xe].size;if(He!=Q){if(oe>0){if(de==Ie.length-1)return null;Ee=He+Ie[de].size-Q,de++}else Ee=He-Q;Q+=Ee,ae+=Ee}for(;vt(X.doc,ae)!=ae;){if(de==(oe<0?0:Ie.length-1))return null;ae+=oe*Ie[de-(oe<0?1:0)].size,de+=oe}return{index:de,lineN:ae}}function Os(X,Q,ae){var oe=X.display,de=oe.view;de.length==0||Q>=oe.viewTo||ae<=oe.viewFrom?(oe.view=hi(X,Q,ae),oe.viewFrom=Q):(oe.viewFrom>Q?oe.view=hi(X,Q,oe.viewFrom).concat(oe.view):oe.viewFrom<Q&&(oe.view=oe.view.slice(ws(X,Q))),oe.viewFrom=Q,oe.viewTo<ae?oe.view=oe.view.concat(hi(X,oe.viewTo,ae)):oe.viewTo>ae&&(oe.view=oe.view.slice(0,ws(X,ae)))),oe.viewTo=ae}function ro(X){for(var Q=X.display.view,ae=0,oe=0;oe<Q.length;oe++){var de=Q[oe];!de.hidden&&(!de.node||de.changes)&&++ae}return ae}function ks(X){X.display.input.showSelection(X.display.input.prepareSelection())}function da(X,Q){Q===void 0&&(Q=!0);var ae=X.doc,oe={},de=oe.cursors=document.createDocumentFragment(),Ee=oe.selection=document.createDocumentFragment(),Ie=X.options.$customCursor;Ie&&(Q=!0);for(var He=0;He<ae.sel.ranges.length;He++)if(!(!Q&&He==ae.sel.primIndex)){var Xe=ae.sel.ranges[He];if(!(Xe.from().line>=X.display.viewTo||Xe.to().line<X.display.viewFrom)){var tt=Xe.empty();if(Ie){var At=Ie(X,Xe);At&&Hs(X,At,de)}else(tt||X.options.showCursorWhenSelecting)&&Hs(X,Xe.head,de);tt||fa(X,Xe,Ee)}}return oe}function Hs(X,Q,ae){var oe=ei(X,Q,"div",null,null,!X.options.singleCursorHeightPerLine),de=ae.appendChild(Se("div"," ","CodeMirror-cursor"));if(de.style.left=oe.left+"px",de.style.top=oe.top+"px",de.style.height=Math.max(0,oe.bottom-oe.top)*X.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(X.getWrapperElement().className)){var Ee=si(X,Q,"div",null,null),Ie=Ee.right-Ee.left;de.style.width=(Ie>0?Ie:X.defaultCharWidth())+"px"}if(oe.other){var He=ae.appendChild(Se("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));He.style.display="",He.style.left=oe.other.left+"px",He.style.top=oe.other.top+"px",He.style.height=(oe.other.bottom-oe.other.top)*.85+"px"}}function bo(X,Q){return X.top-Q.top||X.left-Q.left}function fa(X,Q,ae){var oe=X.display,de=X.doc,Ee=document.createDocumentFragment(),Ie=_o(X.display),He=Ie.left,Xe=Math.max(oe.sizerWidth,Ms(X)-oe.sizer.offsetLeft)-Ie.right,tt=de.direction=="ltr";function At(rr,gr,Or,Sr){gr<0&&(gr=0),gr=Math.round(gr),Sr=Math.round(Sr),Ee.appendChild(Se("div",null,"CodeMirror-selected","position: absolute; left: "+rr+`px; top: `+gr+"px; width: "+(Or??Xe-rr)+`px; height: `+(Sr-gr)+"px"))}function It(rr,gr,Or){var Sr=Pn(de,rr),Vr=Sr.text.length,ui,zi;function xi(Ai,ls){return si(X,wt(rr,Ai),"div",Sr,ls)}function ms(Ai,ls,Ui){var Ni=Fi(X,Sr,null,Ai),Ri=ls=="ltr"==(Ui=="after")?"left":"right",Si=Ui=="after"?Ni.begin:Ni.end-(/\s/.test(Sr.text.charAt(Ni.end-1))?2:1);return xi(Si,Ri)[Ri]}var ss=vn(Sr,de.direction);return Ot(ss,gr||0,Or??Vr,function(Ai,ls,Ui,Ni){var Ri=Ui=="ltr",Si=xi(Ai,Ri?"left":"right"),cs=xi(ls-1,Ri?"right":"left"),$a=gr==null&&Ai==0,Po=Or==null&&ls==Vr,Ki=Ni==0,Xs=!ss||Ni==ss.length-1;if(cs.top-Si.top<=3){var ji=(tt?$a:Po)&&Ki,_c=(tt?Po:$a)&&Xs,uo=ji?He:(Ri?Si:cs).left,Zo=_c?Xe:(Ri?cs:Si).right;At(uo,Si.top,Zo-uo,Si.bottom)}else{var Qo,Xi,Ta,vc;Ri?(Qo=tt&&$a&&Ki?He:Si.left,Xi=tt?Xe:ms(Ai,Ui,"before"),Ta=tt?He:ms(ls,Ui,"after"),vc=tt&&Po&&Xs?Xe:cs.right):(Qo=tt?ms(Ai,Ui,"before"):He,Xi=!tt&&$a&&Ki?Xe:Si.right,Ta=!tt&&Po&&Xs?He:cs.left,vc=tt?ms(ls,Ui,"after"):Xe),At(Qo,Si.top,Xi-Qo,Si.bottom),Si.bottom<cs.top&&At(He,Si.bottom,null,cs.top),At(Ta,cs.top,vc-Ta,cs.bottom)}(!ui||bo(Si,ui)<0)&&(ui=Si),bo(cs,ui)<0&&(ui=cs),(!zi||bo(Si,zi)<0)&&(zi=Si),bo(cs,zi)<0&&(zi=cs)}),{start:ui,end:zi}}var rn=Q.from(),Jt=Q.to();if(rn.line==Jt.line)It(rn.line,rn.ch,Jt.ch);else{var $n=Pn(de,rn.line),Nn=Pn(de,Jt.line),qn=je($n)==je(Nn),nr=It(rn.line,rn.ch,qn?$n.text.length+1:null).end,dr=It(Jt.line,qn?0:null,Jt.ch).start;qn&&(nr.top<dr.top-2?(At(nr.right,nr.top,null,nr.bottom),At(He,dr.top,dr.left,dr.bottom)):At(nr.right,nr.top,dr.left-nr.right,nr.bottom)),nr.bottom<dr.top&&At(He,nr.bottom,null,dr.top)}ae.appendChild(Ee)}function yo(X){if(X.state.focused){var Q=X.display;clearInterval(Q.blinker);var ae=!0;Q.cursorDiv.style.visibility="",X.options.cursorBlinkRate>0?Q.blinker=setInterval(function(){X.hasFocus()||Ws(X),Q.cursorDiv.style.visibility=(ae=!ae)?"":"hidden"},X.options.cursorBlinkRate):X.options.cursorBlinkRate<0&&(Q.cursorDiv.style.visibility="hidden")}}function Vo(X){X.hasFocus()||(X.display.input.focus(),X.state.focused||Is(X))}function Uo(X){X.state.delayingBlurEvent=!0,setTimeout(function(){X.state.delayingBlurEvent&&(X.state.delayingBlurEvent=!1,X.state.focused&&Ws(X))},100)}function Is(X,Q){X.state.delayingBlurEvent&&!X.state.draggingText&&(X.state.delayingBlurEvent=!1),X.options.readOnly!="nocursor"&&(X.state.focused||(Ht(X,"focus",X,Q),X.state.focused=!0,Ze(X.display.wrapper,"CodeMirror-focused"),!X.curOp&&X.display.selForContextMenu!=X.doc.sel&&(X.display.input.reset(),G&&setTimeout(function(){return X.display.input.reset(!0)},20)),X.display.input.receivedFocus()),yo(X))}function Ws(X,Q){X.state.delayingBlurEvent||(X.state.focused&&(Ht(X,"blur",X,Q),X.state.focused=!1,ve(X.display.wrapper,"CodeMirror-focused")),clearInterval(X.display.blinker),setTimeout(function(){X.state.focused||(X.display.shift=!1)},150))}function xo(X){for(var Q=X.display,ae=Q.lineDiv.offsetTop,oe=Math.max(0,Q.scroller.getBoundingClientRect().top),de=Q.lineDiv.getBoundingClientRect().top,Ee=0,Ie=0;Ie<Q.view.length;Ie++){var He=Q.view[Ie],Xe=X.options.lineWrapping,tt=void 0,At=0;if(!He.hidden){if(de+=He.line.height,Y&&K<8){var It=He.node.offsetTop+He.node.offsetHeight;tt=It-ae,ae=It}else{var rn=He.node.getBoundingClientRect();tt=rn.bottom-rn.top,!Xe&&He.text.firstChild&&(At=He.text.firstChild.getBoundingClientRect().right-rn.left-1)}var Jt=He.line.height-tt;if((Jt>.005||Jt<-.005)&&(de<oe&&(Ee-=Jt),hr(He.line,tt),Ho(He.line),He.rest))for(var $n=0;$n<He.rest.length;$n++)Ho(He.rest[$n]);if(At>X.display.sizerWidth){var Nn=Math.ceil(At/ds(X.display));Nn>X.display.maxLineLength&&(X.display.maxLineLength=Nn,X.display.maxLine=He.line,X.display.maxLineChanged=!0)}}}Math.abs(Ee)>2&&(Q.scroller.scrollTop+=Ee)}function Ho(X){if(X.widgets)for(var Q=0;Q<X.widgets.length;++Q){var ae=X.widgets[Q],oe=ae.node.parentNode;oe&&(ae.height=oe.offsetHeight)}}function pa(X,Q,ae){var oe=ae&&ae.top!=null?Math.max(0,ae.top):X.scroller.scrollTop;oe=Math.floor(oe-ys(X));var de=ae&&ae.bottom!=null?ae.bottom:oe+X.wrapper.clientHeight,Ee=er(Q,oe),Ie=er(Q,de);if(ae&&ae.ensure){var He=ae.ensure.from.line,Xe=ae.ensure.to.line;He<Ee?(Ee=He,Ie=er(Q,jt(Pn(Q,He))+X.wrapper.clientHeight)):Math.min(Xe,Q.lastLine())>=Ie&&(Ee=er(Q,jt(Pn(Q,Xe))-X.wrapper.clientHeight),Ie=Xe)}return{from:Ee,to:Math.max(Ie,Ee+1)}}function Wo(X,Q){if(!mn(X,"scrollCursorIntoView")){var ae=X.display,oe=ae.sizer.getBoundingClientRect(),de=null,Ee=ae.wrapper.ownerDocument;if(Q.top+oe.top<0?de=!0:Q.bottom+oe.top>(Ee.defaultView.innerHeight||Ee.documentElement.clientHeight)&&(de=!1),de!=null&&!ne){var Ie=Se("div","",null,`position: absolute; top: `+(Q.top-ae.viewOffset-ys(X.display))+`px; height: `+(Q.bottom-Q.top+us(X)+ae.barHeight)+`px; left: `+Q.left+"px; width: "+Math.max(2,Q.right-Q.left)+"px;");X.display.lineSpace.appendChild(Ie),Ie.scrollIntoView(de),X.display.lineSpace.removeChild(Ie)}}}function ha(X,Q,ae,oe){oe==null&&(oe=0);var de;!X.options.lineWrapping&&Q==ae&&(ae=Q.sticky=="before"?wt(Q.line,Q.ch+1,"before"):Q,Q=Q.ch?wt(Q.line,Q.sticky=="before"?Q.ch-1:Q.ch,"after"):Q);for(var Ee=0;Ee<5;Ee++){var Ie=!1,He=ei(X,Q),Xe=!ae||ae==Q?He:ei(X,ae);de={left:Math.min(He.left,Xe.left),top:Math.min(He.top,Xe.top)-oe,right:Math.max(He.left,Xe.left),bottom:Math.max(He.bottom,Xe.bottom)+oe};var tt=Ma(X,de),At=X.doc.scrollTop,It=X.doc.scrollLeft;if(tt.scrollTop!=null&&(Ys(X,tt.scrollTop),Math.abs(X.doc.scrollTop-At)>1&&(Ie=!0)),tt.scrollLeft!=null&&(ps(X,tt.scrollLeft),Math.abs(X.doc.scrollLeft-It)>1&&(Ie=!0)),!Ie)break}return de}function so(X,Q){var ae=Ma(X,Q);ae.scrollTop!=null&&Ys(X,ae.scrollTop),ae.scrollLeft!=null&&ps(X,ae.scrollLeft)}function Ma(X,Q){var ae=X.display,oe=Vi(X.display);Q.top<0&&(Q.top=0);var de=X.curOp&&X.curOp.scrollTop!=null?X.curOp.scrollTop:ae.scroller.scrollTop,Ee=jo(X),Ie={};Q.bottom-Q.top>Ee&&(Q.bottom=Q.top+Ee);var He=X.doc.height+Li(ae),Xe=Q.top<oe,tt=Q.bottom>He-oe;if(Q.top<de)Ie.scrollTop=Xe?0:Q.top;else if(Q.bottom>de+Ee){var At=Math.min(Q.top,(tt?He:Q.bottom)-Ee);At!=de&&(Ie.scrollTop=At)}var It=X.options.fixedGutter?0:ae.gutters.offsetWidth,rn=X.curOp&&X.curOp.scrollLeft!=null?X.curOp.scrollLeft:ae.scroller.scrollLeft-It,Jt=Ms(X)-ae.gutters.offsetWidth,$n=Q.right-Q.left>Jt;return $n&&(Q.right=Q.left+Jt),Q.left<10?Ie.scrollLeft=0:Q.left<rn?Ie.scrollLeft=Math.max(0,Q.left+It-($n?0:10)):Q.right>Jt+rn-3&&(Ie.scrollLeft=Q.right+($n?0:10)-Jt),Ie}function Ia(X,Q){Q!=null&&(wo(X),X.curOp.scrollTop=(X.curOp.scrollTop==null?X.doc.scrollTop:X.curOp.scrollTop)+Q)}function oo(X){wo(X);var Q=X.getCursor();X.curOp.scrollToPos={from:Q,to:Q,margin:X.options.cursorScrollMargin}}function qo(X,Q,ae){(Q!=null||ae!=null)&&wo(X),Q!=null&&(X.curOp.scrollLeft=Q),ae!=null&&(X.curOp.scrollTop=ae)}function Hl(X,Q){wo(X),X.curOp.scrollToPos=Q}function wo(X){var Q=X.curOp.scrollToPos;if(Q){X.curOp.scrollToPos=null;var ae=Xr(X,Q.from),oe=Xr(X,Q.to);ma(X,ae,oe,Q.margin)}}function ma(X,Q,ae,oe){var de=Ma(X,{left:Math.min(Q.left,ae.left),top:Math.min(Q.top,ae.top)-oe,right:Math.max(Q.right,ae.right),bottom:Math.max(Q.bottom,ae.bottom)+oe});qo(X,de.scrollLeft,de.scrollTop)}function Ys(X,Q){Math.abs(X.doc.scrollTop-Q)<2||(B||Fa(X,{top:Q}),pl(X,Q,!0),B&&Fa(X),lo(X,100))}function pl(X,Q,ae){Q=Math.max(0,Math.min(X.display.scroller.scrollHeight-X.display.scroller.clientHeight,Q)),!(X.display.scroller.scrollTop==Q&&!ae)&&(X.doc.scrollTop=Q,X.display.scrollbars.setScrollTop(Q),X.display.scroller.scrollTop!=Q&&(X.display.scroller.scrollTop=Q))}function ps(X,Q,ae,oe){Q=Math.max(0,Math.min(Q,X.display.scroller.scrollWidth-X.display.scroller.clientWidth)),!((ae?Q==X.doc.scrollLeft:Math.abs(X.doc.scrollLeft-Q)<2)&&!oe)&&(X.doc.scrollLeft=Q,ja(X),X.display.scroller.scrollLeft!=Q&&(X.display.scroller.scrollLeft=Q),X.display.scrollbars.setScrollLeft(Q))}function Yo(X){var Q=X.display,ae=Q.gutters.offsetWidth,oe=Math.round(X.doc.height+Li(X.display));return{clientHeight:Q.scroller.clientHeight,viewHeight:Q.wrapper.clientHeight,scrollWidth:Q.scroller.scrollWidth,clientWidth:Q.scroller.clientWidth,viewWidth:Q.wrapper.clientWidth,barLeft:X.options.fixedGutter?ae:0,docHeight:oe,scrollHeight:oe+us(X)+Q.barHeight,nativeBarWidth:Q.nativeBarWidth,gutterWidth:ae}}var Ks=function(X,Q,ae){this.cm=ae;var oe=this.vert=Se("div",[Se("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),de=this.horiz=Se("div",[Se("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");oe.tabIndex=de.tabIndex=-1,X(oe),X(de),pt(oe,"scroll",function(){oe.clientHeight&&Q(oe.scrollTop,"vertical")}),pt(de,"scroll",function(){de.clientWidth&&Q(de.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Y&&K<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ks.prototype.update=function(X){var Q=X.scrollWidth>X.clientWidth+1,ae=X.scrollHeight>X.clientHeight+1,oe=X.nativeBarWidth;if(ae){this.vert.style.display="block",this.vert.style.bottom=Q?oe+"px":"0";var de=X.viewHeight-(Q?oe:0);this.vert.firstChild.style.height=Math.max(0,X.scrollHeight-X.clientHeight+de)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(Q){this.horiz.style.display="block",this.horiz.style.right=ae?oe+"px":"0",this.horiz.style.left=X.barLeft+"px";var Ee=X.viewWidth-X.barLeft-(ae?oe:0);this.horiz.firstChild.style.width=Math.max(0,X.scrollWidth-X.clientWidth+Ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&X.clientHeight>0&&(oe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ae?oe:0,bottom:Q?oe:0}},Ks.prototype.setScrollLeft=function(X){this.horiz.scrollLeft!=X&&(this.horiz.scrollLeft=X),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ks.prototype.setScrollTop=function(X){this.vert.scrollTop!=X&&(this.vert.scrollTop=X),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ks.prototype.zeroWidthHack=function(){var X=_e&&!re?"12px":"18px";this.horiz.style.height=this.vert.style.width=X,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Gt,this.disableVert=new Gt},Ks.prototype.enableZeroWidthBar=function(X,Q,ae){X.style.visibility="";function oe(){var de=X.getBoundingClientRect(),Ee=ae=="vert"?document.elementFromPoint(de.right-1,(de.top+de.bottom)/2):document.elementFromPoint((de.right+de.left)/2,de.bottom-1);Ee!=X?X.style.visibility="hidden":Q.set(1e3,oe)}Q.set(1e3,oe)},Ks.prototype.clear=function(){var X=this.horiz.parentNode;X.removeChild(this.horiz),X.removeChild(this.vert)};var ko=function(){};ko.prototype.update=function(){return{bottom:0,right:0}},ko.prototype.setScrollLeft=function(){},ko.prototype.setScrollTop=function(){},ko.prototype.clear=function(){};function ao(X,Q){Q||(Q=Yo(X));var ae=X.display.barWidth,oe=X.display.barHeight;hl(X,Q);for(var de=0;de<4&&ae!=X.display.barWidth||oe!=X.display.barHeight;de++)ae!=X.display.barWidth&&X.options.lineWrapping&&xo(X),hl(X,Yo(X)),ae=X.display.barWidth,oe=X.display.barHeight}function hl(X,Q){var ae=X.display,oe=ae.scrollbars.update(Q);ae.sizer.style.paddingRight=(ae.barWidth=oe.right)+"px",ae.sizer.style.paddingBottom=(ae.barHeight=oe.bottom)+"px",ae.heightForcer.style.borderBottom=oe.bottom+"px solid transparent",oe.right&&oe.bottom?(ae.scrollbarFiller.style.display="block",ae.scrollbarFiller.style.height=oe.bottom+"px",ae.scrollbarFiller.style.width=oe.right+"px"):ae.scrollbarFiller.style.display="",oe.bottom&&X.options.coverGutterNextToScrollbar&&X.options.fixedGutter?(ae.gutterFiller.style.display="block",ae.gutterFiller.style.height=oe.bottom+"px",ae.gutterFiller.style.width=Q.gutterWidth+"px"):ae.gutterFiller.style.display=""}var Na={native:Ks,null:ko};function ml(X){X.display.scrollbars&&(X.display.scrollbars.clear(),X.display.scrollbars.addClass&&ve(X.display.wrapper,X.display.scrollbars.addClass)),X.display.scrollbars=new Na[X.options.scrollbarStyle](function(Q){X.display.wrapper.insertBefore(Q,X.display.scrollbarFiller),pt(Q,"mousedown",function(){X.state.focused&&setTimeout(function(){return X.display.input.focus()},0)}),Q.setAttribute("cm-not-content","true")},function(Q,ae){ae=="horizontal"?ps(X,Q):Ys(X,Q)},X),X.display.scrollbars.addClass&&Ze(X.display.wrapper,X.display.scrollbars.addClass)}var Wl=0;function Ns(X){X.curOp={cm:X,viewChanged:!1,startHeight:X.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wl,markArrays:null},_s(X.curOp)}function Ls(X){var Q=X.curOp;Q&&es(Q,function(ae){for(var oe=0;oe<ae.ops.length;oe++)ae.ops[oe].cm.curOp=null;ql(ae)})}function ql(X){for(var Q=X.ops,ae=0;ae<Q.length;ae++)gl(Q[ae]);for(var oe=0;oe<Q.length;oe++)ga(Q[oe]);for(var de=0;de<Q.length;de++)Yl(Q[de]);for(var Ee=0;Ee<Q.length;Ee++)_l(Q[Ee]);for(var Ie=0;Ie<Q.length;Ie++)vl(Q[Ie])}function gl(X){var Q=X.cm,ae=Q.display;Gl(Q),X.updateMaxLine&&Dn(Q),X.mustUpdate=X.viewChanged||X.forceUpdate||X.scrollTop!=null||X.scrollToPos&&(X.scrollToPos.from.line<ae.viewFrom||X.scrollToPos.to.line>=ae.viewTo)||ae.maxLineChanged&&Q.options.lineWrapping,X.update=X.mustUpdate&&new va(Q,X.mustUpdate&&{top:X.scrollTop,ensure:X.scrollToPos},X.forceUpdate)}function ga(X){X.updatedDisplay=X.mustUpdate&&La(X.cm,X.update)}function Yl(X){var Q=X.cm,ae=Q.display;X.updatedDisplay&&xo(Q),X.barMeasure=Yo(Q),ae.maxLineChanged&&!Q.options.lineWrapping&&(X.adjustWidthTo=Fe(Q,ae.maxLine,ae.maxLine.text.length).left+3,Q.display.sizerWidth=X.adjustWidthTo,X.barMeasure.scrollWidth=Math.max(ae.scroller.clientWidth,ae.sizer.offsetLeft+X.adjustWidthTo+us(Q)+Q.display.barWidth),X.maxScrollLeft=Math.max(0,ae.sizer.offsetLeft+X.adjustWidthTo-Ms(Q))),(X.updatedDisplay||X.selectionChanged)&&(X.preparedSelection=ae.input.prepareSelection())}function _l(X){var Q=X.cm;X.adjustWidthTo!=null&&(Q.display.sizer.style.minWidth=X.adjustWidthTo+"px",X.maxScrollLeft<Q.doc.scrollLeft&&ps(Q,Math.min(Q.display.scroller.scrollLeft,X.maxScrollLeft),!0),Q.display.maxLineChanged=!1);var ae=X.focus&&X.focus==ze(Ve(Q));X.preparedSelection&&Q.display.input.showSelection(X.preparedSelection,ae),(X.updatedDisplay||X.startHeight!=Q.doc.height)&&ao(Q,X.barMeasure),X.updatedDisplay&&za(Q,X.barMeasure),X.selectionChanged&&yo(Q),Q.state.focused&&X.updateInput&&Q.display.input.reset(X.typing),ae&&Vo(X.cm)}function vl(X){var Q=X.cm,ae=Q.display,oe=Q.doc;if(X.updatedDisplay&&bl(Q,X.update),ae.wheelStartX!=null&&(X.scrollTop!=null||X.scrollLeft!=null||X.scrollToPos)&&(ae.wheelStartX=ae.wheelStartY=null),X.scrollTop!=null&&pl(Q,X.scrollTop,X.forceScroll),X.scrollLeft!=null&&ps(Q,X.scrollLeft,!0,!0),X.scrollToPos){var de=ha(Q,cn(oe,X.scrollToPos.from),cn(oe,X.scrollToPos.to),X.scrollToPos.margin);Wo(Q,de)}var Ee=X.maybeHiddenMarkers,Ie=X.maybeUnhiddenMarkers;if(Ee)for(var He=0;He<Ee.length;++He)Ee[He].lines.length||Ht(Ee[He],"hide");if(Ie)for(var Xe=0;Xe<Ie.length;++Xe)Ie[Xe].lines.length&&Ht(Ie[Xe],"unhide");ae.wrapper.offsetHeight&&(oe.scrollTop=Q.display.scroller.scrollTop),X.changeObjs&&Ht(Q,"changes",Q,X.changeObjs),X.update&&X.update.finish()}function Wi(X,Q){if(X.curOp)return Q();Ns(X);try{return Q()}finally{Ls(X)}}function ki(X,Q){return function(){if(X.curOp)return Q.apply(X,arguments);Ns(X);try{return Q.apply(X,arguments)}finally{Ls(X)}}}function Ii(X){return function(){if(this.curOp)return X.apply(this,arguments);Ns(this);try{return X.apply(this,arguments)}finally{Ls(this)}}}function $i(X){return function(){var Q=this.cm;if(!Q||Q.curOp)return X.apply(this,arguments);Ns(Q);try{return X.apply(this,arguments)}finally{Ls(Q)}}}function lo(X,Q){X.doc.highlightFrontier<X.display.viewTo&&X.state.highlight.set(Q,Nt(Kl,X))}function Kl(X){var Q=X.doc;if(!(Q.highlightFrontier>=X.display.viewTo)){var ae=+new Date+X.options.workTime,oe=xn(X,Q.highlightFrontier),de=[];Q.iter(oe.line,Math.min(Q.first+Q.size,X.display.viewTo+500),function(Ee){if(oe.line>=X.display.viewFrom){var Ie=Ee.styles,He=Ee.text.length>X.options.maxHighlightLength?tr(Q.mode,oe.state):null,Xe=et(X,Ee,oe,!0);He&&(oe.state=He),Ee.styles=Xe.styles;var tt=Ee.styleClasses,At=Xe.classes;At?Ee.styleClasses=At:tt&&(Ee.styleClasses=null);for(var It=!Ie||Ie.length!=Ee.styles.length||tt!=At&&(!tt||!At||tt.bgClass!=At.bgClass||tt.textClass!=At.textClass),rn=0;!It&&rn<Ie.length;++rn)It=Ie[rn]!=Ee.styles[rn];It&&de.push(oe.line),Ee.stateAfter=oe.save(),oe.nextLine()}else Ee.text.length<=X.options.maxHighlightLength&&Un(X,Ee.text,oe),Ee.stateAfter=oe.line%5==0?oe.save():null,oe.nextLine();if(+new Date>ae)return lo(X,X.options.workDelay),!0}),Q.highlightFrontier=oe.line,Q.modeFrontier=Math.max(Q.modeFrontier,oe.line),de.length&&Wi(X,function(){for(var Ee=0;Ee<de.length;Ee++)ns(X,de[Ee],"text")})}}var va=function(X,Q,ae){var oe=X.display;this.viewport=Q,this.visible=pa(oe,X.doc,Q),this.editorIsHidden=!oe.wrapper.offsetWidth,this.wrapperHeight=oe.wrapper.clientHeight,this.wrapperWidth=oe.wrapper.clientWidth,this.oldDisplayWidth=Ms(X),this.force=ae,this.dims=$s(X),this.events=[]};va.prototype.signal=function(X,Q){Ct(X,Q)&&this.events.push(arguments)},va.prototype.finish=function(){for(var X=0;X<this.events.length;X++)Ht.apply(null,this.events[X])};function Gl(X){var Q=X.display;!Q.scrollbarsClipped&&Q.scroller.offsetWidth&&(Q.nativeBarWidth=Q.scroller.offsetWidth-Q.scroller.clientWidth,Q.heightForcer.style.height=us(X)+"px",Q.sizer.style.marginBottom=-Q.nativeBarWidth+"px",Q.sizer.style.borderRightWidth=us(X)+"px",Q.scrollbarsClipped=!0)}function Xl(X){if(X.hasFocus())return null;var Q=ze(Ve(X));if(!Q||!Be(X.display.lineDiv,Q))return null;var ae={activeElt:Q};if(window.getSelection){var oe=Dt(X).getSelection();oe.anchorNode&&oe.extend&&Be(X.display.lineDiv,oe.anchorNode)&&(ae.anchorNode=oe.anchorNode,ae.anchorOffset=oe.anchorOffset,ae.focusNode=oe.focusNode,ae.focusOffset=oe.focusOffset)}return ae}function Jl(X){if(!(!X||!X.activeElt||X.activeElt==ze(X.activeElt.ownerDocument))&&(X.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(X.activeElt.nodeName)&&X.anchorNode&&Be(document.body,X.anchorNode)&&Be(document.body,X.focusNode))){var Q=X.activeElt.ownerDocument,ae=Q.defaultView.getSelection(),oe=Q.createRange();oe.setEnd(X.anchorNode,X.anchorOffset),oe.collapse(!1),ae.removeAllRanges(),ae.addRange(oe),ae.extend(X.focusNode,X.focusOffset)}}function La(X,Q){var ae=X.display,oe=X.doc;if(Q.editorIsHidden)return Bi(X),!1;if(!Q.force&&Q.visible.from>=ae.viewFrom&&Q.visible.to<=ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>=ae.viewTo)&&ae.renderedView==ae.view&&ro(X)==0)return!1;yl(X)&&(Bi(X),Q.dims=$s(X));var de=oe.first+oe.size,Ee=Math.max(Q.visible.from-X.options.viewportMargin,oe.first),Ie=Math.min(de,Q.visible.to+X.options.viewportMargin);ae.viewFrom<Ee&&Ee-ae.viewFrom<20&&(Ee=Math.max(oe.first,ae.viewFrom)),ae.viewTo>Ie&&ae.viewTo-Ie<20&&(Ie=Math.min(de,ae.viewTo)),Yr&&(Ee=vt(X.doc,Ee),Ie=Rt(X.doc,Ie));var He=Ee!=ae.viewFrom||Ie!=ae.viewTo||ae.lastWrapHeight!=Q.wrapperHeight||ae.lastWrapWidth!=Q.wrapperWidth;Os(X,Ee,Ie),ae.viewOffset=jt(Pn(X.doc,ae.viewFrom)),X.display.mover.style.top=ae.viewOffset+"px";var Xe=ro(X);if(!He&&Xe==0&&!Q.force&&ae.renderedView==ae.view&&(ae.updateLineNumbers==null||ae.updateLineNumbers>=ae.viewTo))return!1;var tt=Xl(X);return Xe>4&&(ae.lineDiv.style.display="none"),Zl(X,ae.updateLineNumbers,Q.dims),Xe>4&&(ae.lineDiv.style.display=""),ae.renderedView=ae.view,Jl(tt),we(ae.cursorDiv),we(ae.selectionDiv),ae.gutters.style.height=ae.sizer.style.minHeight=0,He&&(ae.lastWrapHeight=Q.wrapperHeight,ae.lastWrapWidth=Q.wrapperWidth,lo(X,400)),ae.updateLineNumbers=null,!0}function bl(X,Q){for(var ae=Q.viewport,oe=!0;;oe=!1){if(!oe||!X.options.lineWrapping||Q.oldDisplayWidth==Ms(X)){if(ae&&ae.top!=null&&(ae={top:Math.min(X.doc.height+Li(X.display)-jo(X),ae.top)}),Q.visible=pa(X.display,X.doc,ae),Q.visible.from>=X.display.viewFrom&&Q.visible.to<=X.display.viewTo)break}else oe&&(Q.visible=pa(X.display,X.doc,ae));if(!La(X,Q))break;xo(X);var de=Yo(X);ks(X),ao(X,de),za(X,de),Q.force=!1}Q.signal(X,"update",X),(X.display.viewFrom!=X.display.reportedViewFrom||X.display.viewTo!=X.display.reportedViewTo)&&(Q.signal(X,"viewportChange",X,X.display.viewFrom,X.display.viewTo),X.display.reportedViewFrom=X.display.viewFrom,X.display.reportedViewTo=X.display.viewTo)}function Fa(X,Q){var ae=new va(X,Q);if(La(X,ae)){xo(X),bl(X,ae);var oe=Yo(X);ks(X),ao(X,oe),za(X,oe),ae.finish()}}function Zl(X,Q,ae){var oe=X.display,de=X.options.lineNumbers,Ee=oe.lineDiv,Ie=Ee.firstChild;function He($n){var Nn=$n.nextSibling;return G&&_e&&X.display.currentWheelTarget==$n?$n.style.display="none":$n.parentNode.removeChild($n),Nn}for(var Xe=oe.view,tt=oe.viewFrom,At=0;At<Xe.length;At++){var It=Xe[At];if(!It.hidden)if(!It.node||It.node.parentNode!=Ee){var rn=Ra(X,It,tt,ae);Ee.insertBefore(rn,Ie)}else{for(;Ie!=It.node;)Ie=He(Ie);var Jt=de&&Q!=null&&Q<=tt&&It.lineNumber;It.changes&&(tn(It.changes,"gutter")>-1&&(Jt=!1),oa(X,It,tt,ae)),Jt&&(we(It.lineNumber),It.lineNumber.appendChild(document.createTextNode(bt(X.options,tt)))),Ie=It.node.nextSibling}tt+=It.size}for(;Ie;)Ie=He(Ie)}function Ba(X){var Q=X.gutters.offsetWidth;X.sizer.style.marginLeft=Q+"px",mi(X,"gutterChanged",X)}function za(X,Q){X.display.sizer.style.minHeight=Q.docHeight+"px",X.display.heightForcer.style.top=Q.docHeight+"px",X.display.gutters.style.height=Q.docHeight+X.display.barHeight+us(X)+"px"}function ja(X){var Q=X.display,ae=Q.view;if(!(!Q.alignWidgets&&(!Q.gutters.firstChild||!X.options.fixedGutter))){for(var oe=xs(Q)-Q.scroller.scrollLeft+X.doc.scrollLeft,de=Q.gutters.offsetWidth,Ee=oe+"px",Ie=0;Ie<ae.length;Ie++)if(!ae[Ie].hidden){X.options.fixedGutter&&(ae[Ie].gutter&&(ae[Ie].gutter.style.left=Ee),ae[Ie].gutterBackground&&(ae[Ie].gutterBackground.style.left=Ee));var He=ae[Ie].alignable;if(He)for(var Xe=0;Xe<He.length;Xe++)He[Xe].style.left=Ee}X.options.fixedGutter&&(Q.gutters.style.left=oe+de+"px")}}function yl(X){if(!X.options.lineNumbers)return!1;var Q=X.doc,ae=bt(X.options,Q.first+Q.size-1),oe=X.display;if(ae.length!=oe.lineNumChars){var de=oe.measure.appendChild(Se("div",[Se("div",ae)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ee=de.firstChild.offsetWidth,Ie=de.offsetWidth-Ee;return oe.lineGutter.style.width="",oe.lineNumInnerWidth=Math.max(Ee,oe.lineGutter.offsetWidth-Ie)+1,oe.lineNumWidth=oe.lineNumInnerWidth+Ie,oe.lineNumChars=oe.lineNumInnerWidth?ae.length:-1,oe.lineGutter.style.width=oe.lineNumWidth+"px",Ba(X.display),!0}return!1}function Va(X,Q){for(var ae=[],oe=!1,de=0;de<X.length;de++){var Ee=X[de],Ie=null;if(typeof Ee!="string"&&(Ie=Ee.style,Ee=Ee.className),Ee=="CodeMirror-linenumbers")if(Q)oe=!0;else continue;ae.push({className:Ee,style:Ie})}return Q&&!oe&&ae.push({className:"CodeMirror-linenumbers",style:null}),ae}function xl(X){var Q=X.gutters,ae=X.gutterSpecs;we(Q),X.lineGutter=null;for(var oe=0;oe<ae.length;++oe){var de=ae[oe],Ee=de.className,Ie=de.style,He=Q.appendChild(Se("div",null,"CodeMirror-gutter "+Ee));Ie&&(He.style.cssText=Ie),Ee=="CodeMirror-linenumbers"&&(X.lineGutter=He,He.style.width=(X.lineNumWidth||1)+"px")}Q.style.display=ae.length?"":"none",Ba(X)}function Ko(X){xl(X.display),yi(X),ja(X)}function Ql(X,Q,ae,oe){var de=this;this.input=ae,de.scrollbarFiller=Se("div",null,"CodeMirror-scrollbar-filler"),de.scrollbarFiller.setAttribute("cm-not-content","true"),de.gutterFiller=Se("div",null,"CodeMirror-gutter-filler"),de.gutterFiller.setAttribute("cm-not-content","true"),de.lineDiv=Pe("div",null,"CodeMirror-code"),de.selectionDiv=Se("div",null,null,"position: relative; z-index: 1"),de.cursorDiv=Se("div",null,"CodeMirror-cursors"),de.measure=Se("div",null,"CodeMirror-measure"),de.lineMeasure=Se("div",null,"CodeMirror-measure"),de.lineSpace=Pe("div",[de.measure,de.lineMeasure,de.selectionDiv,de.cursorDiv,de.lineDiv],null,"position: relative; outline: none");var Ee=Pe("div",[de.lineSpace],"CodeMirror-lines");de.mover=Se("div",[Ee],null,"position: relative"),de.sizer=Se("div",[de.mover],"CodeMirror-sizer"),de.sizerWidth=null,de.heightForcer=Se("div",null,null,"position: absolute; height: "+Qt+"px; width: 1px;"),de.gutters=Se("div",null,"CodeMirror-gutters"),de.lineGutter=null,de.scroller=Se("div",[de.sizer,de.heightForcer,de.gutters],"CodeMirror-scroll"),de.scroller.setAttribute("tabIndex","-1"),de.wrapper=Se("div",[de.scrollbarFiller,de.gutterFiller,de.scroller],"CodeMirror"),Z&&ee>=105&&(de.wrapper.style.clipPath="inset(0px)"),de.wrapper.setAttribute("translate","no"),Y&&K<8&&(de.gutters.style.zIndex=-1,de.scroller.style.paddingRight=0),!G&&!(B&&ue)&&(de.scroller.draggable=!0),X&&(X.appendChild?X.appendChild(de.wrapper):X(de.wrapper)),de.viewFrom=de.viewTo=Q.first,de.reportedViewFrom=de.reportedViewTo=Q.first,de.view=[],de.renderedView=null,de.externalMeasured=null,de.viewOffset=0,de.lastWrapHeight=de.lastWrapWidth=0,de.updateLineNumbers=null,de.nativeBarWidth=de.barHeight=de.barWidth=0,de.scrollbarsClipped=!1,de.lineNumWidth=de.lineNumInnerWidth=de.lineNumChars=null,de.alignWidgets=!1,de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.maxLine=null,de.maxLineLength=0,de.maxLineChanged=!1,de.wheelDX=de.wheelDY=de.wheelStartX=de.wheelStartY=null,de.shift=!1,de.selForContextMenu=null,de.activeTouch=null,de.gutterSpecs=Va(oe.gutters,oe.lineNumbers),xl(de),ae.init(de)}var So=0,Ps=null;Y?Ps=-.53:B?Ps=15:Z?Ps=-.7:se&&(Ps=-1/3);function wl(X){var Q=X.wheelDeltaX,ae=X.wheelDeltaY;return Q==null&&X.detail&&X.axis==X.HORIZONTAL_AXIS&&(Q=X.detail),ae==null&&X.detail&&X.axis==X.VERTICAL_AXIS?ae=X.detail:ae==null&&(ae=X.wheelDelta),{x:Q,y:ae}}function ec(X){var Q=wl(X);return Q.x*=Ps,Q.y*=Ps,Q}function Ua(X,Q){Z&&ee==102&&(X.display.chromeScrollHack==null?X.display.sizer.style.pointerEvents="none":clearTimeout(X.display.chromeScrollHack),X.display.chromeScrollHack=setTimeout(function(){X.display.chromeScrollHack=null,X.display.sizer.style.pointerEvents=""},100));var ae=wl(Q),oe=ae.x,de=ae.y,Ee=Ps;Q.deltaMode===0&&(oe=Q.deltaX,de=Q.deltaY,Ee=1);var Ie=X.display,He=Ie.scroller,Xe=He.scrollWidth>He.clientWidth,tt=He.scrollHeight>He.clientHeight;if(oe&&Xe||de&&tt){if(de&&_e&&G){e:for(var At=Q.target,It=Ie.view;At!=He;At=At.parentNode)for(var rn=0;rn<It.length;rn++)if(It[rn].node==At){X.display.currentWheelTarget=At;break e}}if(oe&&!B&&!te&&Ee!=null){de&&tt&&Ys(X,Math.max(0,He.scrollTop+de*Ee)),ps(X,Math.max(0,He.scrollLeft+oe*Ee)),(!de||de&&tt)&&Tt(Q),Ie.wheelStartX=null;return}if(de&&Ee!=null){var Jt=de*Ee,$n=X.doc.scrollTop,Nn=$n+Ie.wrapper.clientHeight;Jt<0?$n=Math.max(0,$n+Jt-50):Nn=Math.min(X.doc.height,Nn+Jt+50),Fa(X,{top:$n,bottom:Nn})}So<20&&Q.deltaMode!==0&&(Ie.wheelStartX==null?(Ie.wheelStartX=He.scrollLeft,Ie.wheelStartY=He.scrollTop,Ie.wheelDX=oe,Ie.wheelDY=de,setTimeout(function(){if(Ie.wheelStartX!=null){var qn=He.scrollLeft-Ie.wheelStartX,nr=He.scrollTop-Ie.wheelStartY,dr=nr&&Ie.wheelDY&&nr/Ie.wheelDY||qn&&Ie.wheelDX&&qn/Ie.wheelDX;Ie.wheelStartX=Ie.wheelStartY=null,dr&&(Ps=(Ps*So+dr)/(So+1),++So)}},200)):(Ie.wheelDX+=oe,Ie.wheelDY+=de))}}var $r=function(X,Q){this.ranges=X,this.primIndex=Q};$r.prototype.primary=function(){return this.ranges[this.primIndex]},$r.prototype.equals=function(X){if(X==this)return!0;if(X.primIndex!=this.primIndex||X.ranges.length!=this.ranges.length)return!1;for(var Q=0;Q<this.ranges.length;Q++){var ae=this.ranges[Q],oe=X.ranges[Q];if(!Yt(ae.anchor,oe.anchor)||!Yt(ae.head,oe.head))return!1}return!0},$r.prototype.deepCopy=function(){for(var X=[],Q=0;Q<this.ranges.length;Q++)X[Q]=new qr(Mt(this.ranges[Q].anchor),Mt(this.ranges[Q].head));return new $r(X,this.primIndex)},$r.prototype.somethingSelected=function(){for(var X=0;X<this.ranges.length;X++)if(!this.ranges[X].empty())return!0;return!1},$r.prototype.contains=function(X,Q){Q||(Q=X);for(var ae=0;ae<this.ranges.length;ae++){var oe=this.ranges[ae];if(Bt(Q,oe.from())>=0&&Bt(X,oe.to())<=0)return ae}return-1};var qr=function(X,Q){this.anchor=X,this.head=Q};qr.prototype.from=function(){return pn(this.anchor,this.head)},qr.prototype.to=function(){return en(this.anchor,this.head)},qr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function rs(X,Q,ae){var oe=X&&X.options.selectionsMayTouch,de=Q[ae];Q.sort(function(rn,Jt){return Bt(rn.from(),Jt.from())}),ae=tn(Q,de);for(var Ee=1;Ee<Q.length;Ee++){var Ie=Q[Ee],He=Q[Ee-1],Xe=Bt(He.to(),Ie.from());if(oe&&!Ie.empty()?Xe>0:Xe>=0){var tt=pn(He.from(),Ie.from()),At=en(He.to(),Ie.to()),It=He.empty()?Ie.from()==Ie.head:He.from()==He.head;Ee<=ae&&--ae,Q.splice(--Ee,2,new qr(It?At:tt,It?tt:At))}}return new $r(Q,ae)}function qi(X,Q){return new $r([new qr(X,Q||X)],0)}function Ss(X){return X.text?wt(X.from.line+X.text.length-1,Et(X.text).length+(X.text.length==1?X.from.ch:0)):X.to}function kl(X,Q){if(Bt(X,Q.from)<0)return X;if(Bt(X,Q.to)<=0)return Ss(Q);var ae=X.line+Q.text.length-(Q.to.line-Q.from.line)-1,oe=X.ch;return X.line==Q.to.line&&(oe+=Ss(Q).ch-Q.to.ch),wt(ae,oe)}function Eo(X,Q){for(var ae=[],oe=0;oe<X.sel.ranges.length;oe++){var de=X.sel.ranges[oe];ae.push(new qr(kl(de.anchor,Q),kl(de.head,Q)))}return rs(X.cm,ae,X.sel.primIndex)}function Ha(X,Q,ae){return X.line==Q.line?wt(ae.line,X.ch-Q.ch+ae.ch):wt(ae.line+(X.line-Q.line),X.ch)}function tc(X,Q,ae){for(var oe=[],de=wt(X.first,0),Ee=de,Ie=0;Ie<Q.length;Ie++){var He=Q[Ie],Xe=Ha(He.from,de,Ee),tt=Ha(Ss(He),de,Ee);if(de=He.to,Ee=tt,ae=="around"){var At=X.sel.ranges[Ie],It=Bt(At.head,At.anchor)<0;oe[Ie]=new qr(It?tt:Xe,It?Xe:tt)}else oe[Ie]=new qr(Xe,Xe)}return new $r(oe,X.sel.primIndex)}function Go(X){X.doc.mode=Qn(X.options,X.doc.modeOption),Fs(X)}function Fs(X){X.doc.iter(function(Q){Q.stateAfter&&(Q.stateAfter=null),Q.styles&&(Q.styles=null)}),X.doc.modeFrontier=X.doc.highlightFrontier=X.doc.first,lo(X,100),X.state.modeGen++,X.curOp&&yi(X)}function Xo(X,Q){return Q.from.ch==0&&Q.to.ch==0&&Et(Q.text)==""&&(!X.cm||X.cm.options.wholeLineUpdateBefore)}function Co(X,Q,ae,oe){function de(dr){return ae?ae[dr]:null}function Ee(dr,rr,gr){gn(dr,rr,gr,oe),mi(dr,"change",dr,Q)}function Ie(dr,rr){for(var gr=[],Or=dr;Or<rr;++Or)gr.push(new _n(tt[Or],de(Or),oe));return gr}var He=Q.from,Xe=Q.to,tt=Q.text,At=Pn(X,He.line),It=Pn(X,Xe.line),rn=Et(tt),Jt=de(tt.length-1),$n=Xe.line-He.line;if(Q.full)X.insert(0,Ie(0,tt.length)),X.remove(tt.length,X.size-tt.length);else if(Xo(X,Q)){var Nn=Ie(0,tt.length-1);Ee(It,It.text,Jt),$n&&X.remove(He.line,$n),Nn.length&&X.insert(He.line,Nn)}else if(At==It)if(tt.length==1)Ee(At,At.text.slice(0,He.ch)+rn+At.text.slice(Xe.ch),Jt);else{var qn=Ie(1,tt.length-1);qn.push(new _n(rn+At.text.slice(Xe.ch),Jt,oe)),Ee(At,At.text.slice(0,He.ch)+tt[0],de(0)),X.insert(He.line+1,qn)}else if(tt.length==1)Ee(At,At.text.slice(0,He.ch)+tt[0]+It.text.slice(Xe.ch),de(0)),X.remove(He.line+1,$n);else{Ee(At,At.text.slice(0,He.ch)+tt[0],de(0)),Ee(It,rn+It.text.slice(Xe.ch),Jt);var nr=Ie(1,tt.length-1);$n>1&&X.remove(He.line+1,$n-1),X.insert(He.line+1,nr)}mi(X,"change",X,Q)}function hs(X,Q,ae){function oe(de,Ee,Ie){if(de.linked)for(var He=0;He<de.linked.length;++He){var Xe=de.linked[He];if(Xe.doc!=Ee){var tt=Ie&&Xe.sharedHist;ae&&!tt||(Q(Xe.doc,tt),oe(Xe.doc,de,tt))}}}oe(X,null,!0)}function Jo(X,Q){if(Q.cm)throw new Error("This document is already in use.");X.doc=Q,Q.cm=X,Ts(X),Go(X),Sl(X),X.options.direction=Q.direction,X.options.lineWrapping||Dn(X),X.options.mode=Q.modeOption,yi(X)}function Sl(X){(X.doc.direction=="rtl"?Ze:ve)(X.display.lineDiv,"CodeMirror-rtl")}function nc(X){Wi(X,function(){Sl(X),yi(X)})}function ba(X){this.done=[],this.undone=[],this.undoDepth=X?X.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=X?X.maxGeneration:1}function Wa(X,Q){var ae={from:Mt(Q.from),to:Ss(Q),text:mr(X,Q.from,Q.to)};return Cl(X,ae,Q.from.line,Q.to.line+1),hs(X,function(oe){return Cl(oe,ae,Q.from.line,Q.to.line+1)},!0),ae}function El(X){for(;X.length;){var Q=Et(X);if(Q.ranges)X.pop();else break}}function rc(X,Q){if(Q)return El(X.done),Et(X.done);if(X.done.length&&!Et(X.done).ranges)return Et(X.done);if(X.done.length>1&&!X.done[X.done.length-2].ranges)return X.done.pop(),Et(X.done)}function qa(X,Q,ae,oe){var de=X.history;de.undone.length=0;var Ee=+new Date,Ie,He;if((de.lastOp==oe||de.lastOrigin==Q.origin&&Q.origin&&(Q.origin.charAt(0)=="+"&&de.lastModTime>Ee-(X.cm?X.cm.options.historyEventDelay:500)||Q.origin.charAt(0)=="*"))&&(Ie=rc(de,de.lastOp==oe)))He=Et(Ie.changes),Bt(Q.from,Q.to)==0&&Bt(Q.from,He.to)==0?He.to=Ss(Q):Ie.changes.push(Wa(X,Q));else{var Xe=Et(de.done);for((!Xe||!Xe.ranges)&&ya(X.sel,de.done),Ie={changes:[Wa(X,Q)],generation:de.generation},de.done.push(Ie);de.done.length>de.undoDepth;)de.done.shift(),de.done[0].ranges||de.done.shift()}de.done.push(ae),de.generation=++de.maxGeneration,de.lastModTime=de.lastSelTime=Ee,de.lastOp=de.lastSelOp=oe,de.lastOrigin=de.lastSelOrigin=Q.origin,He||Ht(X,"historyAdded")}function Ya(X,Q,ae,oe){var de=Q.charAt(0);return de=="*"||de=="+"&&ae.ranges.length==oe.ranges.length&&ae.somethingSelected()==oe.somethingSelected()&&new Date-X.history.lastSelTime<=(X.cm?X.cm.options.historyEventDelay:500)}function ic(X,Q,ae,oe){var de=X.history,Ee=oe&&oe.origin;ae==de.lastSelOp||Ee&&de.lastSelOrigin==Ee&&(de.lastModTime==de.lastSelTime&&de.lastOrigin==Ee||Ya(X,Ee,Et(de.done),Q))?de.done[de.done.length-1]=Q:ya(Q,de.done),de.lastSelTime=+new Date,de.lastSelOrigin=Ee,de.lastSelOp=ae,oe&&oe.clearRedo!==!1&&El(de.undone)}function ya(X,Q){var ae=Et(Q);ae&&ae.ranges&&ae.equals(X)||Q.push(X)}function Cl(X,Q,ae,oe){var de=Q["spans_"+X.id],Ee=0;X.iter(Math.max(X.first,ae),Math.min(X.first+X.size,oe),function(Ie){Ie.markedSpans&&((de||(de=Q["spans_"+X.id]={}))[Ee]=Ie.markedSpans),++Ee})}function sc(X){if(!X)return null;for(var Q,ae=0;ae<X.length;++ae)X[ae].marker.explicitlyCleared?Q||(Q=X.slice(0,ae)):Q&&Q.push(X[ae]);return Q?Q.length?Q:null:X}function oc(X,Q){var ae=Q["spans_"+X.id];if(!ae)return null;for(var oe=[],de=0;de<Q.text.length;++de)oe.push(sc(ae[de]));return oe}function $l(X,Q){var ae=oc(X,Q),oe=Qi(X,Q);if(!ae)return oe;if(!oe)return ae;for(var de=0;de<ae.length;++de){var Ee=ae[de],Ie=oe[de];if(Ee&&Ie)e:for(var He=0;He<Ie.length;++He){for(var Xe=Ie[He],tt=0;tt<Ee.length;++tt)if(Ee[tt].marker==Xe.marker)continue e;Ee.push(Xe)}else Ie&&(ae[de]=Ie)}return ae}function $o(X,Q,ae){for(var oe=[],de=0;de<X.length;++de){var Ee=X[de];if(Ee.ranges){oe.push(ae?$r.prototype.deepCopy.call(Ee):Ee);continue}var Ie=Ee.changes,He=[];oe.push({changes:He});for(var Xe=0;Xe<Ie.length;++Xe){var tt=Ie[Xe],At=void 0;if(He.push({from:tt.from,to:tt.to,text:tt.text}),Q)for(var It in tt)(At=It.match(/^spans_(\d+)$/))&&tn(Q,Number(At[1]))>-1&&(Et(He)[It]=tt[It],delete tt[It])}}return oe}function Ka(X,Q,ae,oe){if(oe){var de=X.anchor;if(ae){var Ee=Bt(Q,de)<0;Ee!=Bt(ae,de)<0?(de=Q,Q=ae):Ee!=Bt(Q,ae)<0&&(Q=ae)}return new qr(de,Q)}else return new qr(ae||Q,Q)}function De(X,Q,ae,oe,de){de==null&&(de=X.cm&&(X.cm.display.shift||X.extend)),an(X,new $r([Ka(X.sel.primary(),Q,ae,de)],0),oe)}function Le(X,Q,ae){for(var oe=[],de=X.cm&&(X.cm.display.shift||X.extend),Ee=0;Ee<X.sel.ranges.length;Ee++)oe[Ee]=Ka(X.sel.ranges[Ee],Q[Ee],null,de);var Ie=rs(X.cm,oe,X.sel.primIndex);an(X,Ie,ae)}function at(X,Q,ae,oe){var de=X.sel.ranges.slice(0);de[Q]=ae,an(X,rs(X.cm,de,X.sel.primIndex),oe)}function yt(X,Q,ae,oe){an(X,qi(Q,ae),oe)}function Ut(X,Q,ae){var oe={ranges:Q.ranges,update:function(de){this.ranges=[];for(var Ee=0;Ee<de.length;Ee++)this.ranges[Ee]=new qr(cn(X,de[Ee].anchor),cn(X,de[Ee].head))},origin:ae&&ae.origin};return Ht(X,"beforeSelectionChange",X,oe),X.cm&&Ht(X.cm,"beforeSelectionChange",X.cm,oe),oe.ranges!=Q.ranges?rs(X.cm,oe.ranges,oe.ranges.length-1):Q}function $t(X,Q,ae){var oe=X.history.done,de=Et(oe);de&&de.ranges?(oe[oe.length-1]=Q,Cn(X,Q,ae)):an(X,Q,ae)}function an(X,Q,ae){Cn(X,Q,ae),ic(X,X.sel,X.cm?X.cm.curOp.id:NaN,ae)}function Cn(X,Q,ae){(Ct(X,"beforeSelectionChange")||X.cm&&Ct(X.cm,"beforeSelectionChange"))&&(Q=Ut(X,Q,ae));var oe=ae&&ae.bias||(Bt(Q.primary().head,X.sel.primary().head)<0?-1:1);On(X,pr(X,Q,oe,!0)),!(ae&&ae.scroll===!1)&&X.cm&&X.cm.getOption("readOnly")!="nocursor"&&oo(X.cm)}function On(X,Q){Q.equals(X.sel)||(X.sel=Q,X.cm&&(X.cm.curOp.updateInput=1,X.cm.curOp.selectionChanged=!0,Yn(X.cm)),mi(X,"cursorActivity",X))}function Zn(X){On(X,pr(X,X.sel,null,!1))}function pr(X,Q,ae,oe){for(var de,Ee=0;Ee<Q.ranges.length;Ee++){var Ie=Q.ranges[Ee],He=Q.ranges.length==X.sel.ranges.length&&X.sel.ranges[Ee],Xe=Kn(X,Ie.anchor,He&&He.anchor,ae,oe),tt=Ie.head==Ie.anchor?Xe:Kn(X,Ie.head,He&&He.head,ae,oe);(de||Xe!=Ie.anchor||tt!=Ie.head)&&(de||(de=Q.ranges.slice(0,Ee)),de[Ee]=new qr(Xe,tt))}return de?rs(X.cm,de,Q.primIndex):Q}function Vn(X,Q,ae,oe,de){var Ee=Pn(X,Q.line);if(Ee.markedSpans)for(var Ie=0;Ie<Ee.markedSpans.length;++Ie){var He=Ee.markedSpans[Ie],Xe=He.marker,tt="selectLeft"in Xe?!Xe.selectLeft:Xe.inclusiveLeft,At="selectRight"in Xe?!Xe.selectRight:Xe.inclusiveRight;if((He.from==null||(tt?He.from<=Q.ch:He.from<Q.ch))&&(He.to==null||(At?He.to>=Q.ch:He.to>Q.ch))){if(de&&(Ht(Xe,"beforeCursorEnter"),Xe.explicitlyCleared))if(Ee.markedSpans){--Ie;continue}else break;if(!Xe.atomic)continue;if(ae){var It=Xe.find(oe<0?1:-1),rn=void 0;if((oe<0?At:tt)&&(It=lr(X,It,-oe,It&&It.line==Q.line?Ee:null)),It&&It.line==Q.line&&(rn=Bt(It,ae))&&(oe<0?rn<0:rn>0))return Vn(X,It,Q,oe,de)}var Jt=Xe.find(oe<0?-1:1);return(oe<0?tt:At)&&(Jt=lr(X,Jt,oe,Jt.line==Q.line?Ee:null)),Jt?Vn(X,Jt,Q,oe,de):null}}return Q}function Kn(X,Q,ae,oe,de){var Ee=oe||1,Ie=Vn(X,Q,ae,Ee,de)||!de&&Vn(X,Q,ae,Ee,!0)||Vn(X,Q,ae,-Ee,de)||!de&&Vn(X,Q,ae,-Ee,!0);return Ie||(X.cantEdit=!0,wt(X.first,0))}function lr(X,Q,ae,oe){return ae<0&&Q.ch==0?Q.line>X.first?cn(X,wt(Q.line-1)):null:ae>0&&Q.ch==(oe||Pn(X,Q.line)).text.length?Q.line<X.first+X.size-1?wt(Q.line+1,0):null:new wt(Q.line,Q.ch+ae)}function Tr(X){X.setSelection(wt(X.firstLine(),0),wt(X.lastLine()),kn)}function Lr(X,Q,ae){var oe={canceled:!1,from:Q.from,to:Q.to,text:Q.text,origin:Q.origin,cancel:function(){return oe.canceled=!0}};return ae&&(oe.update=function(de,Ee,Ie,He){de&&(oe.from=cn(X,de)),Ee&&(oe.to=cn(X,Ee)),Ie&&(oe.text=Ie),He!==void 0&&(oe.origin=He)}),Ht(X,"beforeChange",X,oe),X.cm&&Ht(X.cm,"beforeChange",X.cm,oe),oe.canceled?(X.cm&&(X.cm.curOp.updateInput=2),null):{from:oe.from,to:oe.to,text:oe.text,origin:oe.origin}}function Ar(X,Q,ae){if(X.cm){if(!X.cm.curOp)return ki(X.cm,Ar)(X,Q,ae);if(X.cm.state.suppressEdits)return}if(!((Ct(X,"beforeChange")||X.cm&&Ct(X.cm,"beforeChange"))&&(Q=Lr(X,Q,!0),!Q))){var oe=ri&&!ae&&po(X,Q.from,Q.to);if(oe)for(var de=oe.length-1;de>=0;--de)jr(X,{from:oe[de].from,to:oe[de].to,text:de?[""]:Q.text,origin:Q.origin});else jr(X,Q)}}function jr(X,Q){if(!(Q.text.length==1&&Q.text[0]==""&&Bt(Q.from,Q.to)==0)){var ae=Eo(X,Q);qa(X,Q,ae,X.cm?X.cm.curOp.id:NaN),Yi(X,Q,ae,Qi(X,Q));var oe=[];hs(X,function(de,Ee){!Ee&&tn(oe,de.history)==-1&&(Ja(de.history,Q),oe.push(de.history)),Yi(de,Q,null,Qi(de,Q))})}}function Kr(X,Q,ae){var oe=X.cm&&X.cm.state.suppressEdits;if(!(oe&&!ae)){for(var de=X.history,Ee,Ie=X.sel,He=Q=="undo"?de.done:de.undone,Xe=Q=="undo"?de.undone:de.done,tt=0;tt<He.length&&(Ee=He[tt],!(ae?Ee.ranges&&!Ee.equals(X.sel):!Ee.ranges));tt++);if(tt!=He.length){for(de.lastOrigin=de.lastSelOrigin=null;;)if(Ee=He.pop(),Ee.ranges){if(ya(Ee,Xe),ae&&!Ee.equals(X.sel)){an(X,Ee,{clearRedo:!1});return}Ie=Ee}else if(oe){He.push(Ee);return}else break;var At=[];ya(Ie,Xe),Xe.push({changes:At,generation:de.generation}),de.generation=Ee.generation||++de.maxGeneration;for(var It=Ct(X,"beforeChange")||X.cm&&Ct(X.cm,"beforeChange"),rn=function(Nn){var qn=Ee.changes[Nn];if(qn.origin=Q,It&&!Lr(X,qn,!1))return He.length=0,{};At.push(Wa(X,qn));var nr=Nn?Eo(X,qn):Et(He);Yi(X,qn,nr,$l(X,qn)),!Nn&&X.cm&&X.cm.scrollIntoView({from:qn.from,to:Ss(qn)});var dr=[];hs(X,function(rr,gr){!gr&&tn(dr,rr.history)==-1&&(Ja(rr.history,qn),dr.push(rr.history)),Yi(rr,qn,null,$l(rr,qn))})},Jt=Ee.changes.length-1;Jt>=0;--Jt){var $n=rn(Jt);if($n)return $n.v}}}}function ci(X,Q){if(Q!=0&&(X.first+=Q,X.sel=new $r(We(X.sel.ranges,function(de){return new qr(wt(de.anchor.line+Q,de.anchor.ch),wt(de.head.line+Q,de.head.ch))}),X.sel.primIndex),X.cm)){yi(X.cm,X.first,X.first-Q,Q);for(var ae=X.cm.display,oe=ae.viewFrom;oe<ae.viewTo;oe++)ns(X.cm,oe,"gutter")}}function Yi(X,Q,ae,oe){if(X.cm&&!X.cm.curOp)return ki(X.cm,Yi)(X,Q,ae,oe);if(Q.to.line<X.first){ci(X,Q.text.length-1-(Q.to.line-Q.from.line));return}if(!(Q.from.line>X.lastLine())){if(Q.from.line<X.first){var de=Q.text.length-1-(X.first-Q.from.line);ci(X,de),Q={from:wt(X.first,0),to:wt(Q.to.line+de,Q.to.ch),text:[Et(Q.text)],origin:Q.origin}}var Ee=X.lastLine();Q.to.line>Ee&&(Q={from:Q.from,to:wt(Ee,Pn(X,Ee).text.length),text:[Q.text[0]],origin:Q.origin}),Q.removed=mr(X,Q.from,Q.to),ae||(ae=Eo(X,Q)),X.cm?Ga(X.cm,Q,oe):Co(X,Q,oe),Cn(X,ae,kn),X.cantEdit&&Kn(X,wt(X.firstLine(),0))&&(X.cantEdit=!1)}}function Ga(X,Q,ae){var oe=X.doc,de=X.display,Ee=Q.from,Ie=Q.to,He=!1,Xe=Ee.line;X.options.lineWrapping||(Xe=Bn(je(Pn(oe,Ee.line))),oe.iter(Xe,Ie.line+1,function(Jt){if(Jt==de.maxLine)return He=!0,!0})),oe.sel.contains(Q.from,Q.to)>-1&&Yn(X),Co(oe,Q,ae,vo(X)),X.options.lineWrapping||(oe.iter(Xe,Ee.line+Q.text.length,function(Jt){var $n=yn(Jt);$n>de.maxLineLength&&(de.maxLine=Jt,de.maxLineLength=$n,de.maxLineChanged=!0,He=!1)}),He&&(X.curOp.updateMaxLine=!0)),Jr(oe,Ee.line),lo(X,400);var tt=Q.text.length-(Ie.line-Ee.line)-1;Q.full?yi(X):Ee.line==Ie.line&&Q.text.length==1&&!Xo(X.doc,Q)?ns(X,Ee.line,"text"):yi(X,Ee.line,Ie.line+1,tt);var At=Ct(X,"changes"),It=Ct(X,"change");if(It||At){var rn={from:Ee,to:Ie,text:Q.text,removed:Q.removed,origin:Q.origin};It&&mi(X,"change",X,rn),At&&(X.curOp.changeObjs||(X.curOp.changeObjs=[])).push(rn)}X.display.selForContextMenu=null}function Gs(X,Q,ae,oe,de){var Ee;oe||(oe=ae),Bt(oe,ae)<0&&(Ee=[oe,ae],ae=Ee[0],oe=Ee[1]),typeof Q=="string"&&(Q=X.splitLines(Q)),Ar(X,{from:ae,to:oe,text:Q,origin:de})}function xa(X,Q,ae,oe){ae<X.line?X.line+=oe:Q<X.line&&(X.line=Q,X.ch=0)}function Xa(X,Q,ae,oe){for(var de=0;de<X.length;++de){var Ee=X[de],Ie=!0;if(Ee.ranges){Ee.copied||(Ee=X[de]=Ee.deepCopy(),Ee.copied=!0);for(var He=0;He<Ee.ranges.length;He++)xa(Ee.ranges[He].anchor,Q,ae,oe),xa(Ee.ranges[He].head,Q,ae,oe);continue}for(var Xe=0;Xe<Ee.changes.length;++Xe){var tt=Ee.changes[Xe];if(ae<tt.from.line)tt.from=wt(tt.from.line+oe,tt.from.ch),tt.to=wt(tt.to.line+oe,tt.to.ch);else if(Q<=tt.to.line){Ie=!1;break}}Ie||(X.splice(0,de+1),de=0)}}function Ja(X,Q){var ae=Q.from.line,oe=Q.to.line,de=Q.text.length-(oe-ae)-1;Xa(X.done,ae,oe,de),Xa(X.undone,ae,oe,de)}function Za(X,Q,ae,oe){var de=Q,Ee=Q;return typeof Q=="number"?Ee=Pn(X,Sn(X,Q)):de=Bn(Q),de==null?null:(oe(Ee,de)&&X.cm&&ns(X.cm,de,ae),Ee)}function Qa(X){this.lines=X,this.parent=null;for(var Q=0,ae=0;ae<X.length;++ae)X[ae].parent=this,Q+=X[ae].height;this.height=Q}Qa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(X,Q){for(var ae=X,oe=X+Q;ae<oe;++ae){var de=this.lines[ae];this.height-=de.height,ar(de),mi(de,"delete")}this.lines.splice(X,Q)},collapse:function(X){X.push.apply(X,this.lines)},insertInner:function(X,Q,ae){this.height+=ae,this.lines=this.lines.slice(0,X).concat(Q).concat(this.lines.slice(X));for(var oe=0;oe<Q.length;++oe)Q[oe].parent=this},iterN:function(X,Q,ae){for(var oe=X+Q;X<oe;++X)if(ae(this.lines[X]))return!0}};function el(X){this.children=X;for(var Q=0,ae=0,oe=0;oe<X.length;++oe){var de=X[oe];Q+=de.chunkSize(),ae+=de.height,de.parent=this}this.size=Q,this.height=ae,this.parent=null}el.prototype={chunkSize:function(){return this.size},removeInner:function(X,Q){this.size-=Q;for(var ae=0;ae<this.children.length;++ae){var oe=this.children[ae],de=oe.chunkSize();if(X<de){var Ee=Math.min(Q,de-X),Ie=oe.height;if(oe.removeInner(X,Ee),this.height-=Ie-oe.height,de==Ee&&(this.children.splice(ae--,1),oe.parent=null),(Q-=Ee)==0)break;X=0}else X-=de}if(this.size-Q<25&&(this.children.length>1||!(this.children[0]instanceof Qa))){var He=[];this.collapse(He),this.children=[new Qa(He)],this.children[0].parent=this}},collapse:function(X){for(var Q=0;Q<this.children.length;++Q)this.children[Q].collapse(X)},insertInner:function(X,Q,ae){this.size+=Q.length,this.height+=ae;for(var oe=0;oe<this.children.length;++oe){var de=this.children[oe],Ee=de.chunkSize();if(X<=Ee){if(de.insertInner(X,Q,ae),de.lines&&de.lines.length>50){for(var Ie=de.lines.length%25+25,He=Ie;He<de.lines.length;){var Xe=new Qa(de.lines.slice(He,He+=25));de.height-=Xe.height,this.children.splice(++oe,0,Xe),Xe.parent=this}de.lines=de.lines.slice(0,Ie),this.maybeSpill()}break}X-=Ee}},maybeSpill:function(){if(!(this.children.length<=10)){var X=this;do{var Q=X.children.splice(X.children.length-5,5),ae=new el(Q);if(X.parent){X.size-=ae.size,X.height-=ae.height;var de=tn(X.parent.children,X);X.parent.children.splice(de+1,0,ae)}else{var oe=new el(X.children);oe.parent=X,X.children=[oe,ae],X=oe}ae.parent=X.parent}while(X.children.length>10);X.parent.maybeSpill()}},iterN:function(X,Q,ae){for(var oe=0;oe<this.children.length;++oe){var de=this.children[oe],Ee=de.chunkSize();if(X<Ee){var Ie=Math.min(Q,Ee-X);if(de.iterN(X,Ie,ae))return!0;if((Q-=Ie)==0)break;X=0}else X-=Ee}}};var tl=function(X,Q,ae){if(ae)for(var oe in ae)ae.hasOwnProperty(oe)&&(this[oe]=ae[oe]);this.doc=X,this.node=Q};tl.prototype.clear=function(){var X=this.doc.cm,Q=this.line.widgets,ae=this.line,oe=Bn(ae);if(!(oe==null||!Q)){for(var de=0;de<Q.length;++de)Q[de]==this&&Q.splice(de--,1);Q.length||(ae.widgets=null);var Ee=vs(this);hr(ae,Math.max(0,ae.height-Ee)),X&&(Wi(X,function(){kc(X,ae,-Ee),ns(X,oe,"widget")}),mi(X,"lineWidgetCleared",X,this,oe))}},tl.prototype.changed=function(){var X=this,Q=this.height,ae=this.doc.cm,oe=this.line;this.height=null;var de=vs(this)-Q;de&&(St(this.doc,oe)||hr(oe,oe.height+de),ae&&Wi(ae,function(){ae.curOp.forceUpdate=!0,kc(ae,oe,de),mi(ae,"lineWidgetChanged",ae,X,Bn(oe))}))},ht(tl);function kc(X,Q,ae){jt(Q)<(X.curOp&&X.curOp.scrollTop||X.doc.scrollTop)&&Ia(X,ae)}function lu(X,Q,ae,oe){var de=new tl(X,ae,oe),Ee=X.cm;return Ee&&de.noHScroll&&(Ee.display.alignWidgets=!0),Za(X,Q,"widget",function(Ie){var He=Ie.widgets||(Ie.widgets=[]);if(de.insertAt==null?He.push(de):He.splice(Math.min(He.length,Math.max(0,de.insertAt)),0,de),de.line=Ie,Ee&&!St(X,Ie)){var Xe=jt(Ie)<X.scrollTop;hr(Ie,Ie.height+vs(de)),Xe&&Ia(Ee,de.height),Ee.curOp.forceUpdate=!0}return!0}),Ee&&mi(Ee,"lineWidgetAdded",Ee,de,typeof Q=="number"?Q:Bn(Q)),de}var Sc=0,To=function(X,Q){this.lines=[],this.type=Q,this.doc=X,this.id=++Sc};To.prototype.clear=function(){if(!this.explicitlyCleared){var X=this.doc.cm,Q=X&&!X.curOp;if(Q&&Ns(X),Ct(this,"clear")){var ae=this.find();ae&&mi(this,"clear",ae.from,ae.to)}for(var oe=null,de=null,Ee=0;Ee<this.lines.length;++Ee){var Ie=this.lines[Ee],He=Zi(Ie.markedSpans,this);X&&!this.collapsed?ns(X,Bn(Ie),"text"):X&&(He.to!=null&&(de=Bn(Ie)),He.from!=null&&(oe=Bn(Ie))),Ie.markedSpans=Io(Ie.markedSpans,He),He.from==null&&this.collapsed&&!St(this.doc,Ie)&&X&&hr(Ie,Vi(X.display))}if(X&&this.collapsed&&!X.options.lineWrapping)for(var Xe=0;Xe<this.lines.length;++Xe){var tt=je(this.lines[Xe]),At=yn(tt);At>X.display.maxLineLength&&(X.display.maxLine=tt,X.display.maxLineLength=At,X.display.maxLineChanged=!0)}oe!=null&&X&&this.collapsed&&yi(X,oe,de+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,X&&Zn(X.doc)),X&&mi(X,"markerCleared",X,this,oe,de),Q&&Ls(X),this.parent&&this.parent.clear()}},To.prototype.find=function(X,Q){X==null&&this.type=="bookmark"&&(X=1);for(var ae,oe,de=0;de<this.lines.length;++de){var Ee=this.lines[de],Ie=Zi(Ee.markedSpans,this);if(Ie.from!=null&&(ae=wt(Q?Ee:Bn(Ee),Ie.from),X==-1))return ae;if(Ie.to!=null&&(oe=wt(Q?Ee:Bn(Ee),Ie.to),X==1))return oe}return ae&&{from:ae,to:oe}},To.prototype.changed=function(){var X=this,Q=this.find(-1,!0),ae=this,oe=this.doc.cm;!Q||!oe||Wi(oe,function(){var de=Q.line,Ee=Bn(Q.line),Ie=st(oe,Ee);if(Ie&&(Wn(Ie),oe.curOp.selectionChanged=oe.curOp.forceUpdate=!0),oe.curOp.updateMaxLine=!0,!St(ae.doc,de)&&ae.height!=null){var He=ae.height;ae.height=null;var Xe=vs(ae)-He;Xe&&hr(de,de.height+Xe)}mi(oe,"markerChanged",oe,X)})},To.prototype.attachLine=function(X){if(!this.lines.length&&this.doc.cm){var Q=this.doc.cm.curOp;(!Q.maybeHiddenMarkers||tn(Q.maybeHiddenMarkers,this)==-1)&&(Q.maybeUnhiddenMarkers||(Q.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(X)},To.prototype.detachLine=function(X){if(this.lines.splice(tn(this.lines,X),1),!this.lines.length&&this.doc.cm){var Q=this.doc.cm.curOp;(Q.maybeHiddenMarkers||(Q.maybeHiddenMarkers=[])).push(this)}},ht(To);function wa(X,Q,ae,oe,de){if(oe&&oe.shared)return cu(X,Q,ae,oe,de);if(X.cm&&!X.cm.curOp)return ki(X.cm,wa)(X,Q,ae,oe,de);var Ee=new To(X,de),Ie=Bt(Q,ae);if(oe&&Vt(oe,Ee,!1),Ie>0||Ie==0&&Ee.clearWhenEmpty!==!1)return Ee;if(Ee.replacedWith&&(Ee.collapsed=!0,Ee.widgetNode=Pe("span",[Ee.replacedWith],"CodeMirror-widget"),oe.handleMouseEvents||Ee.widgetNode.setAttribute("cm-ignore-events","true"),oe.insertLeft&&(Ee.widgetNode.insertLeft=!0)),Ee.collapsed){if(Re(X,Q.line,Q,ae,Ee)||Q.line!=ae.line&&Re(X,ae.line,Q,ae,Ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");gi()}Ee.addToHistory&&qa(X,{from:Q,to:ae,origin:"markText"},X.sel,NaN);var He=Q.line,Xe=X.cm,tt;if(X.iter(He,ae.line+1,function(It){Xe&&Ee.collapsed&&!Xe.options.lineWrapping&&je(It)==Xe.display.maxLine&&(tt=!0),Ee.collapsed&&He!=Q.line&&hr(It,0),No(It,new Di(Ee,He==Q.line?Q.ch:null,He==ae.line?ae.ch:null),X.cm&&X.cm.curOp),++He}),Ee.collapsed&&X.iter(Q.line,ae.line+1,function(It){St(X,It)&&hr(It,0)}),Ee.clearOnEnter&&pt(Ee,"beforeCursorEnter",function(){return Ee.clear()}),Ee.readOnly&&(ti(),(X.history.done.length||X.history.undone.length)&&X.clearHistory()),Ee.collapsed&&(Ee.id=++Sc,Ee.atomic=!0),Xe){if(tt&&(Xe.curOp.updateMaxLine=!0),Ee.collapsed)yi(Xe,Q.line,ae.line+1);else if(Ee.className||Ee.startStyle||Ee.endStyle||Ee.css||Ee.attributes||Ee.title)for(var At=Q.line;At<=ae.line;At++)ns(Xe,At,"text");Ee.atomic&&Zn(Xe.doc),mi(Xe,"markerAdded",Xe,Ee)}return Ee}var nl=function(X,Q){this.markers=X,this.primary=Q;for(var ae=0;ae<X.length;++ae)X[ae].parent=this};nl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var X=0;X<this.markers.length;++X)this.markers[X].clear();mi(this,"clear")}},nl.prototype.find=function(X,Q){return this.primary.find(X,Q)},ht(nl);function cu(X,Q,ae,oe,de){oe=Vt(oe),oe.shared=!1;var Ee=[wa(X,Q,ae,oe,de)],Ie=Ee[0],He=oe.widgetNode;return hs(X,function(Xe){He&&(oe.widgetNode=He.cloneNode(!0)),Ee.push(wa(Xe,cn(Xe,Q),cn(Xe,ae),oe,de));for(var tt=0;tt<Xe.linked.length;++tt)if(Xe.linked[tt].isParent)return;Ie=Et(Ee)}),new nl(Ee,Ie)}function Ec(X){return X.findMarks(wt(X.first,0),X.clipPos(wt(X.lastLine())),function(Q){return Q.parent})}function uu(X,Q){for(var ae=0;ae<Q.length;ae++){var oe=Q[ae],de=oe.find(),Ee=X.clipPos(de.from),Ie=X.clipPos(de.to);if(Bt(Ee,Ie)){var He=wa(X,Ee,Ie,oe.primary,oe.primary.type);oe.markers.push(He),He.parent=oe}}}function du(X){for(var Q=function(oe){var de=X[oe],Ee=[de.primary.doc];hs(de.primary.doc,function(Xe){return Ee.push(Xe)});for(var Ie=0;Ie<de.markers.length;Ie++){var He=de.markers[Ie];tn(Ee,He.doc)==-1&&(He.parent=null,de.markers.splice(Ie--,1))}},ae=0;ae<X.length;ae++)Q(ae)}var fu=0,is=function(X,Q,ae,oe,de){if(!(this instanceof is))return new is(X,Q,ae,oe,de);ae==null&&(ae=0),el.call(this,[new Qa([new _n("",null)])]),this.first=ae,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ae;var Ee=wt(ae,0);this.sel=qi(Ee),this.history=new ba(null),this.id=++fu,this.modeOption=Q,this.lineSep=oe,this.direction=de=="rtl"?"rtl":"ltr",this.extend=!1,typeof X=="string"&&(X=this.splitLines(X)),Co(this,{from:Ee,to:Ee,text:X}),an(this,qi(Ee),kn)};is.prototype=Oe(el.prototype,{constructor:is,iter:function(X,Q,ae){ae?this.iterN(X-this.first,Q-X,ae):this.iterN(this.first,this.first+this.size,X)},insert:function(X,Q){for(var ae=0,oe=0;oe<Q.length;++oe)ae+=Q[oe].height;this.insertInner(X-this.first,Q,ae)},remove:function(X,Q){this.removeInner(X-this.first,Q)},getValue:function(X){var Q=br(this,this.first,this.first+this.size);return X===!1?Q:Q.join(X||this.lineSeparator())},setValue:$i(function(X){var Q=wt(this.first,0),ae=this.first+this.size-1;Ar(this,{from:Q,to:wt(ae,Pn(this,ae).text.length),text:this.splitLines(X),origin:"setValue",full:!0},!0),this.cm&&qo(this.cm,0,0),an(this,qi(Q),kn)}),replaceRange:function(X,Q,ae,oe){Q=cn(this,Q),ae=ae?cn(this,ae):Q,Gs(this,X,Q,ae,oe)},getRange:function(X,Q,ae){var oe=mr(this,cn(this,X),cn(this,Q));return ae===!1?oe:ae===""?oe.join(""):oe.join(ae||this.lineSeparator())},getLine:function(X){var Q=this.getLineHandle(X);return Q&&Q.text},getLineHandle:function(X){if(Qe(this,X))return Pn(this,X)},getLineNumber:function(X){return Bn(X)},getLineHandleVisualStart:function(X){return typeof X=="number"&&(X=Pn(this,X)),je(X)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(X){return cn(this,X)},getCursor:function(X){var Q=this.sel.primary(),ae;return X==null||X=="head"?ae=Q.head:X=="anchor"?ae=Q.anchor:X=="end"||X=="to"||X===!1?ae=Q.to():ae=Q.from(),ae},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:$i(function(X,Q,ae){yt(this,cn(this,typeof X=="number"?wt(X,Q||0):X),null,ae)}),setSelection:$i(function(X,Q,ae){yt(this,cn(this,X),cn(this,Q||X),ae)}),extendSelection:$i(function(X,Q,ae){De(this,cn(this,X),Q&&cn(this,Q),ae)}),extendSelections:$i(function(X,Q){Le(this,or(this,X),Q)}),extendSelectionsBy:$i(function(X,Q){var ae=We(this.sel.ranges,X);Le(this,or(this,ae),Q)}),setSelections:$i(function(X,Q,ae){if(X.length){for(var oe=[],de=0;de<X.length;de++)oe[de]=new qr(cn(this,X[de].anchor),cn(this,X[de].head||X[de].anchor));Q==null&&(Q=Math.min(X.length-1,this.sel.primIndex)),an(this,rs(this.cm,oe,Q),ae)}}),addSelection:$i(function(X,Q,ae){var oe=this.sel.ranges.slice(0);oe.push(new qr(cn(this,X),cn(this,Q||X))),an(this,rs(this.cm,oe,oe.length-1),ae)}),getSelection:function(X){for(var Q=this.sel.ranges,ae,oe=0;oe<Q.length;oe++){var de=mr(this,Q[oe].from(),Q[oe].to());ae=ae?ae.concat(de):de}return X===!1?ae:ae.join(X||this.lineSeparator())},getSelections:function(X){for(var Q=[],ae=this.sel.ranges,oe=0;oe<ae.length;oe++){var de=mr(this,ae[oe].from(),ae[oe].to());X!==!1&&(de=de.join(X||this.lineSeparator())),Q[oe]=de}return Q},replaceSelection:function(X,Q,ae){for(var oe=[],de=0;de<this.sel.ranges.length;de++)oe[de]=X;this.replaceSelections(oe,Q,ae||"+input")},replaceSelections:$i(function(X,Q,ae){for(var oe=[],de=this.sel,Ee=0;Ee<de.ranges.length;Ee++){var Ie=de.ranges[Ee];oe[Ee]={from:Ie.from(),to:Ie.to(),text:this.splitLines(X[Ee]),origin:ae}}for(var He=Q&&Q!="end"&&tc(this,oe,Q),Xe=oe.length-1;Xe>=0;Xe--)Ar(this,oe[Xe]);He?$t(this,He):this.cm&&oo(this.cm)}),undo:$i(function(){Kr(this,"undo")}),redo:$i(function(){Kr(this,"redo")}),undoSelection:$i(function(){Kr(this,"undo",!0)}),redoSelection:$i(function(){Kr(this,"redo",!0)}),setExtending:function(X){this.extend=X},getExtending:function(){return this.extend},historySize:function(){for(var X=this.history,Q=0,ae=0,oe=0;oe<X.done.length;oe++)X.done[oe].ranges||++Q;for(var de=0;de<X.undone.length;de++)X.undone[de].ranges||++ae;return{undo:Q,redo:ae}},clearHistory:function(){var X=this;this.history=new ba(this.history),hs(this,function(Q){return Q.history=X.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(X){return X&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(X){return this.history.generation==(X||this.cleanGeneration)},getHistory:function(){return{done:$o(this.history.done),undone:$o(this.history.undone)}},setHistory:function(X){var Q=this.history=new ba(this.history);Q.done=$o(X.done.slice(0),null,!0),Q.undone=$o(X.undone.slice(0),null,!0)},setGutterMarker:$i(function(X,Q,ae){return Za(this,X,"gutter",function(oe){var de=oe.gutterMarkers||(oe.gutterMarkers={});return de[Q]=ae,!ae&&rt(de)&&(oe.gutterMarkers=null),!0})}),clearGutter:$i(function(X){var Q=this;this.iter(function(ae){ae.gutterMarkers&&ae.gutterMarkers[X]&&Za(Q,ae,"gutter",function(){return ae.gutterMarkers[X]=null,rt(ae.gutterMarkers)&&(ae.gutterMarkers=null),!0})})}),lineInfo:function(X){var Q;if(typeof X=="number"){if(!Qe(this,X)||(Q=X,X=Pn(this,X),!X))return null}else if(Q=Bn(X),Q==null)return null;return{line:Q,handle:X,text:X.text,gutterMarkers:X.gutterMarkers,textClass:X.textClass,bgClass:X.bgClass,wrapClass:X.wrapClass,widgets:X.widgets}},addLineClass:$i(function(X,Q,ae){return Za(this,X,Q=="gutter"?"gutter":"class",function(oe){var de=Q=="text"?"textClass":Q=="background"?"bgClass":Q=="gutter"?"gutterClass":"wrapClass";if(!oe[de])oe[de]=ae;else{if(be(ae).test(oe[de]))return!1;oe[de]+=" "+ae}return!0})}),removeLineClass:$i(function(X,Q,ae){return Za(this,X,Q=="gutter"?"gutter":"class",function(oe){var de=Q=="text"?"textClass":Q=="background"?"bgClass":Q=="gutter"?"gutterClass":"wrapClass",Ee=oe[de];if(Ee)if(ae==null)oe[de]=null;else{var Ie=Ee.match(be(ae));if(!Ie)return!1;var He=Ie.index+Ie[0].length;oe[de]=Ee.slice(0,Ie.index)+(!Ie.index||He==Ee.length?"":" ")+Ee.slice(He)||null}else return!1;return!0})}),addLineWidget:$i(function(X,Q,ae){return lu(this,X,Q,ae)}),removeLineWidget:function(X){X.clear()},markText:function(X,Q,ae){return wa(this,cn(this,X),cn(this,Q),ae,ae&&ae.type||"range")},setBookmark:function(X,Q){var ae={replacedWith:Q&&(Q.nodeType==null?Q.widget:Q),insertLeft:Q&&Q.insertLeft,clearWhenEmpty:!1,shared:Q&&Q.shared,handleMouseEvents:Q&&Q.handleMouseEvents};return X=cn(this,X),wa(this,X,X,ae,"bookmark")},findMarksAt:function(X){X=cn(this,X);var Q=[],ae=Pn(this,X.line).markedSpans;if(ae)for(var oe=0;oe<ae.length;++oe){var de=ae[oe];(de.from==null||de.from<=X.ch)&&(de.to==null||de.to>=X.ch)&&Q.push(de.marker.parent||de.marker)}return Q},findMarks:function(X,Q,ae){X=cn(this,X),Q=cn(this,Q);var oe=[],de=X.line;return this.iter(X.line,Q.line+1,function(Ee){var Ie=Ee.markedSpans;if(Ie)for(var He=0;He<Ie.length;He++){var Xe=Ie[He];!(Xe.to!=null&&de==X.line&&X.ch>=Xe.to||Xe.from==null&&de!=X.line||Xe.from!=null&&de==Q.line&&Xe.from>=Q.ch)&&(!ae||ae(Xe.marker))&&oe.push(Xe.marker.parent||Xe.marker)}++de}),oe},getAllMarks:function(){var X=[];return this.iter(function(Q){var ae=Q.markedSpans;if(ae)for(var oe=0;oe<ae.length;++oe)ae[oe].from!=null&&X.push(ae[oe].marker)}),X},posFromIndex:function(X){var Q,ae=this.first,oe=this.lineSeparator().length;return this.iter(function(de){var Ee=de.text.length+oe;if(Ee>X)return Q=X,!0;X-=Ee,++ae}),cn(this,wt(ae,Q))},indexFromPos:function(X){X=cn(this,X);var Q=X.ch;if(X.line<this.first||X.ch<0)return 0;var ae=this.lineSeparator().length;return this.iter(this.first,X.line,function(oe){Q+=oe.text.length+ae}),Q},copy:function(X){var Q=new is(br(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return Q.scrollTop=this.scrollTop,Q.scrollLeft=this.scrollLeft,Q.sel=this.sel,Q.extend=!1,X&&(Q.history.undoDepth=this.history.undoDepth,Q.setHistory(this.getHistory())),Q},linkedDoc:function(X){X||(X={});var Q=this.first,ae=this.first+this.size;X.from!=null&&X.from>Q&&(Q=X.from),X.to!=null&&X.to<ae&&(ae=X.to);var oe=new is(br(this,Q,ae),X.mode||this.modeOption,Q,this.lineSep,this.direction);return X.sharedHist&&(oe.history=this.history),(this.linked||(this.linked=[])).push({doc:oe,sharedHist:X.sharedHist}),oe.linked=[{doc:this,isParent:!0,sharedHist:X.sharedHist}],uu(oe,Ec(this)),oe},unlinkDoc:function(X){if(X instanceof _i&&(X=X.doc),this.linked)for(var Q=0;Q<this.linked.length;++Q){var ae=this.linked[Q];if(ae.doc==X){this.linked.splice(Q,1),X.unlinkDoc(this),du(Ec(this));break}}if(X.history==this.history){var oe=[X.id];hs(X,function(de){return oe.push(de.id)},!0),X.history=new ba(null),X.history.done=$o(this.history.done,oe),X.history.undone=$o(this.history.undone,oe)}},iterLinkedDocs:function(X){hs(this,X)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(X){return this.lineSep?X.split(this.lineSep):Ur(X)},lineSeparator:function(){return this.lineSep||` `},setDirection:$i(function(X){X!="rtl"&&(X="ltr"),X!=this.direction&&(this.direction=X,this.iter(function(Q){return Q.order=null}),this.cm&&nc(this.cm))})}),is.prototype.eachLine=is.prototype.iter;var Cc=0;function pu(X){var Q=this;if($c(Q),!(mn(Q,X)||bs(Q.display,X))){Tt(X),Y&&(Cc=+new Date);var ae=fs(Q,X,!0),oe=X.dataTransfer.files;if(!(!ae||Q.isReadOnly()))if(oe&&oe.length&&window.FileReader&&window.File)for(var de=oe.length,Ee=Array(de),Ie=0,He=function(){++Ie==de&&ki(Q,function(){ae=cn(Q.doc,ae);var Jt={from:ae,to:ae,text:Q.doc.splitLines(Ee.filter(function($n){return $n!=null}).join(Q.doc.lineSeparator())),origin:"paste"};Ar(Q.doc,Jt),$t(Q.doc,qi(cn(Q.doc,ae),cn(Q.doc,Ss(Jt))))})()},Xe=function(Jt,$n){if(Q.options.allowDropFileTypes&&tn(Q.options.allowDropFileTypes,Jt.type)==-1){He();return}var Nn=new FileReader;Nn.onerror=function(){return He()},Nn.onload=function(){var qn=Nn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(qn)){He();return}Ee[$n]=qn,He()},Nn.readAsText(Jt)},tt=0;tt<oe.length;tt++)Xe(oe[tt],tt);else{if(Q.state.draggingText&&Q.doc.sel.contains(ae)>-1){Q.state.draggingText(X),setTimeout(function(){return Q.display.input.focus()},20);return}try{var At=X.dataTransfer.getData("Text");if(At){var It;if(Q.state.draggingText&&!Q.state.draggingText.copy&&(It=Q.listSelections()),Cn(Q.doc,qi(ae,ae)),It)for(var rn=0;rn<It.length;++rn)Gs(Q.doc,"",It[rn].anchor,It[rn].head,"drag");Q.replaceSelection(At,"around","paste"),Q.display.input.focus()}}catch{}}}}function hu(X,Q){if(Y&&(!X.state.draggingText||+new Date-Cc<100)){hn(Q);return}if(!(mn(X,Q)||bs(X.display,Q))&&(Q.dataTransfer.setData("Text",X.getSelection()),Q.dataTransfer.effectAllowed="copyMove",Q.dataTransfer.setDragImage&&!se)){var ae=Se("img",null,null,"position: fixed; left: 0; top: 0;");ae.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",te&&(ae.width=ae.height=1,X.display.wrapper.appendChild(ae),ae._top=ae.offsetTop),Q.dataTransfer.setDragImage(ae,0,0),te&&ae.parentNode.removeChild(ae)}}function mu(X,Q){var ae=fs(X,Q);if(ae){var oe=document.createDocumentFragment();Hs(X,ae,oe),X.display.dragCursor||(X.display.dragCursor=Se("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),X.display.lineSpace.insertBefore(X.display.dragCursor,X.display.cursorDiv)),Ae(X.display.dragCursor,oe)}}function $c(X){X.display.dragCursor&&(X.display.lineSpace.removeChild(X.display.dragCursor),X.display.dragCursor=null)}function Tc(X){if(document.getElementsByClassName){for(var Q=document.getElementsByClassName("CodeMirror"),ae=[],oe=0;oe<Q.length;oe++){var de=Q[oe].CodeMirror;de&&ae.push(de)}ae.length&&ae[0].operation(function(){for(var Ee=0;Ee<ae.length;Ee++)X(ae[Ee])})}}var Oc=!1;function gu(){Oc||(_u(),Oc=!0)}function _u(){var X;pt(window,"resize",function(){X==null&&(X=setTimeout(function(){X=null,Tc(vu)},100))}),pt(window,"blur",function(){return Tc(Ws)})}function vu(X){var Q=X.display;Q.cachedCharWidth=Q.cachedTextHeight=Q.cachedPaddingH=null,Q.scrollbarsClipped=!1,X.setSize()}for(var Oo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rl=0;rl<10;rl++)Oo[rl+48]=Oo[rl+96]=String(rl);for(var Tl=65;Tl<=90;Tl++)Oo[Tl]=String.fromCharCode(Tl);for(var il=1;il<=12;il++)Oo[il+111]=Oo[il+63235]="F"+il;var co={};co.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},co.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},co.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},co.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},co.default=_e?co.macDefault:co.pcDefault;function bu(X){var Q=X.split(/-(?!$)/);X=Q[Q.length-1];for(var ae,oe,de,Ee,Ie=0;Ie<Q.length-1;Ie++){var He=Q[Ie];if(/^(cmd|meta|m)$/i.test(He))Ee=!0;else if(/^a(lt)?$/i.test(He))ae=!0;else if(/^(c|ctrl|control)$/i.test(He))oe=!0;else if(/^s(hift)?$/i.test(He))de=!0;else throw new Error("Unrecognized modifier name: "+He)}return ae&&(X="Alt-"+X),oe&&(X="Ctrl-"+X),Ee&&(X="Cmd-"+X),de&&(X="Shift-"+X),X}function yu(X){var Q={};for(var ae in X)if(X.hasOwnProperty(ae)){var oe=X[ae];if(/^(name|fallthrough|(de|at)tach)$/.test(ae))continue;if(oe=="..."){delete X[ae];continue}for(var de=We(ae.split(" "),bu),Ee=0;Ee<de.length;Ee++){var Ie=void 0,He=void 0;Ee==de.length-1?(He=de.join(" "),Ie=oe):(He=de.slice(0,Ee+1).join(" "),Ie="...");var Xe=Q[He];if(!Xe)Q[He]=Ie;else if(Xe!=Ie)throw new Error("Inconsistent bindings for "+He)}delete X[ae]}for(var tt in Q)X[tt]=Q[tt];return X}function ka(X,Q,ae,oe){Q=Ol(Q);var de=Q.call?Q.call(X,oe):Q[X];if(de===!1)return"nothing";if(de==="...")return"multi";if(de!=null&&ae(de))return"handled";if(Q.fallthrough){if(Object.prototype.toString.call(Q.fallthrough)!="[object Array]")return ka(X,Q.fallthrough,ae,oe);for(var Ee=0;Ee<Q.fallthrough.length;Ee++){var Ie=ka(X,Q.fallthrough[Ee],ae,oe);if(Ie)return Ie}}}function Pc(X){var Q=typeof X=="string"?X:Oo[X.keyCode];return Q=="Ctrl"||Q=="Alt"||Q=="Shift"||Q=="Mod"}function Ac(X,Q,ae){var oe=X;return Q.altKey&&oe!="Alt"&&(X="Alt-"+X),(xe?Q.metaKey:Q.ctrlKey)&&oe!="Ctrl"&&(X="Ctrl-"+X),(xe?Q.ctrlKey:Q.metaKey)&&oe!="Mod"&&(X="Cmd-"+X),!ae&&Q.shiftKey&&oe!="Shift"&&(X="Shift-"+X),X}function Rc(X,Q){if(te&&X.keyCode==34&&X.char)return!1;var ae=Oo[X.keyCode];return ae==null||X.altGraphKey?!1:(X.keyCode==3&&X.code&&(ae=X.code),Ac(ae,X,Q))}function Ol(X){return typeof X=="string"?co[X]:X}function Sa(X,Q){for(var ae=X.doc.sel.ranges,oe=[],de=0;de<ae.length;de++){for(var Ee=Q(ae[de]);oe.length&&Bt(Ee.from,Et(oe).to)<=0;){var Ie=oe.pop();if(Bt(Ie.from,Ee.from)<0){Ee.from=Ie.from;break}}oe.push(Ee)}Wi(X,function(){for(var He=oe.length-1;He>=0;He--)Gs(X.doc,"",oe[He].from,oe[He].to,"+delete");oo(X)})}function ac(X,Q,ae){var oe=it(X.text,Q+ae,ae);return oe<0||oe>X.text.length?null:oe}function lc(X,Q,ae){var oe=ac(X,Q.ch,ae);return oe==null?null:new wt(Q.line,oe,ae<0?"after":"before")}function cc(X,Q,ae,oe,de){if(X){Q.doc.direction=="rtl"&&(de=-de);var Ee=vn(ae,Q.doc.direction);if(Ee){var Ie=de<0?Et(Ee):Ee[0],He=de<0==(Ie.level==1),Xe=He?"after":"before",tt;if(Ie.level>0||Q.doc.direction=="rtl"){var At=kt(Q,ae);tt=de<0?ae.text.length-1:0;var It=Ft(Q,At,tt).top;tt=ot(function(rn){return Ft(Q,At,rn).top==It},de<0==(Ie.level==1)?Ie.from:Ie.to-1,tt),Xe=="before"&&(tt=ac(ae,tt,1))}else tt=de<0?Ie.to:Ie.from;return new wt(oe,tt,Xe)}}return new wt(oe,de<0?ae.text.length:0,de<0?"before":"after")}function xu(X,Q,ae,oe){var de=vn(Q,X.doc.direction);if(!de)return lc(Q,ae,oe);ae.ch>=Q.text.length?(ae.ch=Q.text.length,ae.sticky="before"):ae.ch<=0&&(ae.ch=0,ae.sticky="after");var Ee=Fn(de,ae.ch,ae.sticky),Ie=de[Ee];if(X.doc.direction=="ltr"&&Ie.level%2==0&&(oe>0?Ie.to>ae.ch:Ie.from<ae.ch))return lc(Q,ae,oe);var He=function(nr,dr){return ac(Q,nr instanceof wt?nr.ch:nr,dr)},Xe,tt=function(nr){return X.options.lineWrapping?(Xe=Xe||kt(X,Q),Fi(X,Q,Xe,nr)):{begin:0,end:Q.text.length}},At=tt(ae.sticky=="before"?He(ae,-1):ae.ch);if(X.doc.direction=="rtl"||Ie.level==1){var It=Ie.level==1==oe<0,rn=He(ae,It?1:-1);if(rn!=null&&(It?rn<=Ie.to&&rn<=At.end:rn>=Ie.from&&rn>=At.begin)){var Jt=It?"before":"after";return new wt(ae.line,rn,Jt)}}var $n=function(nr,dr,rr){for(var gr=function(ui,zi){return zi?new wt(ae.line,He(ui,1),"before"):new wt(ae.line,ui,"after")};nr>=0&&nr<de.length;nr+=dr){var Or=de[nr],Sr=dr>0==(Or.level!=1),Vr=Sr?rr.begin:He(rr.end,-1);if(Or.from<=Vr&&Vr<Or.to||(Vr=Sr?Or.from:He(Or.to,-1),rr.begin<=Vr&&Vr<rr.end))return gr(Vr,Sr)}},Nn=$n(Ee+oe,oe,At);if(Nn)return Nn;var qn=oe>0?At.end:He(At.begin,-1);return qn!=null&&!(oe>0&&qn==Q.text.length)&&(Nn=$n(oe>0?0:de.length-1,oe,tt(qn)),Nn)?Nn:null}var sl={selectAll:Tr,singleSelection:function(X){return X.setSelection(X.getCursor("anchor"),X.getCursor("head"),kn)},killLine:function(X){return Sa(X,function(Q){if(Q.empty()){var ae=Pn(X.doc,Q.head.line).text.length;return Q.head.ch==ae&&Q.head.line<X.lastLine()?{from:Q.head,to:wt(Q.head.line+1,0)}:{from:Q.head,to:wt(Q.head.line,ae)}}else return{from:Q.from(),to:Q.to()}})},deleteLine:function(X){return Sa(X,function(Q){return{from:wt(Q.from().line,0),to:cn(X.doc,wt(Q.to().line+1,0))}})},delLineLeft:function(X){return Sa(X,function(Q){return{from:wt(Q.from().line,0),to:Q.from()}})},delWrappedLineLeft:function(X){return Sa(X,function(Q){var ae=X.charCoords(Q.head,"div").top+5,oe=X.coordsChar({left:0,top:ae},"div");return{from:oe,to:Q.from()}})},delWrappedLineRight:function(X){return Sa(X,function(Q){var ae=X.charCoords(Q.head,"div").top+5,oe=X.coordsChar({left:X.display.lineDiv.offsetWidth+100,top:ae},"div");return{from:Q.from(),to:oe}})},undo:function(X){return X.undo()},redo:function(X){return X.redo()},undoSelection:function(X){return X.undoSelection()},redoSelection:function(X){return X.redoSelection()},goDocStart:function(X){return X.extendSelection(wt(X.firstLine(),0))},goDocEnd:function(X){return X.extendSelection(wt(X.lastLine()))},goLineStart:function(X){return X.extendSelectionsBy(function(Q){return Dc(X,Q.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(X){return X.extendSelectionsBy(function(Q){return Mc(X,Q.head)},{origin:"+move",bias:1})},goLineEnd:function(X){return X.extendSelectionsBy(function(Q){return wu(X,Q.head.line)},{origin:"+move",bias:-1})},goLineRight:function(X){return X.extendSelectionsBy(function(Q){var ae=X.cursorCoords(Q.head,"div").top+5;return X.coordsChar({left:X.display.lineDiv.offsetWidth+100,top:ae},"div")},An)},goLineLeft:function(X){return X.extendSelectionsBy(function(Q){var ae=X.cursorCoords(Q.head,"div").top+5;return X.coordsChar({left:0,top:ae},"div")},An)},goLineLeftSmart:function(X){return X.extendSelectionsBy(function(Q){var ae=X.cursorCoords(Q.head,"div").top+5,oe=X.coordsChar({left:0,top:ae},"div");return oe.ch<X.getLine(oe.line).search(/\S/)?Mc(X,Q.head):oe},An)},goLineUp:function(X){return X.moveV(-1,"line")},goLineDown:function(X){return X.moveV(1,"line")},goPageUp:function(X){return X.moveV(-1,"page")},goPageDown:function(X){return X.moveV(1,"page")},goCharLeft:function(X){return X.moveH(-1,"char")},goCharRight:function(X){return X.moveH(1,"char")},goColumnLeft:function(X){return X.moveH(-1,"column")},goColumnRight:function(X){return X.moveH(1,"column")},goWordLeft:function(X){return X.moveH(-1,"word")},goGroupRight:function(X){return X.moveH(1,"group")},goGroupLeft:function(X){return X.moveH(-1,"group")},goWordRight:function(X){return X.moveH(1,"word")},delCharBefore:function(X){return X.deleteH(-1,"codepoint")},delCharAfter:function(X){return X.deleteH(1,"char")},delWordBefore:function(X){return X.deleteH(-1,"word")},delWordAfter:function(X){return X.deleteH(1,"word")},delGroupBefore:function(X){return X.deleteH(-1,"group")},delGroupAfter:function(X){return X.deleteH(1,"group")},indentAuto:function(X){return X.indentSelection("smart")},indentMore:function(X){return X.indentSelection("add")},indentLess:function(X){return X.indentSelection("subtract")},insertTab:function(X){return X.replaceSelection(" ")},insertSoftTab:function(X){for(var Q=[],ae=X.listSelections(),oe=X.options.tabSize,de=0;de<ae.length;de++){var Ee=ae[de].from(),Ie=Wt(X.getLine(Ee.line),Ee.ch,oe);Q.push(Ln(oe-Ie%oe))}X.replaceSelections(Q)},defaultTab:function(X){X.somethingSelected()?X.indentSelection("add"):X.execCommand("insertTab")},transposeChars:function(X){return Wi(X,function(){for(var Q=X.listSelections(),ae=[],oe=0;oe<Q.length;oe++)if(Q[oe].empty()){var de=Q[oe].head,Ee=Pn(X.doc,de.line).text;if(Ee){if(de.ch==Ee.length&&(de=new wt(de.line,de.ch-1)),de.ch>0)de=new wt(de.line,de.ch+1),X.replaceRange(Ee.charAt(de.ch-1)+Ee.charAt(de.ch-2),wt(de.line,de.ch-2),de,"+transpose");else if(de.line>X.doc.first){var Ie=Pn(X.doc,de.line-1).text;Ie&&(de=new wt(de.line,1),X.replaceRange(Ee.charAt(0)+X.doc.lineSeparator()+Ie.charAt(Ie.length-1),wt(de.line-1,Ie.length-1),de,"+transpose"))}}ae.push(new qr(de,de))}X.setSelections(ae)})},newlineAndIndent:function(X){return Wi(X,function(){for(var Q=X.listSelections(),ae=Q.length-1;ae>=0;ae--)X.replaceRange(X.doc.lineSeparator(),Q[ae].anchor,Q[ae].head,"+input");Q=X.listSelections();for(var oe=0;oe<Q.length;oe++)X.indentLine(Q[oe].from().line,null,!0);oo(X)})},openLine:function(X){return X.replaceSelection(` `,"start")},toggleOverwrite:function(X){return X.toggleOverwrite()}};function Dc(X,Q){var ae=Pn(X.doc,Q),oe=je(ae);return oe!=ae&&(Q=Bn(oe)),cc(!0,X,oe,Q,1)}function wu(X,Q){var ae=Pn(X.doc,Q),oe=qe(ae);return oe!=ae&&(Q=Bn(oe)),cc(!0,X,ae,Q,-1)}function Mc(X,Q){var ae=Dc(X,Q.line),oe=Pn(X.doc,ae.line),de=vn(oe,X.doc.direction);if(!de||de[0].level==0){var Ee=Math.max(ae.ch,oe.text.search(/\S/)),Ie=Q.line==ae.line&&Q.ch<=Ee&&Q.ch;return wt(ae.line,Ie?0:Ee,ae.sticky)}return ae}function Pl(X,Q,ae){if(typeof Q=="string"&&(Q=sl[Q],!Q))return!1;X.display.input.ensurePolled();var oe=X.display.shift,de=!1;try{X.isReadOnly()&&(X.state.suppressEdits=!0),ae&&(X.display.shift=!1),de=Q(X)!=En}finally{X.display.shift=oe,X.state.suppressEdits=!1}return de}function ku(X,Q,ae){for(var oe=0;oe<X.state.keyMaps.length;oe++){var de=ka(Q,X.state.keyMaps[oe],ae,X);if(de)return de}return X.options.extraKeys&&ka(Q,X.options.extraKeys,ae,X)||ka(Q,X.options.keyMap,ae,X)}var Su=new Gt;function ol(X,Q,ae,oe){var de=X.state.keySeq;if(de){if(Pc(Q))return"handled";if(/\'$/.test(Q)?X.state.keySeq=null:Su.set(50,function(){X.state.keySeq==de&&(X.state.keySeq=null,X.display.input.reset())}),Ic(X,de+" "+Q,ae,oe))return!0}return Ic(X,Q,ae,oe)}function Ic(X,Q,ae,oe){var de=ku(X,Q,oe);return de=="multi"&&(X.state.keySeq=Q),de=="handled"&&mi(X,"keyHandled",X,Q,ae),(de=="handled"||de=="multi")&&(Tt(ae),yo(X)),!!de}function Nc(X,Q){var ae=Rc(Q,!0);return ae?Q.shiftKey&&!X.state.keySeq?ol(X,"Shift-"+ae,Q,function(oe){return Pl(X,oe,!0)})||ol(X,ae,Q,function(oe){if(typeof oe=="string"?/^go[A-Z]/.test(oe):oe.motion)return Pl(X,oe)}):ol(X,ae,Q,function(oe){return Pl(X,oe)}):!1}function Eu(X,Q,ae){return ol(X,"'"+ae+"'",Q,function(oe){return Pl(X,oe,!0)})}var uc=null;function Lc(X){var Q=this;if(!(X.target&&X.target!=Q.display.input.getField())&&(Q.curOp.focus=ze(Ve(Q)),!mn(Q,X))){Y&&K<11&&X.keyCode==27&&(X.returnValue=!1);var ae=X.keyCode;Q.display.shift=ae==16||X.shiftKey;var oe=Nc(Q,X);te&&(uc=oe?ae:null,!oe&&ae==88&&!mt&&(_e?X.metaKey:X.ctrlKey)&&Q.replaceSelection("",null,"cut")),B&&!_e&&!oe&&ae==46&&X.shiftKey&&!X.ctrlKey&&document.execCommand&&document.execCommand("cut"),ae==18&&!/\bCodeMirror-crosshair\b/.test(Q.display.lineDiv.className)&&Cu(Q)}}function Cu(X){var Q=X.display.lineDiv;Ze(Q,"CodeMirror-crosshair");function ae(oe){(oe.keyCode==18||!oe.altKey)&&(ve(Q,"CodeMirror-crosshair"),qt(document,"keyup",ae),qt(document,"mouseover",ae))}pt(document,"keyup",ae),pt(document,"mouseover",ae)}function Fc(X){X.keyCode==16&&(this.doc.sel.shift=!1),mn(this,X)}function Bc(X){var Q=this;if(!(X.target&&X.target!=Q.display.input.getField())&&!(bs(Q.display,X)||mn(Q,X)||X.ctrlKey&&!X.altKey||_e&&X.metaKey)){var ae=X.keyCode,oe=X.charCode;if(te&&ae==uc){uc=null,Tt(X);return}if(!(te&&(!X.which||X.which<10)&&Nc(Q,X))){var de=String.fromCharCode(oe??ae);de!="\b"&&(Eu(Q,X,de)||Q.display.input.onKeyPress(X))}}}var $u=400,dc=function(X,Q,ae){this.time=X,this.pos=Q,this.button=ae};dc.prototype.compare=function(X,Q,ae){return this.time+$u>X&&Bt(Q,this.pos)==0&&ae==this.button};var al,ll;function Tu(X,Q){var ae=+new Date;return ll&&ll.compare(ae,X,Q)?(al=ll=null,"triple"):al&&al.compare(ae,X,Q)?(ll=new dc(ae,X,Q),al=null,"double"):(al=new dc(ae,X,Q),ll=null,"single")}function zc(X){var Q=this,ae=Q.display;if(!(mn(Q,X)||ae.activeTouch&&ae.input.supportsTouch())){if(ae.input.ensurePolled(),ae.shift=X.shiftKey,bs(ae,X)){G||(ae.scroller.draggable=!1,setTimeout(function(){return ae.scroller.draggable=!0},100));return}if(!fc(Q,X)){var oe=fs(Q,X),de=cr(X),Ee=oe?Tu(oe,de):"single";Dt(Q).focus(),de==1&&Q.state.selectingText&&Q.state.selectingText(X),!(oe&&Ou(Q,de,oe,Ee,X))&&(de==1?oe?Au(Q,oe,Ee,X):wn(X)==ae.scroller&&Tt(X):de==2?(oe&&De(Q.doc,oe),setTimeout(function(){return ae.input.focus()},20)):de==3&&(le?Q.display.input.onContextMenu(X):Uo(Q)))}}}function Ou(X,Q,ae,oe,de){var Ee="Click";return oe=="double"?Ee="Double"+Ee:oe=="triple"&&(Ee="Triple"+Ee),Ee=(Q==1?"Left":Q==2?"Middle":"Right")+Ee,ol(X,Ac(Ee,de),de,function(Ie){if(typeof Ie=="string"&&(Ie=sl[Ie]),!Ie)return!1;var He=!1;try{X.isReadOnly()&&(X.state.suppressEdits=!0),He=Ie(X,ae)!=En}finally{X.state.suppressEdits=!1}return He})}function Pu(X,Q,ae){var oe=X.getOption("configureMouse"),de=oe?oe(X,Q,ae):{};if(de.unit==null){var Ee=fe?ae.shiftKey&&ae.metaKey:ae.altKey;de.unit=Ee?"rectangle":Q=="single"?"char":Q=="double"?"word":"line"}return(de.extend==null||X.doc.extend)&&(de.extend=X.doc.extend||ae.shiftKey),de.addNew==null&&(de.addNew=_e?ae.metaKey:ae.ctrlKey),de.moveOnDrag==null&&(de.moveOnDrag=!(_e?ae.altKey:ae.ctrlKey)),de}function Au(X,Q,ae,oe){Y?setTimeout(Nt(Vo,X),0):X.curOp.focus=ze(Ve(X));var de=Pu(X,ae,oe),Ee=X.doc.sel,Ie;X.options.dragDrop&&zn&&!X.isReadOnly()&&ae=="single"&&(Ie=Ee.contains(Q))>-1&&(Bt((Ie=Ee.ranges[Ie]).from(),Q)<0||Q.xRel>0)&&(Bt(Ie.to(),Q)>0||Q.xRel<0)?Ru(X,oe,Q,de):Du(X,oe,Q,de)}function Ru(X,Q,ae,oe){var de=X.display,Ee=!1,Ie=ki(X,function(tt){G&&(de.scroller.draggable=!1),X.state.draggingText=!1,X.state.delayingBlurEvent&&(X.hasFocus()?X.state.delayingBlurEvent=!1:Uo(X)),qt(de.wrapper.ownerDocument,"mouseup",Ie),qt(de.wrapper.ownerDocument,"mousemove",He),qt(de.scroller,"dragstart",Xe),qt(de.scroller,"drop",Ie),Ee||(Tt(tt),oe.addNew||De(X.doc,ae,null,null,oe.extend),G&&!se||Y&&K==9?setTimeout(function(){de.wrapper.ownerDocument.body.focus({preventScroll:!0}),de.input.focus()},20):de.input.focus())}),He=function(tt){Ee=Ee||Math.abs(Q.clientX-tt.clientX)+Math.abs(Q.clientY-tt.clientY)>=10},Xe=function(){return Ee=!0};G&&(de.scroller.draggable=!0),X.state.draggingText=Ie,Ie.copy=!oe.moveOnDrag,pt(de.wrapper.ownerDocument,"mouseup",Ie),pt(de.wrapper.ownerDocument,"mousemove",He),pt(de.scroller,"dragstart",Xe),pt(de.scroller,"drop",Ie),X.state.delayingBlurEvent=!0,setTimeout(function(){return de.input.focus()},20),de.scroller.dragDrop&&de.scroller.dragDrop()}function jc(X,Q,ae){if(ae=="char")return new qr(Q,Q);if(ae=="word")return X.findWordAt(Q);if(ae=="line")return new qr(wt(Q.line,0),cn(X.doc,wt(Q.line+1,0)));var oe=ae(X,Q);return new qr(oe.from,oe.to)}function Du(X,Q,ae,oe){Y&&Uo(X);var de=X.display,Ee=X.doc;Tt(Q);var Ie,He,Xe=Ee.sel,tt=Xe.ranges;if(oe.addNew&&!oe.extend?(He=Ee.sel.contains(ae),He>-1?Ie=tt[He]:Ie=new qr(ae,ae)):(Ie=Ee.sel.primary(),He=Ee.sel.primIndex),oe.unit=="rectangle")oe.addNew||(Ie=new qr(ae,ae)),ae=fs(X,Q,!0,!0),He=-1;else{var At=jc(X,ae,oe.unit);oe.extend?Ie=Ka(Ie,At.anchor,At.head,oe.extend):Ie=At}oe.addNew?He==-1?(He=tt.length,an(Ee,rs(X,tt.concat([Ie]),He),{scroll:!1,origin:"*mouse"})):tt.length>1&&tt[He].empty()&&oe.unit=="char"&&!oe.extend?(an(Ee,rs(X,tt.slice(0,He).concat(tt.slice(He+1)),0),{scroll:!1,origin:"*mouse"}),Xe=Ee.sel):at(Ee,He,Ie,Gn):(He=0,an(Ee,new $r([Ie],0),Gn),Xe=Ee.sel);var It=ae;function rn(rr){if(Bt(It,rr)!=0)if(It=rr,oe.unit=="rectangle"){for(var gr=[],Or=X.options.tabSize,Sr=Wt(Pn(Ee,ae.line).text,ae.ch,Or),Vr=Wt(Pn(Ee,rr.line).text,rr.ch,Or),ui=Math.min(Sr,Vr),zi=Math.max(Sr,Vr),xi=Math.min(ae.line,rr.line),ms=Math.min(X.lastLine(),Math.max(ae.line,rr.line));xi<=ms;xi++){var ss=Pn(Ee,xi).text,Ai=jn(ss,ui,Or);ui==zi?gr.push(new qr(wt(xi,Ai),wt(xi,Ai))):ss.length>Ai&&gr.push(new qr(wt(xi,Ai),wt(xi,jn(ss,zi,Or))))}gr.length||gr.push(new qr(ae,ae)),an(Ee,rs(X,Xe.ranges.slice(0,He).concat(gr),He),{origin:"*mouse",scroll:!1}),X.scrollIntoView(rr)}else{var ls=Ie,Ui=jc(X,rr,oe.unit),Ni=ls.anchor,Ri;Bt(Ui.anchor,Ni)>0?(Ri=Ui.head,Ni=pn(ls.from(),Ui.anchor)):(Ri=Ui.anchor,Ni=en(ls.to(),Ui.head));var Si=Xe.ranges.slice(0);Si[He]=Mu(X,new qr(cn(Ee,Ni),Ri)),an(Ee,rs(X,Si,He),Gn)}}var Jt=de.wrapper.getBoundingClientRect(),$n=0;function Nn(rr){var gr=++$n,Or=fs(X,rr,!0,oe.unit=="rectangle");if(Or)if(Bt(Or,It)!=0){X.curOp.focus=ze(Ve(X)),rn(Or);var Sr=pa(de,Ee);(Or.line>=Sr.to||Or.line<Sr.from)&&setTimeout(ki(X,function(){$n==gr&&Nn(rr)}),150)}else{var Vr=rr.clientY<Jt.top?-20:rr.clientY>Jt.bottom?20:0;Vr&&setTimeout(ki(X,function(){$n==gr&&(de.scroller.scrollTop+=Vr,Nn(rr))}),50)}}function qn(rr){X.state.selectingText=!1,$n=1/0,rr&&(Tt(rr),de.input.focus()),qt(de.wrapper.ownerDocument,"mousemove",nr),qt(de.wrapper.ownerDocument,"mouseup",dr),Ee.history.lastSelOrigin=null}var nr=ki(X,function(rr){rr.buttons===0||!cr(rr)?qn(rr):Nn(rr)}),dr=ki(X,qn);X.state.selectingText=dr,pt(de.wrapper.ownerDocument,"mousemove",nr),pt(de.wrapper.ownerDocument,"mouseup",dr)}function Mu(X,Q){var ae=Q.anchor,oe=Q.head,de=Pn(X.doc,ae.line);if(Bt(ae,oe)==0&&ae.sticky==oe.sticky)return Q;var Ee=vn(de);if(!Ee)return Q;var Ie=Fn(Ee,ae.ch,ae.sticky),He=Ee[Ie];if(He.from!=ae.ch&&He.to!=ae.ch)return Q;var Xe=Ie+(He.from==ae.ch==(He.level!=1)?0:1);if(Xe==0||Xe==Ee.length)return Q;var tt;if(oe.line!=ae.line)tt=(oe.line-ae.line)*(X.doc.direction=="ltr"?1:-1)>0;else{var At=Fn(Ee,oe.ch,oe.sticky),It=At-Ie||(oe.ch-ae.ch)*(He.level==1?-1:1);At==Xe-1||At==Xe?tt=It<0:tt=It>0}var rn=Ee[Xe+(tt?-1:0)],Jt=tt==(rn.level==1),$n=Jt?rn.from:rn.to,Nn=Jt?"after":"before";return ae.ch==$n&&ae.sticky==Nn?Q:new qr(new wt(ae.line,$n,Nn),oe)}function Vc(X,Q,ae,oe){var de,Ee;if(Q.touches)de=Q.touches[0].clientX,Ee=Q.touches[0].clientY;else try{de=Q.clientX,Ee=Q.clientY}catch{return!1}if(de>=Math.floor(X.display.gutters.getBoundingClientRect().right))return!1;oe&&Tt(Q);var Ie=X.display,He=Ie.lineDiv.getBoundingClientRect();if(Ee>He.bottom||!Ct(X,ae))return fn(Q);Ee-=He.top-Ie.viewOffset;for(var Xe=0;Xe<X.display.gutterSpecs.length;++Xe){var tt=Ie.gutters.childNodes[Xe];if(tt&&tt.getBoundingClientRect().right>=de){var At=er(X.doc,Ee),It=X.display.gutterSpecs[Xe];return Ht(X,ae,X,At,It.className,Q),fn(Q)}}}function fc(X,Q){return Vc(X,Q,"gutterClick",!0)}function Uc(X,Q){bs(X.display,Q)||Iu(X,Q)||mn(X,Q,"contextmenu")||le||X.display.input.onContextMenu(Q)}function Iu(X,Q){return Ct(X,"gutterContextMenu")?Vc(X,Q,"gutterContextMenu",!1):!1}function Hc(X){X.display.wrapper.className=X.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+X.options.theme.replace(/(^|\s)\s*/g," cm-s-"),wr(X)}var Ea={toString:function(){return"CodeMirror.Init"}},Wc={},Al={};function Nu(X){var Q=X.optionHandlers;function ae(oe,de,Ee,Ie){X.defaults[oe]=de,Ee&&(Q[oe]=Ie?function(He,Xe,tt){tt!=Ea&&Ee(He,Xe,tt)}:Ee)}X.defineOption=ae,X.Init=Ea,ae("value","",function(oe,de){return oe.setValue(de)},!0),ae("mode",null,function(oe,de){oe.doc.modeOption=de,Go(oe)},!0),ae("indentUnit",2,Go,!0),ae("indentWithTabs",!1),ae("smartIndent",!0),ae("tabSize",4,function(oe){Fs(oe),wr(oe),yi(oe)},!0),ae("lineSeparator",null,function(oe,de){if(oe.doc.lineSep=de,!!de){var Ee=[],Ie=oe.doc.first;oe.doc.iter(function(Xe){for(var tt=0;;){var At=Xe.text.indexOf(de,tt);if(At==-1)break;tt=At+de.length,Ee.push(wt(Ie,At))}Ie++});for(var He=Ee.length-1;He>=0;He--)Gs(oe.doc,de,Ee[He],wt(Ee[He].line,Ee[He].ch+de.length))}}),ae("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(oe,de,Ee){oe.state.specialChars=new RegExp(de.source+(de.test(" ")?"":"| "),"g"),Ee!=Ea&&oe.refresh()}),ae("specialCharPlaceholder",Hr,function(oe){return oe.refresh()},!0),ae("electricChars",!0),ae("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ae("spellcheck",!1,function(oe,de){return oe.getInputField().spellcheck=de},!0),ae("autocorrect",!1,function(oe,de){return oe.getInputField().autocorrect=de},!0),ae("autocapitalize",!1,function(oe,de){return oe.getInputField().autocapitalize=de},!0),ae("rtlMoveVisually",!ge),ae("wholeLineUpdateBefore",!0),ae("theme","default",function(oe){Hc(oe),Ko(oe)},!0),ae("keyMap","default",function(oe,de,Ee){var Ie=Ol(de),He=Ee!=Ea&&Ol(Ee);He&&He.detach&&He.detach(oe,Ie),Ie.attach&&Ie.attach(oe,He||null)}),ae("extraKeys",null),ae("configureMouse",null),ae("lineWrapping",!1,Fu,!0),ae("gutters",[],function(oe,de){oe.display.gutterSpecs=Va(de,oe.options.lineNumbers),Ko(oe)},!0),ae("fixedGutter",!0,function(oe,de){oe.display.gutters.style.left=de?xs(oe.display)+"px":"0",oe.refresh()},!0),ae("coverGutterNextToScrollbar",!1,function(oe){return ao(oe)},!0),ae("scrollbarStyle","native",function(oe){ml(oe),ao(oe),oe.display.scrollbars.setScrollTop(oe.doc.scrollTop),oe.display.scrollbars.setScrollLeft(oe.doc.scrollLeft)},!0),ae("lineNumbers",!1,function(oe,de){oe.display.gutterSpecs=Va(oe.options.gutters,de),Ko(oe)},!0),ae("firstLineNumber",1,Ko,!0),ae("lineNumberFormatter",function(oe){return oe},Ko,!0),ae("showCursorWhenSelecting",!1,ks,!0),ae("resetSelectionOnContextMenu",!0),ae("lineWiseCopyCut",!0),ae("pasteLinesPerSelection",!0),ae("selectionsMayTouch",!1),ae("readOnly",!1,function(oe,de){de=="nocursor"&&(Ws(oe),oe.display.input.blur()),oe.display.input.readOnlyChanged(de)}),ae("screenReaderLabel",null,function(oe,de){de=de===""?null:de,oe.display.input.screenReaderLabelChanged(de)}),ae("disableInput",!1,function(oe,de){de||oe.display.input.reset()},!0),ae("dragDrop",!0,Lu),ae("allowDropFileTypes",null),ae("cursorBlinkRate",530),ae("cursorScrollMargin",0),ae("cursorHeight",1,ks,!0),ae("singleCursorHeightPerLine",!0,ks,!0),ae("workTime",100),ae("workDelay",100),ae("flattenSpans",!0,Fs,!0),ae("addModeClass",!1,Fs,!0),ae("pollInterval",100),ae("undoDepth",200,function(oe,de){return oe.doc.history.undoDepth=de}),ae("historyEventDelay",1250),ae("viewportMargin",10,function(oe){return oe.refresh()},!0),ae("maxHighlightLength",1e4,Fs,!0),ae("moveInputWithCursor",!0,function(oe,de){de||oe.display.input.resetPosition()}),ae("tabindex",null,function(oe,de){return oe.display.input.getField().tabIndex=de||""}),ae("autofocus",null),ae("direction","ltr",function(oe,de){return oe.doc.setDirection(de)},!0),ae("phrases",null)}function Lu(X,Q,ae){var oe=ae&&ae!=Ea;if(!Q!=!oe){var de=X.display.dragFunctions,Ee=Q?pt:qt;Ee(X.display.scroller,"dragstart",de.start),Ee(X.display.scroller,"dragenter",de.enter),Ee(X.display.scroller,"dragover",de.over),Ee(X.display.scroller,"dragleave",de.leave),Ee(X.display.scroller,"drop",de.drop)}}function Fu(X){X.options.lineWrapping?(Ze(X.display.wrapper,"CodeMirror-wrap"),X.display.sizer.style.minWidth="",X.display.sizerWidth=null):(ve(X.display.wrapper,"CodeMirror-wrap"),Dn(X)),Ts(X),yi(X),wr(X),setTimeout(function(){return ao(X)},100)}function _i(X,Q){var ae=this;if(!(this instanceof _i))return new _i(X,Q);this.options=Q=Q?Vt(Q):{},Vt(Wc,Q,!1);var oe=Q.value;typeof oe=="string"?oe=new is(oe,Q.mode,null,Q.lineSeparator,Q.direction):Q.mode&&(oe.modeOption=Q.mode),this.doc=oe;var de=new _i.inputStyles[Q.inputStyle](this),Ee=this.display=new Ql(X,oe,de,Q);Ee.wrapper.CodeMirror=this,Hc(this),Q.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ml(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Gt,keySeq:null,specialChars:null},Q.autofocus&&!ue&&Ee.input.focus(),Y&&K<11&&setTimeout(function(){return ae.display.input.reset(!0)},20),Bu(this),gu(),Ns(this),this.curOp.forceUpdate=!0,Jo(this,oe),Q.autofocus&&!ue||this.hasFocus()?setTimeout(function(){ae.hasFocus()&&!ae.state.focused&&Is(ae)},20):Ws(this);for(var Ie in Al)Al.hasOwnProperty(Ie)&&Al[Ie](this,Q[Ie],Ea);yl(this),Q.finishInit&&Q.finishInit(this);for(var He=0;He<pc.length;++He)pc[He](this);Ls(this),G&&Q.lineWrapping&&getComputedStyle(Ee.lineDiv).textRendering=="optimizelegibility"&&(Ee.lineDiv.style.textRendering="auto")}_i.defaults=Wc,_i.optionHandlers=Al;function Bu(X){var Q=X.display;pt(Q.scroller,"mousedown",ki(X,zc)),Y&&K<11?pt(Q.scroller,"dblclick",ki(X,function(Xe){if(!mn(X,Xe)){var tt=fs(X,Xe);if(!(!tt||fc(X,Xe)||bs(X.display,Xe))){Tt(Xe);var At=X.findWordAt(tt);De(X.doc,At.anchor,At.head)}}})):pt(Q.scroller,"dblclick",function(Xe){return mn(X,Xe)||Tt(Xe)}),pt(Q.scroller,"contextmenu",function(Xe){return Uc(X,Xe)}),pt(Q.input.getField(),"contextmenu",function(Xe){Q.scroller.contains(Xe.target)||Uc(X,Xe)});var ae,oe={end:0};function de(){Q.activeTouch&&(ae=setTimeout(function(){return Q.activeTouch=null},1e3),oe=Q.activeTouch,oe.end=+new Date)}function Ee(Xe){if(Xe.touches.length!=1)return!1;var tt=Xe.touches[0];return tt.radiusX<=1&&tt.radiusY<=1}function Ie(Xe,tt){if(tt.left==null)return!0;var At=tt.left-Xe.left,It=tt.top-Xe.top;return At*At+It*It>20*20}pt(Q.scroller,"touchstart",function(Xe){if(!mn(X,Xe)&&!Ee(Xe)&&!fc(X,Xe)){Q.input.ensurePolled(),clearTimeout(ae);var tt=+new Date;Q.activeTouch={start:tt,moved:!1,prev:tt-oe.end<=300?oe:null},Xe.touches.length==1&&(Q.activeTouch.left=Xe.touches[0].pageX,Q.activeTouch.top=Xe.touches[0].pageY)}}),pt(Q.scroller,"touchmove",function(){Q.activeTouch&&(Q.activeTouch.moved=!0)}),pt(Q.scroller,"touchend",function(Xe){var tt=Q.activeTouch;if(tt&&!bs(Q,Xe)&&tt.left!=null&&!tt.moved&&new Date-tt.start<300){var At=X.coordsChar(Q.activeTouch,"page"),It;!tt.prev||Ie(tt,tt.prev)?It=new qr(At,At):!tt.prev.prev||Ie(tt,tt.prev.prev)?It=X.findWordAt(At):It=new qr(wt(At.line,0),cn(X.doc,wt(At.line+1,0))),X.setSelection(It.anchor,It.head),X.focus(),Tt(Xe)}de()}),pt(Q.scroller,"touchcancel",de),pt(Q.scroller,"scroll",function(){Q.scroller.clientHeight&&(Ys(X,Q.scroller.scrollTop),ps(X,Q.scroller.scrollLeft,!0),Ht(X,"scroll",X))}),pt(Q.scroller,"mousewheel",function(Xe){return Ua(X,Xe)}),pt(Q.scroller,"DOMMouseScroll",function(Xe){return Ua(X,Xe)}),pt(Q.wrapper,"scroll",function(){return Q.wrapper.scrollTop=Q.wrapper.scrollLeft=0}),Q.dragFunctions={enter:function(Xe){mn(X,Xe)||hn(Xe)},over:function(Xe){mn(X,Xe)||(mu(X,Xe),hn(Xe))},start:function(Xe){return hu(X,Xe)},drop:ki(X,pu),leave:function(Xe){mn(X,Xe)||$c(X)}};var He=Q.input.getField();pt(He,"keyup",function(Xe){return Fc.call(X,Xe)}),pt(He,"keydown",ki(X,Lc)),pt(He,"keypress",ki(X,Bc)),pt(He,"focus",function(Xe){return Is(X,Xe)}),pt(He,"blur",function(Xe){return Ws(X,Xe)})}var pc=[];_i.defineInitHook=function(X){return pc.push(X)};function cl(X,Q,ae,oe){var de=X.doc,Ee;ae==null&&(ae="add"),ae=="smart"&&(de.mode.indent?Ee=xn(X,Q).state:ae="prev");var Ie=X.options.tabSize,He=Pn(de,Q),Xe=Wt(He.text,null,Ie);He.stateAfter&&(He.stateAfter=null);var tt=He.text.match(/^\s*/)[0],At;if(!oe&&!/\S/.test(He.text))At=0,ae="not";else if(ae=="smart"&&(At=de.mode.indent(Ee,He.text.slice(tt.length),He.text),At==En||At>150)){if(!oe)return;ae="prev"}ae=="prev"?Q>de.first?At=Wt(Pn(de,Q-1).text,null,Ie):At=0:ae=="add"?At=Xe+X.options.indentUnit:ae=="subtract"?At=Xe-X.options.indentUnit:typeof ae=="number"&&(At=Xe+ae),At=Math.max(0,At);var It="",rn=0;if(X.options.indentWithTabs)for(var Jt=Math.floor(At/Ie);Jt;--Jt)rn+=Ie,It+=" ";if(rn<At&&(It+=Ln(At-rn)),It!=tt)return Gs(de,It,wt(Q,0),wt(Q,tt.length),"+input"),He.stateAfter=null,!0;for(var $n=0;$n<de.sel.ranges.length;$n++){var Nn=de.sel.ranges[$n];if(Nn.head.line==Q&&Nn.head.ch<tt.length){var qn=wt(Q,tt.length);at(de,$n,new qr(qn,qn));break}}}var Bs=null;function Rl(X){Bs=X}function hc(X,Q,ae,oe,de){var Ee=X.doc;X.display.shift=!1,oe||(oe=Ee.sel);var Ie=+new Date-200,He=de=="paste"||X.state.pasteIncoming>Ie,Xe=Ur(Q),tt=null;if(He&&oe.ranges.length>1)if(Bs&&Bs.text.join(` `)==Q){if(oe.ranges.length%Bs.text.length==0){tt=[];for(var At=0;At<Bs.text.length;At++)tt.push(Ee.splitLines(Bs.text[At]))}}else Xe.length==oe.ranges.length&&X.options.pasteLinesPerSelection&&(tt=We(Xe,function(nr){return[nr]}));for(var It=X.curOp.updateInput,rn=oe.ranges.length-1;rn>=0;rn--){var Jt=oe.ranges[rn],$n=Jt.from(),Nn=Jt.to();Jt.empty()&&(ae&&ae>0?$n=wt($n.line,$n.ch-ae):X.state.overwrite&&!He?Nn=wt(Nn.line,Math.min(Pn(Ee,Nn.line).text.length,Nn.ch+Et(Xe).length)):He&&Bs&&Bs.lineWise&&Bs.text.join(` `)==Xe.join(` `)&&($n=Nn=wt($n.line,0)));var qn={from:$n,to:Nn,text:tt?tt[rn%tt.length]:Xe,origin:de||(He?"paste":X.state.cutIncoming>Ie?"cut":"+input")};Ar(X.doc,qn),mi(X,"inputRead",X,qn)}Q&&!He&&Yc(X,Q),oo(X),X.curOp.updateInput<2&&(X.curOp.updateInput=It),X.curOp.typing=!0,X.state.pasteIncoming=X.state.cutIncoming=-1}function qc(X,Q){var ae=X.clipboardData&&X.clipboardData.getData("Text");if(ae)return X.preventDefault(),!Q.isReadOnly()&&!Q.options.disableInput&&Q.hasFocus()&&Wi(Q,function(){return hc(Q,ae,0,null,"paste")}),!0}function Yc(X,Q){if(!(!X.options.electricChars||!X.options.smartIndent))for(var ae=X.doc.sel,oe=ae.ranges.length-1;oe>=0;oe--){var de=ae.ranges[oe];if(!(de.head.ch>100||oe&&ae.ranges[oe-1].head.line==de.head.line)){var Ee=X.getModeAt(de.head),Ie=!1;if(Ee.electricChars){for(var He=0;He<Ee.electricChars.length;He++)if(Q.indexOf(Ee.electricChars.charAt(He))>-1){Ie=cl(X,de.head.line,"smart");break}}else Ee.electricInput&&Ee.electricInput.test(Pn(X.doc,de.head.line).text.slice(0,de.head.ch))&&(Ie=cl(X,de.head.line,"smart"));Ie&&mi(X,"electricInput",X,de.head.line)}}}function Kc(X){for(var Q=[],ae=[],oe=0;oe<X.doc.sel.ranges.length;oe++){var de=X.doc.sel.ranges[oe].head.line,Ee={anchor:wt(de,0),head:wt(de+1,0)};ae.push(Ee),Q.push(X.getRange(Ee.anchor,Ee.head))}return{text:Q,ranges:ae}}function mc(X,Q,ae,oe){X.setAttribute("autocorrect",ae?"on":"off"),X.setAttribute("autocapitalize",oe?"on":"off"),X.setAttribute("spellcheck",!!Q)}function Gc(){var X=Se("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Q=Se("div",[X],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return G?X.style.width="1000px":X.setAttribute("wrap","off"),ce&&(X.style.border="1px solid black"),Q}function zu(X){var Q=X.optionHandlers,ae=X.helpers={};X.prototype={constructor:X,focus:function(){Dt(this).focus(),this.display.input.focus()},setOption:function(oe,de){var Ee=this.options,Ie=Ee[oe];Ee[oe]==de&&oe!="mode"||(Ee[oe]=de,Q.hasOwnProperty(oe)&&ki(this,Q[oe])(this,de,Ie),Ht(this,"optionChange",this,oe))},getOption:function(oe){return this.options[oe]},getDoc:function(){return this.doc},addKeyMap:function(oe,de){this.state.keyMaps[de?"push":"unshift"](Ol(oe))},removeKeyMap:function(oe){for(var de=this.state.keyMaps,Ee=0;Ee<de.length;++Ee)if(de[Ee]==oe||de[Ee].name==oe)return de.splice(Ee,1),!0},addOverlay:Ii(function(oe,de){var Ee=oe.token?oe:X.getMode(this.options,oe);if(Ee.startState)throw new Error("Overlays may not be stateful.");xt(this.state.overlays,{mode:Ee,modeSpec:oe,opaque:de&&de.opaque,priority:de&&de.priority||0},function(Ie){return Ie.priority}),this.state.modeGen++,yi(this)}),removeOverlay:Ii(function(oe){for(var de=this.state.overlays,Ee=0;Ee<de.length;++Ee){var Ie=de[Ee].modeSpec;if(Ie==oe||typeof oe=="string"&&Ie.name==oe){de.splice(Ee,1),this.state.modeGen++,yi(this);return}}}),indentLine:Ii(function(oe,de,Ee){typeof de!="string"&&typeof de!="number"&&(de==null?de=this.options.smartIndent?"smart":"prev":de=de?"add":"subtract"),Qe(this.doc,oe)&&cl(this,oe,de,Ee)}),indentSelection:Ii(function(oe){for(var de=this.doc.sel.ranges,Ee=-1,Ie=0;Ie<de.length;Ie++){var He=de[Ie];if(He.empty())He.head.line>Ee&&(cl(this,He.head.line,oe,!0),Ee=He.head.line,Ie==this.doc.sel.primIndex&&oo(this));else{var Xe=He.from(),tt=He.to(),At=Math.max(Ee,Xe.line);Ee=Math.min(this.lastLine(),tt.line-(tt.ch?0:1))+1;for(var It=At;It<Ee;++It)cl(this,It,oe);var rn=this.doc.sel.ranges;Xe.ch==0&&de.length==rn.length&&rn[Ie].from().ch>0&&at(this.doc,Ie,new qr(Xe,rn[Ie].to()),kn)}}}),getTokenAt:function(oe,de){return Nr(this,oe,de)},getLineTokens:function(oe,de){return Nr(this,wt(oe),de,!0)},getTokenTypeAt:function(oe){oe=cn(this.doc,oe);var de=nn(this,Pn(this.doc,oe.line)),Ee=0,Ie=(de.length-1)/2,He=oe.ch,Xe;if(He==0)Xe=de[2];else for(;;){var tt=Ee+Ie>>1;if((tt?de[tt*2-1]:0)>=He)Ie=tt;else if(de[tt*2+1]<He)Ee=tt+1;else{Xe=de[tt*2+2];break}}var At=Xe?Xe.indexOf("overlay "):-1;return At<0?Xe:At==0?null:Xe.slice(0,At-1)},getModeAt:function(oe){var de=this.doc.mode;return de.innerMode?X.innerMode(de,this.getTokenAt(oe).state).mode:de},getHelper:function(oe,de){return this.getHelpers(oe,de)[0]},getHelpers:function(oe,de){var Ee=[];if(!ae.hasOwnProperty(de))return Ee;var Ie=ae[de],He=this.getModeAt(oe);if(typeof He[de]=="string")Ie[He[de]]&&Ee.push(Ie[He[de]]);else if(He[de])for(var Xe=0;Xe<He[de].length;Xe++){var tt=Ie[He[de][Xe]];tt&&Ee.push(tt)}else He.helperType&&Ie[He.helperType]?Ee.push(Ie[He.helperType]):Ie[He.name]&&Ee.push(Ie[He.name]);for(var At=0;At<Ie._global.length;At++){var It=Ie._global[At];It.pred(He,this)&&tn(Ee,It.val)==-1&&Ee.push(It.val)}return Ee},getStateAfter:function(oe,de){var Ee=this.doc;return oe=Sn(Ee,oe??Ee.first+Ee.size-1),xn(this,oe+1,de).state},cursorCoords:function(oe,de){var Ee,Ie=this.doc.sel.primary();return oe==null?Ee=Ie.head:typeof oe=="object"?Ee=cn(this.doc,oe):Ee=oe?Ie.from():Ie.to(),ei(this,Ee,de||"page")},charCoords:function(oe,de){return si(this,cn(this.doc,oe),de||"page")},coordsChar:function(oe,de){return oe=fi(this,oe,de||"page"),vi(this,oe.left,oe.top)},lineAtHeight:function(oe,de){return oe=fi(this,{top:oe,left:0},de||"page").top,er(this.doc,oe+this.display.viewOffset)},heightAtLine:function(oe,de,Ee){var Ie=!1,He;if(typeof oe=="number"){var Xe=this.doc.first+this.doc.size-1;oe<this.doc.first?oe=this.doc.first:oe>Xe&&(oe=Xe,Ie=!0),He=Pn(this.doc,oe)}else He=oe;return ii(this,He,{top:0,left:0},de||"page",Ee||Ie).top+(Ie?this.doc.height-jt(He):0)},defaultTextHeight:function(){return Vi(this.display)},defaultCharWidth:function(){return ds(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(oe,de,Ee,Ie,He){var Xe=this.display;oe=ei(this,cn(this.doc,oe));var tt=oe.bottom,At=oe.left;if(de.style.position="absolute",de.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(de),Xe.sizer.appendChild(de),Ie=="over")tt=oe.top;else if(Ie=="above"||Ie=="near"){var It=Math.max(Xe.wrapper.clientHeight,this.doc.height),rn=Math.max(Xe.sizer.clientWidth,Xe.lineSpace.clientWidth);(Ie=="above"||oe.bottom+de.offsetHeight>It)&&oe.top>de.offsetHeight?tt=oe.top-de.offsetHeight:oe.bottom+de.offsetHeight<=It&&(tt=oe.bottom),At+de.offsetWidth>rn&&(At=rn-de.offsetWidth)}de.style.top=tt+"px",de.style.left=de.style.right="",He=="right"?(At=Xe.sizer.clientWidth-de.offsetWidth,de.style.right="0px"):(He=="left"?At=0:He=="middle"&&(At=(Xe.sizer.clientWidth-de.offsetWidth)/2),de.style.left=At+"px"),Ee&&so(this,{left:At,top:tt,right:At+de.offsetWidth,bottom:tt+de.offsetHeight})},triggerOnKeyDown:Ii(Lc),triggerOnKeyPress:Ii(Bc),triggerOnKeyUp:Fc,triggerOnMouseDown:Ii(zc),execCommand:function(oe){if(sl.hasOwnProperty(oe))return sl[oe].call(null,this)},triggerElectric:Ii(function(oe){Yc(this,oe)}),findPosH:function(oe,de,Ee,Ie){var He=1;de<0&&(He=-1,de=-de);for(var Xe=cn(this.doc,oe),tt=0;tt<de&&(Xe=gc(this.doc,Xe,He,Ee,Ie),!Xe.hitSide);++tt);return Xe},moveH:Ii(function(oe,de){var Ee=this;this.extendSelectionsBy(function(Ie){return Ee.display.shift||Ee.doc.extend||Ie.empty()?gc(Ee.doc,Ie.head,oe,de,Ee.options.rtlMoveVisually):oe<0?Ie.from():Ie.to()},An)}),deleteH:Ii(function(oe,de){var Ee=this.doc.sel,Ie=this.doc;Ee.somethingSelected()?Ie.replaceSelection("",null,"+delete"):Sa(this,function(He){var Xe=gc(Ie,He.head,oe,de,!1);return oe<0?{from:Xe,to:He.head}:{from:He.head,to:Xe}})}),findPosV:function(oe,de,Ee,Ie){var He=1,Xe=Ie;de<0&&(He=-1,de=-de);for(var tt=cn(this.doc,oe),At=0;At<de;++At){var It=ei(this,tt,"div");if(Xe==null?Xe=It.left:It.left=Xe,tt=Xc(this,It,He,Ee),tt.hitSide)break}return tt},moveV:Ii(function(oe,de){var Ee=this,Ie=this.doc,He=[],Xe=!this.display.shift&&!Ie.extend&&Ie.sel.somethingSelected();if(Ie.extendSelectionsBy(function(At){if(Xe)return oe<0?At.from():At.to();var It=ei(Ee,At.head,"div");At.goalColumn!=null&&(It.left=At.goalColumn),He.push(It.left);var rn=Xc(Ee,It,oe,de);return de=="page"&&At==Ie.sel.primary()&&Ia(Ee,si(Ee,rn,"div").top-It.top),rn},An),He.length)for(var tt=0;tt<Ie.sel.ranges.length;tt++)Ie.sel.ranges[tt].goalColumn=He[tt]}),findWordAt:function(oe){var de=this.doc,Ee=Pn(de,oe.line).text,Ie=oe.ch,He=oe.ch;if(Ee){var Xe=this.getHelper(oe,"wordChars");(oe.sticky=="before"||He==Ee.length)&&Ie?--Ie:++He;for(var tt=Ee.charAt(Ie),At=Ge(tt,Xe)?function(It){return Ge(It,Xe)}:/\s/.test(tt)?function(It){return/\s/.test(It)}:function(It){return!/\s/.test(It)&&!Ge(It)};Ie>0&&At(Ee.charAt(Ie-1));)--Ie;for(;He<Ee.length&&At(Ee.charAt(He));)++He}return new qr(wt(oe.line,Ie),wt(oe.line,He))},toggleOverwrite:function(oe){oe!=null&&oe==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ze(this.display.cursorDiv,"CodeMirror-overwrite"):ve(this.display.cursorDiv,"CodeMirror-overwrite"),Ht(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ze(Ve(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ii(function(oe,de){qo(this,oe,de)}),getScrollInfo:function(){var oe=this.display.scroller;return{left:oe.scrollLeft,top:oe.scrollTop,height:oe.scrollHeight-us(this)-this.display.barHeight,width:oe.scrollWidth-us(this)-this.display.barWidth,clientHeight:jo(this),clientWidth:Ms(this)}},scrollIntoView:Ii(function(oe,de){oe==null?(oe={from:this.doc.sel.primary().head,to:null},de==null&&(de=this.options.cursorScrollMargin)):typeof oe=="number"?oe={from:wt(oe,0),to:null}:oe.from==null&&(oe={from:oe,to:null}),oe.to||(oe.to=oe.from),oe.margin=de||0,oe.from.line!=null?Hl(this,oe):ma(this,oe.from,oe.to,oe.margin)}),setSize:Ii(function(oe,de){var Ee=this,Ie=function(Xe){return typeof Xe=="number"||/^\d+$/.test(String(Xe))?Xe+"px":Xe};oe!=null&&(this.display.wrapper.style.width=Ie(oe)),de!=null&&(this.display.wrapper.style.height=Ie(de)),this.options.lineWrapping&&yr(this);var He=this.display.viewFrom;this.doc.iter(He,this.display.viewTo,function(Xe){if(Xe.widgets){for(var tt=0;tt<Xe.widgets.length;tt++)if(Xe.widgets[tt].noHScroll){ns(Ee,He,"widget");break}}++He}),this.curOp.forceUpdate=!0,Ht(this,"refresh",this)}),operation:function(oe){return Wi(this,oe)},startOperation:function(){return Ns(this)},endOperation:function(){return Ls(this)},refresh:Ii(function(){var oe=this.display.cachedTextHeight;yi(this),this.curOp.forceUpdate=!0,wr(this),qo(this,this.doc.scrollLeft,this.doc.scrollTop),Ba(this.display),(oe==null||Math.abs(oe-Vi(this.display))>.5||this.options.lineWrapping)&&Ts(this),Ht(this,"refresh",this)}),swapDoc:Ii(function(oe){var de=this.doc;return de.cm=null,this.state.selectingText&&this.state.selectingText(),Jo(this,oe),wr(this),this.display.input.reset(),qo(this,oe.scrollLeft,oe.scrollTop),this.curOp.forceScroll=!0,mi(this,"swapDoc",this,de),de}),phrase:function(oe){var de=this.options.phrases;return de&&Object.prototype.hasOwnProperty.call(de,oe)?de[oe]:oe},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ht(X),X.registerHelper=function(oe,de,Ee){ae.hasOwnProperty(oe)||(ae[oe]=X[oe]={_global:[]}),ae[oe][de]=Ee},X.registerGlobalHelper=function(oe,de,Ee,Ie){X.registerHelper(oe,de,Ie),ae[oe]._global.push({pred:Ee,val:Ie})}}function gc(X,Q,ae,oe,de){var Ee=Q,Ie=ae,He=Pn(X,Q.line),Xe=de&&X.direction=="rtl"?-ae:ae;function tt(){var dr=Q.line+Xe;return dr<X.first||dr>=X.first+X.size?!1:(Q=new wt(dr,Q.ch,Q.sticky),He=Pn(X,dr))}function At(dr){var rr;if(oe=="codepoint"){var gr=He.text.charCodeAt(Q.ch+(ae>0?0:-1));if(isNaN(gr))rr=null;else{var Or=ae>0?gr>=55296&&gr<56320:gr>=56320&&gr<57343;rr=new wt(Q.line,Math.max(0,Math.min(He.text.length,Q.ch+ae*(Or?2:1))),-ae)}}else de?rr=xu(X.cm,He,Q,ae):rr=lc(He,Q,ae);if(rr==null)if(!dr&&tt())Q=cc(de,X.cm,He,Q.line,Xe);else return!1;else Q=rr;return!0}if(oe=="char"||oe=="codepoint")At();else if(oe=="column")At(!0);else if(oe=="word"||oe=="group")for(var It=null,rn=oe=="group",Jt=X.cm&&X.cm.getHelper(Q,"wordChars"),$n=!0;!(ae<0&&!At(!$n));$n=!1){var Nn=He.text.charAt(Q.ch)||` `,qn=Ge(Nn,Jt)?"w":rn&&Nn==` `?"n":!rn||/\s/.test(Nn)?null:"p";if(rn&&!$n&&!qn&&(qn="s"),It&&It!=qn){ae<0&&(ae=1,At(),Q.sticky="after");break}if(qn&&(It=qn),ae>0&&!At(!$n))break}var nr=Kn(X,Q,Ee,Ie,!0);return Yt(Ee,nr)&&(nr.hitSide=!0),nr}function Xc(X,Q,ae,oe){var de=X.doc,Ee=Q.left,Ie;if(oe=="page"){var He=Math.min(X.display.wrapper.clientHeight,Dt(X).innerHeight||de(X).documentElement.clientHeight),Xe=Math.max(He-.5*Vi(X.display),3);Ie=(ae>0?Q.bottom:Q.top)+ae*Xe}else oe=="line"&&(Ie=ae>0?Q.bottom+3:Q.top-3);for(var tt;tt=vi(X,Ee,Ie),!!tt.outside;){if(ae<0?Ie<=0:Ie>=de.height){tt.hitSide=!0;break}Ie+=ae*5}return tt}var oi=function(X){this.cm=X,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Gt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};oi.prototype.init=function(X){var Q=this,ae=this,oe=ae.cm,de=ae.div=X.lineDiv;de.contentEditable=!0,mc(de,oe.options.spellcheck,oe.options.autocorrect,oe.options.autocapitalize);function Ee(He){for(var Xe=He.target;Xe;Xe=Xe.parentNode){if(Xe==de)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Xe.className))break}return!1}pt(de,"paste",function(He){!Ee(He)||mn(oe,He)||qc(He,oe)||K<=11&&setTimeout(ki(oe,function(){return Q.updateFromDOM()}),20)}),pt(de,"compositionstart",function(He){Q.composing={data:He.data,done:!1}}),pt(de,"compositionupdate",function(He){Q.composing||(Q.composing={data:He.data,done:!1})}),pt(de,"compositionend",function(He){Q.composing&&(He.data!=Q.composing.data&&Q.readFromDOMSoon(),Q.composing.done=!0)}),pt(de,"touchstart",function(){return ae.forceCompositionEnd()}),pt(de,"input",function(){Q.composing||Q.readFromDOMSoon()});function Ie(He){if(!(!Ee(He)||mn(oe,He))){if(oe.somethingSelected())Rl({lineWise:!1,text:oe.getSelections()}),He.type=="cut"&&oe.replaceSelection("",null,"cut");else if(oe.options.lineWiseCopyCut){var Xe=Kc(oe);Rl({lineWise:!0,text:Xe.text}),He.type=="cut"&&oe.operation(function(){oe.setSelections(Xe.ranges,0,kn),oe.replaceSelection("",null,"cut")})}else return;if(He.clipboardData){He.clipboardData.clearData();var tt=Bs.text.join(` `);if(He.clipboardData.setData("Text",tt),He.clipboardData.getData("Text")==tt){He.preventDefault();return}}var At=Gc(),It=At.firstChild;mc(It),oe.display.lineSpace.insertBefore(At,oe.display.lineSpace.firstChild),It.value=Bs.text.join(` `);var rn=ze(de.ownerDocument);Ye(It),setTimeout(function(){oe.display.lineSpace.removeChild(At),rn.focus(),rn==de&&ae.showPrimarySelection()},50)}}pt(de,"copy",Ie),pt(de,"cut",Ie)},oi.prototype.screenReaderLabelChanged=function(X){X?this.div.setAttribute("aria-label",X):this.div.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var X=da(this.cm,!1);return X.focus=ze(this.div.ownerDocument)==this.div,X},oi.prototype.showSelection=function(X,Q){!X||!this.cm.display.view.length||((X.focus||Q)&&this.showPrimarySelection(),this.showMultipleSelections(X))},oi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},oi.prototype.showPrimarySelection=function(){var X=this.getSelection(),Q=this.cm,ae=Q.doc.sel.primary(),oe=ae.from(),de=ae.to();if(Q.display.viewTo==Q.display.viewFrom||oe.line>=Q.display.viewTo||de.line<Q.display.viewFrom){X.removeAllRanges();return}var Ee=Dl(Q,X.anchorNode,X.anchorOffset),Ie=Dl(Q,X.focusNode,X.focusOffset);if(!(Ee&&!Ee.bad&&Ie&&!Ie.bad&&Bt(pn(Ee,Ie),oe)==0&&Bt(en(Ee,Ie),de)==0)){var He=Q.display.view,Xe=oe.line>=Q.display.viewFrom&&Jc(Q,oe)||{node:He[0].measure.map[2],offset:0},tt=de.line<Q.display.viewTo&&Jc(Q,de);if(!tt){var At=He[He.length-1].measure,It=At.maps?At.maps[At.maps.length-1]:At.map;tt={node:It[It.length-1],offset:It[It.length-2]-It[It.length-3]}}if(!Xe||!tt){X.removeAllRanges();return}var rn=X.rangeCount&&X.getRangeAt(0),Jt;try{Jt=Me(Xe.node,Xe.offset,tt.offset,tt.node)}catch{}Jt&&(!B&&Q.state.focused?(X.collapse(Xe.node,Xe.offset),Jt.collapsed||(X.removeAllRanges(),X.addRange(Jt))):(X.removeAllRanges(),X.addRange(Jt)),rn&&X.anchorNode==null?X.addRange(rn):B&&this.startGracePeriod()),this.rememberSelection()}},oi.prototype.startGracePeriod=function(){var X=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){X.gracePeriod=!1,X.selectionChanged()&&X.cm.operation(function(){return X.cm.curOp.selectionChanged=!0})},20)},oi.prototype.showMultipleSelections=function(X){Ae(this.cm.display.cursorDiv,X.cursors),Ae(this.cm.display.selectionDiv,X.selection)},oi.prototype.rememberSelection=function(){var X=this.getSelection();this.lastAnchorNode=X.anchorNode,this.lastAnchorOffset=X.anchorOffset,this.lastFocusNode=X.focusNode,this.lastFocusOffset=X.focusOffset},oi.prototype.selectionInEditor=function(){var X=this.getSelection();if(!X.rangeCount)return!1;var Q=X.getRangeAt(0).commonAncestorContainer;return Be(this.div,Q)},oi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ze(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},oi.prototype.blur=function(){this.div.blur()},oi.prototype.getField=function(){return this.div},oi.prototype.supportsTouch=function(){return!0},oi.prototype.receivedFocus=function(){var X=this,Q=this;this.selectionInEditor()?setTimeout(function(){return X.pollSelection()},20):Wi(this.cm,function(){return Q.cm.curOp.selectionChanged=!0});function ae(){Q.cm.state.focused&&(Q.pollSelection(),Q.polling.set(Q.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},oi.prototype.selectionChanged=function(){var X=this.getSelection();return X.anchorNode!=this.lastAnchorNode||X.anchorOffset!=this.lastAnchorOffset||X.focusNode!=this.lastFocusNode||X.focusOffset!=this.lastFocusOffset},oi.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var X=this.getSelection(),Q=this.cm;if(me&&Z&&this.cm.display.gutterSpecs.length&&ju(X.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ae=Dl(Q,X.anchorNode,X.anchorOffset),oe=Dl(Q,X.focusNode,X.focusOffset);ae&&oe&&Wi(Q,function(){an(Q.doc,qi(ae,oe),kn),(ae.bad||oe.bad)&&(Q.curOp.selectionChanged=!0)})}}},oi.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var X=this.cm,Q=X.display,ae=X.doc.sel.primary(),oe=ae.from(),de=ae.to();if(oe.ch==0&&oe.line>X.firstLine()&&(oe=wt(oe.line-1,Pn(X.doc,oe.line-1).length)),de.ch==Pn(X.doc,de.line).text.length&&de.line<X.lastLine()&&(de=wt(de.line+1,0)),oe.line<Q.viewFrom||de.line>Q.viewTo-1)return!1;var Ee,Ie,He;oe.line==Q.viewFrom||(Ee=ws(X,oe.line))==0?(Ie=Bn(Q.view[0].line),He=Q.view[0].node):(Ie=Bn(Q.view[Ee].line),He=Q.view[Ee-1].node.nextSibling);var Xe=ws(X,de.line),tt,At;if(Xe==Q.view.length-1?(tt=Q.viewTo-1,At=Q.lineDiv.lastChild):(tt=Bn(Q.view[Xe+1].line)-1,At=Q.view[Xe+1].node.previousSibling),!He)return!1;for(var It=X.doc.splitLines(Vu(X,He,At,Ie,tt)),rn=mr(X.doc,wt(Ie,0),wt(tt,Pn(X.doc,tt).text.length));It.length>1&&rn.length>1;)if(Et(It)==Et(rn))It.pop(),rn.pop(),tt--;else if(It[0]==rn[0])It.shift(),rn.shift(),Ie++;else break;for(var Jt=0,$n=0,Nn=It[0],qn=rn[0],nr=Math.min(Nn.length,qn.length);Jt<nr&&Nn.charCodeAt(Jt)==qn.charCodeAt(Jt);)++Jt;for(var dr=Et(It),rr=Et(rn),gr=Math.min(dr.length-(It.length==1?Jt:0),rr.length-(rn.length==1?Jt:0));$n<gr&&dr.charCodeAt(dr.length-$n-1)==rr.charCodeAt(rr.length-$n-1);)++$n;if(It.length==1&&rn.length==1&&Ie==oe.line)for(;Jt&&Jt>oe.ch&&dr.charCodeAt(dr.length-$n-1)==rr.charCodeAt(rr.length-$n-1);)Jt--,$n++;It[It.length-1]=dr.slice(0,dr.length-$n).replace(/^\u200b+/,""),It[0]=It[0].slice(Jt).replace(/\u200b+$/,"");var Or=wt(Ie,Jt),Sr=wt(tt,rn.length?Et(rn).length-$n:0);if(It.length>1||It[0]||Bt(Or,Sr))return Gs(X.doc,It,Or,Sr,"+input"),!0},oi.prototype.ensurePolled=function(){this.forceCompositionEnd()},oi.prototype.reset=function(){this.forceCompositionEnd()},oi.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},oi.prototype.readFromDOMSoon=function(){var X=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(X.readDOMTimeout=null,X.composing)if(X.composing.done)X.composing=null;else return;X.updateFromDOM()},80))},oi.prototype.updateFromDOM=function(){var X=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return yi(X.cm)})},oi.prototype.setUneditable=function(X){X.contentEditable="false"},oi.prototype.onKeyPress=function(X){X.charCode==0||this.composing||(X.preventDefault(),this.cm.isReadOnly()||ki(this.cm,hc)(this.cm,String.fromCharCode(X.charCode==null?X.keyCode:X.charCode),0))},oi.prototype.readOnlyChanged=function(X){this.div.contentEditable=String(X!="nocursor")},oi.prototype.onContextMenu=function(){},oi.prototype.resetPosition=function(){},oi.prototype.needsContentAttribute=!0;function Jc(X,Q){var ae=st(X,Q.line);if(!ae||ae.hidden)return null;var oe=Pn(X.doc,Q.line),de=ua(ae,oe,Q.line),Ee=vn(oe,X.doc.direction),Ie="left";if(Ee){var He=Fn(Ee,Q.ch);Ie=He%2?"right":"left"}var Xe=ln(de.map,Q.ch,Ie);return Xe.offset=Xe.collapse=="right"?Xe.end:Xe.start,Xe}function ju(X){for(var Q=X;Q;Q=Q.parentNode)if(/CodeMirror-gutter-wrapper/.test(Q.className))return!0;return!1}function Ca(X,Q){return Q&&(X.bad=!0),X}function Vu(X,Q,ae,oe,de){var Ee="",Ie=!1,He=X.doc.lineSeparator(),Xe=!1;function tt(Jt){return function($n){return $n.id==Jt}}function At(){Ie&&(Ee+=He,Xe&&(Ee+=He),Ie=Xe=!1)}function It(Jt){Jt&&(At(),Ee+=Jt)}function rn(Jt){if(Jt.nodeType==1){var $n=Jt.getAttribute("cm-text");if($n){It($n);return}var Nn=Jt.getAttribute("cm-marker"),qn;if(Nn){var nr=X.findMarks(wt(oe,0),wt(de+1,0),tt(+Nn));nr.length&&(qn=nr[0].find(0))&&It(mr(X.doc,qn.from,qn.to).join(He));return}if(Jt.getAttribute("contenteditable")=="false")return;var dr=/^(pre|div|p|li|table|br)$/i.test(Jt.nodeName);if(!/^br$/i.test(Jt.nodeName)&&Jt.textContent.length==0)return;dr&&At();for(var rr=0;rr<Jt.childNodes.length;rr++)rn(Jt.childNodes[rr]);/^(pre|p)$/i.test(Jt.nodeName)&&(Xe=!0),dr&&(Ie=!0)}else Jt.nodeType==3&&It(Jt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;rn(Q),Q!=ae;)Q=Q.nextSibling,Xe=!1;return Ee}function Dl(X,Q,ae){var oe;if(Q==X.display.lineDiv){if(oe=X.display.lineDiv.childNodes[ae],!oe)return Ca(X.clipPos(wt(X.display.viewTo-1)),!0);Q=null,ae=0}else for(oe=Q;;oe=oe.parentNode){if(!oe||oe==X.display.lineDiv)return null;if(oe.parentNode&&oe.parentNode==X.display.lineDiv)break}for(var de=0;de<X.display.view.length;de++){var Ee=X.display.view[de];if(Ee.node==oe)return Uu(Ee,Q,ae)}}function Uu(X,Q,ae){var oe=X.text.firstChild,de=!1;if(!Q||!Be(oe,Q))return Ca(wt(Bn(X.line),0),!0);if(Q==oe&&(de=!0,Q=oe.childNodes[ae],ae=0,!Q)){var Ee=X.rest?Et(X.rest):X.line;return Ca(wt(Bn(Ee),Ee.text.length),de)}var Ie=Q.nodeType==3?Q:null,He=Q;for(!Ie&&Q.childNodes.length==1&&Q.firstChild.nodeType==3&&(Ie=Q.firstChild,ae&&(ae=Ie.nodeValue.length));He.parentNode!=oe;)He=He.parentNode;var Xe=X.measure,tt=Xe.maps;function At(qn,nr,dr){for(var rr=-1;rr<(tt?tt.length:0);rr++)for(var gr=rr<0?Xe.map:tt[rr],Or=0;Or<gr.length;Or+=3){var Sr=gr[Or+2];if(Sr==qn||Sr==nr){var Vr=Bn(rr<0?X.line:X.rest[rr]),ui=gr[Or]+dr;return(dr<0||Sr!=qn)&&(ui=gr[Or+(dr?1:0)]),wt(Vr,ui)}}}var It=At(Ie,He,ae);if(It)return Ca(It,de);for(var rn=He.nextSibling,Jt=Ie?Ie.nodeValue.length-ae:0;rn;rn=rn.nextSibling){if(It=At(rn,rn.firstChild,0),It)return Ca(wt(It.line,It.ch-Jt),de);Jt+=rn.textContent.length}for(var $n=He.previousSibling,Nn=ae;$n;$n=$n.previousSibling){if(It=At($n,$n.firstChild,-1),It)return Ca(wt(It.line,It.ch+Nn),de);Nn+=$n.textContent.length}}var Ti=function(X){this.cm=X,this.prevInput="",this.pollingFast=!1,this.polling=new Gt,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ti.prototype.init=function(X){var Q=this,ae=this,oe=this.cm;this.createField(X);var de=this.textarea;X.wrapper.insertBefore(this.wrapper,X.wrapper.firstChild),ce&&(de.style.width="0px"),pt(de,"input",function(){Y&&K>=9&&Q.hasSelection&&(Q.hasSelection=null),ae.poll()}),pt(de,"paste",function(Ie){mn(oe,Ie)||qc(Ie,oe)||(oe.state.pasteIncoming=+new Date,ae.fastPoll())});function Ee(Ie){if(!mn(oe,Ie)){if(oe.somethingSelected())Rl({lineWise:!1,text:oe.getSelections()});else if(oe.options.lineWiseCopyCut){var He=Kc(oe);Rl({lineWise:!0,text:He.text}),Ie.type=="cut"?oe.setSelections(He.ranges,null,kn):(ae.prevInput="",de.value=He.text.join(` `),Ye(de))}else return;Ie.type=="cut"&&(oe.state.cutIncoming=+new Date)}}pt(de,"cut",Ee),pt(de,"copy",Ee),pt(X.scroller,"paste",function(Ie){if(!(bs(X,Ie)||mn(oe,Ie))){if(!de.dispatchEvent){oe.state.pasteIncoming=+new Date,ae.focus();return}var He=new Event("paste");He.clipboardData=Ie.clipboardData,de.dispatchEvent(He)}}),pt(X.lineSpace,"selectstart",function(Ie){bs(X,Ie)||Tt(Ie)}),pt(de,"compositionstart",function(){var Ie=oe.getCursor("from");ae.composing&&ae.composing.range.clear(),ae.composing={start:Ie,range:oe.markText(Ie,oe.getCursor("to"),{className:"CodeMirror-composing"})}}),pt(de,"compositionend",function(){ae.composing&&(ae.poll(),ae.composing.range.clear(),ae.composing=null)})},Ti.prototype.createField=function(X){this.wrapper=Gc(),this.textarea=this.wrapper.firstChild;var Q=this.cm.options;mc(this.textarea,Q.spellcheck,Q.autocorrect,Q.autocapitalize)},Ti.prototype.screenReaderLabelChanged=function(X){X?this.textarea.setAttribute("aria-label",X):this.textarea.removeAttribute("aria-label")},Ti.prototype.prepareSelection=function(){var X=this.cm,Q=X.display,ae=X.doc,oe=da(X);if(X.options.moveInputWithCursor){var de=ei(X,ae.sel.primary().head,"div"),Ee=Q.wrapper.getBoundingClientRect(),Ie=Q.lineDiv.getBoundingClientRect();oe.teTop=Math.max(0,Math.min(Q.wrapper.clientHeight-10,de.top+Ie.top-Ee.top)),oe.teLeft=Math.max(0,Math.min(Q.wrapper.clientWidth-10,de.left+Ie.left-Ee.left))}return oe},Ti.prototype.showSelection=function(X){var Q=this.cm,ae=Q.display;Ae(ae.cursorDiv,X.cursors),Ae(ae.selectionDiv,X.selection),X.teTop!=null&&(this.wrapper.style.top=X.teTop+"px",this.wrapper.style.left=X.teLeft+"px")},Ti.prototype.reset=function(X){if(!(this.contextMenuPending||this.composing&&X)){var Q=this.cm;if(this.resetting=!0,Q.somethingSelected()){this.prevInput="";var ae=Q.getSelection();this.textarea.value=ae,Q.state.focused&&Ye(this.textarea),Y&&K>=9&&(this.hasSelection=ae)}else X||(this.prevInput=this.textarea.value="",Y&&K>=9&&(this.hasSelection=null));this.resetting=!1}},Ti.prototype.getField=function(){return this.textarea},Ti.prototype.supportsTouch=function(){return!1},Ti.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||ze(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Ti.prototype.blur=function(){this.textarea.blur()},Ti.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ti.prototype.receivedFocus=function(){this.slowPoll()},Ti.prototype.slowPoll=function(){var X=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){X.poll(),X.cm.state.focused&&X.slowPoll()})},Ti.prototype.fastPoll=function(){var X=!1,Q=this;Q.pollingFast=!0;function ae(){var oe=Q.poll();!oe&&!X?(X=!0,Q.polling.set(60,ae)):(Q.pollingFast=!1,Q.slowPoll())}Q.polling.set(20,ae)},Ti.prototype.poll=function(){var X=this,Q=this.cm,ae=this.textarea,oe=this.prevInput;if(this.contextMenuPending||this.resetting||!Q.state.focused||Ke(ae)&&!oe&&!this.composing||Q.isReadOnly()||Q.options.disableInput||Q.state.keySeq)return!1;var de=ae.value;if(de==oe&&!Q.somethingSelected())return!1;if(Y&&K>=9&&this.hasSelection===de||_e&&/[\uf700-\uf7ff]/.test(de))return Q.display.input.reset(),!1;if(Q.doc.sel==Q.display.selForContextMenu){var Ee=de.charCodeAt(0);if(Ee==8203&&!oe&&(oe=""),Ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ie=0,He=Math.min(oe.length,de.length);Ie<He&&oe.charCodeAt(Ie)==de.charCodeAt(Ie);)++Ie;return Wi(Q,function(){hc(Q,de.slice(Ie),oe.length-Ie,null,X.composing?"*compose":null),de.length>1e3||de.indexOf(` `)>-1?ae.value=X.prevInput="":X.prevInput=de,X.composing&&(X.composing.range.clear(),X.composing.range=Q.markText(X.composing.start,Q.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ti.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ti.prototype.onKeyPress=function(){Y&&K>=9&&(this.hasSelection=null),this.fastPoll()},Ti.prototype.onContextMenu=function(X){var Q=this,ae=Q.cm,oe=ae.display,de=Q.textarea;Q.contextMenuPending&&Q.contextMenuPending();var Ee=fs(ae,X),Ie=oe.scroller.scrollTop;if(!Ee||te)return;var He=ae.options.resetSelectionOnContextMenu;He&&ae.doc.sel.contains(Ee)==-1&&ki(ae,an)(ae.doc,qi(Ee),kn);var Xe=de.style.cssText,tt=Q.wrapper.style.cssText,At=Q.wrapper.offsetParent.getBoundingClientRect();Q.wrapper.style.cssText="position: static",de.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(X.clientY-At.top-5)+"px; left: "+(X.clientX-At.left-5)+`px; z-index: 1000; background: `+(Y?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var It;G&&(It=de.ownerDocument.defaultView.scrollY),oe.input.focus(),G&&de.ownerDocument.defaultView.scrollTo(null,It),oe.input.reset(),ae.somethingSelected()||(de.value=Q.prevInput=" "),Q.contextMenuPending=Jt,oe.selForContextMenu=ae.doc.sel,clearTimeout(oe.detectingSelectAll);function rn(){if(de.selectionStart!=null){var Nn=ae.somethingSelected(),qn=""+(Nn?de.value:"");de.value="⇚",de.value=qn,Q.prevInput=Nn?"":"",de.selectionStart=1,de.selectionEnd=qn.length,oe.selForContextMenu=ae.doc.sel}}function Jt(){if(Q.contextMenuPending==Jt&&(Q.contextMenuPending=!1,Q.wrapper.style.cssText=tt,de.style.cssText=Xe,Y&&K<9&&oe.scrollbars.setScrollTop(oe.scroller.scrollTop=Ie),de.selectionStart!=null)){(!Y||Y&&K<9)&&rn();var Nn=0,qn=function(){oe.selForContextMenu==ae.doc.sel&&de.selectionStart==0&&de.selectionEnd>0&&Q.prevInput==""?ki(ae,Tr)(ae):Nn++<10?oe.detectingSelectAll=setTimeout(qn,500):(oe.selForContextMenu=null,oe.input.reset())};oe.detectingSelectAll=setTimeout(qn,200)}}if(Y&&K>=9&&rn(),le){hn(X);var $n=function(){qt(window,"mouseup",$n),setTimeout(Jt,20)};pt(window,"mouseup",$n)}else setTimeout(Jt,50)},Ti.prototype.readOnlyChanged=function(X){X||this.reset(),this.textarea.disabled=X=="nocursor",this.textarea.readOnly=!!X},Ti.prototype.setUneditable=function(){},Ti.prototype.needsContentAttribute=!1;function Hu(X,Q){if(Q=Q?Vt(Q):{},Q.value=X.value,!Q.tabindex&&X.tabIndex&&(Q.tabindex=X.tabIndex),!Q.placeholder&&X.placeholder&&(Q.placeholder=X.placeholder),Q.autofocus==null){var ae=ze(X.ownerDocument);Q.autofocus=ae==X||X.getAttribute("autofocus")!=null&&ae==document.body}function oe(){X.value=He.getValue()}var de;if(X.form&&(pt(X.form,"submit",oe),!Q.leaveSubmitMethodAlone)){var Ee=X.form;de=Ee.submit;try{var Ie=Ee.submit=function(){oe(),Ee.submit=de,Ee.submit(),Ee.submit=Ie}}catch{}}Q.finishInit=function(Xe){Xe.save=oe,Xe.getTextArea=function(){return X},Xe.toTextArea=function(){Xe.toTextArea=isNaN,oe(),X.parentNode.removeChild(Xe.getWrapperElement()),X.style.display="",X.form&&(qt(X.form,"submit",oe),!Q.leaveSubmitMethodAlone&&typeof X.form.submit=="function"&&(X.form.submit=de))}},X.style.display="none";var He=_i(function(Xe){return X.parentNode.insertBefore(Xe,X.nextSibling)},Q);return He}function Wu(X){X.off=qt,X.on=pt,X.wheelEventPixels=ec,X.Doc=is,X.splitLines=Ur,X.countColumn=Wt,X.findColumn=jn,X.isWordChar=$e,X.Pass=En,X.signal=Ht,X.Line=_n,X.changeEnd=Ss,X.scrollbarModel=Na,X.Pos=wt,X.cmpPos=Bt,X.modes=_t,X.mimeModes=Xt,X.resolveMode=In,X.getMode=Qn,X.modeExtensions=Xn,X.extendMode=Rr,X.copyState=tr,X.startState=kr,X.innerMode=fr,X.commands=sl,X.keyMap=co,X.keyName=Rc,X.isModifierKey=Pc,X.lookupKey=ka,X.normalizeKeyMap=yu,X.StringStream=sr,X.SharedTextMarker=nl,X.TextMarker=To,X.LineWidget=tl,X.e_preventDefault=Tt,X.e_stopPropagation=Lt,X.e_stop=hn,X.addClass=Ze,X.contains=Be,X.rmClass=ve,X.keyNames=Oo}Nu(_i),zu(_i);var qu="iter insert remove copy getEditor constructor".split(" ");for(var Ml in is.prototype)is.prototype.hasOwnProperty(Ml)&&tn(qu,Ml)<0&&(_i.prototype[Ml]=function(X){return function(){return X.apply(this.doc,arguments)}}(is.prototype[Ml]));return ht(is),_i.inputStyles={textarea:Ti,contenteditable:oi},_i.defineMode=function(X){!_i.defaults.mode&&X!="null"&&(_i.defaults.mode=X),sn.apply(this,arguments)},_i.defineMIME=Tn,_i.defineMode("null",function(){return{token:function(X){return X.skipToEnd()}}}),_i.defineMIME("text/plain","null"),_i.defineExtension=function(X,Q){_i.prototype[X]=Q},_i.defineDocExtension=function(X,Q){is.prototype[X]=Q},_i.fromTextArea=Hu,Wu(_i),_i.version="5.65.12",_i})})(codemirror);var codemirrorExports=codemirror.exports;const CodeMirror=getDefaultExportFromCjs$1(codemirrorExports);var matchbrackets={exports:{}};(function(M,$){(function(I){I(codemirrorExports)})(function(I){var N=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),B=I.Pos,j={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function U(Z){return Z&&Z.bracketRegex||/[(){}[\]]/}function q(Z,ee,te){var se=Z.getLineHandle(ee.line),re=ee.ch-1,ne=te&&te.afterCursor;ne==null&&(ne=/(^| )cm-fat-cursor($| )/.test(Z.getWrapperElement().className));var ce=U(te),me=!ne&&re>=0&&ce.test(se.text.charAt(re))&&j[se.text.charAt(re)]||ce.test(se.text.charAt(re+1))&&j[se.text.charAt(++re)];if(!me)return null;var ue=me.charAt(1)==">"?1:-1;if(te&&te.strict&&ue>0!=(re==ee.ch))return null;var _e=Z.getTokenTypeAt(B(ee.line,re+1)),fe=Y(Z,B(ee.line,re+(ue>0?1:0)),ue,_e,te);return fe==null?null:{from:B(ee.line,re),to:fe&&fe.pos,match:fe&&fe.ch==me.charAt(0),forward:ue>0}}function Y(Z,ee,te,se,re){for(var ne=re&&re.maxScanLineLength||1e4,ce=re&&re.maxScanLines||1e3,me=[],ue=U(re),_e=te>0?Math.min(ee.line+ce,Z.lastLine()+1):Math.max(Z.firstLine()-1,ee.line-ce),fe=ee.line;fe!=_e;fe+=te){var ge=Z.getLine(fe);if(ge){var ye=te>0?0:ge.length-1,xe=te>0?ge.length:-1;if(!(ge.length>ne))for(fe==ee.line&&(ye=ee.ch-(te<0?1:0));ye!=xe;ye+=te){var le=ge.charAt(ye);if(ue.test(le)&&(se===void 0||(Z.getTokenTypeAt(B(fe,ye+1))||"")==(se||""))){var be=j[le];if(be&&be.charAt(1)==">"==te>0)me.push(le);else if(me.length)me.pop();else return{pos:B(fe,ye),ch:le}}}}}return fe-te==(te>0?Z.lastLine():Z.firstLine())?!1:null}function K(Z,ee,te){for(var se=Z.state.matchBrackets.maxHighlightLineLength||1e3,re=te&&te.highlightNonMatching,ne=[],ce=Z.listSelections(),me=0;me<ce.length;me++){var ue=ce[me].empty()&&q(Z,ce[me].head,te);if(ue&&(ue.match||re!==!1)&&Z.getLine(ue.from.line).length<=se){var _e=ue.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";ne.push(Z.markText(ue.from,B(ue.from.line,ue.from.ch+1),{className:_e})),ue.to&&Z.getLine(ue.to.line).length<=se&&ne.push(Z.markText(ue.to,B(ue.to.line,ue.to.ch+1),{className:_e}))}}if(ne.length){N&&Z.state.focused&&Z.focus();var fe=function(){Z.operation(function(){for(var ge=0;ge<ne.length;ge++)ne[ge].clear()})};if(ee)setTimeout(fe,800);else return fe}}function G(Z){Z.operation(function(){Z.state.matchBrackets.currentlyHighlighted&&(Z.state.matchBrackets.currentlyHighlighted(),Z.state.matchBrackets.currentlyHighlighted=null),Z.state.matchBrackets.currentlyHighlighted=K(Z,!1,Z.state.matchBrackets)})}function J(Z){Z.state.matchBrackets&&Z.state.matchBrackets.currentlyHighlighted&&(Z.state.matchBrackets.currentlyHighlighted(),Z.state.matchBrackets.currentlyHighlighted=null)}I.defineOption("matchBrackets",!1,function(Z,ee,te){te&&te!=I.Init&&(Z.off("cursorActivity",G),Z.off("focus",G),Z.off("blur",J),J(Z)),ee&&(Z.state.matchBrackets=typeof ee=="object"?ee:{},Z.on("cursorActivity",G),Z.on("focus",G),Z.on("blur",J))}),I.defineExtension("matchBrackets",function(){K(this,!0)}),I.defineExtension("findMatchingBracket",function(Z,ee,te){return(te||typeof ee=="boolean")&&(te?(te.strict=ee,ee=te):ee=ee?{strict:!0}:null),q(this,Z,ee)}),I.defineExtension("scanForBracket",function(Z,ee,te,se){return Y(this,Z,ee,te,se)})})})();var matchbracketsExports=matchbrackets.exports;(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineOption("fullScreen",!1,function(j,U,q){q==I.Init&&(q=!1),!q!=!U&&(U?N(j):B(j))});function N(j){var U=j.getWrapperElement();j.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:U.style.width,height:U.style.height},U.style.width="",U.style.height="auto",U.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",j.refresh()}function B(j){var U=j.getWrapperElement();U.className=U.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var q=j.state.fullScreenRestore;U.style.width=q.width,U.style.height=q.height,window.scrollTo(q.scrollLeft,q.scrollTop),j.refresh()}})})();(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineOption("rulers",!1,function(B,j){B.state.rulerDiv&&(B.state.rulerDiv.parentElement.removeChild(B.state.rulerDiv),B.state.rulerDiv=null,B.off("refresh",N)),j&&j.length&&(B.state.rulerDiv=B.display.lineSpace.parentElement.insertBefore(document.createElement("div"),B.display.lineSpace),B.state.rulerDiv.className="CodeMirror-rulers",N(B),B.on("refresh",N))});function N(B){B.state.rulerDiv.textContent="";var j=B.getOption("rulers"),U=B.defaultCharWidth(),q=B.charCoords(I.Pos(B.firstLine(),0),"div").left;B.state.rulerDiv.style.minHeight=B.display.scroller.offsetHeight+30+"px";for(var Y=0;Y<j.length;Y++){var K=document.createElement("div");K.className="CodeMirror-ruler";var G,J=j[Y];typeof J=="number"?G=J:(G=J.column,J.className&&(K.className+=" "+J.className),J.color&&(K.style.borderColor=J.color),J.lineStyle&&(K.style.borderLeftStyle=J.lineStyle),J.width&&(K.style.borderLeftWidth=J.width)),K.style.left=q+G*U+"px",B.state.rulerDiv.appendChild(K)}}})})();var searchcursor={exports:{}},hasRequiredSearchcursor;function requireSearchcursor(){return hasRequiredSearchcursor||(hasRequiredSearchcursor=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){var N=I.Pos;function B(ce){var me=ce.flags;return me??(ce.ignoreCase?"i":"")+(ce.global?"g":"")+(ce.multiline?"m":"")}function j(ce,me){for(var ue=B(ce),_e=ue,fe=0;fe<me.length;fe++)_e.indexOf(me.charAt(fe))==-1&&(_e+=me.charAt(fe));return ue==_e?ce:new RegExp(ce.source,_e)}function U(ce){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(ce.source)}function q(ce,me,ue){me=j(me,"g");for(var _e=ue.line,fe=ue.ch,ge=ce.lastLine();_e<=ge;_e++,fe=0){me.lastIndex=fe;var ye=ce.getLine(_e),xe=me.exec(ye);if(xe)return{from:N(_e,xe.index),to:N(_e,xe.index+xe[0].length),match:xe}}}function Y(ce,me,ue){if(!U(me))return q(ce,me,ue);me=j(me,"gm");for(var _e,fe=1,ge=ue.line,ye=ce.lastLine();ge<=ye;){for(var xe=0;xe<fe&&!(ge>ye);xe++){var le=ce.getLine(ge++);_e=_e==null?le:_e+` `+le}fe=fe*2,me.lastIndex=ue.ch;var be=me.exec(_e);if(be){var ve=_e.slice(0,be.index).split(` `),we=be[0].split(` `),Ae=ue.line+ve.length-1,Se=ve[ve.length-1].length;return{from:N(Ae,Se),to:N(Ae+we.length-1,we.length==1?Se+we[0].length:we[we.length-1].length),match:be}}}}function K(ce,me,ue){for(var _e,fe=0;fe<=ce.length;){me.lastIndex=fe;var ge=me.exec(ce);if(!ge)break;var ye=ge.index+ge[0].length;if(ye>ce.length-ue)break;(!_e||ye>_e.index+_e[0].length)&&(_e=ge),fe=ge.index+1}return _e}function G(ce,me,ue){me=j(me,"g");for(var _e=ue.line,fe=ue.ch,ge=ce.firstLine();_e>=ge;_e--,fe=-1){var ye=ce.getLine(_e),xe=K(ye,me,fe<0?0:ye.length-fe);if(xe)return{from:N(_e,xe.index),to:N(_e,xe.index+xe[0].length),match:xe}}}function J(ce,me,ue){if(!U(me))return G(ce,me,ue);me=j(me,"gm");for(var _e,fe=1,ge=ce.getLine(ue.line).length-ue.ch,ye=ue.line,xe=ce.firstLine();ye>=xe;){for(var le=0;le<fe&&ye>=xe;le++){var be=ce.getLine(ye--);_e=_e==null?be:be+` `+_e}fe*=2;var ve=K(_e,me,ge);if(ve){var we=_e.slice(0,ve.index).split(` `),Ae=ve[0].split(` `),Se=ye+we.length,Pe=we[we.length-1].length;return{from:N(Se,Pe),to:N(Se+Ae.length-1,Ae.length==1?Pe+Ae[0].length:Ae[Ae.length-1].length),match:ve}}}}var Z,ee;String.prototype.normalize?(Z=function(ce){return ce.normalize("NFD").toLowerCase()},ee=function(ce){return ce.normalize("NFD")}):(Z=function(ce){return ce.toLowerCase()},ee=function(ce){return ce});function te(ce,me,ue,_e){if(ce.length==me.length)return ue;for(var fe=0,ge=ue+Math.max(0,ce.length-me.length);;){if(fe==ge)return fe;var ye=fe+ge>>1,xe=_e(ce.slice(0,ye)).length;if(xe==ue)return ye;xe>ue?ge=ye:fe=ye+1}}function se(ce,me,ue,_e){if(!me.length)return null;var fe=_e?Z:ee,ge=fe(me).split(/\r|\n\r?/);e:for(var ye=ue.line,xe=ue.ch,le=ce.lastLine()+1-ge.length;ye<=le;ye++,xe=0){var be=ce.getLine(ye).slice(xe),ve=fe(be);if(ge.length==1){var we=ve.indexOf(ge[0]);if(we==-1)continue e;var ue=te(be,ve,we,fe)+xe;return{from:N(ye,te(be,ve,we,fe)+xe),to:N(ye,te(be,ve,we+ge[0].length,fe)+xe)}}else{var Ae=ve.length-ge[0].length;if(ve.slice(Ae)!=ge[0])continue e;for(var Se=1;Se<ge.length-1;Se++)if(fe(ce.getLine(ye+Se))!=ge[Se])continue e;var Pe=ce.getLine(ye+ge.length-1),Me=fe(Pe),Be=ge[ge.length-1];if(Me.slice(0,Be.length)!=Be)continue e;return{from:N(ye,te(be,ve,Ae,fe)+xe),to:N(ye+ge.length-1,te(Pe,Me,Be.length,fe))}}}}function re(ce,me,ue,_e){if(!me.length)return null;var fe=_e?Z:ee,ge=fe(me).split(/\r|\n\r?/);e:for(var ye=ue.line,xe=ue.ch,le=ce.firstLine()-1+ge.length;ye>=le;ye--,xe=-1){var be=ce.getLine(ye);xe>-1&&(be=be.slice(0,xe));var ve=fe(be);if(ge.length==1){var we=ve.lastIndexOf(ge[0]);if(we==-1)continue e;return{from:N(ye,te(be,ve,we,fe)),to:N(ye,te(be,ve,we+ge[0].length,fe))}}else{var Ae=ge[ge.length-1];if(ve.slice(0,Ae.length)!=Ae)continue e;for(var Se=1,ue=ye-ge.length+1;Se<ge.length-1;Se++)if(fe(ce.getLine(ue+Se))!=ge[Se])continue e;var Pe=ce.getLine(ye+1-ge.length),Me=fe(Pe);if(Me.slice(Me.length-ge[0].length)!=ge[0])continue e;return{from:N(ye+1-ge.length,te(Pe,Me,Pe.length-ge[0].length,fe)),to:N(ye,te(be,ve,Ae.length,fe))}}}}function ne(ce,me,ue,_e){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=ce,ue=ue?ce.clipPos(ue):N(0,0),this.pos={from:ue,to:ue};var fe;typeof _e=="object"?fe=_e.caseFold:(fe=_e,_e=null),typeof me=="string"?(fe==null&&(fe=!1),this.matches=function(ge,ye){return(ge?re:se)(ce,me,ye,fe)}):(me=j(me,"gm"),!_e||_e.multiline!==!1?this.matches=function(ge,ye){return(ge?J:Y)(ce,me,ye)}:this.matches=function(ge,ye){return(ge?G:q)(ce,me,ye)})}ne.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(ce){var me=this.doc.clipPos(ce?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(me=N(me.line,me.ch),ce?(me.ch--,me.ch<0&&(me.line--,me.ch=(this.doc.getLine(me.line)||"").length)):(me.ch++,me.ch>(this.doc.getLine(me.line)||"").length&&(me.ch=0,me.line++)),I.cmpPos(me,this.doc.clipPos(me))!=0))return this.atOccurrence=!1;var ue=this.matches(ce,me);if(this.afterEmptyMatch=ue&&I.cmpPos(ue.from,ue.to)==0,ue)return this.pos=ue,this.atOccurrence=!0,this.pos.match||!0;var _e=N(ce?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_e,to:_e},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(ce,me){if(this.atOccurrence){var ue=I.splitLines(ce);this.doc.replaceRange(ue,this.pos.from,this.pos.to,me),this.pos.to=N(this.pos.from.line+ue.length-1,ue[ue.length-1].length+(ue.length==1?this.pos.from.ch:0))}}},I.defineExtension("getSearchCursor",function(ce,me,ue){return new ne(this.doc,ce,me,ue)}),I.defineDocExtension("getSearchCursor",function(ce,me,ue){return new ne(this,ce,me,ue)}),I.defineExtension("selectMatches",function(ce,me){for(var ue=[],_e=this.getSearchCursor(ce,this.getCursor("from"),me);_e.findNext()&&!(I.cmpPos(_e.to(),this.getCursor("to"))>0);)ue.push({anchor:_e.from(),head:_e.to()});ue.length&&this.setSelections(ue,0)})})}()),searchcursor.exports}(function(M,$){(function(I){I(codemirrorExports,requireSearchcursor(),matchbracketsExports)})(function(I){var N=I.commands,B=I.Pos;function j(ue,_e,fe){if(fe<0&&_e.ch==0)return ue.clipPos(B(_e.line-1));var ge=ue.getLine(_e.line);if(fe>0&&_e.ch>=ge.length)return ue.clipPos(B(_e.line+1,0));for(var ye="start",xe,le=_e.ch,be=le,ve=fe<0?0:ge.length,we=0;be!=ve;be+=fe,we++){var Ae=ge.charAt(fe<0?be-1:be),Se=Ae!="_"&&I.isWordChar(Ae)?"w":"o";if(Se=="w"&&Ae.toUpperCase()==Ae&&(Se="W"),ye=="start")Se!="o"?(ye="in",xe=Se):le=be+fe;else if(ye=="in"&&xe!=Se){if(xe=="w"&&Se=="W"&&fe<0&&be--,xe=="W"&&Se=="w"&&fe>0)if(be==le+1){xe="w";continue}else be--;break}}return B(_e.line,be)}function U(ue,_e){ue.extendSelectionsBy(function(fe){return ue.display.shift||ue.doc.extend||fe.empty()?j(ue.doc,fe.head,_e):_e<0?fe.from():fe.to()})}N.goSubwordLeft=function(ue){U(ue,-1)},N.goSubwordRight=function(ue){U(ue,1)},N.scrollLineUp=function(ue){var _e=ue.getScrollInfo();if(!ue.somethingSelected()){var fe=ue.lineAtHeight(_e.top+_e.clientHeight,"local");ue.getCursor().line>=fe&&ue.execCommand("goLineUp")}ue.scrollTo(null,_e.top-ue.defaultTextHeight())},N.scrollLineDown=function(ue){var _e=ue.getScrollInfo();if(!ue.somethingSelected()){var fe=ue.lineAtHeight(_e.top,"local")+1;ue.getCursor().line<=fe&&ue.execCommand("goLineDown")}ue.scrollTo(null,_e.top+ue.defaultTextHeight())},N.splitSelectionByLine=function(ue){for(var _e=ue.listSelections(),fe=[],ge=0;ge<_e.length;ge++)for(var ye=_e[ge].from(),xe=_e[ge].to(),le=ye.line;le<=xe.line;++le)xe.line>ye.line&&le==xe.line&&xe.ch==0||fe.push({anchor:le==ye.line?ye:B(le,0),head:le==xe.line?xe:B(le)});ue.setSelections(fe,0)},N.singleSelectionTop=function(ue){var _e=ue.listSelections()[0];ue.setSelection(_e.anchor,_e.head,{scroll:!1})},N.selectLine=function(ue){for(var _e=ue.listSelections(),fe=[],ge=0;ge<_e.length;ge++){var ye=_e[ge];fe.push({anchor:B(ye.from().line,0),head:B(ye.to().line+1,0)})}ue.setSelections(fe)};function q(ue,_e){if(ue.isReadOnly())return I.Pass;ue.operation(function(){for(var fe=ue.listSelections().length,ge=[],ye=-1,xe=0;xe<fe;xe++){var le=ue.listSelections()[xe].head;if(!(le.line<=ye)){var be=B(le.line+(_e?0:1),0);ue.replaceRange(` `,be,null,"+insertLine"),ue.indentLine(be.line,null,!0),ge.push({head:be,anchor:be}),ye=le.line+1}}ue.setSelections(ge)}),ue.execCommand("indentAuto")}N.insertLineAfter=function(ue){return q(ue,!1)},N.insertLineBefore=function(ue){return q(ue,!0)};function Y(ue,_e){for(var fe=_e.ch,ge=fe,ye=ue.getLine(_e.line);fe&&I.isWordChar(ye.charAt(fe-1));)--fe;for(;ge<ye.length&&I.isWordChar(ye.charAt(ge));)++ge;return{from:B(_e.line,fe),to:B(_e.line,ge),word:ye.slice(fe,ge)}}N.selectNextOccurrence=function(ue){var _e=ue.getCursor("from"),fe=ue.getCursor("to"),ge=ue.state.sublimeFindFullWord==ue.doc.sel;if(I.cmpPos(_e,fe)==0){var ye=Y(ue,_e);if(!ye.word)return;ue.setSelection(ye.from,ye.to),ge=!0}else{var xe=ue.getRange(_e,fe),le=ge?new RegExp("\\b"+xe+"\\b"):xe,be=ue.getSearchCursor(le,fe),ve=be.findNext();if(ve||(be=ue.getSearchCursor(le,B(ue.firstLine(),0)),ve=be.findNext()),!ve||G(ue.listSelections(),be.from(),be.to()))return;ue.addSelection(be.from(),be.to())}ge&&(ue.state.sublimeFindFullWord=ue.doc.sel)},N.skipAndSelectNextOccurrence=function(ue){var _e=ue.getCursor("anchor"),fe=ue.getCursor("head");N.selectNextOccurrence(ue),I.cmpPos(_e,fe)!=0&&ue.doc.setSelections(ue.doc.listSelections().filter(function(ge){return ge.anchor!=_e||ge.head!=fe}))};function K(ue,_e){for(var fe=ue.listSelections(),ge=[],ye=0;ye<fe.length;ye++){var xe=fe[ye],le=ue.findPosV(xe.anchor,_e,"line",xe.anchor.goalColumn),be=ue.findPosV(xe.head,_e,"line",xe.head.goalColumn);le.goalColumn=xe.anchor.goalColumn!=null?xe.anchor.goalColumn:ue.cursorCoords(xe.anchor,"div").left,be.goalColumn=xe.head.goalColumn!=null?xe.head.goalColumn:ue.cursorCoords(xe.head,"div").left;var ve={anchor:le,head:be};ge.push(xe),ge.push(ve)}ue.setSelections(ge)}N.addCursorToPrevLine=function(ue){K(ue,-1)},N.addCursorToNextLine=function(ue){K(ue,1)};function G(ue,_e,fe){for(var ge=0;ge<ue.length;ge++)if(I.cmpPos(ue[ge].from(),_e)==0&&I.cmpPos(ue[ge].to(),fe)==0)return!0;return!1}var J="(){}[]";function Z(ue){for(var _e=ue.listSelections(),fe=[],ge=0;ge<_e.length;ge++){var ye=_e[ge],xe=ye.head,le=ue.scanForBracket(xe,-1);if(!le)return!1;for(;;){var be=ue.scanForBracket(xe,1);if(!be)return!1;if(be.ch==J.charAt(J.indexOf(le.ch)+1)){var ve=B(le.pos.line,le.pos.ch+1);if(I.cmpPos(ve,ye.from())==0&&I.cmpPos(be.pos,ye.to())==0){if(le=ue.scanForBracket(le.pos,-1),!le)return!1}else{fe.push({anchor:ve,head:be.pos});break}}xe=B(be.pos.line,be.pos.ch+1)}}return ue.setSelections(fe),!0}N.selectScope=function(ue){Z(ue)||ue.execCommand("selectAll")},N.selectBetweenBrackets=function(ue){if(!Z(ue))return I.Pass};function ee(ue){return ue?/\bpunctuation\b/.test(ue)?ue:void 0:null}N.goToBracket=function(ue){ue.extendSelectionsBy(function(_e){var fe=ue.scanForBracket(_e.head,1,ee(ue.getTokenTypeAt(_e.head)));if(fe&&I.cmpPos(fe.pos,_e.head)!=0)return fe.pos;var ge=ue.scanForBracket(_e.head,-1,ee(ue.getTokenTypeAt(B(_e.head.line,_e.head.ch+1))));return ge&&B(ge.pos.line,ge.pos.ch+1)||_e.head})},N.swapLineUp=function(ue){if(ue.isReadOnly())return I.Pass;for(var _e=ue.listSelections(),fe=[],ge=ue.firstLine()-1,ye=[],xe=0;xe<_e.length;xe++){var le=_e[xe],be=le.from().line-1,ve=le.to().line;ye.push({anchor:B(le.anchor.line-1,le.anchor.ch),head:B(le.head.line-1,le.head.ch)}),le.to().ch==0&&!le.empty()&&--ve,be>ge?fe.push(be,ve):fe.length&&(fe[fe.length-1]=ve),ge=ve}ue.operation(function(){for(var we=0;we<fe.length;we+=2){var Ae=fe[we],Se=fe[we+1],Pe=ue.getLine(Ae);ue.replaceRange("",B(Ae,0),B(Ae+1,0),"+swapLine"),Se>ue.lastLine()?ue.replaceRange(` `+Pe,B(ue.lastLine()),null,"+swapLine"):ue.replaceRange(Pe+` `,B(Se,0),null,"+swapLine")}ue.setSelections(ye),ue.scrollIntoView()})},N.swapLineDown=function(ue){if(ue.isReadOnly())return I.Pass;for(var _e=ue.listSelections(),fe=[],ge=ue.lastLine()+1,ye=_e.length-1;ye>=0;ye--){var xe=_e[ye],le=xe.to().line+1,be=xe.from().line;xe.to().ch==0&&!xe.empty()&&le--,le<ge?fe.push(le,be):fe.length&&(fe[fe.length-1]=be),ge=be}ue.operation(function(){for(var ve=fe.length-2;ve>=0;ve-=2){var we=fe[ve],Ae=fe[ve+1],Se=ue.getLine(we);we==ue.lastLine()?ue.replaceRange("",B(we-1),B(we),"+swapLine"):ue.replaceRange("",B(we,0),B(we+1,0),"+swapLine"),ue.replaceRange(Se+` `,B(Ae,0),null,"+swapLine")}ue.scrollIntoView()})},N.toggleCommentIndented=function(ue){ue.toggleComment({indent:!0})},N.joinLines=function(ue){for(var _e=ue.listSelections(),fe=[],ge=0;ge<_e.length;ge++){for(var ye=_e[ge],xe=ye.from(),le=xe.line,be=ye.to().line;ge<_e.length-1&&_e[ge+1].from().line==be;)be=_e[++ge].to().line;fe.push({start:le,end:be,anchor:!ye.empty()&&xe})}ue.operation(function(){for(var ve=0,we=[],Ae=0;Ae<fe.length;Ae++){for(var Se=fe[Ae],Pe=Se.anchor&&B(Se.anchor.line-ve,Se.anchor.ch),Me,Be=Se.start;Be<=Se.end;Be++){var ze=Be-ve;Be==Se.end&&(Me=B(ze,ue.getLine(ze).length+1)),ze<ue.lastLine()&&(ue.replaceRange(" ",B(ze),B(ze+1,/^\s*/.exec(ue.getLine(ze+1))[0].length)),++ve)}we.push({anchor:Pe||Me,head:Me})}ue.setSelections(we,0)})},N.duplicateLine=function(ue){ue.operation(function(){for(var _e=ue.listSelections().length,fe=0;fe<_e;fe++){var ge=ue.listSelections()[fe];ge.empty()?ue.replaceRange(ue.getLine(ge.head.line)+` `,B(ge.head.line,0)):ue.replaceRange(ue.getRange(ge.from(),ge.to()),ge.from())}ue.scrollIntoView()})};function te(ue,_e,fe){if(ue.isReadOnly())return I.Pass;for(var ge=ue.listSelections(),ye=[],xe,le=0;le<ge.length;le++){var be=ge[le];if(!be.empty()){for(var ve=be.from().line,we=be.to().line;le<ge.length-1&&ge[le+1].from().line==we;)we=ge[++le].to().line;ge[le].to().ch||we--,ye.push(ve,we)}}ye.length?xe=!0:ye.push(ue.firstLine(),ue.lastLine()),ue.operation(function(){for(var Ae=[],Se=0;Se<ye.length;Se+=2){var Pe=ye[Se],Me=ye[Se+1],Be=B(Pe,0),ze=B(Me),Ze=ue.getRange(Be,ze,!1);_e?Ze.sort(function(ft,Ye){return ft<Ye?-fe:ft==Ye?0:fe}):Ze.sort(function(ft,Ye){var Ve=ft.toUpperCase(),Dt=Ye.toUpperCase();return Ve!=Dt&&(ft=Ve,Ye=Dt),ft<Ye?-fe:ft==Ye?0:fe}),ue.replaceRange(Ze,Be,ze),xe&&Ae.push({anchor:Be,head:B(Me+1,0)})}xe&&ue.setSelections(Ae,0)})}N.sortLines=function(ue){te(ue,!0,1)},N.reverseSortLines=function(ue){te(ue,!0,-1)},N.sortLinesInsensitive=function(ue){te(ue,!1,1)},N.reverseSortLinesInsensitive=function(ue){te(ue,!1,-1)},N.nextBookmark=function(ue){var _e=ue.state.sublimeBookmarks;if(_e)for(;_e.length;){var fe=_e.shift(),ge=fe.find();if(ge)return _e.push(fe),ue.setSelection(ge.from,ge.to)}},N.prevBookmark=function(ue){var _e=ue.state.sublimeBookmarks;if(_e)for(;_e.length;){_e.unshift(_e.pop());var fe=_e[_e.length-1].find();if(!fe)_e.pop();else return ue.setSelection(fe.from,fe.to)}},N.toggleBookmark=function(ue){for(var _e=ue.listSelections(),fe=ue.state.sublimeBookmarks||(ue.state.sublimeBookmarks=[]),ge=0;ge<_e.length;ge++){for(var ye=_e[ge].from(),xe=_e[ge].to(),le=_e[ge].empty()?ue.findMarksAt(ye):ue.findMarks(ye,xe),be=0;be<le.length;be++)if(le[be].sublimeBookmark){le[be].clear();for(var ve=0;ve<fe.length;ve++)fe[ve]==le[be]&&fe.splice(ve--,1);break}be==le.length&&fe.push(ue.markText(ye,xe,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},N.clearBookmarks=function(ue){var _e=ue.state.sublimeBookmarks;if(_e)for(var fe=0;fe<_e.length;fe++)_e[fe].clear();_e.length=0},N.selectBookmarks=function(ue){var _e=ue.state.sublimeBookmarks,fe=[];if(_e)for(var ge=0;ge<_e.length;ge++){var ye=_e[ge].find();ye?fe.push({anchor:ye.from,head:ye.to}):_e.splice(ge--,0)}fe.length&&ue.setSelections(fe,0)};function se(ue,_e){ue.operation(function(){for(var fe=ue.listSelections(),ge=[],ye=[],xe=0;xe<fe.length;xe++){var le=fe[xe];le.empty()?(ge.push(xe),ye.push("")):ye.push(_e(ue.getRange(le.from(),le.to())))}ue.replaceSelections(ye,"around","case");for(var xe=ge.length-1,be;xe>=0;xe--){var le=fe[ge[xe]];if(!(be&&I.cmpPos(le.head,be)>0)){var ve=Y(ue,le.head);be=ve.from,ue.replaceRange(_e(ve.word),ve.from,ve.to)}}})}N.smartBackspace=function(ue){if(ue.somethingSelected())return I.Pass;ue.operation(function(){for(var _e=ue.listSelections(),fe=ue.getOption("indentUnit"),ge=_e.length-1;ge>=0;ge--){var ye=_e[ge].head,xe=ue.getRange({line:ye.line,ch:0},ye),le=I.countColumn(xe,null,ue.getOption("tabSize")),be=ue.findPosH(ye,-1,"char",!1);if(xe&&!/\S/.test(xe)&&le%fe==0){var ve=new B(ye.line,I.findColumn(xe,le-fe,fe));ve.ch!=ye.ch&&(be=ve)}ue.replaceRange("",be,ye,"+delete")}})},N.delLineRight=function(ue){ue.operation(function(){for(var _e=ue.listSelections(),fe=_e.length-1;fe>=0;fe--)ue.replaceRange("",_e[fe].anchor,B(_e[fe].to().line),"+delete");ue.scrollIntoView()})},N.upcaseAtCursor=function(ue){se(ue,function(_e){return _e.toUpperCase()})},N.downcaseAtCursor=function(ue){se(ue,function(_e){return _e.toLowerCase()})},N.setSublimeMark=function(ue){ue.state.sublimeMark&&ue.state.sublimeMark.clear(),ue.state.sublimeMark=ue.setBookmark(ue.getCursor())},N.selectToSublimeMark=function(ue){var _e=ue.state.sublimeMark&&ue.state.sublimeMark.find();_e&&ue.setSelection(ue.getCursor(),_e)},N.deleteToSublimeMark=function(ue){var _e=ue.state.sublimeMark&&ue.state.sublimeMark.find();if(_e){var fe=ue.getCursor(),ge=_e;if(I.cmpPos(fe,ge)>0){var ye=ge;ge=fe,fe=ye}ue.state.sublimeKilled=ue.getRange(fe,ge),ue.replaceRange("",fe,ge)}},N.swapWithSublimeMark=function(ue){var _e=ue.state.sublimeMark&&ue.state.sublimeMark.find();_e&&(ue.state.sublimeMark.clear(),ue.state.sublimeMark=ue.setBookmark(ue.getCursor()),ue.setCursor(_e))},N.sublimeYank=function(ue){ue.state.sublimeKilled!=null&&ue.replaceSelection(ue.state.sublimeKilled,null,"paste")},N.showInCenter=function(ue){var _e=ue.cursorCoords(null,"local");ue.scrollTo(null,(_e.top+_e.bottom)/2-ue.getScrollInfo().clientHeight/2)};function re(ue){var _e=ue.getCursor("from"),fe=ue.getCursor("to");if(I.cmpPos(_e,fe)==0){var ge=Y(ue,_e);if(!ge.word)return;_e=ge.from,fe=ge.to}return{from:_e,to:fe,query:ue.getRange(_e,fe),word:ge}}function ne(ue,_e){var fe=re(ue);if(fe){var ge=fe.query,ye=ue.getSearchCursor(ge,_e?fe.to:fe.from);(_e?ye.findNext():ye.findPrevious())?ue.setSelection(ye.from(),ye.to()):(ye=ue.getSearchCursor(ge,_e?B(ue.firstLine(),0):ue.clipPos(B(ue.lastLine()))),(_e?ye.findNext():ye.findPrevious())?ue.setSelection(ye.from(),ye.to()):fe.word&&ue.setSelection(fe.from,fe.to))}}N.findUnder=function(ue){ne(ue,!0)},N.findUnderPrevious=function(ue){ne(ue,!1)},N.findAllUnder=function(ue){var _e=re(ue);if(_e){for(var fe=ue.getSearchCursor(_e.query),ge=[],ye=-1;fe.findNext();)ge.push({anchor:fe.from(),head:fe.to()}),fe.from().line<=_e.from.line&&fe.from().ch<=_e.from.ch&&ye++;ue.setSelections(ge,ye)}};var ce=I.keyMap;ce.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},I.normalizeKeyMap(ce.macSublime),ce.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},I.normalizeKeyMap(ce.pcSublime);var me=ce.default==ce.macDefault;ce.sublime=me?ce.macSublime:ce.pcSublime})})();var dialog={exports:{}},hasRequiredDialog;function requireDialog(){return hasRequiredDialog||(hasRequiredDialog=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){function N(j,U,q){var Y=j.getWrapperElement(),K;return K=Y.appendChild(document.createElement("div")),q?K.className="CodeMirror-dialog CodeMirror-dialog-bottom":K.className="CodeMirror-dialog CodeMirror-dialog-top",typeof U=="string"?K.innerHTML=U:K.appendChild(U),I.addClass(Y,"dialog-opened"),K}function B(j,U){j.state.currentNotificationClose&&j.state.currentNotificationClose(),j.state.currentNotificationClose=U}I.defineExtension("openDialog",function(j,U,q){q||(q={}),B(this,null);var Y=N(this,j,q.bottom),K=!1,G=this;function J(te){if(typeof te=="string")Z.value=te;else{if(K)return;K=!0,I.rmClass(Y.parentNode,"dialog-opened"),Y.parentNode.removeChild(Y),G.focus(),q.onClose&&q.onClose(Y)}}var Z=Y.getElementsByTagName("input")[0],ee;return Z?(Z.focus(),q.value&&(Z.value=q.value,q.selectValueOnOpen!==!1&&Z.select()),q.onInput&&I.on(Z,"input",function(te){q.onInput(te,Z.value,J)}),q.onKeyUp&&I.on(Z,"keyup",function(te){q.onKeyUp(te,Z.value,J)}),I.on(Z,"keydown",function(te){q&&q.onKeyDown&&q.onKeyDown(te,Z.value,J)||((te.keyCode==27||q.closeOnEnter!==!1&&te.keyCode==13)&&(Z.blur(),I.e_stop(te),J()),te.keyCode==13&&U(Z.value,te))}),q.closeOnBlur!==!1&&I.on(Y,"focusout",function(te){te.relatedTarget!==null&&J()})):(ee=Y.getElementsByTagName("button")[0])&&(I.on(ee,"click",function(){J(),G.focus()}),q.closeOnBlur!==!1&&I.on(ee,"blur",J),ee.focus()),J}),I.defineExtension("openConfirm",function(j,U,q){B(this,null);var Y=N(this,j,q&&q.bottom),K=Y.getElementsByTagName("button"),G=!1,J=this,Z=1;function ee(){G||(G=!0,I.rmClass(Y.parentNode,"dialog-opened"),Y.parentNode.removeChild(Y),J.focus())}K[0].focus();for(var te=0;te<K.length;++te){var se=K[te];(function(re){I.on(se,"click",function(ne){I.e_preventDefault(ne),ee(),re&&re(J)})})(U[te]),I.on(se,"blur",function(){--Z,setTimeout(function(){Z<=0&&ee()},200)}),I.on(se,"focus",function(){++Z})}}),I.defineExtension("openNotification",function(j,U){B(this,J);var q=N(this,j,U&&U.bottom),Y=!1,K,G=U&&typeof U.duration<"u"?U.duration:5e3;function J(){Y||(Y=!0,clearTimeout(K),I.rmClass(q.parentNode,"dialog-opened"),q.parentNode.removeChild(q))}return I.on(q,"click",function(Z){I.e_preventDefault(Z),J()}),G&&(K=setTimeout(J,G)),J})})}()),dialog.exports}(function(M,$){(function(I){I(codemirrorExports,requireSearchcursor(),requireDialog(),matchbracketsExports)})(function(I){function N(j){var U=j.Pos;function q(pe,Te){var Re=pe.state.vim;if(!Re||Re.insertMode)return Te.head;var je=Re.sel.head;if(!je)return Te.head;if(!(Re.visualBlock&&Te.head.line!=je.line))return Te.from()==Te.anchor&&!Te.empty()&&Te.head.line==je.line&&Te.head.ch!=je.ch?new U(Te.head.line,Te.head.ch-1):Te.head}var Y=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],K=Y.length,G=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];function J(pe){pe.setOption("disableInput",!0),pe.setOption("showCursorWhenSelecting",!1),j.signal(pe,"vim-mode-change",{mode:"normal"}),pe.on("cursorActivity",po),tn(pe),j.on(pe.getInputField(),"paste",me(pe))}function Z(pe){pe.setOption("disableInput",!1),pe.off("cursorActivity",po),j.off(pe.getInputField(),"paste",me(pe)),pe.state.vim=null,Un&&clearTimeout(Un)}function ee(pe,Te){this==j.keyMap.vim&&(pe.options.$customCursor=null,j.rmClass(pe.getWrapperElement(),"cm-fat-cursor")),(!Te||Te.attach!=te)&&Z(pe)}function te(pe,Te){this==j.keyMap.vim&&(pe.curOp&&(pe.curOp.selectionChanged=!0),pe.options.$customCursor=q,j.addClass(pe.getWrapperElement(),"cm-fat-cursor")),(!Te||Te.attach!=te)&&J(pe)}j.defineOption("vimMode",!1,function(pe,Te,Re){Te&&pe.getOption("keyMap")!="vim"?pe.setOption("keyMap","vim"):!Te&&Re!=j.Init&&/^vim/.test(pe.getOption("keyMap"))&&pe.setOption("keyMap","default")});function se(pe,Te){if(Te){if(this[pe])return this[pe];var Re=ce(pe);if(!Re)return!1;var je=Gn.findKey(Te,Re);return typeof je=="function"&&j.signal(Te,"vim-keypress",Re),je}}var re={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},ne={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function ce(pe){if(pe.charAt(0)=="'")return pe.charAt(1);var Te=pe.split(/-(?!$)/),Re=Te[Te.length-1];if(Te.length==1&&Te[0].length==1)return!1;if(Te.length==2&&Te[0]=="Shift"&&Re.length==1)return!1;for(var je=!1,qe=0;qe<Te.length;qe++){var Je=Te[qe];Je in re?Te[qe]=re[Je]:je=!0,Je in ne&&(Te[qe]=ne[Je])}return je?(Be(Re)&&(Te[Te.length-1]=Re.toLowerCase()),"<"+Te.join("-")+">"):!1}function me(pe){var Te=pe.state.vim;return Te.onPasteFn||(Te.onPasteFn=function(){Te.insertMode||(pe.setCursor(ot(pe.getCursor(),0,1)),rt.enterInsertMode(pe,{},Te))}),Te.onPasteFn}var ue=/[\d]/,_e=[j.isWordChar,function(pe){return pe&&!j.isWordChar(pe)&&!/\s/.test(pe)}],fe=[function(pe){return/\S/.test(pe)}];function ge(pe,Te){for(var Re=[],je=pe;je<pe+Te;je++)Re.push(String.fromCharCode(je));return Re}var ye=ge(65,26),xe=ge(97,26),le=ge(48,10),be=[].concat(ye,xe,le,["<",">"]),ve=[].concat(ye,xe,le,["-",'"',".",":","_","/"]),we;try{we=new RegExp("^[\\p{Lu}]$","u")}catch{we=/^[A-Z]$/}function Ae(pe,Te){return Te>=pe.firstLine()&&Te<=pe.lastLine()}function Se(pe){return/^[a-z]$/.test(pe)}function Pe(pe){return"()[]{}".indexOf(pe)!=-1}function Me(pe){return ue.test(pe)}function Be(pe){return we.test(pe)}function ze(pe){return/^\s*$/.test(pe)}function Ze(pe){return".?!".indexOf(pe)!=-1}function ft(pe,Te){for(var Re=0;Re<Te.length;Re++)if(Te[Re]==pe)return!0;return!1}var Ye={};function Ve(pe,Te,Re,je,qe){if(Te===void 0&&!qe)throw Error("defaultValue is required unless callback is provided");if(Re||(Re="string"),Ye[pe]={type:Re,defaultValue:Te,callback:qe},je)for(var Je=0;Je<je.length;Je++)Ye[je[Je]]=Ye[pe];Te&&Dt(pe,Te)}function Dt(pe,Te,Re,je){var qe=Ye[pe];je=je||{};var Je=je.scope;if(!qe)return new Error("Unknown option: "+pe);if(qe.type=="boolean"){if(Te&&Te!==!0)return new Error("Invalid argument: "+pe+"="+Te);Te!==!1&&(Te=!0)}qe.callback?(Je!=="local"&&qe.callback(Te,void 0),Je!=="global"&&Re&&qe.callback(Te,Re)):(Je!=="local"&&(qe.value=qe.type=="boolean"?!!Te:Te),Je!=="global"&&Re&&(Re.state.vim.options[pe]={value:Te}))}function Nt(pe,Te,Re){var je=Ye[pe];Re=Re||{};var qe=Re.scope;if(!je)return new Error("Unknown option: "+pe);if(je.callback){var Je=Te&&je.callback(void 0,Te);return qe!=="global"&&Je!==void 0?Je:qe!=="local"?je.callback():void 0}else{var Je=qe!=="global"&&Te&&Te.state.vim.options[pe];return(Je||qe!=="local"&&je||{}).value}}Ve("filetype",void 0,"string",["ft"],function(pe,Te){if(Te!==void 0)if(pe===void 0){var Re=Te.getOption("mode");return Re=="null"?"":Re}else{var Re=pe==""?"null":pe;Te.setOption("mode",Re)}});var Vt=function(){var pe=100,Te=-1,Re=0,je=0,qe=new Array(pe);function Je(St,zt,jt){var yn=Te%pe,Dn=qe[yn];function _n(ar){var Hn=++Te%pe,Cr=qe[Hn];Cr&&Cr.clear(),qe[Hn]=St.setBookmark(ar)}if(Dn){var gn=Dn.find();gn&&!lt(gn,zt)&&_n(zt)}else _n(zt);_n(jt),Re=Te,je=Te-pe+1,je<0&&(je=0)}function vt(St,zt){Te+=zt,Te>Re?Te=Re:Te<je&&(Te=je);var jt=qe[(pe+Te)%pe];if(jt&&!jt.find()){var yn=zt>0?1:-1,Dn,_n=St.getCursor();do if(Te+=yn,jt=qe[(pe+Te)%pe],jt&&(Dn=jt.find())&&!lt(_n,Dn))break;while(Te<Re&&Te>je)}return jt}function Rt(St,zt){var jt=Te,yn=vt(St,zt);return Te=jt,yn&&yn.find()}return{cachedCursor:void 0,add:Je,find:Rt,move:vt}},Wt=function(pe){return pe?{changes:pe.changes,expectCursorActivityForChange:pe.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function Gt(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Wt()}Gt.prototype={exitMacroRecordMode:function(){var pe=Qt.macroModeState;pe.onRecordingDone&&pe.onRecordingDone(),pe.onRecordingDone=void 0,pe.isRecording=!1},enterMacroRecordMode:function(pe,Te){var Re=Qt.registerController.getRegister(Te);if(Re){if(Re.clear(),this.latestRegister=Te,pe.openDialog){var je=ur("span",{class:"cm-vim-message"},"recording @"+Te);this.onRecordingDone=pe.openDialog(je,null,{bottom:!0})}this.isRecording=!0}}};function tn(pe){return pe.state.vim||(pe.state.vim={inputState:new An,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),pe.state.vim}var Qt;function En(){Qt={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Vt(),macroModeState:new Gt,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Et({}),searchHistoryController:new We,exCommandHistoryController:new We};for(var pe in Ye){var Te=Ye[pe];Te.value=Te.defaultValue}}var kn,Gn={enterVimMode:J,buildKeyMap:function(){},getRegisterController:function(){return Qt.registerController},resetVimGlobalState_:En,getVimGlobalState_:function(){return Qt},maybeInitVimState_:tn,suppressErrorLogging:!1,InsertModeKey:zs,map:function(pe,Te,Re){ti.map(pe,Te,Re)},unmap:function(pe,Te){return ti.unmap(pe,Te)},noremap:function(pe,Te,Re){function je(Dn){return Dn?[Dn]:["normal","insert","visual"]}for(var qe=je(Re),Je=Y.length,vt=K,Rt=Je-vt;Rt<Je&&qe.length;Rt++){var St=Y[Rt];if(St.keys==Te&&(!Re||!St.context||St.context===Re)&&St.type.substr(0,2)!=="ex"&&St.type.substr(0,3)!=="key"){var zt={};for(var jt in St)zt[jt]=St[jt];zt.keys=pe,Re&&!zt.context&&(zt.context=Re),this._mapCommand(zt);var yn=je(St.context);qe=qe.filter(function(Dn){return yn.indexOf(Dn)===-1})}}},mapclear:function(pe){var Te=Y.length,Re=K,je=Y.slice(0,Te-Re);if(Y=Y.slice(Te-Re),pe)for(var qe=je.length-1;qe>=0;qe--){var Je=je[qe];if(pe!==Je.context)if(Je.context)this._mapCommand(Je);else{var vt=["normal","insert","visual"];for(var Rt in vt)if(vt[Rt]!==pe){var St={};for(var zt in Je)St[zt]=Je[zt];St.context=vt[Rt],this._mapCommand(St)}}}},setOption:Dt,getOption:Nt,defineOption:Ve,defineEx:function(pe,Te,Re){if(!Te)Te=pe;else if(pe.indexOf(Te)!==0)throw new Error('(Vim.defineEx) "'+Te+'" is not a prefix of "'+pe+'", command not registered');Yr[pe]=Re,ti.commandMap_[Te]={name:pe,shortName:Te,type:"api"}},handleKey:function(pe,Te,Re){var je=this.findKey(pe,Te,Re);if(typeof je=="function")return je()},multiSelectHandleKey:Qs,findKey:function(pe,Te,Re){var je=tn(pe);function qe(){var jt=Qt.macroModeState;if(jt.isRecording){if(Te=="q")return jt.exitMacroRecordMode(),jn(pe),!0;Re!="mapping"&&Lo(jt,Te)}}function Je(){if(Te=="<Esc>"){if(je.visualMode)Er(pe);else if(je.insertMode)Di(pe);else return;return jn(pe),!0}}function vt(jt){for(var yn;jt;)yn=/<\w+-.+?>|<\w+>|./.exec(jt),Te=yn[0],jt=jt.substring(yn.index+Te.length),Gn.handleKey(pe,Te,"mapping")}function Rt(){if(Je())return!0;for(var jt=je.inputState.keyBuffer=je.inputState.keyBuffer+Te,yn=Te.length==1,Dn=xt.matchCommand(jt,Y,je.inputState,"insert");jt.length>1&&Dn.type!="full";){var jt=je.inputState.keyBuffer=jt.slice(1),_n=xt.matchCommand(jt,Y,je.inputState,"insert");_n.type!="none"&&(Dn=_n)}if(Dn.type=="none")return jn(pe),!1;if(Dn.type=="partial")return kn&&window.clearTimeout(kn),kn=window.setTimeout(function(){je.insertMode&&je.inputState.keyBuffer&&jn(pe)},Nt("insertModeEscKeysTimeout")),!yn;if(kn&&window.clearTimeout(kn),yn){for(var gn=pe.listSelections(),ar=0;ar<gn.length;ar++){var Hn=gn[ar].head;pe.replaceRange("",ot(Hn,0,-(jt.length-1)),Hn,"+input")}Qt.macroModeState.lastInsertModeChanges.changes.pop()}return jn(pe),Dn.command}function St(){if(qe()||Je())return!0;var jt=je.inputState.keyBuffer=je.inputState.keyBuffer+Te;if(/^[1-9]\d*$/.test(jt))return!0;var yn=/^(\d*)(.*)$/.exec(jt);if(!yn)return jn(pe),!1;var Dn=je.visualMode?"visual":"normal",_n=yn[2]||yn[1];je.inputState.operatorShortcut&&je.inputState.operatorShortcut.slice(-1)==_n&&(_n=je.inputState.operatorShortcut);var gn=xt.matchCommand(_n,Y,je.inputState,Dn);return gn.type=="none"?(jn(pe),!1):gn.type=="partial"?!0:gn.type=="clear"?(jn(pe),!0):(je.inputState.keyBuffer="",yn=/^(\d*)(.*)$/.exec(jt),yn[1]&&yn[1]!="0"&&je.inputState.pushRepeatDigit(yn[1]),gn.command)}var zt;return je.insertMode?zt=Rt():zt=St(),zt===!1?!je.insertMode&&Te.length===1?function(){return!0}:void 0:zt===!0?function(){return!0}:function(){return pe.operation(function(){pe.curOp.isVimOp=!0;try{zt.type=="keyToKey"?vt(zt.toKeys):xt.processCommand(pe,je,zt)}catch(jt){throw pe.state.vim=void 0,tn(pe),Gn.suppressErrorLogging||console.log(jt),jt}return!0})}},handleEx:function(pe,Te){ti.processCommand(pe,Te)},defineMotion:Oe,defineAction:ut,defineOperator:Ge,mapCommand:Io,_mapCommand:Zi,defineRegister:Ln,exitVisualMode:Er,exitInsertMode:Di};function An(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}An.prototype.pushRepeatDigit=function(pe){this.operator?this.motionRepeat=this.motionRepeat.concat(pe):this.prefixRepeat=this.prefixRepeat.concat(pe)},An.prototype.getRepeat=function(){var pe=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(pe=1,this.prefixRepeat.length>0&&(pe*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(pe*=parseInt(this.motionRepeat.join(""),10))),pe};function jn(pe,Te){pe.state.vim.inputState=new An,j.signal(pe,"vim-command-done",Te)}function Mn(pe,Te,Re){this.clear(),this.keyBuffer=[pe||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!Te,this.blockwise=!!Re}Mn.prototype={setText:function(pe,Te,Re){this.keyBuffer=[pe||""],this.linewise=!!Te,this.blockwise=!!Re},pushText:function(pe,Te){Te&&(this.linewise||this.keyBuffer.push(` `),this.linewise=!0),this.keyBuffer.push(pe)},pushInsertModeChanges:function(pe){this.insertModeChanges.push(Wt(pe))},pushSearchQuery:function(pe){this.searchQueries.push(pe)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}};function Ln(pe,Te){var Re=Qt.registerController.registers;if(!pe||pe.length!=1)throw Error("Register name must be 1 character");if(Re[pe])throw Error("Register already defined "+pe);Re[pe]=Te,ve.push(pe)}function Et(pe){this.registers=pe,this.unnamedRegister=pe['"']=new Mn,pe["."]=new Mn,pe[":"]=new Mn,pe["/"]=new Mn}Et.prototype={pushText:function(pe,Te,Re,je,qe){if(pe!=="_"){je&&Re.charAt(Re.length-1)!==` `&&(Re+=` `);var Je=this.isValidRegister(pe)?this.getRegister(pe):null;if(!Je){switch(Te){case"yank":this.registers[0]=new Mn(Re,je,qe);break;case"delete":case"change":Re.indexOf(` `)==-1?this.registers["-"]=new Mn(Re,je):(this.shiftNumericRegisters_(),this.registers[1]=new Mn(Re,je));break}this.unnamedRegister.setText(Re,je,qe);return}var vt=Be(pe);vt?Je.pushText(Re,je):Je.setText(Re,je,qe),this.unnamedRegister.setText(Je.toString(),je)}},getRegister:function(pe){return this.isValidRegister(pe)?(pe=pe.toLowerCase(),this.registers[pe]||(this.registers[pe]=new Mn),this.registers[pe]):this.unnamedRegister},isValidRegister:function(pe){return pe&&ft(pe,ve)},shiftNumericRegisters_:function(){for(var pe=9;pe>=2;pe--)this.registers[pe]=this.getRegister(""+(pe-1))}};function We(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}We.prototype={nextMatch:function(pe,Te){var Re=this.historyBuffer,je=Te?-1:1;this.initialPrefix===null&&(this.initialPrefix=pe);for(var qe=this.iterator+je;Te?qe>=0:qe<Re.length;qe+=je)for(var Je=Re[qe],vt=0;vt<=Je.length;vt++)if(this.initialPrefix==Je.substring(0,vt))return this.iterator=qe,Je;if(qe>=Re.length)return this.iterator=Re.length,this.initialPrefix;if(qe<0)return pe},pushInput:function(pe){var Te=this.historyBuffer.indexOf(pe);Te>-1&&this.historyBuffer.splice(Te,1),pe.length&&this.historyBuffer.push(pe)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var xt={matchCommand:function(pe,Te,Re,je){var qe=Ot(pe,Te,je,Re);if(!qe.full&&!qe.partial)return{type:"none"};if(!qe.full&&qe.partial)return{type:"partial"};for(var Je,vt=0;vt<qe.full.length;vt++){var Rt=qe.full[vt];Je||(Je=Rt)}if(Je.keys.slice(-11)=="<character>"){var St=Fn(pe);if(!St||St.length>1)return{type:"clear"};Re.selectedCharacter=St}return{type:"full",command:Je}},processCommand:function(pe,Te,Re){switch(Te.inputState.repeatOverride=Re.repeatOverride,Re.type){case"motion":this.processMotion(pe,Te,Re);break;case"operator":this.processOperator(pe,Te,Re);break;case"operatorMotion":this.processOperatorMotion(pe,Te,Re);break;case"action":this.processAction(pe,Te,Re);break;case"search":this.processSearch(pe,Te,Re);break;case"ex":case"keyToEx":this.processEx(pe,Te,Re);break}},processMotion:function(pe,Te,Re){Te.inputState.motion=Re.motion,Te.inputState.motionArgs=it(Re.motionArgs),this.evalInput(pe,Te)},processOperator:function(pe,Te,Re){var je=Te.inputState;if(je.operator)if(je.operator==Re.operator){je.motion="expandToLine",je.motionArgs={linewise:!0},this.evalInput(pe,Te);return}else jn(pe);je.operator=Re.operator,je.operatorArgs=it(Re.operatorArgs),Re.keys.length>1&&(je.operatorShortcut=Re.keys),Re.exitVisualBlock&&(Te.visualBlock=!1,zn(pe)),Te.visualMode&&this.evalInput(pe,Te)},processOperatorMotion:function(pe,Te,Re){var je=Te.visualMode,qe=it(Re.operatorMotionArgs);qe&&je&&qe.visualLine&&(Te.visualLine=!0),this.processOperator(pe,Te,Re),je||this.processMotion(pe,Te,Re)},processAction:function(pe,Te,Re){var je=Te.inputState,qe=je.getRepeat(),Je=!!qe,vt=it(Re.actionArgs)||{};je.selectedCharacter&&(vt.selectedCharacter=je.selectedCharacter),Re.operator&&this.processOperator(pe,Te,Re),Re.motion&&this.processMotion(pe,Te,Re),(Re.motion||Re.operator)&&this.evalInput(pe,Te),vt.repeat=qe||1,vt.repeatIsExplicit=Je,vt.registerName=je.registerName,jn(pe),Te.lastMotion=null,Re.isEdit&&this.recordLastEdit(Te,je,Re),rt[Re.action](pe,vt,Te)},processSearch:function(pe,Te,Re){if(!pe.getSearchCursor)return;var je=Re.searchArgs.forward,qe=Re.searchArgs.wholeWordOnly;er(pe).setReversed(!je);var Je=je?"/":"?",vt=er(pe).getQuery(),Rt=pe.getScrollInfo();function St(Hn,Cr,Pr){Qt.searchHistoryController.pushInput(Hn),Qt.searchHistoryController.reset();try{nn(pe,Hn,Cr,Pr)}catch{or(pe,"Invalid regex: "+Hn),jn(pe);return}xt.processMotion(pe,Te,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:Re.searchArgs.toJumplist}})}function zt(Hn){pe.scrollTo(Rt.left,Rt.top),St(Hn,!0,!0);var Cr=Qt.macroModeState;Cr.isRecording&&Qi(Cr,Hn)}function jt(Hn,Cr,Pr){var vr=j.keyName(Hn),Hr,di;vr=="Up"||vr=="Down"?(Hr=vr=="Up",di=Hn.target?Hn.target.selectionEnd:0,Cr=Qt.searchHistoryController.nextMatch(Cr,Hr)||"",Pr(Cr),di&&Hn.target&&(Hn.target.selectionEnd=Hn.target.selectionStart=Math.min(di,Hn.target.value.length))):vr!="Left"&&vr!="Right"&&vr!="Ctrl"&&vr!="Alt"&&vr!="Shift"&&Qt.searchHistoryController.reset();var ai;try{ai=nn(pe,Cr,!0,!0)}catch{}ai?pe.scrollIntoView(_r(pe,!je,ai),30):(Nr(pe),pe.scrollTo(Rt.left,Rt.top))}function yn(Hn,Cr,Pr){var vr=j.keyName(Hn);vr=="Esc"||vr=="Ctrl-C"||vr=="Ctrl-["||vr=="Backspace"&&Cr==""?(Qt.searchHistoryController.pushInput(Cr),Qt.searchHistoryController.reset(),nn(pe,vt),Nr(pe),pe.scrollTo(Rt.left,Rt.top),j.e_stop(Hn),jn(pe),Pr(),pe.focus()):vr=="Up"||vr=="Down"?j.e_stop(Hn):vr=="Ctrl-U"&&(j.e_stop(Hn),Pr(""))}switch(Re.searchArgs.querySrc){case"prompt":var Dn=Qt.macroModeState;if(Dn.isPlaying){var ar=Dn.replaySearchQueries.shift();St(ar,!0,!1)}else gt(pe,{onClose:zt,prefix:Je,desc:"(JavaScript regexp)",onKeyUp:jt,onKeyDown:yn});break;case"wordUnderCursor":var _n=mt(pe,!1,!0,!1,!0),gn=!0;if(_n||(_n=mt(pe,!1,!0,!1,!1),gn=!1),!_n)return;var ar=pe.getLine(_n.start.line).substring(_n.start.ch,_n.end.ch);gn&&qe?ar="\\b"+ar+"\\b":ar=Ct(ar),Qt.jumpList.cachedCursor=pe.getCursor(),pe.setCursor(_n.start),St(ar,!0,!1);break}},processEx:function(pe,Te,Re){function je(Je){Qt.exCommandHistoryController.pushInput(Je),Qt.exCommandHistoryController.reset(),ti.processCommand(pe,Je),jn(pe)}function qe(Je,vt,Rt){var St=j.keyName(Je),zt,jt;(St=="Esc"||St=="Ctrl-C"||St=="Ctrl-["||St=="Backspace"&&vt=="")&&(Qt.exCommandHistoryController.pushInput(vt),Qt.exCommandHistoryController.reset(),j.e_stop(Je),jn(pe),Rt(),pe.focus()),St=="Up"||St=="Down"?(j.e_stop(Je),zt=St=="Up",jt=Je.target?Je.target.selectionEnd:0,vt=Qt.exCommandHistoryController.nextMatch(vt,zt)||"",Rt(vt),jt&&Je.target&&(Je.target.selectionEnd=Je.target.selectionStart=Math.min(jt,Je.target.value.length))):St=="Ctrl-U"?(j.e_stop(Je),Rt("")):St!="Left"&&St!="Right"&&St!="Ctrl"&&St!="Alt"&&St!="Shift"&&Qt.exCommandHistoryController.reset()}Re.type=="keyToEx"?ti.processCommand(pe,Re.exArgs.input):Te.visualMode?gt(pe,{onClose:je,prefix:":",value:"'<,'>",onKeyDown:qe,selectValueOnOpen:!1}):gt(pe,{onClose:je,prefix:":",onKeyDown:qe})},evalInput:function(pe,Te){var Re=Te.inputState,je=Re.motion,qe=Re.motionArgs||{},Je=Re.operator,vt=Re.operatorArgs||{},Rt=Re.registerName,St=Te.sel,zt=vn(Te.visualMode?ct(pe,St.head):pe.getCursor("head")),jt=vn(Te.visualMode?ct(pe,St.anchor):pe.getCursor("anchor")),yn=vn(zt),Dn=vn(jt),_n,gn,ar;if(Je&&this.recordLastEdit(Te,Re),Re.repeatOverride!==void 0?ar=Re.repeatOverride:ar=Re.getRepeat(),ar>0&&qe.explicitRepeat?qe.repeatIsExplicit=!0:(qe.noRepeat||!qe.explicitRepeat&&ar===0)&&(ar=1,qe.repeatIsExplicit=!1),Re.selectedCharacter&&(qe.selectedCharacter=vt.selectedCharacter=Re.selectedCharacter),qe.repeat=ar,jn(pe),je){var Hn=Ue[je](pe,zt,qe,Te,Re);if(Te.lastMotion=Ue[je],!Hn)return;if(qe.toJumplist){var Cr=Qt.jumpList,Pr=Cr.cachedCursor;Pr?(Ne(pe,Pr,Hn),delete Cr.cachedCursor):Ne(pe,zt,Hn)}Hn instanceof Array?(gn=Hn[0],_n=Hn[1]):_n=Hn,_n||(_n=vn(zt)),Te.visualMode?(Te.visualBlock&&_n.ch===1/0||(_n=ct(pe,_n)),gn&&(gn=ct(pe,gn)),gn=gn||Dn,St.anchor=gn,St.head=_n,zn(pe),fr(pe,Te,"<",pt(gn,_n)?gn:_n),fr(pe,Te,">",pt(gn,_n)?_n:gn)):Je||(_n=ct(pe,_n),pe.setCursor(_n.line,_n.ch))}if(Je){if(vt.lastSel){gn=Dn;var vr=vt.lastSel,Hr=Math.abs(vr.head.line-vr.anchor.line),di=Math.abs(vr.head.ch-vr.anchor.ch);vr.visualLine?_n=new U(Dn.line+Hr,Dn.ch):vr.visualBlock?_n=new U(Dn.line+Hr,Dn.ch+di):vr.head.line==vr.anchor.line?_n=new U(Dn.line,Dn.ch+di):_n=new U(Dn.line+Hr,Dn.ch),Te.visualMode=!0,Te.visualLine=vr.visualLine,Te.visualBlock=vr.visualBlock,St=Te.sel={anchor:gn,head:_n},zn(pe)}else Te.visualMode&&(vt.lastSel={anchor:vn(St.anchor),head:vn(St.head),visualBlock:Te.visualBlock,visualLine:Te.visualLine});var ai,wi,Gr,Br,pi;if(Te.visualMode){if(ai=Pt(St.head,St.anchor),wi=qt(St.head,St.anchor),Gr=Te.visualLine||vt.linewise,Br=Te.visualBlock?"block":Gr?"line":"char",pi=ir(pe,{anchor:ai,head:wi},Br),Gr){var hi=pi.ranges;if(Br=="block")for(var li=0;li<hi.length;li++)hi[li].head.ch=mn(pe,hi[li].head.line);else Br=="line"&&(hi[0].head=new U(hi[0].head.line+1,0))}}else{if(ai=vn(gn||Dn),wi=vn(_n||yn),pt(wi,ai)){var _s=ai;ai=wi,wi=_s}Gr=qe.linewise||vt.linewise,Gr?Ur(pe,ai,wi):qe.forward&&Dr(pe,ai,wi),Br="char";var Ds=!qe.inclusive||Gr;pi=ir(pe,{anchor:ai,head:wi},Br,Ds)}pe.setSelections(pi.ranges,pi.primary),Te.lastMotion=null,vt.repeat=ar,vt.registerName=Rt,vt.linewise=Gr;var es=$e[Je](pe,vt,pi.ranges,Dn,_n);Te.visualMode&&Er(pe,es!=null),es&&pe.setCursor(es)}},recordLastEdit:function(pe,Te,Re){var je=Qt.macroModeState;je.isPlaying||(pe.lastEditInputState=Te,pe.lastEditActionCommand=Re,je.lastInsertModeChanges.changes=[],je.lastInsertModeChanges.expectCursorActivityForChange=!1,je.lastInsertModeChanges.visualBlock=pe.visualBlock?pe.sel.head.line-pe.sel.anchor.line:0)}},Ue={moveToTopLine:function(pe,Te,Re){var je=Qr(pe).top+Re.repeat-1;return new U(je,Ke(pe.getLine(je)))},moveToMiddleLine:function(pe){var Te=Qr(pe),Re=Math.floor((Te.top+Te.bottom)*.5);return new U(Re,Ke(pe.getLine(Re)))},moveToBottomLine:function(pe,Te,Re){var je=Qr(pe).bottom-Re.repeat+1;return new U(je,Ke(pe.getLine(je)))},expandToLine:function(pe,Te,Re){var je=Te;return new U(je.line+Re.repeat-1,1/0)},findNext:function(pe,Te,Re){var je=er(pe),qe=je.getQuery();if(qe){var Je=!Re.forward;return Je=je.isReversed()?!Je:Je,Jn(pe,qe),_r(pe,Je,qe,Re.repeat)}},findAndSelectNextInclusive:function(pe,Te,Re,je,qe){var Je=er(pe),vt=Je.getQuery();if(vt){var Rt=!Re.forward;Rt=Je.isReversed()?!Rt:Rt;var St=xr(pe,Rt,vt,Re.repeat,je);if(St){if(qe.operator)return St;var zt=St[0],jt=new U(St[1].line,St[1].ch-1);if(je.visualMode){(je.visualLine||je.visualBlock)&&(je.visualLine=!1,je.visualBlock=!1,j.signal(pe,"vim-mode-change",{mode:"visual",subMode:""}));var yn=je.sel.anchor;if(yn)return Je.isReversed()?Re.forward?[yn,zt]:[yn,jt]:Re.forward?[yn,jt]:[yn,zt]}else je.visualMode=!0,je.visualLine=!1,je.visualBlock=!1,j.signal(pe,"vim-mode-change",{mode:"visual",subMode:""});return Rt?[jt,zt]:[zt,jt]}}},goToMark:function(pe,Te,Re,je){var qe=ni(pe,je,Re.selectedCharacter);return qe?Re.linewise?{line:qe.line,ch:Ke(pe.getLine(qe.line))}:qe:null},moveToOtherHighlightedEnd:function(pe,Te,Re,je){if(je.visualBlock&&Re.sameLine){var qe=je.sel;return[ct(pe,new U(qe.anchor.line,qe.head.ch)),ct(pe,new U(qe.head.line,qe.anchor.ch))]}else return[je.sel.head,je.sel.anchor]},jumpToMark:function(pe,Te,Re,je){for(var qe=Te,Je=0;Je<Re.repeat;Je++){var vt=qe;for(var Rt in je.marks)if(Se(Rt)){var St=je.marks[Rt].find(),zt=Re.forward?pt(St,vt):pt(vt,St);if(!zt&&!(Re.linewise&&St.line==vt.line)){var jt=lt(vt,qe),yn=Re.forward?Ht(vt,St,qe):Ht(qe,St,vt);(jt||yn)&&(qe=St)}}}return Re.linewise&&(qe=new U(qe.line,Ke(pe.getLine(qe.line)))),qe},moveByCharacters:function(pe,Te,Re){var je=Te,qe=Re.repeat,Je=Re.forward?je.ch+qe:je.ch-qe;return new U(je.line,Je)},moveByLines:function(pe,Te,Re,je){var qe=Te,Je=qe.ch;switch(je.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:Je=je.lastHPos;break;default:je.lastHPos=Je}var vt=Re.repeat+(Re.repeatOffset||0),Rt=Re.forward?qe.line+vt:qe.line-vt,St=pe.firstLine(),zt=pe.lastLine(),jt=pe.findPosV(qe,Re.forward?vt:-vt,"line",je.lastHSPos),yn=Re.forward?jt.line>Rt:jt.line<Rt;return yn&&(Rt=jt.line,Je=jt.ch),Rt<St&&qe.line==St?this.moveToStartOfLine(pe,Te,Re,je):Rt>zt&&qe.line==zt?Xn(pe,Te,Re,je,!0):(Re.toFirstChar&&(Je=Ke(pe.getLine(Rt)),je.lastHPos=Je),je.lastHSPos=pe.charCoords(new U(Rt,Je),"div").left,new U(Rt,Je))},moveByDisplayLines:function(pe,Te,Re,je){var qe=Te;switch(je.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:je.lastHSPos=pe.charCoords(qe,"div").left}var Je=Re.repeat,vt=pe.findPosV(qe,Re.forward?Je:-Je,"line",je.lastHSPos);if(vt.hitSide)if(Re.forward)var Rt=pe.charCoords(vt,"div"),St={top:Rt.top+8,left:je.lastHSPos},vt=pe.coordsChar(St,"div");else{var zt=pe.charCoords(new U(pe.firstLine(),0),"div");zt.left=je.lastHSPos,vt=pe.coordsChar(zt,"div")}return je.lastHPos=vt.ch,vt},moveByPage:function(pe,Te,Re){var je=Te,qe=Re.repeat;return pe.findPosV(je,Re.forward?qe:-qe,"page")},moveByParagraph:function(pe,Te,Re){var je=Re.forward?1:-1;return sr(pe,Te,Re.repeat,je)},moveBySentence:function(pe,Te,Re){var je=Re.forward?1:-1;return mr(pe,Te,Re.repeat,je)},moveByScroll:function(pe,Te,Re,je){var qe=pe.getScrollInfo(),Je=null,vt=Re.repeat;vt||(vt=qe.clientHeight/(2*pe.defaultTextHeight()));var Rt=pe.charCoords(Te,"local");if(Re.repeat=vt,Je=Ue.moveByDisplayLines(pe,Te,Re,je),!Je)return null;var St=pe.charCoords(Je,"local");return pe.scrollTo(null,qe.top+St.top-Rt.top),Je},moveByWords:function(pe,Te,Re){return Qn(pe,Te,Re.repeat,!!Re.forward,!!Re.wordEnd,!!Re.bigWord)},moveTillCharacter:function(pe,Te,Re){var je=Re.repeat,qe=Rr(pe,je,Re.forward,Re.selectedCharacter),Je=Re.forward?-1:1;return _t(Je,Re),qe?(qe.ch+=Je,qe):null},moveToCharacter:function(pe,Te,Re){var je=Re.repeat;return _t(0,Re),Rr(pe,je,Re.forward,Re.selectedCharacter)||Te},moveToSymbol:function(pe,Te,Re){var je=Re.repeat;return Tn(pe,je,Re.forward,Re.selectedCharacter)||Te},moveToColumn:function(pe,Te,Re,je){var qe=Re.repeat;return je.lastHPos=qe-1,je.lastHSPos=pe.charCoords(Te,"div").left,tr(pe,qe)},moveToEol:function(pe,Te,Re,je){return Xn(pe,Te,Re,je,!1)},moveToFirstNonWhiteSpaceCharacter:function(pe,Te){var Re=Te;return new U(Re.line,Ke(pe.getLine(Re.line)))},moveToMatchedSymbol:function(pe,Te){for(var Re=Te,je=Re.line,qe=Re.ch,Je=pe.getLine(je),vt;qe<Je.length;qe++)if(vt=Je.charAt(qe),vt&&Pe(vt)){var Rt=pe.getTokenTypeAt(new U(je,qe+1));if(Rt!=="string"&&Rt!=="comment")break}if(qe<Je.length){var St=qe==="<"||qe===">"?/[(){}[\]<>]/:/[(){}[\]]/,zt=pe.findMatchingBracket(new U(je,qe),{bracketRegex:St});return zt.to}else return Re},moveToStartOfLine:function(pe,Te){return new U(Te.line,0)},moveToLineOrEdgeOfDocument:function(pe,Te,Re){var je=Re.forward?pe.lastLine():pe.firstLine();return Re.repeatIsExplicit&&(je=Re.repeat-pe.getOption("firstLineNumber")),new U(je,Ke(pe.getLine(je)))},moveToStartOfDisplayLine:function(pe){return pe.execCommand("goLineLeft"),pe.getCursor()},moveToEndOfDisplayLine:function(pe){pe.execCommand("goLineRight");var Te=pe.getCursor();return Te.sticky=="before"&&Te.ch--,Te},textObjectManipulation:function(pe,Te,Re,je){var qe={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},Je={"'":!0,'"':!0,"`":!0},vt=Re.selectedCharacter;vt=="b"?vt="(":vt=="B"&&(vt="{");var Rt=!Re.textObjectInner,St;if(qe[vt])St=br(pe,Te,vt,Rt);else if(Je[vt])St=hr(pe,Te,vt,Rt);else if(vt==="W")St=mt(pe,Rt,!0,!0);else if(vt==="w")St=mt(pe,Rt,!0,!1);else if(vt==="p")if(St=sr(pe,Te,Re.repeat,0,Rt),Re.linewise=!0,je.visualMode)je.visualLine||(je.visualLine=!0);else{var zt=je.inputState.operatorArgs;zt&&(zt.linewise=!0),St.end.line--}else if(vt==="t")St=dt(pe,Te,Rt);else if(vt==="s"){var jt=pe.getLine(Te.line);Te.ch>0&&Ze(jt[Te.ch])&&(Te.ch-=1);var yn=Pn(pe,Te,Re.repeat,1,Rt),Dn=Pn(pe,Te,Re.repeat,-1,Rt);ze(pe.getLine(Dn.line)[Dn.ch])&&ze(pe.getLine(yn.line)[yn.ch-1])&&(Dn={line:Dn.line,ch:Dn.ch+1}),St={start:Dn,end:yn}}else return null;return pe.state.vim.visualMode?cr(pe,St.start,St.end):[St.start,St.end]},repeatLastCharacterSearch:function(pe,Te,Re){var je=Qt.lastCharacterSearch,qe=Re.repeat,Je=Re.forward===je.forward,vt=(je.increment?1:0)*(Je?-1:1);pe.moveH(-vt,"char"),Re.inclusive=!!Je;var Rt=Rr(pe,qe,Je,je.selectedCharacter);return Rt?(Rt.ch+=vt,Rt):(pe.moveH(vt,"char"),Te)}};function Oe(pe,Te){Ue[pe]=Te}function ke(pe,Te){for(var Re=[],je=0;je<Te;je++)Re.push(pe);return Re}var $e={change:function(pe,Te,Re){var je,qe,Je=pe.state.vim,vt=Re[0].anchor,Rt=Re[0].head;if(Je.visualMode)if(Te.fullLine)Rt.ch=Number.MAX_VALUE,Rt.line--,pe.setSelection(vt,Rt),qe=pe.getSelection(),pe.replaceSelection(""),je=vt;else{qe=pe.getSelection();var Dn=ke("",Re.length);pe.replaceSelections(Dn),je=Pt(Re[0].head,Re[0].anchor)}else{qe=pe.getRange(vt,Rt);var St=Je.lastEditInputState||{};if(St.motion=="moveByWords"&&!ze(qe)){var zt=/\s+$/.exec(qe);zt&&St.motionArgs&&St.motionArgs.forward&&(Rt=ot(Rt,0,-zt[0].length),qe=qe.slice(0,-zt[0].length))}var jt=new U(vt.line-1,Number.MAX_VALUE),yn=pe.firstLine()==pe.lastLine();Rt.line>pe.lastLine()&&Te.linewise&&!yn?pe.replaceRange("",jt,Rt):pe.replaceRange("",vt,Rt),Te.linewise&&(yn||(pe.setCursor(jt),j.commands.newlineAndIndent(pe)),vt.ch=Number.MAX_VALUE),je=vt}Qt.registerController.pushText(Te.registerName,"change",qe,Te.linewise,Re.length>1),rt.enterInsertMode(pe,{head:je},pe.state.vim)},delete:function(pe,Te,Re){var je,qe,Je=pe.state.vim;if(Je.visualBlock){qe=pe.getSelection();var St=ke("",Re.length);pe.replaceSelections(St),je=Pt(Re[0].head,Re[0].anchor)}else{var vt=Re[0].anchor,Rt=Re[0].head;Te.linewise&&Rt.line!=pe.firstLine()&&vt.line==pe.lastLine()&&vt.line==Rt.line-1&&(vt.line==pe.firstLine()?vt.ch=0:vt=new U(vt.line-1,mn(pe,vt.line-1))),qe=pe.getRange(vt,Rt),pe.replaceRange("",vt,Rt),je=vt,Te.linewise&&(je=Ue.moveToFirstNonWhiteSpaceCharacter(pe,vt))}return Qt.registerController.pushText(Te.registerName,"delete",qe,Te.linewise,Je.visualBlock),ct(pe,je)},indent:function(pe,Te,Re){var je=pe.state.vim;if(pe.indentMore)for(var qe=je.visualMode?Te.repeat:1,Je=0;Je<qe;Je++)Te.indentRight?pe.indentMore():pe.indentLess();else{var vt=Re[0].anchor.line,Rt=je.visualBlock?Re[Re.length-1].anchor.line:Re[0].head.line,qe=je.visualMode?Te.repeat:1;Te.linewise&&Rt--;for(var St=vt;St<=Rt;St++)for(var Je=0;Je<qe;Je++)pe.indentLine(St,Te.indentRight)}return Ue.moveToFirstNonWhiteSpaceCharacter(pe,Re[0].anchor)},indentAuto:function(pe,Te,Re){return pe.execCommand("indentAuto"),Ue.moveToFirstNonWhiteSpaceCharacter(pe,Re[0].anchor)},changeCase:function(pe,Te,Re,je,qe){for(var Je=pe.getSelections(),vt=[],Rt=Te.toLower,St=0;St<Je.length;St++){var zt=Je[St],jt="";if(Rt===!0)jt=zt.toLowerCase();else if(Rt===!1)jt=zt.toUpperCase();else for(var yn=0;yn<zt.length;yn++){var Dn=zt.charAt(yn);jt+=Be(Dn)?Dn.toLowerCase():Dn.toUpperCase()}vt.push(jt)}return pe.replaceSelections(vt),Te.shouldMoveCursor?qe:!pe.state.vim.visualMode&&Te.linewise&&Re[0].anchor.line+1==Re[0].head.line?Ue.moveToFirstNonWhiteSpaceCharacter(pe,je):Te.linewise?je:Pt(Re[0].anchor,Re[0].head)},yank:function(pe,Te,Re,je){var qe=pe.state.vim,Je=pe.getSelection(),vt=qe.visualMode?Pt(qe.sel.anchor,qe.sel.head,Re[0].head,Re[0].anchor):je;return Qt.registerController.pushText(Te.registerName,"yank",Je,Te.linewise,qe.visualBlock),vt}};function Ge(pe,Te){$e[pe]=Te}var rt={jumpListWalk:function(pe,Te,Re){if(!Re.visualMode){var je=Te.repeat,qe=Te.forward,Je=Qt.jumpList,vt=Je.move(pe,qe?je:-je),Rt=vt?vt.find():void 0;Rt=Rt||pe.getCursor(),pe.setCursor(Rt)}},scroll:function(pe,Te,Re){if(!Re.visualMode){var je=Te.repeat||1,qe=pe.defaultTextHeight(),Je=pe.getScrollInfo().top,vt=qe*je,Rt=Te.forward?Je+vt:Je-vt,St=vn(pe.getCursor()),zt=pe.charCoords(St,"local");if(Te.forward)Rt>zt.top?(St.line+=(Rt-zt.top)/qe,St.line=Math.ceil(St.line),pe.setCursor(St),zt=pe.charCoords(St,"local"),pe.scrollTo(null,zt.top)):pe.scrollTo(null,Rt);else{var jt=Rt+pe.getScrollInfo().clientHeight;jt<zt.bottom?(St.line-=(zt.bottom-jt)/qe,St.line=Math.floor(St.line),pe.setCursor(St),zt=pe.charCoords(St,"local"),pe.scrollTo(null,zt.bottom-pe.getScrollInfo().clientHeight)):pe.scrollTo(null,Rt)}}},scrollToCursor:function(pe,Te){var Re=pe.getCursor().line,je=pe.charCoords(new U(Re,0),"local"),qe=pe.getScrollInfo().clientHeight,Je=je.top;switch(Te.position){case"center":Je=je.bottom-qe/2;break;case"bottom":var vt=new U(Re,pe.getLine(Re).length-1),Rt=pe.charCoords(vt,"local"),St=Rt.bottom-Je;Je=Je-qe+St;break}pe.scrollTo(null,Je)},replayMacro:function(pe,Te,Re){var je=Te.selectedCharacter,qe=Te.repeat,Je=Qt.macroModeState;for(je=="@"?je=Je.latestRegister:Je.latestRegister=je;qe--;)No(pe,Re,Je,je)},enterMacroRecordMode:function(pe,Te){var Re=Qt.macroModeState,je=Te.selectedCharacter;Qt.registerController.isValidRegister(je)&&Re.enterMacroRecordMode(pe,je)},toggleOverwrite:function(pe){pe.state.overwrite?(pe.toggleOverwrite(!1),pe.setOption("keyMap","vim-insert"),j.signal(pe,"vim-mode-change",{mode:"insert"})):(pe.toggleOverwrite(!0),pe.setOption("keyMap","vim-replace"),j.signal(pe,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(pe,Te,Re){if(!pe.getOption("readOnly")){Re.insertMode=!0,Re.insertModeRepeat=Te&&Te.repeat||1;var je=Te?Te.insertAt:null,qe=Re.sel,Je=Te.head||pe.getCursor("head"),vt=pe.listSelections().length;if(je=="eol")Je=new U(Je.line,mn(pe,Je.line));else if(je=="bol")Je=new U(Je.line,0);else if(je=="charAfter")Je=ot(Je,0,1);else if(je=="firstNonBlank")Je=Ue.moveToFirstNonWhiteSpaceCharacter(pe,Je);else if(je=="startOfSelectedArea"){if(!Re.visualMode)return;Re.visualBlock?(Je=new U(Math.min(qe.head.line,qe.anchor.line),Math.min(qe.head.ch,qe.anchor.ch)),vt=Math.abs(qe.head.line-qe.anchor.line)+1):qe.head.line<qe.anchor.line?Je=qe.head:Je=new U(qe.anchor.line,0)}else if(je=="endOfSelectedArea"){if(!Re.visualMode)return;Re.visualBlock?(Je=new U(Math.min(qe.head.line,qe.anchor.line),Math.max(qe.head.ch,qe.anchor.ch)+1),vt=Math.abs(qe.head.line-qe.anchor.line)+1):qe.head.line>=qe.anchor.line?Je=ot(qe.head,0,1):Je=new U(qe.anchor.line,0)}else if(je=="inplace"){if(Re.visualMode)return}else je=="lastEdit"&&(Je=Jr(pe)||Je);pe.setOption("disableInput",!1),Te&&Te.replace?(pe.toggleOverwrite(!0),pe.setOption("keyMap","vim-replace"),j.signal(pe,"vim-mode-change",{mode:"replace"})):(pe.toggleOverwrite(!1),pe.setOption("keyMap","vim-insert"),j.signal(pe,"vim-mode-change",{mode:"insert"})),Qt.macroModeState.isPlaying||(pe.on("change",Js),j.on(pe.getInputField(),"keydown",As)),Re.visualMode&&Er(pe),Lt(pe,Je,vt)}},toggleVisualMode:function(pe,Te,Re){var je=Te.repeat,qe=pe.getCursor(),Je;Re.visualMode?Re.visualLine^Te.linewise||Re.visualBlock^Te.blockwise?(Re.visualLine=!!Te.linewise,Re.visualBlock=!!Te.blockwise,j.signal(pe,"vim-mode-change",{mode:"visual",subMode:Re.visualLine?"linewise":Re.visualBlock?"blockwise":""}),zn(pe)):Er(pe):(Re.visualMode=!0,Re.visualLine=!!Te.linewise,Re.visualBlock=!!Te.blockwise,Je=ct(pe,new U(qe.line,qe.ch+je-1)),Re.sel={anchor:qe,head:Je},j.signal(pe,"vim-mode-change",{mode:"visual",subMode:Re.visualLine?"linewise":Re.visualBlock?"blockwise":""}),zn(pe),fr(pe,Re,"<",Pt(qe,Je)),fr(pe,Re,">",qt(qe,Je)))},reselectLastSelection:function(pe,Te,Re){var je=Re.lastSelection;if(Re.visualMode&&wn(pe,Re),je){var qe=je.anchorMark.find(),Je=je.headMark.find();if(!qe||!Je)return;Re.sel={anchor:qe,head:Je},Re.visualMode=!0,Re.visualLine=je.visualLine,Re.visualBlock=je.visualBlock,zn(pe),fr(pe,Re,"<",Pt(qe,Je)),fr(pe,Re,">",qt(qe,Je)),j.signal(pe,"vim-mode-change",{mode:"visual",subMode:Re.visualLine?"linewise":Re.visualBlock?"blockwise":""})}},joinLines:function(pe,Te,Re){var je,qe;if(Re.visualMode){if(je=pe.getCursor("anchor"),qe=pe.getCursor("head"),pt(qe,je)){var Je=qe;qe=je,je=Je}qe.ch=mn(pe,qe.line)-1}else{var vt=Math.max(Te.repeat,2);je=pe.getCursor(),qe=ct(pe,new U(je.line+vt-1,1/0))}for(var Rt=0,St=je.line;St<qe.line;St++){Rt=mn(pe,je.line);var Je=new U(je.line+1,mn(pe,je.line+1)),zt=pe.getRange(je,Je);zt=Te.keepSpaces?zt.replace(/\n\r?/g,""):zt.replace(/\n\s*/g," "),pe.replaceRange(zt,je,Je)}var jt=new U(je.line,Rt);Re.visualMode&&Er(pe,!1),pe.setCursor(jt)},newLineAndEnterInsertMode:function(pe,Te,Re){Re.insertMode=!0;var je=vn(pe.getCursor());if(je.line===pe.firstLine()&&!Te.after)pe.replaceRange(` `,new U(pe.firstLine(),0)),pe.setCursor(pe.firstLine(),0);else{je.line=Te.after?je.line:je.line-1,je.ch=mn(pe,je.line),pe.setCursor(je);var qe=j.commands.newlineAndIndentContinueComment||j.commands.newlineAndIndent;qe(pe)}this.enterInsertMode(pe,{repeat:Te.repeat},Re)},paste:function(pe,Te,Re){var je=vn(pe.getCursor()),qe=Qt.registerController.getRegister(Te.registerName),Je=qe.toString();if(Je){if(Te.matchIndent){var vt=pe.getOption("tabSize"),Rt=function(li){var _s=li.split(" ").length-1,Ds=li.split(" ").length-1;return _s*vt+Ds*1},St=pe.getLine(pe.getCursor().line),zt=Rt(St.match(/^\s*/)[0]),jt=Je.replace(/\n$/,""),yn=Je!==jt,Dn=Rt(Je.match(/^\s*/)[0]),Je=jt.replace(/^\s*/gm,function(li){var _s=zt+(Rt(li)-Dn);if(_s<0)return"";if(pe.getOption("indentWithTabs")){var Ds=Math.floor(_s/vt);return Array(Ds+1).join(" ")}else return Array(_s+1).join(" ")});Je+=yn?` `:""}if(Te.repeat>1)var Je=Array(Te.repeat+1).join(Je);var _n=qe.linewise,gn=qe.blockwise;if(gn){Je=Je.split(` `),_n&&Je.pop();for(var ar=0;ar<Je.length;ar++)Je[ar]=Je[ar]==""?" ":Je[ar];je.ch+=Te.after?1:0,je.ch=Math.min(mn(pe,je.line),je.ch)}else _n?Re.visualMode?Je=Re.visualLine?Je.slice(0,-1):` `+Je.slice(0,Je.length-1)+` `:Te.after?(Je=` `+Je.slice(0,Je.length-1),je.ch=mn(pe,je.line)):je.ch=0:je.ch+=Te.after?1:0;var Hn,Cr;if(Re.visualMode){Re.lastPastedText=Je;var Pr,vr=hn(pe,Re),Hr=vr[0],di=vr[1],ai=pe.getSelection(),wi=pe.listSelections(),Gr=new Array(wi.length).join("1").split("1");Re.lastSelection&&(Pr=Re.lastSelection.headMark.find()),Qt.registerController.unnamedRegister.setText(ai),gn?(pe.replaceSelections(Gr),di=new U(Hr.line+Je.length-1,Hr.ch),pe.setCursor(Hr),Tt(pe,di),pe.replaceSelections(Je),Hn=Hr):Re.visualBlock?(pe.replaceSelections(Gr),pe.setCursor(Hr),pe.replaceRange(Je,Hr,Hr),Hn=Hr):(pe.replaceRange(Je,Hr,di),Hn=pe.posFromIndex(pe.indexFromPos(Hr)+Je.length-1)),Pr&&(Re.lastSelection.headMark=pe.setBookmark(Pr)),_n&&(Hn.ch=0)}else if(gn){pe.setCursor(je);for(var ar=0;ar<Je.length;ar++){var Br=je.line+ar;Br>pe.lastLine()&&pe.replaceRange(` `,new U(Br,0));var pi=mn(pe,Br);pi<je.ch&&ht(pe,Br,je.ch)}pe.setCursor(je),Tt(pe,new U(je.line+Je.length-1,je.ch)),pe.replaceSelections(Je),Hn=je}else pe.replaceRange(Je,je),_n&&Te.after?Hn=new U(je.line+1,Ke(pe.getLine(je.line+1))):_n&&!Te.after?Hn=new U(je.line,Ke(pe.getLine(je.line))):!_n&&Te.after?(Cr=pe.indexFromPos(je),Hn=pe.posFromIndex(Cr+Je.length-1)):(Cr=pe.indexFromPos(je),Hn=pe.posFromIndex(Cr+Je.length));Re.visualMode&&Er(pe,!1),pe.setCursor(Hn)}},undo:function(pe,Te){pe.operation(function(){Zt(pe,j.commands.undo,Te.repeat)(),pe.setCursor(pe.getCursor("anchor"))})},redo:function(pe,Te){Zt(pe,j.commands.redo,Te.repeat)()},setRegister:function(pe,Te,Re){Re.inputState.registerName=Te.selectedCharacter},setMark:function(pe,Te,Re){var je=Te.selectedCharacter;fr(pe,Re,je,pe.getCursor())},replace:function(pe,Te,Re){var je=Te.selectedCharacter,qe=pe.getCursor(),Je,vt,Rt=pe.listSelections();if(Re.visualMode)qe=pe.getCursor("start"),vt=pe.getCursor("end");else{var St=pe.getLine(qe.line);Je=qe.ch+Te.repeat,Je>St.length&&(Je=St.length),vt=new U(qe.line,Je)}if(je==` `)Re.visualMode||pe.replaceRange("",qe,vt),(j.commands.newlineAndIndentContinueComment||j.commands.newlineAndIndent)(pe);else{var zt=pe.getRange(qe,vt);if(zt=zt.replace(/[^\n]/g,je),Re.visualBlock){var jt=new Array(pe.getOption("tabSize")+1).join(" ");zt=pe.getSelection(),zt=zt.replace(/\t/g,jt).replace(/[^\n]/g,je).split(` `),pe.replaceSelections(zt)}else pe.replaceRange(zt,qe,vt);Re.visualMode?(qe=pt(Rt[0].anchor,Rt[0].head)?Rt[0].anchor:Rt[0].head,pe.setCursor(qe),Er(pe,!1)):pe.setCursor(ot(vt,0,-1))}},incrementNumberToken:function(pe,Te){for(var Re=pe.getCursor(),je=pe.getLine(Re.line),qe=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,Je,vt,Rt,St;(Je=qe.exec(je))!==null&&(vt=Je.index,Rt=vt+Je[0].length,!(Re.ch<Rt)););if(!(!Te.backtrack&&Rt<=Re.ch)){if(Je){var zt=Je[2]||Je[4],jt=Je[3]||Je[5],yn=Te.increase?1:-1,Dn={"0b":2,0:8,"":10,"0x":16}[zt.toLowerCase()],_n=parseInt(Je[1]+jt,Dn)+yn*Te.repeat;St=_n.toString(Dn);var gn=zt?new Array(jt.length-St.length+1+Je[1].length).join("0"):"";St.charAt(0)==="-"?St="-"+zt+gn+St.substr(1):St=zt+gn+St;var ar=new U(Re.line,vt),Hn=new U(Re.line,Rt);pe.replaceRange(St,ar,Hn)}else return;pe.setCursor(new U(Re.line,vt+St.length-1))}},repeatLastEdit:function(pe,Te,Re){var je=Re.lastEditInputState;if(je){var qe=Te.repeat;qe&&Te.repeatIsExplicit?Re.lastEditInputState.repeatOverride=qe:qe=Re.lastEditInputState.repeatOverride||qe,gs(pe,Re,qe,!1)}},indent:function(pe,Te){pe.indentLine(pe.getCursor().line,Te.indentRight)},exitInsertMode:Di};function ut(pe,Te){rt[pe]=Te}function ct(pe,Te){var Re=pe.state.vim,je=Re.insertMode||Re.visualMode,qe=Math.min(Math.max(pe.firstLine(),Te.line),pe.lastLine()),Je=mn(pe,qe)-1+!!je,vt=Math.min(Math.max(0,Te.ch),Je);return new U(qe,vt)}function it(pe){var Te={};for(var Re in pe)pe.hasOwnProperty(Re)&&(Te[Re]=pe[Re]);return Te}function ot(pe,Te,Re){return typeof Te=="object"&&(Re=Te.ch,Te=Te.line),new U(pe.line+Te,pe.ch+Re)}function Ot(pe,Te,Re,je){for(var qe,Je=[],vt=[],Rt=0;Rt<Te.length;Rt++){var St=Te[Rt];Re=="insert"&&St.context!="insert"||St.context&&St.context!=Re||je.operator&&St.type=="action"||!(qe=dn(pe,St.keys))||(qe=="partial"&&Je.push(St),qe=="full"&&vt.push(St))}return{partial:Je.length&&Je,full:vt.length&&vt}}function dn(pe,Te){if(Te.slice(-11)=="<character>"){var Re=Te.length-11,je=pe.slice(0,Re),qe=Te.slice(0,Re);return je==qe&&pe.length>Re?"full":qe.indexOf(je)==0?"partial":!1}else return pe==Te?"full":Te.indexOf(pe)==0?"partial":!1}function Fn(pe){var Te=/^.*(<[^>]+>)$/.exec(pe),Re=Te?Te[1]:pe.slice(-1);if(Re.length>1)switch(Re){case"<CR>":Re=` `;break;case"<Space>":Re=" ";break;default:Re="";break}return Re}function Zt(pe,Te,Re){return function(){for(var je=0;je<Re;je++)Te(pe)}}function vn(pe){return new U(pe.line,pe.ch)}function lt(pe,Te){return pe.ch==Te.ch&&pe.line==Te.line}function pt(pe,Te){return pe.line<Te.line||pe.line==Te.line&&pe.ch<Te.ch}function Pt(pe,Te){return arguments.length>2&&(Te=Pt.apply(void 0,Array.prototype.slice.call(arguments,1))),pt(pe,Te)?pe:Te}function qt(pe,Te){return arguments.length>2&&(Te=qt.apply(void 0,Array.prototype.slice.call(arguments,1))),pt(pe,Te)?Te:pe}function Ht(pe,Te,Re){var je=pt(pe,Te),qe=pt(Te,Re);return je&&qe}function mn(pe,Te){return pe.getLine(Te).length}function Yn(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function Ct(pe){return pe.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function ht(pe,Te,Re){var je=mn(pe,Te),qe=new Array(Re-je+1).join(" ");pe.setCursor(new U(Te,je)),pe.replaceRange(qe,pe.getCursor())}function Tt(pe,Te){var Re=[],je=pe.listSelections(),qe=vn(pe.clipPos(Te)),Je=!lt(Te,qe),vt=pe.getCursor("head"),Rt=fn(je,vt),St=lt(je[Rt].head,je[Rt].anchor),zt=je.length-1,jt=zt-Rt>Rt?zt:0,yn=je[jt].anchor,Dn=Math.min(yn.line,qe.line),_n=Math.max(yn.line,qe.line),gn=yn.ch,ar=qe.ch,Hn=je[jt].head.ch-gn,Cr=ar-gn;Hn>0&&Cr<=0?(gn++,Je||ar--):Hn<0&&Cr>=0?(gn--,St||ar++):Hn<0&&Cr==-1&&(gn--,ar++);for(var Pr=Dn;Pr<=_n;Pr++){var vr={anchor:new U(Pr,gn),head:new U(Pr,ar)};Re.push(vr)}return pe.setSelections(Re),Te.ch=ar,yn.ch=gn,yn}function Lt(pe,Te,Re){for(var je=[],qe=0;qe<Re;qe++){var Je=ot(Te,qe,0);je.push({anchor:Je,head:Je})}pe.setSelections(je,0)}function fn(pe,Te,Re){for(var je=0;je<pe.length;je++){var qe=Re!="head"&<(pe[je].anchor,Te),Je=Re!="anchor"&<(pe[je].head,Te);if(qe||Je)return je}return-1}function hn(pe,Te){var Re=Te.lastSelection,je=function(){var Je=pe.listSelections(),vt=Je[0],Rt=Je[Je.length-1],St=pt(vt.anchor,vt.head)?vt.anchor:vt.head,zt=pt(Rt.anchor,Rt.head)?Rt.head:Rt.anchor;return[St,zt]},qe=function(){var Je=pe.getCursor(),vt=pe.getCursor(),Rt=Re.visualBlock;if(Rt){var St=Rt.width,zt=Rt.height;vt=new U(Je.line+zt,Je.ch+St);for(var jt=[],yn=Je.line;yn<vt.line;yn++){var Dn=new U(yn,Je.ch),_n=new U(yn,vt.ch),gn={anchor:Dn,head:_n};jt.push(gn)}pe.setSelections(jt)}else{var ar=Re.anchorMark.find(),Hn=Re.headMark.find(),Cr=Hn.line-ar.line,Pr=Hn.ch-ar.ch;vt={line:vt.line+Cr,ch:Cr?vt.ch:Pr+vt.ch},Re.visualLine&&(Je=new U(Je.line,0),vt=new U(vt.line,mn(pe,vt.line))),pe.setSelection(Je,vt)}return[Je,vt]};return Te.visualMode?je():qe()}function wn(pe,Te){var Re=Te.sel.anchor,je=Te.sel.head;Te.lastPastedText&&(je=pe.posFromIndex(pe.indexFromPos(Re)+Te.lastPastedText.length),Te.lastPastedText=null),Te.lastSelection={anchorMark:pe.setBookmark(Re),headMark:pe.setBookmark(je),anchor:vn(Re),head:vn(je),visualMode:Te.visualMode,visualLine:Te.visualLine,visualBlock:Te.visualBlock}}function cr(pe,Te,Re){var je=pe.state.vim.sel,qe=je.head,Je=je.anchor,vt;return pt(Re,Te)&&(vt=Re,Re=Te,Te=vt),pt(qe,Je)?(qe=Pt(Te,qe),Je=qt(Je,Re)):(Je=Pt(Te,Je),qe=qt(qe,Re),qe=ot(qe,0,-1),qe.ch==-1&&qe.line!=pe.firstLine()&&(qe=new U(qe.line-1,mn(pe,qe.line-1)))),[Je,qe]}function zn(pe,Te,qe){var je=pe.state.vim;Te=Te||je.sel;var qe=qe||je.visualLine?"line":je.visualBlock?"block":"char",Je=ir(pe,Te,qe);pe.setSelections(Je.ranges,Je.primary)}function ir(pe,Te,Re,je){var qe=vn(Te.head),Je=vn(Te.anchor);if(Re=="char"){var vt=!je&&!pt(Te.head,Te.anchor)?1:0,Rt=pt(Te.head,Te.anchor)?1:0;return qe=ot(Te.head,0,vt),Je=ot(Te.anchor,0,Rt),{ranges:[{anchor:Je,head:qe}],primary:0}}else if(Re=="line"){if(pt(Te.head,Te.anchor))qe.ch=0,Je.ch=mn(pe,Je.line);else{Je.ch=0;var St=pe.lastLine();qe.line>St&&(qe.line=St),qe.ch=mn(pe,qe.line)}return{ranges:[{anchor:Je,head:qe}],primary:0}}else if(Re=="block"){var zt=Math.min(Je.line,qe.line),jt=Je.ch,yn=Math.max(Je.line,qe.line),Dn=qe.ch;jt<Dn?Dn+=1:jt+=1;for(var _n=yn-zt+1,gn=qe.line==zt?0:_n-1,ar=[],Hn=0;Hn<_n;Hn++)ar.push({anchor:new U(zt+Hn,jt),head:new U(zt+Hn,Dn)});return{ranges:ar,primary:gn}}}function Ir(pe){var Te=pe.getCursor("head");return pe.getSelection().length==1&&(Te=Pt(Te,pe.getCursor("anchor"))),Te}function Er(pe,Te){var Re=pe.state.vim;Te!==!1&&pe.setCursor(ct(pe,Re.sel.head)),wn(pe,Re),Re.visualMode=!1,Re.visualLine=!1,Re.visualBlock=!1,Re.insertMode||j.signal(pe,"vim-mode-change",{mode:"normal"})}function Dr(pe,Te,Re){var je=pe.getRange(Te,Re);if(/\n\s*$/.test(je)){var qe=je.split(` `);qe.pop();for(var Je,Je=qe.pop();qe.length>0&&Je&&ze(Je);Je=qe.pop())Re.line--,Re.ch=0;Je?(Re.line--,Re.ch=mn(pe,Re.line)):Re.ch=0}}function Ur(pe,Te,Re){Te.ch=0,Re.ch=0,Re.line++}function Ke(pe){if(!pe)return 0;var Te=pe.search(/\S/);return Te==-1?pe.length:Te}function mt(pe,Te,Re,je,qe){for(var Je=Ir(pe),vt=pe.getLine(Je.line),Rt=Je.ch,St=qe?_e[0]:fe[0];!St(vt.charAt(Rt));)if(Rt++,Rt>=vt.length)return null;je?St=fe[0]:(St=_e[0],St(vt.charAt(Rt))||(St=_e[1]));for(var zt=Rt,jt=Rt;St(vt.charAt(zt))&&zt<vt.length;)zt++;for(;St(vt.charAt(jt))&&jt>=0;)jt--;if(jt++,Te){for(var yn=zt;/\s/.test(vt.charAt(zt))&&zt<vt.length;)zt++;if(yn==zt){for(var Dn=jt;/\s/.test(vt.charAt(jt-1))&&jt>0;)jt--;jt||(jt=Dn)}}return{start:new U(Je.line,jt),end:new U(Je.line,zt)}}function dt(pe,Te,Re){var je=Te;if(!j.findMatchingTag||!j.findEnclosingTag)return{start:je,end:je};var qe=j.findMatchingTag(pe,Te)||j.findEnclosingTag(pe,Te);return!qe||!qe.open||!qe.close?{start:je,end:je}:Re?{start:qe.open.from,end:qe.close.to}:{start:qe.open.to,end:qe.close.from}}function Ne(pe,Te,Re){lt(Te,Re)||Qt.jumpList.add(pe,Te,Re)}function _t(pe,Te){Qt.lastCharacterSearch.increment=pe,Qt.lastCharacterSearch.forward=Te.forward,Qt.lastCharacterSearch.selectedCharacter=Te.selectedCharacter}var Xt={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},sn={bracket:{isComplete:function(pe){if(pe.nextCh===pe.symb){if(pe.depth++,pe.depth>=1)return!0}else pe.nextCh===pe.reverseSymb&&pe.depth--;return!1}},section:{init:function(pe){pe.curMoveThrough=!0,pe.symb=(pe.forward?"]":"[")===pe.symb?"{":"}"},isComplete:function(pe){return pe.index===0&&pe.nextCh===pe.symb}},comment:{isComplete:function(pe){var Te=pe.lastCh==="*"&&pe.nextCh==="/";return pe.lastCh=pe.nextCh,Te}},method:{init:function(pe){pe.symb=pe.symb==="m"?"{":"}",pe.reverseSymb=pe.symb==="{"?"}":"{"},isComplete:function(pe){return pe.nextCh===pe.symb}},preprocess:{init:function(pe){pe.index=0},isComplete:function(pe){if(pe.nextCh==="#"){var Te=pe.lineText.match(/^#(\w+)/)[1];if(Te==="endif"){if(pe.forward&&pe.depth===0)return!0;pe.depth++}else if(Te==="if"){if(!pe.forward&&pe.depth===0)return!0;pe.depth--}if(Te==="else"&&pe.depth===0)return!0}return!1}}};function Tn(pe,Te,Re,je){var qe=vn(pe.getCursor()),Je=Re?1:-1,vt=Re?pe.lineCount():-1,Rt=qe.ch,St=qe.line,zt=pe.getLine(St),jt={lineText:zt,nextCh:zt.charAt(Rt),lastCh:null,index:Rt,symb:je,reverseSymb:(Re?{")":"(","}":"{"}:{"(":")","{":"}"})[je],forward:Re,depth:0,curMoveThrough:!1},yn=Xt[je];if(!yn)return qe;var Dn=sn[yn].init,_n=sn[yn].isComplete;for(Dn&&Dn(jt);St!==vt&&Te;){if(jt.index+=Je,jt.nextCh=jt.lineText.charAt(jt.index),!jt.nextCh){if(St+=Je,jt.lineText=pe.getLine(St)||"",Je>0)jt.index=0;else{var gn=jt.lineText.length;jt.index=gn>0?gn-1:0}jt.nextCh=jt.lineText.charAt(jt.index)}_n(jt)&&(qe.line=St,qe.ch=jt.index,Te--)}return jt.nextCh||jt.curMoveThrough?new U(St,jt.index):qe}function In(pe,Te,Re,je,qe){var Je=Te.line,vt=Te.ch,Rt=pe.getLine(Je),St=Re?1:-1,zt=je?fe:_e;if(qe&&Rt==""){if(Je+=St,Rt=pe.getLine(Je),!Ae(pe,Je))return null;vt=Re?0:Rt.length}for(;;){if(qe&&Rt=="")return{from:0,to:0,line:Je};for(var jt=St>0?Rt.length:-1,yn=jt,Dn=jt;vt!=jt;){for(var _n=!1,gn=0;gn<zt.length&&!_n;++gn)if(zt[gn](Rt.charAt(vt))){for(yn=vt;vt!=jt&&zt[gn](Rt.charAt(vt));)vt+=St;if(Dn=vt,_n=yn!=Dn,yn==Te.ch&&Je==Te.line&&Dn==yn+St)continue;return{from:Math.min(yn,Dn+1),to:Math.max(yn,Dn),line:Je}}_n||(vt+=St)}if(Je+=St,!Ae(pe,Je))return null;Rt=pe.getLine(Je),vt=St>0?0:Rt.length}}function Qn(pe,Te,Re,je,qe,Je){var vt=vn(Te),Rt=[];(je&&!qe||!je&&qe)&&Re++;for(var St=!(je&&qe),zt=0;zt<Re;zt++){var jt=In(pe,Te,je,Je,St);if(!jt){var yn=mn(pe,pe.lastLine());Rt.push(je?{line:pe.lastLine(),from:yn,to:yn}:{line:0,from:0,to:0});break}Rt.push(jt),Te=new U(jt.line,je?jt.to-1:jt.from)}var Dn=Rt.length!=Re,_n=Rt[0],gn=Rt.pop();return je&&!qe?(!Dn&&(_n.from!=vt.ch||_n.line!=vt.line)&&(gn=Rt.pop()),new U(gn.line,gn.from)):je&&qe?new U(gn.line,gn.to-1):!je&&qe?(!Dn&&(_n.to!=vt.ch||_n.line!=vt.line)&&(gn=Rt.pop()),new U(gn.line,gn.to)):new U(gn.line,gn.from)}function Xn(pe,Te,Re,je,qe){var Je=Te,vt=new U(Je.line+Re.repeat-1,1/0),Rt=pe.clipPos(vt);return Rt.ch--,qe||(je.lastHPos=1/0,je.lastHSPos=pe.charCoords(Rt,"div").left),vt}function Rr(pe,Te,Re,je){for(var qe=pe.getCursor(),Je=qe.ch,vt,Rt=0;Rt<Te;Rt++){var St=pe.getLine(qe.line);if(vt=kr(Je,St,je,Re,!0),vt==-1)return null;Je=vt}return new U(pe.getCursor().line,vt)}function tr(pe,Te){var Re=pe.getCursor().line;return ct(pe,new U(Re,Te-1))}function fr(pe,Te,Re,je){ft(Re,be)&&(Te.marks[Re]&&Te.marks[Re].clear(),Te.marks[Re]=pe.setBookmark(je))}function kr(pe,Te,Re,je,qe){var Je;return je?(Je=Te.indexOf(Re,pe+1),Je!=-1&&!qe&&(Je-=1)):(Je=Te.lastIndexOf(Re,pe-1),Je!=-1&&!qe&&(Je+=1)),Je}function sr(pe,Te,Re,je,qe){var Je=Te.line,vt=pe.firstLine(),Rt=pe.lastLine(),St,zt,jt=Je;function yn(Hn){return!pe.getLine(Hn)}function Dn(Hn,Cr,Pr){return Pr?yn(Hn)!=yn(Hn+Cr):!yn(Hn)&&yn(Hn+Cr)}if(je){for(;vt<=jt&&jt<=Rt&&Re>0;)Dn(jt,je)&&Re--,jt+=je;return new U(jt,0)}var _n=pe.state.vim;if(_n.visualLine&&Dn(Je,1,!0)){var gn=_n.sel.anchor;Dn(gn.line,-1,!0)&&(!qe||gn.line!=Je)&&(Je+=1)}var ar=yn(Je);for(jt=Je;jt<=Rt&ℜjt++)Dn(jt,1,!0)&&(!qe||yn(jt)!=ar)&&Re--;for(zt=new U(jt,0),jt>Rt&&!ar?ar=!0:qe=!1,jt=Je;jt>vt&&!((!qe||yn(jt)==ar||jt==Je)&&Dn(jt,-1,!0));jt--);return St=new U(jt,0),{start:St,end:zt}}function Pn(pe,Te,Re,je,qe){function Je(zt){zt.pos+zt.dir<0||zt.pos+zt.dir>=zt.line.length?zt.line=null:zt.pos+=zt.dir}function vt(zt,jt,yn,Dn){var _n=zt.getLine(jt),gn={line:_n,ln:jt,pos:yn,dir:Dn};if(gn.line==="")return{ln:gn.ln,pos:gn.pos};var ar=gn.pos;for(Je(gn);gn.line!==null;){if(ar=gn.pos,Ze(gn.line[gn.pos]))if(qe){for(Je(gn);gn.line!==null&&ze(gn.line[gn.pos]);)ar=gn.pos,Je(gn);return{ln:gn.ln,pos:ar+1}}else return{ln:gn.ln,pos:gn.pos+1};Je(gn)}return{ln:gn.ln,pos:ar+1}}function Rt(zt,jt,yn,Dn){var _n=zt.getLine(jt),gn={line:_n,ln:jt,pos:yn,dir:Dn};if(gn.line==="")return{ln:gn.ln,pos:gn.pos};var ar=gn.pos;for(Je(gn);gn.line!==null;){if(!ze(gn.line[gn.pos])&&!Ze(gn.line[gn.pos]))ar=gn.pos;else if(Ze(gn.line[gn.pos]))return qe?ze(gn.line[gn.pos+1])?{ln:gn.ln,pos:gn.pos+1}:{ln:gn.ln,pos:ar}:{ln:gn.ln,pos:ar};Je(gn)}return gn.line=_n,qe&&ze(gn.line[gn.pos])?{ln:gn.ln,pos:gn.pos}:{ln:gn.ln,pos:ar}}for(var St={ln:Te.line,pos:Te.ch};Re>0;)je<0?St=Rt(pe,St.ln,St.pos,je):St=vt(pe,St.ln,St.pos,je),Re--;return new U(St.ln,St.pos)}function mr(pe,Te,Re,je){function qe(St,zt){if(zt.pos+zt.dir<0||zt.pos+zt.dir>=zt.line.length){if(zt.ln+=zt.dir,!Ae(St,zt.ln)){zt.line=null,zt.ln=null,zt.pos=null;return}zt.line=St.getLine(zt.ln),zt.pos=zt.dir>0?0:zt.line.length-1}else zt.pos+=zt.dir}function Je(St,zt,jt,yn){var Hn=St.getLine(zt),Dn=Hn==="",_n={line:Hn,ln:zt,pos:jt,dir:yn},gn={ln:_n.ln,pos:_n.pos},ar=_n.line==="";for(qe(St,_n);_n.line!==null;){if(gn.ln=_n.ln,gn.pos=_n.pos,_n.line===""&&!ar)return{ln:_n.ln,pos:_n.pos};if(Dn&&_n.line!==""&&!ze(_n.line[_n.pos]))return{ln:_n.ln,pos:_n.pos};Ze(_n.line[_n.pos])&&!Dn&&(_n.pos===_n.line.length-1||ze(_n.line[_n.pos+1]))&&(Dn=!0),qe(St,_n)}var Hn=St.getLine(gn.ln);gn.pos=0;for(var Cr=Hn.length-1;Cr>=0;--Cr)if(!ze(Hn[Cr])){gn.pos=Cr;break}return gn}function vt(St,zt,jt,yn){var ar=St.getLine(zt),Dn={line:ar,ln:zt,pos:jt,dir:yn},_n={ln:Dn.ln,pos:null},gn=Dn.line==="";for(qe(St,Dn);Dn.line!==null;){if(Dn.line===""&&!gn)return _n.pos!==null?_n:{ln:Dn.ln,pos:Dn.pos};if(Ze(Dn.line[Dn.pos])&&_n.pos!==null&&!(Dn.ln===_n.ln&&Dn.pos+1===_n.pos))return _n;Dn.line!==""&&!ze(Dn.line[Dn.pos])&&(gn=!1,_n={ln:Dn.ln,pos:Dn.pos}),qe(St,Dn)}var ar=St.getLine(_n.ln);_n.pos=0;for(var Hn=0;Hn<ar.length;++Hn)if(!ze(ar[Hn])){_n.pos=Hn;break}return _n}for(var Rt={ln:Te.line,pos:Te.ch};Re>0;)je<0?Rt=vt(pe,Rt.ln,Rt.pos,je):Rt=Je(pe,Rt.ln,Rt.pos,je),Re--;return new U(Rt.ln,Rt.pos)}function br(pe,Te,Re,je){var qe=Te,Je,vt,Rt={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[Re],St={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[Re],zt=pe.getLine(qe.line).charAt(qe.ch),jt=zt===St?1:0;if(Je=pe.scanForBracket(new U(qe.line,qe.ch+jt),-1,void 0,{bracketRegex:Rt}),vt=pe.scanForBracket(new U(qe.line,qe.ch+jt),1,void 0,{bracketRegex:Rt}),!Je||!vt)return{start:qe,end:qe};if(Je=Je.pos,vt=vt.pos,Je.line==vt.line&&Je.ch>vt.ch||Je.line>vt.line){var yn=Je;Je=vt,vt=yn}return je?vt.ch+=1:Je.ch+=1,{start:Je,end:vt}}function hr(pe,Te,Re,je){var qe=vn(Te),Je=pe.getLine(qe.line),vt=Je.split(""),Rt,St,zt,jt,yn=vt.indexOf(Re);if(qe.ch<yn?qe.ch=yn:yn<qe.ch&&vt[qe.ch]==Re&&(St=qe.ch,--qe.ch),vt[qe.ch]==Re&&!St)Rt=qe.ch+1;else for(zt=qe.ch;zt>-1&&!Rt;zt--)vt[zt]==Re&&(Rt=zt+1);if(Rt&&!St)for(zt=Rt,jt=vt.length;zt<jt&&!St;zt++)vt[zt]==Re&&(St=zt);return!Rt||!St?{start:qe,end:qe}:(je&&(--Rt,++St),{start:new U(qe.line,Rt),end:new U(qe.line,St)})}Ve("pcre",!0,"boolean");function Bn(){}Bn.prototype={getQuery:function(){return Qt.query},setQuery:function(pe){Qt.query=pe},getOverlay:function(){return this.searchOverlay},setOverlay:function(pe){this.searchOverlay=pe},isReversed:function(){return Qt.isReversed},setReversed:function(pe){Qt.isReversed=pe},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(pe){this.annotate=pe}};function er(pe){var Te=pe.state.vim;return Te.searchState_||(Te.searchState_=new Bn)}function Qe(pe){return wt(pe,"/")}function bt(pe){return Bt(pe,"/")}function wt(pe,Te){var Re=Bt(pe,Te)||[];if(!Re.length)return[];var je=[];if(Re[0]===0){for(var qe=0;qe<Re.length;qe++)typeof Re[qe]=="number"&&je.push(pe.substring(Re[qe]+1,Re[qe+1]));return je}}function Bt(pe,Te){Te||(Te="/");for(var Re=!1,je=[],qe=0;qe<pe.length;qe++){var Je=pe.charAt(qe);!Re&&Je==Te&&je.push(qe),Re=!Re&&Je=="\\"}return je}function Yt(pe){for(var Te="|(){",Re="}",je=!1,qe=[],Je=-1;Je<pe.length;Je++){var vt=pe.charAt(Je)||"",Rt=pe.charAt(Je+1)||"",St=Rt&&Te.indexOf(Rt)!=-1;je?((vt!=="\\"||!St)&&qe.push(vt),je=!1):vt==="\\"?(je=!0,Rt&&Re.indexOf(Rt)!=-1&&(St=!0),(!St||Rt==="\\")&&qe.push(vt)):(qe.push(vt),St&&Rt!=="\\"&&qe.push("\\"))}return qe.join("")}var Mt={"\\n":` `,"\\r":"\r","\\t":" "};function en(pe){for(var Te=!1,Re=[],je=-1;je<pe.length;je++){var qe=pe.charAt(je)||"",Je=pe.charAt(je+1)||"";Mt[qe+Je]?(Re.push(Mt[qe+Je]),je++):Te?(Re.push(qe),Te=!1):qe==="\\"?(Te=!0,Me(Je)||Je==="$"?Re.push("$"):Je!=="/"&&Je!=="\\"&&Re.push("\\")):(qe==="$"&&Re.push("$"),Re.push(qe),Je==="/"&&Re.push("\\"))}return Re.join("")}var pn={"\\/":"/","\\\\":"\\","\\n":` `,"\\r":"\r","\\t":" ","\\&":"&"};function Sn(pe){for(var Te=new j.StringStream(pe),Re=[];!Te.eol();){for(;Te.peek()&&Te.peek()!="\\";)Re.push(Te.next());var je=!1;for(var qe in pn)if(Te.match(qe,!0)){je=!0,Re.push(pn[qe]);break}je||Re.push(Te.next())}return Re.join("")}function cn(pe,Te,Re){var je=Qt.registerController.getRegister("/");if(je.setText(pe),pe instanceof RegExp)return pe;var qe=bt(pe),Je,vt;if(!qe.length)Je=pe;else{Je=pe.substring(0,qe[0]);var Rt=pe.substring(qe[0]);vt=Rt.indexOf("i")!=-1}if(!Je)return null;Nt("pcre")||(Je=Yt(Je)),Re&&(Te=/^[^A-Z]*$/.test(Je));var St=new RegExp(Je,Te||vt?"im":"m");return St}function ur(pe){typeof pe=="string"&&(pe=document.createElement(pe));for(var Te,Re=1;Re<arguments.length;Re++)if(Te=arguments[Re])if(typeof Te!="object"&&(Te=document.createTextNode(Te)),Te.nodeType)pe.appendChild(Te);else for(var je in Te)Object.prototype.hasOwnProperty.call(Te,je)&&(je[0]==="$"?pe.style[je.slice(1)]=Te[je]:pe.setAttribute(je,Te[je]));return pe}function or(pe,Te){var Re=ur("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},Te);pe.openNotification?pe.openNotification(Re,{bottom:!0,duration:5e3}):alert(Re.innerText)}function nt(pe,Te){return ur(document.createDocumentFragment(),ur("span",{$fontFamily:"monospace",$whiteSpace:"pre"},pe,ur("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false"})),Te&&ur("span",{$color:"#888"},Te))}function gt(pe,Te){var Re=nt(Te.prefix,Te.desc);if(pe.openDialog)pe.openDialog(Re,Te.onClose,{onKeyDown:Te.onKeyDown,onKeyUp:Te.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:Te.value});else{var je="";typeof Te.prefix!="string"&&Te.prefix&&(je+=Te.prefix.textContent),Te.desc&&(je+=" "+Te.desc),Te.onClose(prompt(je,""))}}function et(pe,Te){if(pe instanceof RegExp&&Te instanceof RegExp){for(var Re=["global","multiline","ignoreCase","source"],je=0;je<Re.length;je++){var qe=Re[je];if(pe[qe]!==Te[qe])return!1}return!0}return!1}function nn(pe,Te,Re,je){if(Te){var qe=er(pe),Je=cn(Te,!!Re,!!je);if(Je)return Jn(pe,Je),et(Je,qe.getQuery())||qe.setQuery(Je),Je}}function xn(pe){if(pe.source.charAt(0)=="^")var Te=!0;return{token:function(Re){if(Te&&!Re.sol()){Re.skipToEnd();return}var je=Re.match(pe,!1);if(je)return je[0].length==0?(Re.next(),"searching"):!Re.sol()&&(Re.backUp(1),!pe.exec(Re.next()+je[0]))?(Re.next(),null):(Re.match(pe),"searching");for(;!Re.eol()&&(Re.next(),!Re.match(pe,!1)););},query:pe}}var Un=0;function Jn(pe,Te){clearTimeout(Un),Un=setTimeout(function(){if(pe.state.vim){var Re=er(pe),je=Re.getOverlay();(!je||Te!=je.query)&&(je&&pe.removeOverlay(je),je=xn(Te),pe.addOverlay(je),pe.showMatchesOnScrollbar&&(Re.getScrollbarAnnotate()&&Re.getScrollbarAnnotate().clear(),Re.setScrollbarAnnotate(pe.showMatchesOnScrollbar(Te))),Re.setOverlay(je))}},50)}function _r(pe,Te,Re,je){return je===void 0&&(je=1),pe.operation(function(){for(var qe=pe.getCursor(),Je=pe.getSearchCursor(Re,qe),vt=0;vt<je;vt++){var Rt=Je.find(Te);if(vt==0&&Rt&<(Je.from(),qe)){var St=Te?Je.from():Je.to();Rt=Je.find(Te),Rt&&!Rt[0]&<(Je.from(),St)&&pe.getLine(St.line).length==St.ch&&(Rt=Je.find(Te))}if(!Rt&&(Je=pe.getSearchCursor(Re,Te?new U(pe.lastLine()):new U(pe.firstLine(),0)),!Je.find(Te)))return}return Je.from()})}function xr(pe,Te,Re,je,qe){return je===void 0&&(je=1),pe.operation(function(){var Je=pe.getCursor(),vt=pe.getSearchCursor(Re,Je),Rt=vt.find(!Te);!qe.visualMode&&Rt&<(vt.from(),Je)&&vt.find(!Te);for(var St=0;St<je;St++)if(Rt=vt.find(Te),!Rt&&(vt=pe.getSearchCursor(Re,Te?new U(pe.lastLine()):new U(pe.firstLine(),0)),!vt.find(Te)))return;return[vt.from(),vt.to()]})}function Nr(pe){var Te=er(pe);pe.removeOverlay(er(pe).getOverlay()),Te.setOverlay(null),Te.getScrollbarAnnotate()&&(Te.getScrollbarAnnotate().clear(),Te.setScrollbarAnnotate(null))}function Mr(pe,Te,Re){return typeof pe!="number"&&(pe=pe.line),Te instanceof Array?ft(pe,Te):typeof Re=="number"?pe>=Te&&pe<=Re:pe==Te}function Qr(pe){var Te=pe.getScrollInfo(),Re=6,je=10,qe=pe.coordsChar({left:0,top:Re+Te.top},"local"),Je=Te.clientHeight-je+Te.top,vt=pe.coordsChar({left:0,top:Je},"local");return{top:qe.line,bottom:vt.line}}function ni(pe,Te,Re){if(Re=="'"||Re=="`")return Qt.jumpList.find(pe,-1)||new U(0,0);if(Re==".")return Jr(pe);var je=Te.marks[Re];return je&&je.find()}function Jr(pe){for(var Te=pe.doc.history.done,Re=Te.length;Re--;)if(Te[Re].changes)return vn(Te[Re].changes[0].to)}var ri=function(){this.buildCommandMap_()};ri.prototype={processCommand:function(pe,Te,Re){var je=this;pe.operation(function(){pe.curOp.isVimOp=!0,je._processCommand(pe,Te,Re)})},_processCommand:function(pe,Te,Re){var je=pe.state.vim,qe=Qt.registerController.getRegister(":"),Je=qe.toString();je.visualMode&&Er(pe);var vt=new j.StringStream(Te);qe.setText(Te);var Rt=Re||{};Rt.input=Te;try{this.parseInput_(pe,vt,Rt)}catch(yn){throw or(pe,yn.toString()),yn}var St,zt;if(!Rt.commandName)Rt.line!==void 0&&(zt="move");else if(St=this.matchCommand_(Rt.commandName),St){if(zt=St.name,St.excludeFromCommandHistory&&qe.setText(Je),this.parseCommandArgs_(vt,Rt,St),St.type=="exToKey"){for(var jt=0;jt<St.toKeys.length;jt++)Gn.handleKey(pe,St.toKeys[jt],"mapping");return}else if(St.type=="exToEx"){this.processCommand(pe,St.toInput);return}}if(!zt){or(pe,'Not an editor command ":'+Te+'"');return}try{Yr[zt](pe,Rt),(!St||!St.possiblyAsync)&&Rt.callback&&Rt.callback()}catch(yn){throw or(pe,yn.toString()),yn}},parseInput_:function(pe,Te,Re){Te.eatWhile(":"),Te.eat("%")?(Re.line=pe.firstLine(),Re.lineEnd=pe.lastLine()):(Re.line=this.parseLineSpec_(pe,Te),Re.line!==void 0&&Te.eat(",")&&(Re.lineEnd=this.parseLineSpec_(pe,Te)));var je=Te.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return je?Re.commandName=je[1]:Re.commandName=Te.match(/.*/)[0],Re},parseLineSpec_:function(pe,Te){var Re=Te.match(/^(\d+)/);if(Re)return parseInt(Re[1],10)-1;switch(Te.next()){case".":return this.parseLineSpecOffset_(Te,pe.getCursor().line);case"$":return this.parseLineSpecOffset_(Te,pe.lastLine());case"'":var je=Te.next(),qe=ni(pe,pe.state.vim,je);if(!qe)throw new Error("Mark not set");return this.parseLineSpecOffset_(Te,qe.line);case"-":case"+":return Te.backUp(1),this.parseLineSpecOffset_(Te,pe.getCursor().line);default:Te.backUp(1);return}},parseLineSpecOffset_:function(pe,Te){var Re=pe.match(/^([+-])?(\d+)/);if(Re){var je=parseInt(Re[2],10);Re[1]=="-"?Te-=je:Te+=je}return Te},parseCommandArgs_:function(pe,Te,Re){if(!pe.eol()){Te.argString=pe.match(/.*/)[0];var je=Re.argDelimiter||/\s+/,qe=Yn(Te.argString).split(je);qe.length&&qe[0]&&(Te.args=qe)}},matchCommand_:function(pe){for(var Te=pe.length;Te>0;Te--){var Re=pe.substring(0,Te);if(this.commandMap_[Re]){var je=this.commandMap_[Re];if(je.name.indexOf(pe)===0)return je}}return null},buildCommandMap_:function(){this.commandMap_={};for(var pe=0;pe<G.length;pe++){var Te=G[pe],Re=Te.shortName||Te.name;this.commandMap_[Re]=Te}},map:function(pe,Te,Re){if(pe!=":"&&pe.charAt(0)==":"){if(Re)throw Error("Mode not supported for ex mappings");var je=pe.substring(1);Te!=":"&&Te.charAt(0)==":"?this.commandMap_[je]={name:je,type:"exToEx",toInput:Te.substring(1),user:!0}:this.commandMap_[je]={name:je,type:"exToKey",toKeys:Te,user:!0}}else if(Te!=":"&&Te.charAt(0)==":"){var qe={keys:pe,type:"keyToEx",exArgs:{input:Te.substring(1)}};Re&&(qe.context=Re),Y.unshift(qe)}else{var qe={keys:pe,type:"keyToKey",toKeys:Te};Re&&(qe.context=Re),Y.unshift(qe)}},unmap:function(pe,Te){if(pe!=":"&&pe.charAt(0)==":"){if(Te)throw Error("Mode not supported for ex mappings");var Re=pe.substring(1);if(this.commandMap_[Re]&&this.commandMap_[Re].user)return delete this.commandMap_[Re],!0}else for(var je=pe,qe=0;qe<Y.length;qe++)if(je==Y[qe].keys&&Y[qe].context===Te)return Y.splice(qe,1),!0}};var Yr={colorscheme:function(pe,Te){if(!Te.args||Te.args.length<1){or(pe,pe.getOption("theme"));return}pe.setOption("theme",Te.args[0])},map:function(pe,Te,Re){var je=Te.args;if(!je||je.length<2){pe&&or(pe,"Invalid mapping: "+Te.input);return}ti.map(je[0],je[1],Re)},imap:function(pe,Te){this.map(pe,Te,"insert")},nmap:function(pe,Te){this.map(pe,Te,"normal")},vmap:function(pe,Te){this.map(pe,Te,"visual")},unmap:function(pe,Te,Re){var je=Te.args;(!je||je.length<1||!ti.unmap(je[0],Re))&&pe&&or(pe,"No such mapping: "+Te.input)},move:function(pe,Te){xt.processCommand(pe,pe.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:Te.line+1})},set:function(pe,Te){var Re=Te.args,je=Te.setCfg||{};if(!Re||Re.length<1){pe&&or(pe,"Invalid mapping: "+Te.input);return}var qe=Re[0].split("="),Je=qe[0],vt=qe[1],Rt=!1;if(Je.charAt(Je.length-1)=="?"){if(vt)throw Error("Trailing characters: "+Te.argString);Je=Je.substring(0,Je.length-1),Rt=!0}vt===void 0&&Je.substring(0,2)=="no"&&(Je=Je.substring(2),vt=!1);var St=Ye[Je]&&Ye[Je].type=="boolean";if(St&&vt==null&&(vt=!0),!St&&vt===void 0||Rt){var zt=Nt(Je,pe,je);zt instanceof Error?or(pe,zt.message):zt===!0||zt===!1?or(pe," "+(zt?"":"no")+Je):or(pe," "+Je+"="+zt)}else{var jt=Dt(Je,vt,pe,je);jt instanceof Error&&or(pe,jt.message)}},setlocal:function(pe,Te){Te.setCfg={scope:"local"},this.set(pe,Te)},setglobal:function(pe,Te){Te.setCfg={scope:"global"},this.set(pe,Te)},registers:function(pe,Te){var Re=Te.args,je=Qt.registerController.registers,qe=`----------Registers---------- `;if(Re){var Je;Re=Re.join("");for(var Rt=0;Rt<Re.length;Rt++)if(Je=Re.charAt(Rt),!!Qt.registerController.isValidRegister(Je)){var St=je[Je]||new Mn;qe+='"'+Je+" "+St.toString()+` `}}else for(var Je in je){var vt=je[Je].toString();vt.length&&(qe+='"'+Je+" "+vt+` `)}or(pe,qe)},sort:function(pe,Te){var Re,je,qe,Je,vt;function Rt(){if(Te.argString){var Gr=new j.StringStream(Te.argString);if(Gr.eat("!")&&(Re=!0),Gr.eol())return;if(!Gr.eatSpace())return"Invalid arguments";var Br=Gr.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Br&&!Gr.eol())return"Invalid arguments";if(Br[1]){je=Br[1].indexOf("i")!=-1,qe=Br[1].indexOf("u")!=-1;var pi=Br[1].indexOf("d")!=-1||Br[1].indexOf("n")!=-1&&1,hi=Br[1].indexOf("x")!=-1&&1,li=Br[1].indexOf("o")!=-1&&1;if(pi+hi+li>1)return"Invalid arguments";Je=pi&&"decimal"||hi&&"hex"||li&&"octal"}Br[2]&&(vt=new RegExp(Br[2].substr(1,Br[2].length-2),je?"i":""))}}var St=Rt();if(St){or(pe,St+": "+Te.argString);return}var zt=Te.line||pe.firstLine(),jt=Te.lineEnd||Te.line||pe.lastLine();if(zt==jt)return;var yn=new U(zt,0),Dn=new U(jt,mn(pe,jt)),_n=pe.getRange(yn,Dn).split(` `),gn=vt||(Je=="decimal"?/(-?)([\d]+)/:Je=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Je=="octal"?/([0-7]+)/:null),ar=Je=="decimal"?10:Je=="hex"?16:Je=="octal"?8:null,Hn=[],Cr=[];if(Je||vt)for(var Pr=0;Pr<_n.length;Pr++){var vr=vt?_n[Pr].match(vt):null;vr&&vr[0]!=""?Hn.push(vr):!vt&&gn.exec(_n[Pr])?Hn.push(_n[Pr]):Cr.push(_n[Pr])}else Cr=_n;function Hr(Gr,Br){if(Re){var pi;pi=Gr,Gr=Br,Br=pi}je&&(Gr=Gr.toLowerCase(),Br=Br.toLowerCase());var hi=Je&&gn.exec(Gr),li=Je&&gn.exec(Br);return hi?(hi=parseInt((hi[1]+hi[2]).toLowerCase(),ar),li=parseInt((li[1]+li[2]).toLowerCase(),ar),hi-li):Gr<Br?-1:1}function di(Gr,Br){if(Re){var pi;pi=Gr,Gr=Br,Br=pi}return je&&(Gr[0]=Gr[0].toLowerCase(),Br[0]=Br[0].toLowerCase()),Gr[0]<Br[0]?-1:1}if(Hn.sort(vt?di:Hr),vt)for(var Pr=0;Pr<Hn.length;Pr++)Hn[Pr]=Hn[Pr].input;else Je||Cr.sort(Hr);if(_n=Re?Hn.concat(Cr):Cr.concat(Hn),qe){var ai=_n,wi;_n=[];for(var Pr=0;Pr<ai.length;Pr++)ai[Pr]!=wi&&_n.push(ai[Pr]),wi=ai[Pr]}pe.replaceRange(_n.join(` `),yn,Dn)},vglobal:function(pe,Te){this.global(pe,Te)},global:function(pe,Te){var Re=Te.argString;if(!Re){or(pe,"Regular Expression missing from global");return}var je=Te.commandName[0]==="v",qe=Te.line!==void 0?Te.line:pe.firstLine(),Je=Te.lineEnd||Te.line||pe.lastLine(),vt=Qe(Re),Rt=Re,St;if(vt.length&&(Rt=vt[0],St=vt.slice(1,vt.length).join("/")),Rt)try{nn(pe,Rt,!0,!0)}catch{or(pe,"Invalid regex: "+Rt);return}for(var zt=er(pe).getQuery(),jt=[],yn=qe;yn<=Je;yn++){var Dn=pe.getLineHandle(yn),_n=zt.test(Dn.text);_n!==je&&jt.push(St?Dn:Dn.text)}if(!St){or(pe,jt.join(` `));return}var gn=0,ar=function(){if(gn<jt.length){var Hn=jt[gn++],Cr=pe.getLineNumber(Hn);if(Cr==null){ar();return}var Pr=Cr+1+St;ti.processCommand(pe,Pr,{callback:ar})}};ar()},substitute:function(pe,Te){if(!pe.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var Re=Te.argString,je=Re?wt(Re,Re[0]):[],qe,Je="",vt,Rt,St,zt=!1,jt=!1;if(je.length)qe=je[0],Nt("pcre")&&qe!==""&&(qe=new RegExp(qe).source),Je=je[1],Je!==void 0&&(Nt("pcre")?Je=Sn(Je.replace(/([^\\])&/g,"$1$$&")):Je=en(Je),Qt.lastSubstituteReplacePart=Je),vt=je[2]?je[2].split(" "):[];else if(Re&&Re.length){or(pe,"Substitutions should be of the form :s/pattern/replace/");return}if(vt&&(Rt=vt[0],St=parseInt(vt[1]),Rt&&(Rt.indexOf("c")!=-1&&(zt=!0),Rt.indexOf("g")!=-1&&(jt=!0),Nt("pcre")?qe=qe+"/"+Rt:qe=qe.replace(/\//g,"\\/")+"/"+Rt)),qe)try{nn(pe,qe,!0,!0)}catch{or(pe,"Invalid regex: "+qe);return}if(Je=Je||Qt.lastSubstituteReplacePart,Je===void 0){or(pe,"No previous substitute regular expression");return}var yn=er(pe),Dn=yn.getQuery(),_n=Te.line!==void 0?Te.line:pe.getCursor().line,gn=Te.lineEnd||_n;_n==pe.firstLine()&&gn==pe.lastLine()&&(gn=1/0),St&&(_n=gn,gn=_n+St-1);var ar=ct(pe,new U(_n,0)),Hn=pe.getSearchCursor(Dn,ar);gi(pe,zt,jt,_n,gn,Hn,Dn,Je,Te.callback)},redo:j.commands.redo,undo:j.commands.undo,write:function(pe){j.commands.save?j.commands.save(pe):pe.save&&pe.save()},nohlsearch:function(pe){Nr(pe)},yank:function(pe){var Te=vn(pe.getCursor()),Re=Te.line,je=pe.getLine(Re);Qt.registerController.pushText("0","yank",je,!0,!0)},delmarks:function(pe,Te){if(!Te.argString||!Yn(Te.argString)){or(pe,"Argument required");return}for(var Re=pe.state.vim,je=new j.StringStream(Yn(Te.argString));!je.eol();){je.eatSpace();var qe=je.pos;if(!je.match(/[a-zA-Z]/,!1)){or(pe,"Invalid argument: "+Te.argString.substring(qe));return}var Je=je.next();if(je.match("-",!0)){if(!je.match(/[a-zA-Z]/,!1)){or(pe,"Invalid argument: "+Te.argString.substring(qe));return}var vt=Je,Rt=je.next();if(Se(vt)&&Se(Rt)||Be(vt)&&Be(Rt)){var St=vt.charCodeAt(0),zt=Rt.charCodeAt(0);if(St>=zt){or(pe,"Invalid argument: "+Te.argString.substring(qe));return}for(var jt=0;jt<=zt-St;jt++){var yn=String.fromCharCode(St+jt);delete Re.marks[yn]}}else{or(pe,"Invalid argument: "+vt+"-");return}}else delete Re.marks[Je]}}},ti=new ri;function gi(pe,Te,Re,je,qe,Je,vt,Rt,St){pe.state.vim.exMode=!0;var zt=!1,jt,yn,Dn;function _n(){pe.operation(function(){for(;!zt;)gn(),Hn();Cr()})}function gn(){var vr=pe.getRange(Je.from(),Je.to()),Hr=vr.replace(vt,Rt),di=Je.to().line;Je.replace(Hr),yn=Je.to().line,qe+=yn-di,Dn=yn<di}function ar(){var vr=jt&&vn(Je.to()),Hr=Je.findNext();return Hr&&!Hr[0]&&vr&<(Je.from(),vr)&&(Hr=Je.findNext()),Hr}function Hn(){for(;ar()&&Mr(Je.from(),je,qe);)if(!(!Re&&Je.from().line==yn&&!Dn)){pe.scrollIntoView(Je.from(),30),pe.setSelection(Je.from(),Je.to()),jt=Je.from(),zt=!1;return}zt=!0}function Cr(vr){if(vr&&vr(),pe.focus(),jt){pe.setCursor(jt);var Hr=pe.state.vim;Hr.exMode=!1,Hr.lastHPos=Hr.lastHSPos=jt.ch}St&&St()}function Pr(vr,Hr,di){j.e_stop(vr);var ai=j.keyName(vr);switch(ai){case"Y":gn(),Hn();break;case"N":Hn();break;case"A":var wi=St;St=void 0,pe.operation(_n),St=wi;break;case"L":gn();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":Cr(di);break}return zt&&Cr(di),!0}if(Hn(),zt){or(pe,"No matches for "+vt.source);return}if(!Te){_n(),St&&St();return}gt(pe,{prefix:ur("span","replace with ",ur("strong",Rt)," (y/n/a/q/l)"),onKeyDown:Pr})}j.keyMap.vim={attach:te,detach:ee,call:se};function Di(pe){var Te=pe.state.vim,Re=Qt.macroModeState,je=Qt.registerController.getRegister("."),qe=Re.isPlaying,Je=Re.lastInsertModeChanges;qe||(pe.off("change",Js),j.off(pe.getInputField(),"keydown",As)),!qe&&Te.insertModeRepeat>1&&(gs(pe,Te,Te.insertModeRepeat-1,!0),Te.lastEditInputState.repeatOverride=Te.insertModeRepeat),delete Te.insertModeRepeat,Te.insertMode=!1,pe.setCursor(pe.getCursor().line,pe.getCursor().ch-1),pe.setOption("keyMap","vim"),pe.setOption("disableInput",!0),pe.toggleOverwrite(!1),je.setText(Je.changes.join("")),j.signal(pe,"vim-mode-change",{mode:"normal"}),Re.isRecording&&Fo(Re)}function Zi(pe){Y.unshift(pe)}function Io(pe,Te,Re,je,qe){var Je={keys:pe,type:Te};Je[Te]=Re,Je[Te+"Args"]=je;for(var vt in qe)Je[vt]=qe[vt];Zi(Je)}Ve("insertModeEscKeysTimeout",200,"number"),j.keyMap["vim-insert"]={fallthrough:["default"],attach:te,detach:ee,call:se},j.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:te,detach:ee,call:se};function No(pe,Te,Re,je){var qe=Qt.registerController.getRegister(je);if(je==":"){qe.keyBuffer[0]&&ti.processCommand(pe,qe.keyBuffer[0]),Re.isPlaying=!1;return}var Je=qe.keyBuffer,vt=0;Re.isPlaying=!0,Re.replaySearchQueries=qe.searchQueries.slice(0);for(var Rt=0;Rt<Je.length;Rt++)for(var St=Je[Rt],zt,jt;St;)if(zt=/<\w+-.+?>|<\w+>|./.exec(St),jt=zt[0],St=St.substring(zt.index+jt.length),Gn.handleKey(pe,jt,"macro"),Te.insertMode){var yn=qe.insertModeChanges[vt++].changes;Qt.macroModeState.lastInsertModeChanges.changes=yn,Cs(pe,yn,1),Di(pe)}Re.isPlaying=!1}function Lo(pe,Te){if(!pe.isPlaying){var Re=pe.latestRegister,je=Qt.registerController.getRegister(Re);je&&je.pushText(Te)}}function Fo(pe){if(!pe.isPlaying){var Te=pe.latestRegister,Re=Qt.registerController.getRegister(Te);Re&&Re.pushInsertModeChanges&&Re.pushInsertModeChanges(pe.lastInsertModeChanges)}}function Qi(pe,Te){if(!pe.isPlaying){var Re=pe.latestRegister,je=Qt.registerController.getRegister(Re);je&&je.pushSearchQuery&&je.pushSearchQuery(Te)}}function Js(pe,Te){var Re=Qt.macroModeState,je=Re.lastInsertModeChanges;if(!Re.isPlaying)for(;Te;){if(je.expectCursorActivityForChange=!0,je.ignoreCount>1)je.ignoreCount--;else if(Te.origin=="+input"||Te.origin=="paste"||Te.origin===void 0){var qe=pe.listSelections().length;qe>1&&(je.ignoreCount=qe);var Je=Te.text.join(` `);je.maybeReset&&(je.changes=[],je.maybeReset=!1),Je&&(pe.state.overwrite&&!/\n/.test(Je)?je.changes.push([Je]):je.changes.push(Je))}Te=Te.next}}function po(pe){var Te=pe.state.vim;if(Te.insertMode){var Re=Qt.macroModeState;if(Re.isPlaying)return;var je=Re.lastInsertModeChanges;je.expectCursorActivityForChange?je.expectCursorActivityForChange=!1:je.maybeReset=!0}else pe.curOp.isVimOp||Zs(pe,Te)}function Zs(pe,Te){var Re=pe.getCursor("anchor"),je=pe.getCursor("head");if(Te.visualMode&&!pe.somethingSelected()?Er(pe,!1):!Te.visualMode&&!Te.insertMode&&pe.somethingSelected()&&(Te.visualMode=!0,Te.visualLine=!1,j.signal(pe,"vim-mode-change",{mode:"visual"})),Te.visualMode){var qe=pt(je,Re)?0:-1,Je=pt(je,Re)?-1:0;je=ot(je,0,qe),Re=ot(Re,0,Je),Te.sel={anchor:Re,head:je},fr(pe,Te,"<",Pt(je,Re)),fr(pe,Te,">",qt(je,Re))}else Te.insertMode||(Te.lastHPos=pe.getCursor().ch)}function zs(pe){this.keyName=pe}function As(pe){var Te=Qt.macroModeState,Re=Te.lastInsertModeChanges,je=j.keyName(pe);if(!je)return;function qe(){return Re.maybeReset&&(Re.changes=[],Re.maybeReset=!1),Re.changes.push(new zs(je)),!0}(je.indexOf("Delete")!=-1||je.indexOf("Backspace")!=-1)&&j.lookupKey(je,"vim-insert",qe)}function gs(pe,Te,Re,je){var qe=Qt.macroModeState;qe.isPlaying=!0;var Je=!!Te.lastEditActionCommand,vt=Te.inputState;function Rt(){Je?xt.processAction(pe,Te,Te.lastEditActionCommand):xt.evalInput(pe,Te)}function St(jt){if(qe.lastInsertModeChanges.changes.length>0){jt=Te.lastEditActionCommand?jt:1;var yn=qe.lastInsertModeChanges;Cs(pe,yn.changes,jt)}}if(Te.inputState=Te.lastEditInputState,Je&&Te.lastEditActionCommand.interlaceInsertRepeat)for(var zt=0;zt<Re;zt++)Rt(),St(1);else je||Rt(),St(Re);Te.inputState=vt,Te.insertMode&&!je&&Di(pe),qe.isPlaying=!1}function Cs(pe,Te,Re){function je(yn){return typeof yn=="string"?j.commands[yn](pe):yn(pe),!0}var qe=pe.getCursor("head"),Je=Qt.macroModeState.lastInsertModeChanges.visualBlock;Je&&(Lt(pe,qe,Je+1),Re=pe.listSelections().length,pe.setCursor(qe));for(var vt=0;vt<Re;vt++){Je&&pe.setCursor(ot(qe,vt,0));for(var Rt=0;Rt<Te.length;Rt++){var St=Te[Rt];if(St instanceof zs)j.lookupKey(St.keyName,"vim-insert",je);else if(typeof St=="string")pe.replaceSelection(St);else{var zt=pe.getCursor(),jt=ot(zt,0,St[0].length);pe.replaceRange(St[0],zt,jt),pe.setCursor(jt)}}}Je&&pe.setCursor(ot(qe,0,1))}function Rs(pe){var Te=new pe.constructor;return Object.keys(pe).forEach(function(Re){var je=pe[Re];Array.isArray(je)?je=je.slice():je&&typeof je=="object"&&je.constructor!=Object&&(je=Rs(je)),Te[Re]=je}),pe.sel&&(Te.sel={head:pe.sel.head&&vn(pe.sel.head),anchor:pe.sel.anchor&&vn(pe.sel.anchor)}),Te}function Qs(pe,Te,Re){var je=!1,qe=Gn.maybeInitVimState_(pe),Je=qe.visualBlock||qe.wasInVisualBlock,vt=pe.isInMultiSelectMode();if(qe.wasInVisualBlock&&!vt?qe.wasInVisualBlock=!1:vt&&qe.visualBlock&&(qe.wasInVisualBlock=!0),Te=="<Esc>"&&!qe.insertMode&&!qe.visualMode&&vt&&qe.status=="<Esc>")jn(pe);else if(Je||!vt||pe.inVirtualSelectionMode)je=Gn.handleKey(pe,Te,Re);else{var Rt=Rs(qe);pe.operation(function(){pe.curOp.isVimOp=!0,pe.forEachSelection(function(){var St=pe.getCursor("head"),zt=pe.getCursor("anchor"),jt=pt(St,zt)?0:-1,yn=pt(St,zt)?-1:0;St=ot(St,0,jt),zt=ot(zt,0,yn),pe.state.vim.sel.head=St,pe.state.vim.sel.anchor=zt,je=Gn.handleKey(pe,Te,Re),pe.virtualSelection&&(pe.state.vim=Rs(Rt))}),pe.curOp.cursorActivity&&!je&&(pe.curOp.cursorActivity=!1),pe.state.vim=qe},!0)}return je&&!qe.visualMode&&!qe.insert&&qe.visualMode!=pe.somethingSelected()&&Zs(pe,qe),je}return En(),Gn}function B(j){return j.Vim=N(j),j.Vim}I.Vim=B(I)})})();var css={exports:{}};(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("css",function(le,be){var ve=be.inline;be.propertyKeywords||(be=I.resolveMode("text/css"));var we=le.indentUnit,Ae=be.tokenHooks,Se=be.documentTypes||{},Pe=be.mediaTypes||{},Me=be.mediaFeatures||{},Be=be.mediaValueKeywords||{},ze=be.propertyKeywords||{},Ze=be.nonStandardPropertyKeywords||{},ft=be.fontProperties||{},Ye=be.counterDescriptors||{},Ve=be.colorKeywords||{},Dt=be.valueKeywords||{},Nt=be.allowNested,Vt=be.lineComment,Wt=be.supportsAtComponent===!0,Gt=le.highlightNonStandardPropertyKeywords!==!1,tn,Qt;function En(Oe,ke){return tn=ke,Oe}function kn(Oe,ke){var $e=Oe.next();if(Ae[$e]){var Ge=Ae[$e](Oe,ke);if(Ge!==!1)return Ge}if($e=="@")return Oe.eatWhile(/[\w\\\-]/),En("def",Oe.current());if($e=="="||($e=="~"||$e=="|")&&Oe.eat("="))return En(null,"compare");if($e=='"'||$e=="'")return ke.tokenize=Gn($e),ke.tokenize(Oe,ke);if($e=="#")return Oe.eatWhile(/[\w\\\-]/),En("atom","hash");if($e=="!")return Oe.match(/^\s*\w*/),En("keyword","important");if(/\d/.test($e)||$e=="."&&Oe.eat(/\d/))return Oe.eatWhile(/[\w.%]/),En("number","unit");if($e==="-"){if(/[\d.]/.test(Oe.peek()))return Oe.eatWhile(/[\w.%]/),En("number","unit");if(Oe.match(/^-[\w\\\-]*/))return Oe.eatWhile(/[\w\\\-]/),Oe.match(/^\s*:/,!1)?En("variable-2","variable-definition"):En("variable-2","variable");if(Oe.match(/^\w+-/))return En("meta","meta")}else return/[,+>*\/]/.test($e)?En(null,"select-op"):$e=="."&&Oe.match(/^-?[_a-z][_a-z0-9-]*/i)?En("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test($e)?En(null,$e):Oe.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Oe.current())&&(ke.tokenize=An),En("variable callee","variable")):/[\w\\\-]/.test($e)?(Oe.eatWhile(/[\w\\\-]/),En("property","word")):En(null,null)}function Gn(Oe){return function(ke,$e){for(var Ge=!1,rt;(rt=ke.next())!=null;){if(rt==Oe&&!Ge){Oe==")"&&ke.backUp(1);break}Ge=!Ge&&rt=="\\"}return(rt==Oe||!Ge&&Oe!=")")&&($e.tokenize=null),En("string","string")}}function An(Oe,ke){return Oe.next(),Oe.match(/^\s*[\"\')]/,!1)?ke.tokenize=null:ke.tokenize=Gn(")"),En(null,"(")}function jn(Oe,ke,$e){this.type=Oe,this.indent=ke,this.prev=$e}function Mn(Oe,ke,$e,Ge){return Oe.context=new jn($e,ke.indentation()+(Ge===!1?0:we),Oe.context),$e}function Ln(Oe){return Oe.context.prev&&(Oe.context=Oe.context.prev),Oe.context.type}function Et(Oe,ke,$e){return Ue[$e.context.type](Oe,ke,$e)}function We(Oe,ke,$e,Ge){for(var rt=Ge||1;rt>0;rt--)$e.context=$e.context.prev;return Et(Oe,ke,$e)}function xt(Oe){var ke=Oe.current().toLowerCase();Dt.hasOwnProperty(ke)?Qt="atom":Ve.hasOwnProperty(ke)?Qt="keyword":Qt="variable"}var Ue={};return Ue.top=function(Oe,ke,$e){if(Oe=="{")return Mn($e,ke,"block");if(Oe=="}"&&$e.context.prev)return Ln($e);if(Wt&&/@component/i.test(Oe))return Mn($e,ke,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Oe))return Mn($e,ke,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Oe))return Mn($e,ke,"atBlock");if(/^@(font-face|counter-style)/i.test(Oe))return $e.stateArg=Oe,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Oe))return"keyframes";if(Oe&&Oe.charAt(0)=="@")return Mn($e,ke,"at");if(Oe=="hash")Qt="builtin";else if(Oe=="word")Qt="tag";else{if(Oe=="variable-definition")return"maybeprop";if(Oe=="interpolation")return Mn($e,ke,"interpolation");if(Oe==":")return"pseudo";if(Nt&&Oe=="(")return Mn($e,ke,"parens")}return $e.context.type},Ue.block=function(Oe,ke,$e){if(Oe=="word"){var Ge=ke.current().toLowerCase();return ze.hasOwnProperty(Ge)?(Qt="property","maybeprop"):Ze.hasOwnProperty(Ge)?(Qt=Gt?"string-2":"property","maybeprop"):Nt?(Qt=ke.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Qt+=" error","maybeprop")}else return Oe=="meta"?"block":!Nt&&(Oe=="hash"||Oe=="qualifier")?(Qt="error","block"):Ue.top(Oe,ke,$e)},Ue.maybeprop=function(Oe,ke,$e){return Oe==":"?Mn($e,ke,"prop"):Et(Oe,ke,$e)},Ue.prop=function(Oe,ke,$e){if(Oe==";")return Ln($e);if(Oe=="{"&&Nt)return Mn($e,ke,"propBlock");if(Oe=="}"||Oe=="{")return We(Oe,ke,$e);if(Oe=="(")return Mn($e,ke,"parens");if(Oe=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ke.current()))Qt+=" error";else if(Oe=="word")xt(ke);else if(Oe=="interpolation")return Mn($e,ke,"interpolation");return"prop"},Ue.propBlock=function(Oe,ke,$e){return Oe=="}"?Ln($e):Oe=="word"?(Qt="property","maybeprop"):$e.context.type},Ue.parens=function(Oe,ke,$e){return Oe=="{"||Oe=="}"?We(Oe,ke,$e):Oe==")"?Ln($e):Oe=="("?Mn($e,ke,"parens"):Oe=="interpolation"?Mn($e,ke,"interpolation"):(Oe=="word"&&xt(ke),"parens")},Ue.pseudo=function(Oe,ke,$e){return Oe=="meta"?"pseudo":Oe=="word"?(Qt="variable-3",$e.context.type):Et(Oe,ke,$e)},Ue.documentTypes=function(Oe,ke,$e){return Oe=="word"&&Se.hasOwnProperty(ke.current())?(Qt="tag",$e.context.type):Ue.atBlock(Oe,ke,$e)},Ue.atBlock=function(Oe,ke,$e){if(Oe=="(")return Mn($e,ke,"atBlock_parens");if(Oe=="}"||Oe==";")return We(Oe,ke,$e);if(Oe=="{")return Ln($e)&&Mn($e,ke,Nt?"block":"top");if(Oe=="interpolation")return Mn($e,ke,"interpolation");if(Oe=="word"){var Ge=ke.current().toLowerCase();Ge=="only"||Ge=="not"||Ge=="and"||Ge=="or"?Qt="keyword":Pe.hasOwnProperty(Ge)?Qt="attribute":Me.hasOwnProperty(Ge)?Qt="property":Be.hasOwnProperty(Ge)?Qt="keyword":ze.hasOwnProperty(Ge)?Qt="property":Ze.hasOwnProperty(Ge)?Qt=Gt?"string-2":"property":Dt.hasOwnProperty(Ge)?Qt="atom":Ve.hasOwnProperty(Ge)?Qt="keyword":Qt="error"}return $e.context.type},Ue.atComponentBlock=function(Oe,ke,$e){return Oe=="}"?We(Oe,ke,$e):Oe=="{"?Ln($e)&&Mn($e,ke,Nt?"block":"top",!1):(Oe=="word"&&(Qt="error"),$e.context.type)},Ue.atBlock_parens=function(Oe,ke,$e){return Oe==")"?Ln($e):Oe=="{"||Oe=="}"?We(Oe,ke,$e,2):Ue.atBlock(Oe,ke,$e)},Ue.restricted_atBlock_before=function(Oe,ke,$e){return Oe=="{"?Mn($e,ke,"restricted_atBlock"):Oe=="word"&&$e.stateArg=="@counter-style"?(Qt="variable","restricted_atBlock_before"):Et(Oe,ke,$e)},Ue.restricted_atBlock=function(Oe,ke,$e){return Oe=="}"?($e.stateArg=null,Ln($e)):Oe=="word"?($e.stateArg=="@font-face"&&!ft.hasOwnProperty(ke.current().toLowerCase())||$e.stateArg=="@counter-style"&&!Ye.hasOwnProperty(ke.current().toLowerCase())?Qt="error":Qt="property","maybeprop"):"restricted_atBlock"},Ue.keyframes=function(Oe,ke,$e){return Oe=="word"?(Qt="variable","keyframes"):Oe=="{"?Mn($e,ke,"top"):Et(Oe,ke,$e)},Ue.at=function(Oe,ke,$e){return Oe==";"?Ln($e):Oe=="{"||Oe=="}"?We(Oe,ke,$e):(Oe=="word"?Qt="tag":Oe=="hash"&&(Qt="builtin"),"at")},Ue.interpolation=function(Oe,ke,$e){return Oe=="}"?Ln($e):Oe=="{"||Oe==";"?We(Oe,ke,$e):(Oe=="word"?Qt="variable":Oe!="variable"&&Oe!="("&&Oe!=")"&&(Qt="error"),"interpolation")},{startState:function(Oe){return{tokenize:null,state:ve?"block":"top",stateArg:null,context:new jn(ve?"block":"top",Oe||0,null)}},token:function(Oe,ke){if(!ke.tokenize&&Oe.eatSpace())return null;var $e=(ke.tokenize||kn)(Oe,ke);return $e&&typeof $e=="object"&&(tn=$e[1],$e=$e[0]),Qt=$e,tn!="comment"&&(ke.state=Ue[ke.state](tn,Oe,ke)),Qt},indent:function(Oe,ke){var $e=Oe.context,Ge=ke&&ke.charAt(0),rt=$e.indent;return $e.type=="prop"&&(Ge=="}"||Ge==")")&&($e=$e.prev),$e.prev&&(Ge=="}"&&($e.type=="block"||$e.type=="top"||$e.type=="interpolation"||$e.type=="restricted_atBlock")?($e=$e.prev,rt=$e.indent):(Ge==")"&&($e.type=="parens"||$e.type=="atBlock_parens")||Ge=="{"&&($e.type=="at"||$e.type=="atBlock"))&&(rt=Math.max(0,$e.indent-we))),rt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Vt,fold:"brace"}});function N(le){for(var be={},ve=0;ve<le.length;++ve)be[le[ve].toLowerCase()]=!0;return be}var B=["domain","regexp","url","url-prefix"],j=N(B),U=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],q=N(U),Y=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],K=N(Y),G=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],J=N(G),Z=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],ee=N(Z),te=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],se=N(te),re=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],ne=N(re),ce=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],me=N(ce),ue=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],_e=N(ue),fe=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ge=N(fe),ye=B.concat(U).concat(Y).concat(G).concat(Z).concat(te).concat(ue).concat(fe);I.registerHelper("hintWords","css",ye);function xe(le,be){for(var ve=!1,we;(we=le.next())!=null;){if(ve&&we=="/"){be.tokenize=null;break}ve=we=="*"}return["comment","comment"]}I.defineMIME("text/css",{documentTypes:j,mediaTypes:q,mediaFeatures:K,mediaValueKeywords:J,propertyKeywords:ee,nonStandardPropertyKeywords:se,fontProperties:ne,counterDescriptors:me,colorKeywords:_e,valueKeywords:ge,tokenHooks:{"/":function(le,be){return le.eat("*")?(be.tokenize=xe,xe(le,be)):!1}},name:"css"}),I.defineMIME("text/x-scss",{mediaTypes:q,mediaFeatures:K,mediaValueKeywords:J,propertyKeywords:ee,nonStandardPropertyKeywords:se,colorKeywords:_e,valueKeywords:ge,fontProperties:ne,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(le,be){return le.eat("/")?(le.skipToEnd(),["comment","comment"]):le.eat("*")?(be.tokenize=xe,xe(le,be)):["operator","operator"]},":":function(le){return le.match(/^\s*\{/,!1)?[null,null]:!1},$:function(le){return le.match(/^[\w-]+/),le.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(le){return le.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),I.defineMIME("text/x-less",{mediaTypes:q,mediaFeatures:K,mediaValueKeywords:J,propertyKeywords:ee,nonStandardPropertyKeywords:se,colorKeywords:_e,valueKeywords:ge,fontProperties:ne,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(le,be){return le.eat("/")?(le.skipToEnd(),["comment","comment"]):le.eat("*")?(be.tokenize=xe,xe(le,be)):["operator","operator"]},"@":function(le){return le.eat("{")?[null,"interpolation"]:le.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(le.eatWhile(/[\w\\\-]/),le.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),I.defineMIME("text/x-gss",{documentTypes:j,mediaTypes:q,mediaFeatures:K,propertyKeywords:ee,nonStandardPropertyKeywords:se,fontProperties:ne,counterDescriptors:me,colorKeywords:_e,valueKeywords:ge,supportsAtComponent:!0,tokenHooks:{"/":function(le,be){return le.eat("*")?(be.tokenize=xe,xe(le,be)):!1}},name:"css",helperType:"gss"})})})();var cssExports=css.exports,clike={exports:{}};(function(M,$){(function(I){I(codemirrorExports)})(function(I){function N(Be,ze,Ze,ft,Ye,Ve){this.indented=Be,this.column=ze,this.type=Ze,this.info=ft,this.align=Ye,this.prev=Ve}function B(Be,ze,Ze,ft){var Ye=Be.indented;return Be.context&&Be.context.type=="statement"&&Ze!="statement"&&(Ye=Be.context.indented),Be.context=new N(Ye,ze,Ze,ft,null,Be.context)}function j(Be){var ze=Be.context.type;return(ze==")"||ze=="]"||ze=="}")&&(Be.indented=Be.context.indented),Be.context=Be.context.prev}function U(Be,ze,Ze){if(ze.prevToken=="variable"||ze.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(Be.string.slice(0,Ze))||ze.typeAtEndOfLine&&Be.column()==Be.indentation())return!0}function q(Be){for(;;){if(!Be||Be.type=="top")return!0;if(Be.type=="}"&&Be.prev.info!="namespace")return!1;Be=Be.prev}}I.defineMode("clike",function(Be,ze){var Ze=Be.indentUnit,ft=ze.statementIndentUnit||Ze,Ye=ze.dontAlignCalls,Ve=ze.keywords||{},Dt=ze.types||{},Nt=ze.builtin||{},Vt=ze.blockKeywords||{},Wt=ze.defKeywords||{},Gt=ze.atoms||{},tn=ze.hooks||{},Qt=ze.multiLineStrings,En=ze.indentStatements!==!1,kn=ze.indentSwitch!==!1,Gn=ze.namespaceSeparator,An=ze.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,jn=ze.numberStart||/[\d\.]/,Mn=ze.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Ln=ze.isOperatorChar||/[+\-*&%=<>!?|\/]/,Et=ze.isIdentifierChar||/[\w\$_\xa1-\uffff]/,We=ze.isReservedIdentifier||!1,xt,Ue;function Oe(rt,ut){var ct=rt.next();if(tn[ct]){var it=tn[ct](rt,ut);if(it!==!1)return it}if(ct=='"'||ct=="'")return ut.tokenize=ke(ct),ut.tokenize(rt,ut);if(jn.test(ct)){if(rt.backUp(1),rt.match(Mn))return"number";rt.next()}if(An.test(ct))return xt=ct,null;if(ct=="/"){if(rt.eat("*"))return ut.tokenize=$e,$e(rt,ut);if(rt.eat("/"))return rt.skipToEnd(),"comment"}if(Ln.test(ct)){for(;!rt.match(/^\/[\/*]/,!1)&&rt.eat(Ln););return"operator"}if(rt.eatWhile(Et),Gn)for(;rt.match(Gn);)rt.eatWhile(Et);var ot=rt.current();return K(Ve,ot)?(K(Vt,ot)&&(xt="newstatement"),K(Wt,ot)&&(Ue=!0),"keyword"):K(Dt,ot)?"type":K(Nt,ot)||We&&We(ot)?(K(Vt,ot)&&(xt="newstatement"),"builtin"):K(Gt,ot)?"atom":"variable"}function ke(rt){return function(ut,ct){for(var it=!1,ot,Ot=!1;(ot=ut.next())!=null;){if(ot==rt&&!it){Ot=!0;break}it=!it&&ot=="\\"}return(Ot||!(it||Qt))&&(ct.tokenize=null),"string"}}function $e(rt,ut){for(var ct=!1,it;it=rt.next();){if(it=="/"&&ct){ut.tokenize=null;break}ct=it=="*"}return"comment"}function Ge(rt,ut){ze.typeFirstDefinitions&&rt.eol()&&q(ut.context)&&(ut.typeAtEndOfLine=U(rt,ut,rt.pos))}return{startState:function(rt){return{tokenize:null,context:new N((rt||0)-Ze,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(rt,ut){var ct=ut.context;if(rt.sol()&&(ct.align==null&&(ct.align=!1),ut.indented=rt.indentation(),ut.startOfLine=!0),rt.eatSpace())return Ge(rt,ut),null;xt=Ue=null;var it=(ut.tokenize||Oe)(rt,ut);if(it=="comment"||it=="meta")return it;if(ct.align==null&&(ct.align=!0),xt==";"||xt==":"||xt==","&&rt.match(/^\s*(?:\/\/.*)?$/,!1))for(;ut.context.type=="statement";)j(ut);else if(xt=="{")B(ut,rt.column(),"}");else if(xt=="[")B(ut,rt.column(),"]");else if(xt=="(")B(ut,rt.column(),")");else if(xt=="}"){for(;ct.type=="statement";)ct=j(ut);for(ct.type=="}"&&(ct=j(ut));ct.type=="statement";)ct=j(ut)}else xt==ct.type?j(ut):En&&((ct.type=="}"||ct.type=="top")&&xt!=";"||ct.type=="statement"&&xt=="newstatement")&&B(ut,rt.column(),"statement",rt.current());if(it=="variable"&&(ut.prevToken=="def"||ze.typeFirstDefinitions&&U(rt,ut,rt.start)&&q(ut.context)&&rt.match(/^\s*\(/,!1))&&(it="def"),tn.token){var ot=tn.token(rt,ut,it);ot!==void 0&&(it=ot)}return it=="def"&&ze.styleDefs===!1&&(it="variable"),ut.startOfLine=!1,ut.prevToken=Ue?"def":it||xt,Ge(rt,ut),it},indent:function(rt,ut){if(rt.tokenize!=Oe&&rt.tokenize!=null||rt.typeAtEndOfLine)return I.Pass;var ct=rt.context,it=ut&&ut.charAt(0),ot=it==ct.type;if(ct.type=="statement"&&it=="}"&&(ct=ct.prev),ze.dontIndentStatements)for(;ct.type=="statement"&&ze.dontIndentStatements.test(ct.info);)ct=ct.prev;if(tn.indent){var Ot=tn.indent(rt,ct,ut,Ze);if(typeof Ot=="number")return Ot}var dn=ct.prev&&ct.prev.info=="switch";if(ze.allmanIndentation&&/[{(]/.test(it)){for(;ct.type!="top"&&ct.type!="}";)ct=ct.prev;return ct.indented}return ct.type=="statement"?ct.indented+(it=="{"?0:ft):ct.align&&(!Ye||ct.type!=")")?ct.column+(ot?0:1):ct.type==")"&&!ot?ct.indented+ft:ct.indented+(ot?0:Ze)+(!ot&&dn&&!/^(?:case|default)\b/.test(ut)?Ze:0)},electricInput:kn?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function Y(Be){for(var ze={},Ze=Be.split(" "),ft=0;ft<Ze.length;++ft)ze[Ze[ft]]=!0;return ze}function K(Be,ze){return typeof Be=="function"?Be(ze):Be.propertyIsEnumerable(ze)}var G="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",J="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",Z="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",ee="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",te=Y("int long char short double float unsigned signed void bool"),se=Y("SEL instancetype id Class Protocol BOOL");function re(Be){return K(te,Be)||/.+_t$/.test(Be)}function ne(Be){return re(Be)||K(se,Be)}var ce="case do else for if switch while struct enum union",me="struct enum union";function ue(Be,ze){if(!ze.startOfLine)return!1;for(var Ze,ft=null;Ze=Be.peek();){if(Ze=="\\"&&Be.match(/^.$/)){ft=ue;break}else if(Ze=="/"&&Be.match(/^\/[\/\*]/,!1))break;Be.next()}return ze.tokenize=ft,"meta"}function _e(Be,ze){return ze.prevToken=="type"?"type":!1}function fe(Be){return!Be||Be.length<2||Be[0]!="_"?!1:Be[1]=="_"||Be[1]!==Be[1].toLowerCase()}function ge(Be){return Be.eatWhile(/[\w\.']/),"number"}function ye(Be,ze){if(Be.backUp(1),Be.match(/^(?:R|u8R|uR|UR|LR)/)){var Ze=Be.match(/^"([^\s\\()]{0,16})\(/);return Ze?(ze.cpp11RawStringDelim=Ze[1],ze.tokenize=be,be(Be,ze)):!1}return Be.match(/^(?:u8|u|U|L)/)?Be.match(/^["']/,!1)?"string":!1:(Be.next(),!1)}function xe(Be){var ze=/(\w+)::~?(\w+)$/.exec(Be);return ze&&ze[1]==ze[2]}function le(Be,ze){for(var Ze;(Ze=Be.next())!=null;)if(Ze=='"'&&!Be.eat('"')){ze.tokenize=null;break}return"string"}function be(Be,ze){var Ze=ze.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),ft=Be.match(new RegExp(".*?\\)"+Ze+'"'));return ft?ze.tokenize=null:Be.skipToEnd(),"string"}function ve(Be,ze){typeof Be=="string"&&(Be=[Be]);var Ze=[];function ft(Ve){if(Ve)for(var Dt in Ve)Ve.hasOwnProperty(Dt)&&Ze.push(Dt)}ft(ze.keywords),ft(ze.types),ft(ze.builtin),ft(ze.atoms),Ze.length&&(ze.helperType=Be[0],I.registerHelper("hintWords",Be[0],Ze));for(var Ye=0;Ye<Be.length;++Ye)I.defineMIME(Be[Ye],ze)}ve(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:Y(G),types:re,blockKeywords:Y(ce),defKeywords:Y(me),typeFirstDefinitions:!0,atoms:Y("NULL true false"),isReservedIdentifier:fe,hooks:{"#":ue,"*":_e},modeProps:{fold:["brace","include"]}}),ve(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:Y(G+" "+J),types:re,blockKeywords:Y(ce+" class try catch"),defKeywords:Y(me+" class namespace"),typeFirstDefinitions:!0,atoms:Y("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:fe,hooks:{"#":ue,"*":_e,u:ye,U:ye,L:ye,R:ye,0:ge,1:ge,2:ge,3:ge,4:ge,5:ge,6:ge,7:ge,8:ge,9:ge,token:function(Be,ze,Ze){if(Ze=="variable"&&Be.peek()=="("&&(ze.prevToken==";"||ze.prevToken==null||ze.prevToken=="}")&&xe(Be.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),ve("text/x-java",{name:"clike",keywords:Y("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:Y("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:Y("catch class do else finally for if switch try while"),defKeywords:Y("class interface enum @interface"),typeFirstDefinitions:!0,atoms:Y("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(Be){return Be.match("interface",!1)?!1:(Be.eatWhile(/[\w\$_]/),"meta")},'"':function(Be,ze){return Be.match(/""$/)?(ze.tokenize=we,ze.tokenize(Be,ze)):!1}},modeProps:{fold:["brace","import"]}}),ve("text/x-csharp",{name:"clike",keywords:Y("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:Y("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:Y("catch class do else finally for foreach if struct switch try while"),defKeywords:Y("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:Y("true false null"),hooks:{"@":function(Be,ze){return Be.eat('"')?(ze.tokenize=le,le(Be,ze)):(Be.eatWhile(/[\w\$_]/),"meta")}}});function we(Be,ze){for(var Ze=!1;!Be.eol();){if(!Ze&&Be.match('"""')){ze.tokenize=null;break}Ze=Be.next()=="\\"&&!Ze}return"string"}function Ae(Be){return function(ze,Ze){for(var ft;ft=ze.next();)if(ft=="*"&&ze.eat("/"))if(Be==1){Ze.tokenize=null;break}else return Ze.tokenize=Ae(Be-1),Ze.tokenize(ze,Ze);else if(ft=="/"&&ze.eat("*"))return Ze.tokenize=Ae(Be+1),Ze.tokenize(ze,Ze);return"comment"}}ve("text/x-scala",{name:"clike",keywords:Y("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:Y("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:Y("catch class enum do else finally for forSome if match switch try while"),defKeywords:Y("class enum def object package trait type val var"),atoms:Y("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(Be){return Be.eatWhile(/[\w\$_]/),"meta"},'"':function(Be,ze){return Be.match('""')?(ze.tokenize=we,ze.tokenize(Be,ze)):!1},"'":function(Be){return Be.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(Be,ze){var Ze=ze.context;return Ze.type=="}"&&Ze.align&&Be.eat(">")?(ze.context=new N(Ze.indented,Ze.column,Ze.type,Ze.info,null,Ze.prev),"operator"):!1},"/":function(Be,ze){return Be.eat("*")?(ze.tokenize=Ae(1),ze.tokenize(Be,ze)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function Se(Be){return function(ze,Ze){for(var ft=!1,Ye,Ve=!1;!ze.eol();){if(!Be&&!ft&&ze.match('"')){Ve=!0;break}if(Be&&ze.match('"""')){Ve=!0;break}Ye=ze.next(),!ft&&Ye=="$"&&ze.match("{")&&ze.skipTo("}"),ft=!ft&&Ye=="\\"&&!Be}return(Ve||!Be)&&(Ze.tokenize=null),"string"}}ve("text/x-kotlin",{name:"clike",keywords:Y("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:Y("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:Y("catch class do else finally for if where try while enum"),defKeywords:Y("class val var object interface fun"),atoms:Y("true false null this"),hooks:{"@":function(Be){return Be.eatWhile(/[\w\$_]/),"meta"},"*":function(Be,ze){return ze.prevToken=="."?"variable":"operator"},'"':function(Be,ze){return ze.tokenize=Se(Be.match('""')),ze.tokenize(Be,ze)},"/":function(Be,ze){return Be.eat("*")?(ze.tokenize=Ae(1),ze.tokenize(Be,ze)):!1},indent:function(Be,ze,Ze,ft){var Ye=Ze&&Ze.charAt(0);if((Be.prevToken=="}"||Be.prevToken==")")&&Ze=="")return Be.indented;if(Be.prevToken=="operator"&&Ze!="}"&&Be.context.type!="}"||Be.prevToken=="variable"&&Ye=="."||(Be.prevToken=="}"||Be.prevToken==")")&&Ye==".")return ft*2+ze.indented;if(ze.align&&ze.type=="}")return ze.indented+(Be.context.type==(Ze||"").charAt(0)?0:ft)}},modeProps:{closeBrackets:{triples:'"'}}}),ve(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:Y("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:Y("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:Y("for while do if else struct"),builtin:Y("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:Y("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":ue},modeProps:{fold:["brace","include"]}}),ve("text/x-nesc",{name:"clike",keywords:Y(G+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:re,blockKeywords:Y(ce),atoms:Y("null true false"),hooks:{"#":ue},modeProps:{fold:["brace","include"]}}),ve("text/x-objectivec",{name:"clike",keywords:Y(G+" "+Z),types:ne,builtin:Y(ee),blockKeywords:Y(ce+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:Y(me+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:Y("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:fe,hooks:{"#":ue,"*":_e},modeProps:{fold:["brace","include"]}}),ve("text/x-objectivec++",{name:"clike",keywords:Y(G+" "+Z+" "+J),types:ne,builtin:Y(ee),blockKeywords:Y(ce+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:Y(me+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:Y("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:fe,hooks:{"#":ue,"*":_e,u:ye,U:ye,L:ye,R:ye,0:ge,1:ge,2:ge,3:ge,4:ge,5:ge,6:ge,7:ge,8:ge,9:ge,token:function(Be,ze,Ze){if(Ze=="variable"&&Be.peek()=="("&&(ze.prevToken==";"||ze.prevToken==null||ze.prevToken=="}")&&xe(Be.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),ve("text/x-squirrel",{name:"clike",keywords:Y("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:re,blockKeywords:Y("case catch class else for foreach if switch try while"),defKeywords:Y("function local class"),typeFirstDefinitions:!0,atoms:Y("true false null"),hooks:{"#":ue},modeProps:{fold:["brace","include"]}});var Pe=null;function Me(Be){return function(ze,Ze){for(var ft=!1,Ye,Ve=!1;!ze.eol();){if(!ft&&ze.match('"')&&(Be=="single"||ze.match('""'))){Ve=!0;break}if(!ft&&ze.match("``")){Pe=Me(Be),Ve=!0;break}Ye=ze.next(),ft=Be=="single"&&!ft&&Ye=="\\"}return Ve&&(Ze.tokenize=null),"string"}}ve("text/x-ceylon",{name:"clike",keywords:Y("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(Be){var ze=Be.charAt(0);return ze===ze.toUpperCase()&&ze!==ze.toLowerCase()},blockKeywords:Y("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:Y("class dynamic function interface module object package value"),builtin:Y("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:Y("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(Be){return Be.eatWhile(/[\w\$_]/),"meta"},'"':function(Be,ze){return ze.tokenize=Me(Be.match('""')?"triple":"single"),ze.tokenize(Be,ze)},"`":function(Be,ze){return!Pe||!Be.match("`")?!1:(ze.tokenize=Pe,Pe=null,ze.tokenize(Be,ze))},"'":function(Be){return Be.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(Be,ze,Ze){if((Ze=="variable"||Ze=="type")&&ze.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();var clikeExports=clike.exports;(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("diff",function(){var N={"+":"positive","-":"negative","@":"meta"};return{token:function(B){var j=B.string.search(/[\t ]+?$/);if(!B.sol()||j===0)return B.skipToEnd(),("error "+(N[B.string.charAt(0)]||"")).replace(/ $/,"");var U=N[B.peek()]||B.skipToEnd();return j===-1?B.skipToEnd():B.pos=j,U}}}),I.defineMIME("text/x-diff","diff")})})();(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("go",function(N){var B=N.indentUnit,j={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},U={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},q=/[+\-*&^%:=<>!|\/]/,Y;function K(se,re){var ne=se.next();if(ne=='"'||ne=="'"||ne=="`")return re.tokenize=G(ne),re.tokenize(se,re);if(/[\d\.]/.test(ne))return ne=="."?se.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):ne=="0"?se.match(/^[xX][0-9a-fA-F]+/)||se.match(/^0[0-7]+/):se.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(ne))return Y=ne,null;if(ne=="/"){if(se.eat("*"))return re.tokenize=J,J(se,re);if(se.eat("/"))return se.skipToEnd(),"comment"}if(q.test(ne))return se.eatWhile(q),"operator";se.eatWhile(/[\w\$_\xa1-\uffff]/);var ce=se.current();return j.propertyIsEnumerable(ce)?((ce=="case"||ce=="default")&&(Y="case"),"keyword"):U.propertyIsEnumerable(ce)?"atom":"variable"}function G(se){return function(re,ne){for(var ce=!1,me,ue=!1;(me=re.next())!=null;){if(me==se&&!ce){ue=!0;break}ce=!ce&&se!="`"&&me=="\\"}return(ue||!(ce||se=="`"))&&(ne.tokenize=K),"string"}}function J(se,re){for(var ne=!1,ce;ce=se.next();){if(ce=="/"&&ne){re.tokenize=K;break}ne=ce=="*"}return"comment"}function Z(se,re,ne,ce,me){this.indented=se,this.column=re,this.type=ne,this.align=ce,this.prev=me}function ee(se,re,ne){return se.context=new Z(se.indented,re,ne,null,se.context)}function te(se){if(se.context.prev){var re=se.context.type;return(re==")"||re=="]"||re=="}")&&(se.indented=se.context.indented),se.context=se.context.prev}}return{startState:function(se){return{tokenize:null,context:new Z((se||0)-B,0,"top",!1),indented:0,startOfLine:!0}},token:function(se,re){var ne=re.context;if(se.sol()&&(ne.align==null&&(ne.align=!1),re.indented=se.indentation(),re.startOfLine=!0,ne.type=="case"&&(ne.type="}")),se.eatSpace())return null;Y=null;var ce=(re.tokenize||K)(se,re);return ce=="comment"||(ne.align==null&&(ne.align=!0),Y=="{"?ee(re,se.column(),"}"):Y=="["?ee(re,se.column(),"]"):Y=="("?ee(re,se.column(),")"):Y=="case"?ne.type="case":(Y=="}"&&ne.type=="}"||Y==ne.type)&&te(re),re.startOfLine=!1),ce},indent:function(se,re){if(se.tokenize!=K&&se.tokenize!=null)return I.Pass;var ne=se.context,ce=re&&re.charAt(0);if(ne.type=="case"&&/^(?:case|default)\b/.test(re))return se.context.type="}",ne.indented;var me=ce==ne.type;return ne.align?ne.column+(me?0:1):ne.indented+(me?0:B)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),I.defineMIME("text/x-go","go")})})();var markdown$1={exports:{}},xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){var N={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},B={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};I.defineMode("xml",function(j,U){var q=j.indentUnit,Y={},K=U.htmlMode?N:B;for(var G in K)Y[G]=K[G];for(var G in U)Y[G]=U[G];var J,Z;function ee(Se,Pe){function Me(Ze){return Pe.tokenize=Ze,Ze(Se,Pe)}var Be=Se.next();if(Be=="<")return Se.eat("!")?Se.eat("[")?Se.match("CDATA[")?Me(re("atom","]]>")):null:Se.match("--")?Me(re("comment","-->")):Se.match("DOCTYPE",!0,!0)?(Se.eatWhile(/[\w\._\-]/),Me(ne(1))):null:Se.eat("?")?(Se.eatWhile(/[\w\._\-]/),Pe.tokenize=re("meta","?>"),"meta"):(J=Se.eat("/")?"closeTag":"openTag",Pe.tokenize=te,"tag bracket");if(Be=="&"){var ze;return Se.eat("#")?Se.eat("x")?ze=Se.eatWhile(/[a-fA-F\d]/)&&Se.eat(";"):ze=Se.eatWhile(/[\d]/)&&Se.eat(";"):ze=Se.eatWhile(/[\w\.\-:]/)&&Se.eat(";"),ze?"atom":"error"}else return Se.eatWhile(/[^&<]/),null}ee.isInText=!0;function te(Se,Pe){var Me=Se.next();if(Me==">"||Me=="/"&&Se.eat(">"))return Pe.tokenize=ee,J=Me==">"?"endTag":"selfcloseTag","tag bracket";if(Me=="=")return J="equals",null;if(Me=="<"){Pe.tokenize=ee,Pe.state=fe,Pe.tagName=Pe.tagStart=null;var Be=Pe.tokenize(Se,Pe);return Be?Be+" tag error":"tag error"}else return/[\'\"]/.test(Me)?(Pe.tokenize=se(Me),Pe.stringStartCol=Se.column(),Pe.tokenize(Se,Pe)):(Se.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function se(Se){var Pe=function(Me,Be){for(;!Me.eol();)if(Me.next()==Se){Be.tokenize=te;break}return"string"};return Pe.isInAttribute=!0,Pe}function re(Se,Pe){return function(Me,Be){for(;!Me.eol();){if(Me.match(Pe)){Be.tokenize=ee;break}Me.next()}return Se}}function ne(Se){return function(Pe,Me){for(var Be;(Be=Pe.next())!=null;){if(Be=="<")return Me.tokenize=ne(Se+1),Me.tokenize(Pe,Me);if(Be==">")if(Se==1){Me.tokenize=ee;break}else return Me.tokenize=ne(Se-1),Me.tokenize(Pe,Me)}return"meta"}}function ce(Se){return Se&&Se.toLowerCase()}function me(Se,Pe,Me){this.prev=Se.context,this.tagName=Pe||"",this.indent=Se.indented,this.startOfLine=Me,(Y.doNotIndent.hasOwnProperty(Pe)||Se.context&&Se.context.noIndent)&&(this.noIndent=!0)}function ue(Se){Se.context&&(Se.context=Se.context.prev)}function _e(Se,Pe){for(var Me;;){if(!Se.context||(Me=Se.context.tagName,!Y.contextGrabbers.hasOwnProperty(ce(Me))||!Y.contextGrabbers[ce(Me)].hasOwnProperty(ce(Pe))))return;ue(Se)}}function fe(Se,Pe,Me){return Se=="openTag"?(Me.tagStart=Pe.column(),ge):Se=="closeTag"?ye:fe}function ge(Se,Pe,Me){return Se=="word"?(Me.tagName=Pe.current(),Z="tag",be):Y.allowMissingTagName&&Se=="endTag"?(Z="tag bracket",be(Se,Pe,Me)):(Z="error",ge)}function ye(Se,Pe,Me){if(Se=="word"){var Be=Pe.current();return Me.context&&Me.context.tagName!=Be&&Y.implicitlyClosed.hasOwnProperty(ce(Me.context.tagName))&&ue(Me),Me.context&&Me.context.tagName==Be||Y.matchClosing===!1?(Z="tag",xe):(Z="tag error",le)}else return Y.allowMissingTagName&&Se=="endTag"?(Z="tag bracket",xe(Se,Pe,Me)):(Z="error",le)}function xe(Se,Pe,Me){return Se!="endTag"?(Z="error",xe):(ue(Me),fe)}function le(Se,Pe,Me){return Z="error",xe(Se,Pe,Me)}function be(Se,Pe,Me){if(Se=="word")return Z="attribute",ve;if(Se=="endTag"||Se=="selfcloseTag"){var Be=Me.tagName,ze=Me.tagStart;return Me.tagName=Me.tagStart=null,Se=="selfcloseTag"||Y.autoSelfClosers.hasOwnProperty(ce(Be))?_e(Me,Be):(_e(Me,Be),Me.context=new me(Me,Be,ze==Me.indented)),fe}return Z="error",be}function ve(Se,Pe,Me){return Se=="equals"?we:(Y.allowMissing||(Z="error"),be(Se,Pe,Me))}function we(Se,Pe,Me){return Se=="string"?Ae:Se=="word"&&Y.allowUnquoted?(Z="string",be):(Z="error",be(Se,Pe,Me))}function Ae(Se,Pe,Me){return Se=="string"?Ae:be(Se,Pe,Me)}return{startState:function(Se){var Pe={tokenize:ee,state:fe,indented:Se||0,tagName:null,tagStart:null,context:null};return Se!=null&&(Pe.baseIndent=Se),Pe},token:function(Se,Pe){if(!Pe.tagName&&Se.sol()&&(Pe.indented=Se.indentation()),Se.eatSpace())return null;J=null;var Me=Pe.tokenize(Se,Pe);return(Me||J)&&Me!="comment"&&(Z=null,Pe.state=Pe.state(J||Me,Se,Pe),Z&&(Me=Z=="error"?Me+" error":Z)),Me},indent:function(Se,Pe,Me){var Be=Se.context;if(Se.tokenize.isInAttribute)return Se.tagStart==Se.indented?Se.stringStartCol+1:Se.indented+q;if(Be&&Be.noIndent)return I.Pass;if(Se.tokenize!=te&&Se.tokenize!=ee)return Me?Me.match(/^(\s*)/)[0].length:0;if(Se.tagName)return Y.multilineTagIndentPastTag!==!1?Se.tagStart+Se.tagName.length+2:Se.tagStart+q*(Y.multilineTagIndentFactor||1);if(Y.alignCDATA&&/<!\[CDATA\[/.test(Pe))return 0;var ze=Pe&&/^<(\/)?([\w_:\.-]*)/.exec(Pe);if(ze&&ze[1])for(;Be;)if(Be.tagName==ze[2]){Be=Be.prev;break}else if(Y.implicitlyClosed.hasOwnProperty(ce(Be.tagName)))Be=Be.prev;else break;else if(ze)for(;Be;){var Ze=Y.contextGrabbers[ce(Be.tagName)];if(Ze&&Ze.hasOwnProperty(ce(ze[2])))Be=Be.prev;else break}for(;Be&&Be.prev&&!Be.startOfLine;)Be=Be.prev;return Be?Be.indent+q:Se.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Y.htmlMode?"html":"xml",helperType:Y.htmlMode?"html":"xml",skipAttribute:function(Se){Se.state==we&&(Se.state=be)},xmlCurrentTag:function(Se){return Se.tagName?{name:Se.tagName,close:Se.type=="closeTag"}:null},xmlCurrentContext:function(Se){for(var Pe=[],Me=Se.context;Me;Me=Me.prev)Pe.push(Me.tagName);return Pe.reverse()}}}),I.defineMIME("text/xml","xml"),I.defineMIME("application/xml","xml"),I.mimeModes.hasOwnProperty("text/html")||I.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){I.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var N=0;N<I.modeInfo.length;N++){var B=I.modeInfo[N];B.mimes&&(B.mime=B.mimes[0])}I.findModeByMIME=function(j){j=j.toLowerCase();for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.mime==j)return q;if(q.mimes){for(var Y=0;Y<q.mimes.length;Y++)if(q.mimes[Y]==j)return q}}if(/\+xml$/.test(j))return I.findModeByMIME("application/xml");if(/\+json$/.test(j))return I.findModeByMIME("application/json")},I.findModeByExtension=function(j){j=j.toLowerCase();for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.ext){for(var Y=0;Y<q.ext.length;Y++)if(q.ext[Y]==j)return q}}},I.findModeByFileName=function(j){for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.file&&q.file.test(j))return q}var Y=j.lastIndexOf("."),K=Y>-1&&j.substring(Y+1,j.length);if(K)return I.findModeByExtension(K)},I.findModeByName=function(j){j=j.toLowerCase();for(var U=0;U<I.modeInfo.length;U++){var q=I.modeInfo[U];if(q.name.toLowerCase()==j)return q;if(q.alias){for(var Y=0;Y<q.alias.length;Y++)if(q.alias[Y].toLowerCase()==j)return q}}}})}()),meta.exports}var hasRequiredMarkdown;function requireMarkdown(){return hasRequiredMarkdown||(hasRequiredMarkdown=1,function(M,$){(function(I){I(codemirrorExports,requireXml(),requireMeta())})(function(I){I.defineMode("markdown",function(N,B){var j=I.getMode(N,"text/html"),U=j.name=="null";function q(Ye){if(I.findModeByName){var Ve=I.findModeByName(Ye);Ve&&(Ye=Ve.mime||Ve.mimes[0])}var Dt=I.getMode(N,Ye);return Dt.name=="null"?null:Dt}B.highlightFormatting===void 0&&(B.highlightFormatting=!1),B.maxBlockquoteDepth===void 0&&(B.maxBlockquoteDepth=0),B.taskLists===void 0&&(B.taskLists=!1),B.strikethrough===void 0&&(B.strikethrough=!1),B.emoji===void 0&&(B.emoji=!1),B.fencedCodeBlockHighlighting===void 0&&(B.fencedCodeBlockHighlighting=!0),B.fencedCodeBlockDefaultMode===void 0&&(B.fencedCodeBlockDefaultMode="text/plain"),B.xml===void 0&&(B.xml=!0),B.tokenTypeOverrides===void 0&&(B.tokenTypeOverrides={});var Y={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var K in Y)Y.hasOwnProperty(K)&&B.tokenTypeOverrides[K]&&(Y[K]=B.tokenTypeOverrides[K]);var G=/^([*\-_])(?:\s*\1){2,}\s*$/,J=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Z=/^\[(x| )\](?=\s)/i,ee=B.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,te=/^ {0,3}(?:\={1,}|-{2,})\s*$/,se=/^[^#!\[\]*_\\<>` "'(~:]+/,re=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,ce=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,me=" ";function ue(Ye,Ve,Dt){return Ve.f=Ve.inline=Dt,Dt(Ye,Ve)}function _e(Ye,Ve,Dt){return Ve.f=Ve.block=Dt,Dt(Ye,Ve)}function fe(Ye){return!Ye||!/\S/.test(Ye.string)}function ge(Ye){if(Ye.linkTitle=!1,Ye.linkHref=!1,Ye.linkText=!1,Ye.em=!1,Ye.strong=!1,Ye.strikethrough=!1,Ye.quote=0,Ye.indentedCode=!1,Ye.f==xe){var Ve=U;if(!Ve){var Dt=I.innerMode(j,Ye.htmlState);Ve=Dt.mode.name=="xml"&&Dt.state.tagStart===null&&!Dt.state.context&&Dt.state.tokenize.isInText}Ve&&(Ye.f=we,Ye.block=ye,Ye.htmlState=null)}return Ye.trailingSpace=0,Ye.trailingSpaceNewLine=!1,Ye.prevLine=Ye.thisLine,Ye.thisLine={stream:null},null}function ye(Ye,Ve){var Dt=Ye.column()===Ve.indentation,Nt=fe(Ve.prevLine.stream),Vt=Ve.indentedCode,Wt=Ve.prevLine.hr,Gt=Ve.list!==!1,tn=(Ve.listStack[Ve.listStack.length-1]||0)+3;Ve.indentedCode=!1;var Qt=Ve.indentation;if(Ve.indentationDiff===null&&(Ve.indentationDiff=Ve.indentation,Gt)){for(Ve.list=null;Qt<Ve.listStack[Ve.listStack.length-1];)Ve.listStack.pop(),Ve.listStack.length?Ve.indentation=Ve.listStack[Ve.listStack.length-1]:Ve.list=!1;Ve.list!==!1&&(Ve.indentationDiff=Qt-Ve.listStack[Ve.listStack.length-1])}var En=!Nt&&!Wt&&!Ve.prevLine.header&&(!Gt||!Vt)&&!Ve.prevLine.fencedCodeEnd,kn=(Ve.list===!1||Wt||Nt)&&Ve.indentation<=tn&&Ye.match(G),Gn=null;if(Ve.indentationDiff>=4&&(Vt||Ve.prevLine.fencedCodeEnd||Ve.prevLine.header||Nt))return Ye.skipToEnd(),Ve.indentedCode=!0,Y.code;if(Ye.eatSpace())return null;if(Dt&&Ve.indentation<=tn&&(Gn=Ye.match(ee))&&Gn[1].length<=6)return Ve.quote=0,Ve.header=Gn[1].length,Ve.thisLine.header=!0,B.highlightFormatting&&(Ve.formatting="header"),Ve.f=Ve.inline,be(Ve);if(Ve.indentation<=tn&&Ye.eat(">"))return Ve.quote=Dt?1:Ve.quote+1,B.highlightFormatting&&(Ve.formatting="quote"),Ye.eatSpace(),be(Ve);if(!kn&&!Ve.setext&&Dt&&Ve.indentation<=tn&&(Gn=Ye.match(J))){var An=Gn[1]?"ol":"ul";return Ve.indentation=Qt+Ye.current().length,Ve.list=!0,Ve.quote=0,Ve.listStack.push(Ve.indentation),Ve.em=!1,Ve.strong=!1,Ve.code=!1,Ve.strikethrough=!1,B.taskLists&&Ye.match(Z,!1)&&(Ve.taskList=!0),Ve.f=Ve.inline,B.highlightFormatting&&(Ve.formatting=["list","list-"+An]),be(Ve)}else{if(Dt&&Ve.indentation<=tn&&(Gn=Ye.match(re,!0)))return Ve.quote=0,Ve.fencedEndRE=new RegExp(Gn[1]+"+ *$"),Ve.localMode=B.fencedCodeBlockHighlighting&&q(Gn[2]||B.fencedCodeBlockDefaultMode),Ve.localMode&&(Ve.localState=I.startState(Ve.localMode)),Ve.f=Ve.block=le,B.highlightFormatting&&(Ve.formatting="code-block"),Ve.code=-1,be(Ve);if(Ve.setext||(!En||!Gt)&&!Ve.quote&&Ve.list===!1&&!Ve.code&&!kn&&!ne.test(Ye.string)&&(Gn=Ye.lookAhead(1))&&(Gn=Gn.match(te)))return Ve.setext?(Ve.header=Ve.setext,Ve.setext=0,Ye.skipToEnd(),B.highlightFormatting&&(Ve.formatting="header")):(Ve.header=Gn[0].charAt(0)=="="?1:2,Ve.setext=Ve.header),Ve.thisLine.header=!0,Ve.f=Ve.inline,be(Ve);if(kn)return Ye.skipToEnd(),Ve.hr=!0,Ve.thisLine.hr=!0,Y.hr;if(Ye.peek()==="[")return ue(Ye,Ve,Be)}return ue(Ye,Ve,Ve.inline)}function xe(Ye,Ve){var Dt=j.token(Ye,Ve.htmlState);if(!U){var Nt=I.innerMode(j,Ve.htmlState);(Nt.mode.name=="xml"&&Nt.state.tagStart===null&&!Nt.state.context&&Nt.state.tokenize.isInText||Ve.md_inside&&Ye.current().indexOf(">")>-1)&&(Ve.f=we,Ve.block=ye,Ve.htmlState=null)}return Dt}function le(Ye,Ve){var Dt=Ve.listStack[Ve.listStack.length-1]||0,Nt=Ve.indentation<Dt,Vt=Dt+3;if(Ve.fencedEndRE&&Ve.indentation<=Vt&&(Nt||Ye.match(Ve.fencedEndRE))){B.highlightFormatting&&(Ve.formatting="code-block");var Wt;return Nt||(Wt=be(Ve)),Ve.localMode=Ve.localState=null,Ve.block=ye,Ve.f=we,Ve.fencedEndRE=null,Ve.code=0,Ve.thisLine.fencedCodeEnd=!0,Nt?_e(Ye,Ve,Ve.block):Wt}else return Ve.localMode?Ve.localMode.token(Ye,Ve.localState):(Ye.skipToEnd(),Y.code)}function be(Ye){var Ve=[];if(Ye.formatting){Ve.push(Y.formatting),typeof Ye.formatting=="string"&&(Ye.formatting=[Ye.formatting]);for(var Dt=0;Dt<Ye.formatting.length;Dt++)Ve.push(Y.formatting+"-"+Ye.formatting[Dt]),Ye.formatting[Dt]==="header"&&Ve.push(Y.formatting+"-"+Ye.formatting[Dt]+"-"+Ye.header),Ye.formatting[Dt]==="quote"&&(!B.maxBlockquoteDepth||B.maxBlockquoteDepth>=Ye.quote?Ve.push(Y.formatting+"-"+Ye.formatting[Dt]+"-"+Ye.quote):Ve.push("error"))}if(Ye.taskOpen)return Ve.push("meta"),Ve.length?Ve.join(" "):null;if(Ye.taskClosed)return Ve.push("property"),Ve.length?Ve.join(" "):null;if(Ye.linkHref?Ve.push(Y.linkHref,"url"):(Ye.strong&&Ve.push(Y.strong),Ye.em&&Ve.push(Y.em),Ye.strikethrough&&Ve.push(Y.strikethrough),Ye.emoji&&Ve.push(Y.emoji),Ye.linkText&&Ve.push(Y.linkText),Ye.code&&Ve.push(Y.code),Ye.image&&Ve.push(Y.image),Ye.imageAltText&&Ve.push(Y.imageAltText,"link"),Ye.imageMarker&&Ve.push(Y.imageMarker)),Ye.header&&Ve.push(Y.header,Y.header+"-"+Ye.header),Ye.quote&&(Ve.push(Y.quote),!B.maxBlockquoteDepth||B.maxBlockquoteDepth>=Ye.quote?Ve.push(Y.quote+"-"+Ye.quote):Ve.push(Y.quote+"-"+B.maxBlockquoteDepth)),Ye.list!==!1){var Nt=(Ye.listStack.length-1)%3;Nt?Nt===1?Ve.push(Y.list2):Ve.push(Y.list3):Ve.push(Y.list1)}return Ye.trailingSpaceNewLine?Ve.push("trailing-space-new-line"):Ye.trailingSpace&&Ve.push("trailing-space-"+(Ye.trailingSpace%2?"a":"b")),Ve.length?Ve.join(" "):null}function ve(Ye,Ve){if(Ye.match(se,!0))return be(Ve)}function we(Ye,Ve){var Dt=Ve.text(Ye,Ve);if(typeof Dt<"u")return Dt;if(Ve.list)return Ve.list=null,be(Ve);if(Ve.taskList){var Nt=Ye.match(Z,!0)[1]===" ";return Nt?Ve.taskOpen=!0:Ve.taskClosed=!0,B.highlightFormatting&&(Ve.formatting="task"),Ve.taskList=!1,be(Ve)}if(Ve.taskOpen=!1,Ve.taskClosed=!1,Ve.header&&Ye.match(/^#+$/,!0))return B.highlightFormatting&&(Ve.formatting="header"),be(Ve);var Vt=Ye.next();if(Ve.linkTitle){Ve.linkTitle=!1;var Wt=Vt;Vt==="("&&(Wt=")"),Wt=(Wt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Gt="^\\s*(?:[^"+Wt+"\\\\]+|\\\\\\\\|\\\\.)"+Wt;if(Ye.match(new RegExp(Gt),!0))return Y.linkHref}if(Vt==="`"){var tn=Ve.formatting;B.highlightFormatting&&(Ve.formatting="code"),Ye.eatWhile("`");var Qt=Ye.current().length;if(Ve.code==0&&(!Ve.quote||Qt==1))return Ve.code=Qt,be(Ve);if(Qt==Ve.code){var En=be(Ve);return Ve.code=0,En}else return Ve.formatting=tn,be(Ve)}else if(Ve.code)return be(Ve);if(Vt==="\\"&&(Ye.next(),B.highlightFormatting)){var kn=be(Ve),Gn=Y.formatting+"-escape";return kn?kn+" "+Gn:Gn}if(Vt==="!"&&Ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ve.imageMarker=!0,Ve.image=!0,B.highlightFormatting&&(Ve.formatting="image"),be(Ve);if(Vt==="["&&Ve.imageMarker&&Ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ve.imageMarker=!1,Ve.imageAltText=!0,B.highlightFormatting&&(Ve.formatting="image"),be(Ve);if(Vt==="]"&&Ve.imageAltText){B.highlightFormatting&&(Ve.formatting="image");var kn=be(Ve);return Ve.imageAltText=!1,Ve.image=!1,Ve.inline=Ve.f=Se,kn}if(Vt==="["&&!Ve.image)return Ve.linkText&&Ye.match(/^.*?\]/)||(Ve.linkText=!0,B.highlightFormatting&&(Ve.formatting="link")),be(Ve);if(Vt==="]"&&Ve.linkText){B.highlightFormatting&&(Ve.formatting="link");var kn=be(Ve);return Ve.linkText=!1,Ve.inline=Ve.f=Ye.match(/\(.*?\)| ?\[.*?\]/,!1)?Se:we,kn}if(Vt==="<"&&Ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=Ae,B.highlightFormatting&&(Ve.formatting="link");var kn=be(Ve);return kn?kn+=" ":kn="",kn+Y.linkInline}if(Vt==="<"&&Ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=Ae,B.highlightFormatting&&(Ve.formatting="link");var kn=be(Ve);return kn?kn+=" ":kn="",kn+Y.linkEmail}if(B.xml&&Vt==="<"&&Ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var An=Ye.string.indexOf(">",Ye.pos);if(An!=-1){var jn=Ye.string.substring(Ye.start,An);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(jn)&&(Ve.md_inside=!0)}return Ye.backUp(1),Ve.htmlState=I.startState(j),_e(Ye,Ve,xe)}if(B.xml&&Vt==="<"&&Ye.match(/^\/\w*?>/))return Ve.md_inside=!1,"tag";if(Vt==="*"||Vt==="_"){for(var Mn=1,Ln=Ye.pos==1?" ":Ye.string.charAt(Ye.pos-2);Mn<3&&Ye.eat(Vt);)Mn++;var Et=Ye.peek()||" ",We=!/\s/.test(Et)&&(!ce.test(Et)||/\s/.test(Ln)||ce.test(Ln)),xt=!/\s/.test(Ln)&&(!ce.test(Ln)||/\s/.test(Et)||ce.test(Et)),Ue=null,Oe=null;if(Mn%2&&(!Ve.em&&We&&(Vt==="*"||!xt||ce.test(Ln))?Ue=!0:Ve.em==Vt&&xt&&(Vt==="*"||!We||ce.test(Et))&&(Ue=!1)),Mn>1&&(!Ve.strong&&We&&(Vt==="*"||!xt||ce.test(Ln))?Oe=!0:Ve.strong==Vt&&xt&&(Vt==="*"||!We||ce.test(Et))&&(Oe=!1)),Oe!=null||Ue!=null){B.highlightFormatting&&(Ve.formatting=Ue==null?"strong":Oe==null?"em":"strong em"),Ue===!0&&(Ve.em=Vt),Oe===!0&&(Ve.strong=Vt);var En=be(Ve);return Ue===!1&&(Ve.em=!1),Oe===!1&&(Ve.strong=!1),En}}else if(Vt===" "&&(Ye.eat("*")||Ye.eat("_"))){if(Ye.peek()===" ")return be(Ve);Ye.backUp(1)}if(B.strikethrough){if(Vt==="~"&&Ye.eatWhile(Vt)){if(Ve.strikethrough){B.highlightFormatting&&(Ve.formatting="strikethrough");var En=be(Ve);return Ve.strikethrough=!1,En}else if(Ye.match(/^[^\s]/,!1))return Ve.strikethrough=!0,B.highlightFormatting&&(Ve.formatting="strikethrough"),be(Ve)}else if(Vt===" "&&Ye.match("~~",!0)){if(Ye.peek()===" ")return be(Ve);Ye.backUp(2)}}if(B.emoji&&Vt===":"&&Ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ve.emoji=!0,B.highlightFormatting&&(Ve.formatting="emoji");var ke=be(Ve);return Ve.emoji=!1,ke}return Vt===" "&&(Ye.match(/^ +$/,!1)?Ve.trailingSpace++:Ve.trailingSpace&&(Ve.trailingSpaceNewLine=!0)),be(Ve)}function Ae(Ye,Ve){var Dt=Ye.next();if(Dt===">"){Ve.f=Ve.inline=we,B.highlightFormatting&&(Ve.formatting="link");var Nt=be(Ve);return Nt?Nt+=" ":Nt="",Nt+Y.linkInline}return Ye.match(/^[^>]+/,!0),Y.linkInline}function Se(Ye,Ve){if(Ye.eatSpace())return null;var Dt=Ye.next();return Dt==="("||Dt==="["?(Ve.f=Ve.inline=Me(Dt==="("?")":"]"),B.highlightFormatting&&(Ve.formatting="link-string"),Ve.linkHref=!0,be(Ve)):"error"}var Pe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Me(Ye){return function(Ve,Dt){var Nt=Ve.next();if(Nt===Ye){Dt.f=Dt.inline=we,B.highlightFormatting&&(Dt.formatting="link-string");var Vt=be(Dt);return Dt.linkHref=!1,Vt}return Ve.match(Pe[Ye]),Dt.linkHref=!0,be(Dt)}}function Be(Ye,Ve){return Ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ve.f=ze,Ye.next(),B.highlightFormatting&&(Ve.formatting="link"),Ve.linkText=!0,be(Ve)):ue(Ye,Ve,we)}function ze(Ye,Ve){if(Ye.match("]:",!0)){Ve.f=Ve.inline=Ze,B.highlightFormatting&&(Ve.formatting="link");var Dt=be(Ve);return Ve.linkText=!1,Dt}return Ye.match(/^([^\]\\]|\\.)+/,!0),Y.linkText}function Ze(Ye,Ve){return Ye.eatSpace()?null:(Ye.match(/^[^\s]+/,!0),Ye.peek()===void 0?Ve.linkTitle=!0:Ye.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),Ve.f=Ve.inline=we,Y.linkHref+" url")}var ft={startState:function(){return{f:ye,prevLine:{stream:null},thisLine:{stream:null},block:ye,htmlState:null,indentation:0,inline:we,text:ve,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ye){return{f:Ye.f,prevLine:Ye.prevLine,thisLine:Ye.thisLine,block:Ye.block,htmlState:Ye.htmlState&&I.copyState(j,Ye.htmlState),indentation:Ye.indentation,localMode:Ye.localMode,localState:Ye.localMode?I.copyState(Ye.localMode,Ye.localState):null,inline:Ye.inline,text:Ye.text,formatting:!1,linkText:Ye.linkText,linkTitle:Ye.linkTitle,linkHref:Ye.linkHref,code:Ye.code,em:Ye.em,strong:Ye.strong,strikethrough:Ye.strikethrough,emoji:Ye.emoji,header:Ye.header,setext:Ye.setext,hr:Ye.hr,taskList:Ye.taskList,list:Ye.list,listStack:Ye.listStack.slice(0),quote:Ye.quote,indentedCode:Ye.indentedCode,trailingSpace:Ye.trailingSpace,trailingSpaceNewLine:Ye.trailingSpaceNewLine,md_inside:Ye.md_inside,fencedEndRE:Ye.fencedEndRE}},token:function(Ye,Ve){if(Ve.formatting=!1,Ye!=Ve.thisLine.stream){if(Ve.header=0,Ve.hr=!1,Ye.match(/^\s*$/,!0))return ge(Ve),null;if(Ve.prevLine=Ve.thisLine,Ve.thisLine={stream:Ye},Ve.taskList=!1,Ve.trailingSpace=0,Ve.trailingSpaceNewLine=!1,!Ve.localState&&(Ve.f=Ve.block,Ve.f!=xe)){var Dt=Ye.match(/^\s*/,!0)[0].replace(/\t/g,me).length;if(Ve.indentation=Dt,Ve.indentationDiff=null,Dt>0)return null}}return Ve.f(Ye,Ve)},innerMode:function(Ye){return Ye.block==xe?{state:Ye.htmlState,mode:j}:Ye.localState?{state:Ye.localState,mode:Ye.localMode}:{state:Ye,mode:ft}},indent:function(Ye,Ve,Dt){return Ye.block==xe&&j.indent?j.indent(Ye.htmlState,Ve,Dt):Ye.localState&&Ye.localMode.indent?Ye.localMode.indent(Ye.localState,Ve,Dt):I.Pass},blankLine:ge,getType:be,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ft},"xml"),I.defineMIME("text/markdown","markdown"),I.defineMIME("text/x-markdown","markdown")})}()),markdown$1.exports}var overlay={exports:{}},hasRequiredOverlay;function requireOverlay(){return hasRequiredOverlay||(hasRequiredOverlay=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){I.overlayMode=function(N,B,j){return{startState:function(){return{base:I.startState(N),overlay:I.startState(B),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(U){return{base:I.copyState(N,U.base),overlay:I.copyState(B,U.overlay),basePos:U.basePos,baseCur:null,overlayPos:U.overlayPos,overlayCur:null}},token:function(U,q){return(U!=q.streamSeen||Math.min(q.basePos,q.overlayPos)<U.start)&&(q.streamSeen=U,q.basePos=q.overlayPos=U.start),U.start==q.basePos&&(q.baseCur=N.token(U,q.base),q.basePos=U.pos),U.start==q.overlayPos&&(U.pos=U.start,q.overlayCur=B.token(U,q.overlay),q.overlayPos=U.pos),U.pos=Math.min(q.basePos,q.overlayPos),q.overlayCur==null?q.baseCur:q.baseCur!=null&&q.overlay.combineTokens||j&&q.overlay.combineTokens==null?q.baseCur+" "+q.overlayCur:q.overlayCur},indent:N.indent&&function(U,q,Y){return N.indent(U.base,q,Y)},electricChars:N.electricChars,innerMode:function(U){return{state:U.base,mode:N}},blankLine:function(U){var q,Y;return N.blankLine&&(q=N.blankLine(U.base)),B.blankLine&&(Y=B.blankLine(U.overlay)),Y==null?q:j&&q!=null?q+" "+Y:Y}}}})}()),overlay.exports}(function(M,$){(function(I){I(codemirrorExports,requireMarkdown(),requireOverlay())})(function(I){var N=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;I.defineMode("gfm",function(B,j){var U=0;function q(J){return J.code=!1,null}var Y={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(J){return{code:J.code,codeBlock:J.codeBlock,ateSpace:J.ateSpace}},token:function(J,Z){if(Z.combineTokens=null,Z.codeBlock)return J.match(/^```+/)?(Z.codeBlock=!1,null):(J.skipToEnd(),null);if(J.sol()&&(Z.code=!1),J.sol()&&J.match(/^```+/))return J.skipToEnd(),Z.codeBlock=!0,null;if(J.peek()==="`"){J.next();var ee=J.pos;J.eatWhile("`");var te=1+J.pos-ee;return Z.code?te===U&&(Z.code=!1):(U=te,Z.code=!0),null}else if(Z.code)return J.next(),null;if(J.eatSpace())return Z.ateSpace=!0,null;if((J.sol()||Z.ateSpace)&&(Z.ateSpace=!1,j.gitHubSpice!==!1)){if(J.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return Z.combineTokens=!0,"link";if(J.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return Z.combineTokens=!0,"link"}return J.match(N)&&J.string.slice(J.start-2,J.start)!="]("&&(J.start==0||/\W/.test(J.string.charAt(J.start-1)))?(Z.combineTokens=!0,"link"):(J.next(),null)},blankLine:q},K={taskLists:!0,strikethrough:!0,emoji:!0};for(var G in j)K[G]=j[G];return K.name="markdown",I.overlayMode(I.getMode(B,K),Y)},"markdown"),I.defineMIME("text/x-gfm","gfm")})})();var handlebars={exports:{}},simple={exports:{}},hasRequiredSimple;function requireSimple(){return hasRequiredSimple||(hasRequiredSimple=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineSimpleMode=function(Z,ee){I.defineMode(Z,function(te){return I.simpleMode(te,ee)})},I.simpleMode=function(Z,ee){N(ee,"start");var te={},se=ee.meta||{},re=!1;for(var ne in ee)if(ne!=se&&ee.hasOwnProperty(ne))for(var ce=te[ne]=[],me=ee[ne],ue=0;ue<me.length;ue++){var _e=me[ue];ce.push(new U(_e,ee)),(_e.indent||_e.dedent)&&(re=!0)}var fe={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:re?[]:null}},copyState:function(ye){var xe={state:ye.state,pending:ye.pending,local:ye.local,localState:null,indent:ye.indent&&ye.indent.slice(0)};ye.localState&&(xe.localState=I.copyState(ye.local.mode,ye.localState)),ye.stack&&(xe.stack=ye.stack.slice(0));for(var le=ye.persistentStates;le;le=le.next)xe.persistentStates={mode:le.mode,spec:le.spec,state:le.state==ye.localState?xe.localState:I.copyState(le.mode,le.state),next:xe.persistentStates};return xe},token:q(te,Z),innerMode:function(ye){return ye.local&&{mode:ye.local.mode,state:ye.localState}},indent:J(te,se)};if(se)for(var ge in se)se.hasOwnProperty(ge)&&(fe[ge]=se[ge]);return fe};function N(Z,ee){if(!Z.hasOwnProperty(ee))throw new Error("Undefined state "+ee+" in simple mode")}function B(Z,ee){if(!Z)return/(?:)/;var te="";return Z instanceof RegExp?(Z.ignoreCase&&(te="i"),Z.unicode&&(te+="u"),Z=Z.source):Z=String(Z),new RegExp((ee===!1?"":"^")+"(?:"+Z+")",te)}function j(Z){if(!Z)return null;if(Z.apply)return Z;if(typeof Z=="string")return Z.replace(/\./g," ");for(var ee=[],te=0;te<Z.length;te++)ee.push(Z[te]&&Z[te].replace(/\./g," "));return ee}function U(Z,ee){(Z.next||Z.push)&&N(ee,Z.next||Z.push),this.regex=B(Z.regex),this.token=j(Z.token),this.data=Z}function q(Z,ee){return function(te,se){if(se.pending){var re=se.pending.shift();return se.pending.length==0&&(se.pending=null),te.pos+=re.text.length,re.token}if(se.local)if(se.local.end&&te.match(se.local.end)){var ne=se.local.endToken||null;return se.local=se.localState=null,ne}else{var ne=se.local.mode.token(te,se.localState),ce;return se.local.endScan&&(ce=se.local.endScan.exec(te.current()))&&(te.pos=te.start+ce.index),ne}for(var me=Z[se.state],ue=0;ue<me.length;ue++){var _e=me[ue],fe=(!_e.data.sol||te.sol())&&te.match(_e.regex);if(fe){_e.data.next?se.state=_e.data.next:_e.data.push?((se.stack||(se.stack=[])).push(se.state),se.state=_e.data.push):_e.data.pop&&se.stack&&se.stack.length&&(se.state=se.stack.pop()),_e.data.mode&&K(ee,se,_e.data.mode,_e.token),_e.data.indent&&se.indent.push(te.indentation()+ee.indentUnit),_e.data.dedent&&se.indent.pop();var ge=_e.token;if(ge&&ge.apply&&(ge=ge(fe)),fe.length>2&&_e.token&&typeof _e.token!="string"){for(var ye=2;ye<fe.length;ye++)fe[ye]&&(se.pending||(se.pending=[])).push({text:fe[ye],token:_e.token[ye-1]});return te.backUp(fe[0].length-(fe[1]?fe[1].length:0)),ge[0]}else return ge&&ge.join?ge[0]:ge}}return te.next(),null}}function Y(Z,ee){if(Z===ee)return!0;if(!Z||typeof Z!="object"||!ee||typeof ee!="object")return!1;var te=0;for(var se in Z)if(Z.hasOwnProperty(se)){if(!ee.hasOwnProperty(se)||!Y(Z[se],ee[se]))return!1;te++}for(var se in ee)ee.hasOwnProperty(se)&&te--;return te==0}function K(Z,ee,te,se){var re;if(te.persistent)for(var ne=ee.persistentStates;ne&&!re;ne=ne.next)(te.spec?Y(te.spec,ne.spec):te.mode==ne.mode)&&(re=ne);var ce=re?re.mode:te.mode||I.getMode(Z,te.spec),me=re?re.state:I.startState(ce);te.persistent&&!re&&(ee.persistentStates={mode:ce,spec:te.spec,state:me,next:ee.persistentStates}),ee.localState=me,ee.local={mode:ce,end:te.end&&B(te.end),endScan:te.end&&te.forceEnd!==!1&&B(te.end,!1),endToken:se&&se.join?se[se.length-1]:se}}function G(Z,ee){for(var te=0;te<ee.length;te++)if(ee[te]===Z)return!0}function J(Z,ee){return function(te,se,re){if(te.local&&te.local.mode.indent)return te.local.mode.indent(te.localState,se,re);if(te.indent==null||te.local||ee.dontIndentStates&&G(te.state,ee.dontIndentStates)>-1)return I.Pass;var ne=te.indent.length-1,ce=Z[te.state];e:for(;;){for(var me=0;me<ce.length;me++){var ue=ce[me];if(ue.data.dedent&&ue.data.dedentIfLineStart!==!1){var _e=ue.regex.exec(se);if(_e&&_e[0]){ne--,(ue.next||ue.push)&&(ce=Z[ue.next||ue.push]),se=se.slice(_e[0].length);continue e}}}break}return ne<0?0:te.indent[ne]}}})}()),simple.exports}var multiplex={exports:{}},hasRequiredMultiplex;function requireMultiplex(){return hasRequiredMultiplex||(hasRequiredMultiplex=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){I.multiplexingMode=function(N){var B=Array.prototype.slice.call(arguments,1);function j(U,q,Y,K){if(typeof q=="string"){var G=U.indexOf(q,Y);return K&&G>-1?G+q.length:G}var J=q.exec(Y?U.slice(Y):U);return J?J.index+Y+(K?J[0].length:0):-1}return{startState:function(){return{outer:I.startState(N),innerActive:null,inner:null,startingInner:!1}},copyState:function(U){return{outer:I.copyState(N,U.outer),innerActive:U.innerActive,inner:U.innerActive&&I.copyState(U.innerActive.mode,U.inner),startingInner:U.startingInner}},token:function(U,q){if(q.innerActive){var re=q.innerActive,K=U.string;if(!re.close&&U.sol())return q.innerActive=q.inner=null,this.token(U,q);var Z=re.close&&!q.startingInner?j(K,re.close,U.pos,re.parseDelimiters):-1;if(Z==U.pos&&!re.parseDelimiters)return U.match(re.close),q.innerActive=q.inner=null,re.delimStyle&&re.delimStyle+" "+re.delimStyle+"-close";Z>-1&&(U.string=K.slice(0,Z));var ne=re.mode.token(U,q.inner);return Z>-1?U.string=K:U.pos>U.start&&(q.startingInner=!1),Z==U.pos&&re.parseDelimiters&&(q.innerActive=q.inner=null),re.innerStyle&&(ne?ne=ne+" "+re.innerStyle:ne=re.innerStyle),ne}else{for(var Y=1/0,K=U.string,G=0;G<B.length;++G){var J=B[G],Z=j(K,J.open,U.pos);if(Z==U.pos){J.parseDelimiters||U.match(J.open),q.startingInner=!!J.parseDelimiters,q.innerActive=J;var ee=0;if(N.indent){var te=N.indent(q.outer,"","");te!==I.Pass&&(ee=te)}return q.inner=I.startState(J.mode,ee),J.delimStyle&&J.delimStyle+" "+J.delimStyle+"-open"}else Z!=-1&&Z<Y&&(Y=Z)}Y!=1/0&&(U.string=K.slice(0,Y));var se=N.token(U,q.outer);return Y!=1/0&&(U.string=K),se}},indent:function(U,q,Y){var K=U.innerActive?U.innerActive.mode:N;return K.indent?K.indent(U.innerActive?U.inner:U.outer,q,Y):I.Pass},blankLine:function(U){var q=U.innerActive?U.innerActive.mode:N;if(q.blankLine&&q.blankLine(U.innerActive?U.inner:U.outer),U.innerActive)U.innerActive.close===` `&&(U.innerActive=U.inner=null);else for(var Y=0;Y<B.length;++Y){var K=B[Y];K.open===` `&&(U.innerActive=K,U.inner=I.startState(K.mode,q.indent?q.indent(U.outer,"",""):0))}},electricChars:N.electricChars,innerMode:function(U){return U.inner?{state:U.inner,mode:U.innerActive.mode}:{state:U.outer,mode:N}}}}})}()),multiplex.exports}(function(M,$){(function(I){I(codemirrorExports,requireSimple(),requireMultiplex())})(function(I){I.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),I.defineMode("handlebars",function(N,B){var j=I.getMode(N,"handlebars-tags");return!B||!B.base?j:I.multiplexingMode(I.getMode(N,B.base),{open:"{{",close:/\}\}\}?/,mode:j,parseDelimiters:!0})}),I.defineMIME("text/x-handlebars-template","handlebars")})})();var handlebarsExports=handlebars.exports,htmlmixed={exports:{}},javascript={exports:{}},hasRequiredJavascript;function requireJavascript(){return hasRequiredJavascript||(hasRequiredJavascript=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("javascript",function(N,B){var j=N.indentUnit,U=B.statementIndent,q=B.jsonld,Y=B.json||q,K=B.trackScope!==!1,G=B.typescript,J=B.wordCharacters||/[\w$\xa1-\uffff]/,Z=function(){function Qe(pn){return{type:pn,style:"keyword"}}var bt=Qe("keyword a"),wt=Qe("keyword b"),Bt=Qe("keyword c"),Yt=Qe("keyword d"),Mt=Qe("operator"),en={type:"atom",style:"atom"};return{if:Qe("if"),while:bt,with:bt,else:wt,do:wt,try:wt,finally:wt,return:Yt,break:Yt,continue:Yt,new:Qe("new"),delete:Bt,void:Bt,throw:Bt,debugger:Qe("debugger"),var:Qe("var"),const:Qe("var"),let:Qe("var"),function:Qe("function"),catch:Qe("catch"),for:Qe("for"),switch:Qe("switch"),case:Qe("case"),default:Qe("default"),in:Mt,typeof:Mt,instanceof:Mt,true:en,false:en,null:en,undefined:en,NaN:en,Infinity:en,this:Qe("this"),class:Qe("class"),super:Qe("atom"),yield:Bt,export:Qe("export"),import:Qe("import"),extends:Bt,await:Bt}}(),ee=/[+\-*&%=<>!?|~^@]/,te=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function se(Qe){for(var bt=!1,wt,Bt=!1;(wt=Qe.next())!=null;){if(!bt){if(wt=="/"&&!Bt)return;wt=="["?Bt=!0:Bt&&wt=="]"&&(Bt=!1)}bt=!bt&&wt=="\\"}}var re,ne;function ce(Qe,bt,wt){return re=Qe,ne=wt,bt}function me(Qe,bt){var wt=Qe.next();if(wt=='"'||wt=="'")return bt.tokenize=ue(wt),bt.tokenize(Qe,bt);if(wt=="."&&Qe.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ce("number","number");if(wt=="."&&Qe.match(".."))return ce("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(wt))return ce(wt);if(wt=="="&&Qe.eat(">"))return ce("=>","operator");if(wt=="0"&&Qe.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ce("number","number");if(/\d/.test(wt))return Qe.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ce("number","number");if(wt=="/")return Qe.eat("*")?(bt.tokenize=_e,_e(Qe,bt)):Qe.eat("/")?(Qe.skipToEnd(),ce("comment","comment")):er(Qe,bt,1)?(se(Qe),Qe.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ce("regexp","string-2")):(Qe.eat("="),ce("operator","operator",Qe.current()));if(wt=="`")return bt.tokenize=fe,fe(Qe,bt);if(wt=="#"&&Qe.peek()=="!")return Qe.skipToEnd(),ce("meta","meta");if(wt=="#"&&Qe.eatWhile(J))return ce("variable","property");if(wt=="<"&&Qe.match("!--")||wt=="-"&&Qe.match("->")&&!/\S/.test(Qe.string.slice(0,Qe.start)))return Qe.skipToEnd(),ce("comment","comment");if(ee.test(wt))return(wt!=">"||!bt.lexical||bt.lexical.type!=">")&&(Qe.eat("=")?(wt=="!"||wt=="=")&&Qe.eat("="):/[<>*+\-|&?]/.test(wt)&&(Qe.eat(wt),wt==">"&&Qe.eat(wt))),wt=="?"&&Qe.eat(".")?ce("."):ce("operator","operator",Qe.current());if(J.test(wt)){Qe.eatWhile(J);var Bt=Qe.current();if(bt.lastType!="."){if(Z.propertyIsEnumerable(Bt)){var Yt=Z[Bt];return ce(Yt.type,Yt.style,Bt)}if(Bt=="async"&&Qe.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return ce("async","keyword",Bt)}return ce("variable","variable",Bt)}}function ue(Qe){return function(bt,wt){var Bt=!1,Yt;if(q&&bt.peek()=="@"&&bt.match(te))return wt.tokenize=me,ce("jsonld-keyword","meta");for(;(Yt=bt.next())!=null&&!(Yt==Qe&&!Bt);)Bt=!Bt&&Yt=="\\";return Bt||(wt.tokenize=me),ce("string","string")}}function _e(Qe,bt){for(var wt=!1,Bt;Bt=Qe.next();){if(Bt=="/"&&wt){bt.tokenize=me;break}wt=Bt=="*"}return ce("comment","comment")}function fe(Qe,bt){for(var wt=!1,Bt;(Bt=Qe.next())!=null;){if(!wt&&(Bt=="`"||Bt=="$"&&Qe.eat("{"))){bt.tokenize=me;break}wt=!wt&&Bt=="\\"}return ce("quasi","string-2",Qe.current())}var ge="([{}])";function ye(Qe,bt){bt.fatArrowAt&&(bt.fatArrowAt=null);var wt=Qe.string.indexOf("=>",Qe.start);if(!(wt<0)){if(G){var Bt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Qe.string.slice(Qe.start,wt));Bt&&(wt=Bt.index)}for(var Yt=0,Mt=!1,en=wt-1;en>=0;--en){var pn=Qe.string.charAt(en),Sn=ge.indexOf(pn);if(Sn>=0&&Sn<3){if(!Yt){++en;break}if(--Yt==0){pn=="("&&(Mt=!0);break}}else if(Sn>=3&&Sn<6)++Yt;else if(J.test(pn))Mt=!0;else if(/["'\/`]/.test(pn))for(;;--en){if(en==0)return;var cn=Qe.string.charAt(en-1);if(cn==pn&&Qe.string.charAt(en-2)!="\\"){en--;break}}else if(Mt&&!Yt){++en;break}}Mt&&!Yt&&(bt.fatArrowAt=en)}}var xe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function le(Qe,bt,wt,Bt,Yt,Mt){this.indented=Qe,this.column=bt,this.type=wt,this.prev=Yt,this.info=Mt,Bt!=null&&(this.align=Bt)}function be(Qe,bt){if(!K)return!1;for(var wt=Qe.localVars;wt;wt=wt.next)if(wt.name==bt)return!0;for(var Bt=Qe.context;Bt;Bt=Bt.prev)for(var wt=Bt.vars;wt;wt=wt.next)if(wt.name==bt)return!0}function ve(Qe,bt,wt,Bt,Yt){var Mt=Qe.cc;for(we.state=Qe,we.stream=Yt,we.marked=null,we.cc=Mt,we.style=bt,Qe.lexical.hasOwnProperty("align")||(Qe.lexical.align=!0);;){var en=Mt.length?Mt.pop():Y?En:tn;if(en(wt,Bt)){for(;Mt.length&&Mt[Mt.length-1].lex;)Mt.pop()();return we.marked?we.marked:wt=="variable"&&be(Qe,Bt)?"variable-2":bt}}}var we={state:null,column:null,marked:null,cc:null};function Ae(){for(var Qe=arguments.length-1;Qe>=0;Qe--)we.cc.push(arguments[Qe])}function Se(){return Ae.apply(null,arguments),!0}function Pe(Qe,bt){for(var wt=bt;wt;wt=wt.next)if(wt.name==Qe)return!0;return!1}function Me(Qe){var bt=we.state;if(we.marked="def",!!K){if(bt.context){if(bt.lexical.info=="var"&&bt.context&&bt.context.block){var wt=Be(Qe,bt.context);if(wt!=null){bt.context=wt;return}}else if(!Pe(Qe,bt.localVars)){bt.localVars=new ft(Qe,bt.localVars);return}}B.globalVars&&!Pe(Qe,bt.globalVars)&&(bt.globalVars=new ft(Qe,bt.globalVars))}}function Be(Qe,bt){if(bt)if(bt.block){var wt=Be(Qe,bt.prev);return wt?wt==bt.prev?bt:new Ze(wt,bt.vars,!0):null}else return Pe(Qe,bt.vars)?bt:new Ze(bt.prev,new ft(Qe,bt.vars),!1);else return null}function ze(Qe){return Qe=="public"||Qe=="private"||Qe=="protected"||Qe=="abstract"||Qe=="readonly"}function Ze(Qe,bt,wt){this.prev=Qe,this.vars=bt,this.block=wt}function ft(Qe,bt){this.name=Qe,this.next=bt}var Ye=new ft("this",new ft("arguments",null));function Ve(){we.state.context=new Ze(we.state.context,we.state.localVars,!1),we.state.localVars=Ye}function Dt(){we.state.context=new Ze(we.state.context,we.state.localVars,!0),we.state.localVars=null}Ve.lex=Dt.lex=!0;function Nt(){we.state.localVars=we.state.context.vars,we.state.context=we.state.context.prev}Nt.lex=!0;function Vt(Qe,bt){var wt=function(){var Bt=we.state,Yt=Bt.indented;if(Bt.lexical.type=="stat")Yt=Bt.lexical.indented;else for(var Mt=Bt.lexical;Mt&&Mt.type==")"&&Mt.align;Mt=Mt.prev)Yt=Mt.indented;Bt.lexical=new le(Yt,we.stream.column(),Qe,null,Bt.lexical,bt)};return wt.lex=!0,wt}function Wt(){var Qe=we.state;Qe.lexical.prev&&(Qe.lexical.type==")"&&(Qe.indented=Qe.lexical.indented),Qe.lexical=Qe.lexical.prev)}Wt.lex=!0;function Gt(Qe){function bt(wt){return wt==Qe?Se():Qe==";"||wt=="}"||wt==")"||wt=="]"?Ae():Se(bt)}return bt}function tn(Qe,bt){return Qe=="var"?Se(Vt("vardef",bt),hn,Gt(";"),Wt):Qe=="keyword a"?Se(Vt("form"),Gn,tn,Wt):Qe=="keyword b"?Se(Vt("form"),tn,Wt):Qe=="keyword d"?we.stream.match(/^\s*$/,!1)?Se():Se(Vt("stat"),jn,Gt(";"),Wt):Qe=="debugger"?Se(Gt(";")):Qe=="{"?Se(Vt("}"),Dt,dn,Wt,Nt):Qe==";"?Se():Qe=="if"?(we.state.lexical.info=="else"&&we.state.cc[we.state.cc.length-1]==Wt&&we.state.cc.pop()(),Se(Vt("form"),Gn,tn,Wt,Er)):Qe=="function"?Se(mt):Qe=="for"?Se(Vt("form"),Dt,Dr,tn,Nt,Wt):Qe=="class"||G&&bt=="interface"?(we.marked="keyword",Se(Vt("form",Qe=="class"?Qe:bt),sn,Wt)):Qe=="variable"?G&&bt=="declare"?(we.marked="keyword",Se(tn)):G&&(bt=="module"||bt=="enum"||bt=="type")&&we.stream.match(/^\s*\w/,!1)?(we.marked="keyword",bt=="enum"?Se(br):bt=="type"?Se(Ne,Gt("operator"),pt,Gt(";")):Se(Vt("form"),wn,Gt("{"),Vt("}"),dn,Wt,Wt)):G&&bt=="namespace"?(we.marked="keyword",Se(Vt("form"),En,tn,Wt)):G&&bt=="abstract"?(we.marked="keyword",Se(tn)):Se(Vt("stat"),Ge):Qe=="switch"?Se(Vt("form"),Gn,Gt("{"),Vt("}","switch"),Dt,dn,Wt,Wt,Nt):Qe=="case"?Se(En,Gt(":")):Qe=="default"?Se(Gt(":")):Qe=="catch"?Se(Vt("form"),Ve,Qt,tn,Wt,Nt):Qe=="export"?Se(Vt("stat"),Xn,Wt):Qe=="import"?Se(Vt("stat"),tr,Wt):Qe=="async"?Se(tn):bt=="@"?Se(En,tn):Ae(Vt("stat"),En,Gt(";"),Wt)}function Qt(Qe){if(Qe=="(")return Se(_t,Gt(")"))}function En(Qe,bt){return An(Qe,bt,!1)}function kn(Qe,bt){return An(Qe,bt,!0)}function Gn(Qe){return Qe!="("?Ae():Se(Vt(")"),jn,Gt(")"),Wt)}function An(Qe,bt,wt){if(we.state.fatArrowAt==we.stream.start){var Bt=wt?Ue:xt;if(Qe=="(")return Se(Ve,Vt(")"),ot(_t,")"),Wt,Gt("=>"),Bt,Nt);if(Qe=="variable")return Ae(Ve,wn,Gt("=>"),Bt,Nt)}var Yt=wt?Ln:Mn;return xe.hasOwnProperty(Qe)?Se(Yt):Qe=="function"?Se(mt,Yt):Qe=="class"||G&&bt=="interface"?(we.marked="keyword",Se(Vt("form"),Xt,Wt)):Qe=="keyword c"||Qe=="async"?Se(wt?kn:En):Qe=="("?Se(Vt(")"),jn,Gt(")"),Wt,Yt):Qe=="operator"||Qe=="spread"?Se(wt?kn:En):Qe=="["?Se(Vt("]"),mr,Wt,Yt):Qe=="{"?Ot(ut,"}",null,Yt):Qe=="quasi"?Ae(Et,Yt):Qe=="new"?Se(Oe(wt)):Se()}function jn(Qe){return Qe.match(/[;\}\)\],]/)?Ae():Ae(En)}function Mn(Qe,bt){return Qe==","?Se(jn):Ln(Qe,bt,!1)}function Ln(Qe,bt,wt){var Bt=wt==!1?Mn:Ln,Yt=wt==!1?En:kn;if(Qe=="=>")return Se(Ve,wt?Ue:xt,Nt);if(Qe=="operator")return/\+\+|--/.test(bt)||G&&bt=="!"?Se(Bt):G&&bt=="<"&&we.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?Se(Vt(">"),ot(pt,">"),Wt,Bt):bt=="?"?Se(En,Gt(":"),Yt):Se(Yt);if(Qe=="quasi")return Ae(Et,Bt);if(Qe!=";"){if(Qe=="(")return Ot(kn,")","call",Bt);if(Qe==".")return Se(rt,Bt);if(Qe=="[")return Se(Vt("]"),jn,Gt("]"),Wt,Bt);if(G&&bt=="as")return we.marked="keyword",Se(pt,Bt);if(Qe=="regexp")return we.state.lastType=we.marked="operator",we.stream.backUp(we.stream.pos-we.stream.start-1),Se(Yt)}}function Et(Qe,bt){return Qe!="quasi"?Ae():bt.slice(bt.length-2)!="${"?Se(Et):Se(jn,We)}function We(Qe){if(Qe=="}")return we.marked="string-2",we.state.tokenize=fe,Se(Et)}function xt(Qe){return ye(we.stream,we.state),Ae(Qe=="{"?tn:En)}function Ue(Qe){return ye(we.stream,we.state),Ae(Qe=="{"?tn:kn)}function Oe(Qe){return function(bt){return bt=="."?Se(Qe?$e:ke):bt=="variable"&&G?Se(Tt,Qe?Ln:Mn):Ae(Qe?kn:En)}}function ke(Qe,bt){if(bt=="target")return we.marked="keyword",Se(Mn)}function $e(Qe,bt){if(bt=="target")return we.marked="keyword",Se(Ln)}function Ge(Qe){return Qe==":"?Se(Wt,tn):Ae(Mn,Gt(";"),Wt)}function rt(Qe){if(Qe=="variable")return we.marked="property",Se()}function ut(Qe,bt){if(Qe=="async")return we.marked="property",Se(ut);if(Qe=="variable"||we.style=="keyword"){if(we.marked="property",bt=="get"||bt=="set")return Se(ct);var wt;return G&&we.state.fatArrowAt==we.stream.start&&(wt=we.stream.match(/^\s*:\s*/,!1))&&(we.state.fatArrowAt=we.stream.pos+wt[0].length),Se(it)}else{if(Qe=="number"||Qe=="string")return we.marked=q?"property":we.style+" property",Se(it);if(Qe=="jsonld-keyword")return Se(it);if(G&&ze(bt))return we.marked="keyword",Se(ut);if(Qe=="[")return Se(En,Fn,Gt("]"),it);if(Qe=="spread")return Se(kn,it);if(bt=="*")return we.marked="keyword",Se(ut);if(Qe==":")return Ae(it)}}function ct(Qe){return Qe!="variable"?Ae(it):(we.marked="property",Se(mt))}function it(Qe){if(Qe==":")return Se(kn);if(Qe=="(")return Ae(mt)}function ot(Qe,bt,wt){function Bt(Yt,Mt){if(wt?wt.indexOf(Yt)>-1:Yt==","){var en=we.state.lexical;return en.info=="call"&&(en.pos=(en.pos||0)+1),Se(function(pn,Sn){return pn==bt||Sn==bt?Ae():Ae(Qe)},Bt)}return Yt==bt||Mt==bt?Se():wt&&wt.indexOf(";")>-1?Ae(Qe):Se(Gt(bt))}return function(Yt,Mt){return Yt==bt||Mt==bt?Se():Ae(Qe,Bt)}}function Ot(Qe,bt,wt){for(var Bt=3;Bt<arguments.length;Bt++)we.cc.push(arguments[Bt]);return Se(Vt(bt,wt),ot(Qe,bt),Wt)}function dn(Qe){return Qe=="}"?Se():Ae(tn,dn)}function Fn(Qe,bt){if(G){if(Qe==":")return Se(pt);if(bt=="?")return Se(Fn)}}function Zt(Qe,bt){if(G&&(Qe==":"||bt=="in"))return Se(pt)}function vn(Qe){if(G&&Qe==":")return we.stream.match(/^\s*\w+\s+is\b/,!1)?Se(En,lt,pt):Se(pt)}function lt(Qe,bt){if(bt=="is")return we.marked="keyword",Se()}function pt(Qe,bt){if(bt=="keyof"||bt=="typeof"||bt=="infer"||bt=="readonly")return we.marked="keyword",Se(bt=="typeof"?kn:pt);if(Qe=="variable"||bt=="void")return we.marked="type",Se(ht);if(bt=="|"||bt=="&")return Se(pt);if(Qe=="string"||Qe=="number"||Qe=="atom")return Se(ht);if(Qe=="[")return Se(Vt("]"),ot(pt,"]",","),Wt,ht);if(Qe=="{")return Se(Vt("}"),qt,Wt,ht);if(Qe=="(")return Se(ot(Ct,")"),Pt,ht);if(Qe=="<")return Se(ot(pt,">"),pt);if(Qe=="quasi")return Ae(mn,ht)}function Pt(Qe){if(Qe=="=>")return Se(pt)}function qt(Qe){return Qe.match(/[\}\)\]]/)?Se():Qe==","||Qe==";"?Se(qt):Ae(Ht,qt)}function Ht(Qe,bt){if(Qe=="variable"||we.style=="keyword")return we.marked="property",Se(Ht);if(bt=="?"||Qe=="number"||Qe=="string")return Se(Ht);if(Qe==":")return Se(pt);if(Qe=="[")return Se(Gt("variable"),Zt,Gt("]"),Ht);if(Qe=="(")return Ae(dt,Ht);if(!Qe.match(/[;\}\)\],]/))return Se()}function mn(Qe,bt){return Qe!="quasi"?Ae():bt.slice(bt.length-2)!="${"?Se(mn):Se(pt,Yn)}function Yn(Qe){if(Qe=="}")return we.marked="string-2",we.state.tokenize=fe,Se(mn)}function Ct(Qe,bt){return Qe=="variable"&&we.stream.match(/^\s*[?:]/,!1)||bt=="?"?Se(Ct):Qe==":"?Se(pt):Qe=="spread"?Se(Ct):Ae(pt)}function ht(Qe,bt){if(bt=="<")return Se(Vt(">"),ot(pt,">"),Wt,ht);if(bt=="|"||Qe=="."||bt=="&")return Se(pt);if(Qe=="[")return Se(pt,Gt("]"),ht);if(bt=="extends"||bt=="implements")return we.marked="keyword",Se(pt);if(bt=="?")return Se(pt,Gt(":"),pt)}function Tt(Qe,bt){if(bt=="<")return Se(Vt(">"),ot(pt,">"),Wt,ht)}function Lt(){return Ae(pt,fn)}function fn(Qe,bt){if(bt=="=")return Se(pt)}function hn(Qe,bt){return bt=="enum"?(we.marked="keyword",Se(br)):Ae(wn,Fn,ir,Ir)}function wn(Qe,bt){if(G&&ze(bt))return we.marked="keyword",Se(wn);if(Qe=="variable")return Me(bt),Se();if(Qe=="spread")return Se(wn);if(Qe=="[")return Ot(zn,"]");if(Qe=="{")return Ot(cr,"}")}function cr(Qe,bt){return Qe=="variable"&&!we.stream.match(/^\s*:/,!1)?(Me(bt),Se(ir)):(Qe=="variable"&&(we.marked="property"),Qe=="spread"?Se(wn):Qe=="}"?Ae():Qe=="["?Se(En,Gt("]"),Gt(":"),cr):Se(Gt(":"),wn,ir))}function zn(){return Ae(wn,ir)}function ir(Qe,bt){if(bt=="=")return Se(kn)}function Ir(Qe){if(Qe==",")return Se(hn)}function Er(Qe,bt){if(Qe=="keyword b"&&bt=="else")return Se(Vt("form","else"),tn,Wt)}function Dr(Qe,bt){if(bt=="await")return Se(Dr);if(Qe=="(")return Se(Vt(")"),Ur,Wt)}function Ur(Qe){return Qe=="var"?Se(hn,Ke):Qe=="variable"?Se(Ke):Ae(Ke)}function Ke(Qe,bt){return Qe==")"?Se():Qe==";"?Se(Ke):bt=="in"||bt=="of"?(we.marked="keyword",Se(En,Ke)):Ae(En,Ke)}function mt(Qe,bt){if(bt=="*")return we.marked="keyword",Se(mt);if(Qe=="variable")return Me(bt),Se(mt);if(Qe=="(")return Se(Ve,Vt(")"),ot(_t,")"),Wt,vn,tn,Nt);if(G&&bt=="<")return Se(Vt(">"),ot(Lt,">"),Wt,mt)}function dt(Qe,bt){if(bt=="*")return we.marked="keyword",Se(dt);if(Qe=="variable")return Me(bt),Se(dt);if(Qe=="(")return Se(Ve,Vt(")"),ot(_t,")"),Wt,vn,Nt);if(G&&bt=="<")return Se(Vt(">"),ot(Lt,">"),Wt,dt)}function Ne(Qe,bt){if(Qe=="keyword"||Qe=="variable")return we.marked="type",Se(Ne);if(bt=="<")return Se(Vt(">"),ot(Lt,">"),Wt)}function _t(Qe,bt){return bt=="@"&&Se(En,_t),Qe=="spread"?Se(_t):G&&ze(bt)?(we.marked="keyword",Se(_t)):G&&Qe=="this"?Se(Fn,ir):Ae(wn,Fn,ir)}function Xt(Qe,bt){return Qe=="variable"?sn(Qe,bt):Tn(Qe,bt)}function sn(Qe,bt){if(Qe=="variable")return Me(bt),Se(Tn)}function Tn(Qe,bt){if(bt=="<")return Se(Vt(">"),ot(Lt,">"),Wt,Tn);if(bt=="extends"||bt=="implements"||G&&Qe==",")return bt=="implements"&&(we.marked="keyword"),Se(G?pt:En,Tn);if(Qe=="{")return Se(Vt("}"),In,Wt)}function In(Qe,bt){if(Qe=="async"||Qe=="variable"&&(bt=="static"||bt=="get"||bt=="set"||G&&ze(bt))&&we.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return we.marked="keyword",Se(In);if(Qe=="variable"||we.style=="keyword")return we.marked="property",Se(Qn,In);if(Qe=="number"||Qe=="string")return Se(Qn,In);if(Qe=="[")return Se(En,Fn,Gt("]"),Qn,In);if(bt=="*")return we.marked="keyword",Se(In);if(G&&Qe=="(")return Ae(dt,In);if(Qe==";"||Qe==",")return Se(In);if(Qe=="}")return Se();if(bt=="@")return Se(En,In)}function Qn(Qe,bt){if(bt=="!"||bt=="?")return Se(Qn);if(Qe==":")return Se(pt,ir);if(bt=="=")return Se(kn);var wt=we.state.lexical.prev,Bt=wt&&wt.info=="interface";return Ae(Bt?dt:mt)}function Xn(Qe,bt){return bt=="*"?(we.marked="keyword",Se(Pn,Gt(";"))):bt=="default"?(we.marked="keyword",Se(En,Gt(";"))):Qe=="{"?Se(ot(Rr,"}"),Pn,Gt(";")):Ae(tn)}function Rr(Qe,bt){if(bt=="as")return we.marked="keyword",Se(Gt("variable"));if(Qe=="variable")return Ae(kn,Rr)}function tr(Qe){return Qe=="string"?Se():Qe=="("?Ae(En):Qe=="."?Ae(Mn):Ae(fr,kr,Pn)}function fr(Qe,bt){return Qe=="{"?Ot(fr,"}"):(Qe=="variable"&&Me(bt),bt=="*"&&(we.marked="keyword"),Se(sr))}function kr(Qe){if(Qe==",")return Se(fr,kr)}function sr(Qe,bt){if(bt=="as")return we.marked="keyword",Se(fr)}function Pn(Qe,bt){if(bt=="from")return we.marked="keyword",Se(En)}function mr(Qe){return Qe=="]"?Se():Ae(ot(kn,"]"))}function br(){return Ae(Vt("form"),wn,Gt("{"),Vt("}"),ot(hr,"}"),Wt,Wt)}function hr(){return Ae(wn,ir)}function Bn(Qe,bt){return Qe.lastType=="operator"||Qe.lastType==","||ee.test(bt.charAt(0))||/[,.]/.test(bt.charAt(0))}function er(Qe,bt,wt){return bt.tokenize==me&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(bt.lastType)||bt.lastType=="quasi"&&/\{\s*$/.test(Qe.string.slice(0,Qe.pos-(wt||0)))}return{startState:function(Qe){var bt={tokenize:me,lastType:"sof",cc:[],lexical:new le((Qe||0)-j,0,"block",!1),localVars:B.localVars,context:B.localVars&&new Ze(null,null,!1),indented:Qe||0};return B.globalVars&&typeof B.globalVars=="object"&&(bt.globalVars=B.globalVars),bt},token:function(Qe,bt){if(Qe.sol()&&(bt.lexical.hasOwnProperty("align")||(bt.lexical.align=!1),bt.indented=Qe.indentation(),ye(Qe,bt)),bt.tokenize!=_e&&Qe.eatSpace())return null;var wt=bt.tokenize(Qe,bt);return re=="comment"?wt:(bt.lastType=re=="operator"&&(ne=="++"||ne=="--")?"incdec":re,ve(bt,wt,re,ne,Qe))},indent:function(Qe,bt){if(Qe.tokenize==_e||Qe.tokenize==fe)return I.Pass;if(Qe.tokenize!=me)return 0;var wt=bt&&bt.charAt(0),Bt=Qe.lexical,Yt;if(!/^\s*else\b/.test(bt))for(var Mt=Qe.cc.length-1;Mt>=0;--Mt){var en=Qe.cc[Mt];if(en==Wt)Bt=Bt.prev;else if(en!=Er&&en!=Nt)break}for(;(Bt.type=="stat"||Bt.type=="form")&&(wt=="}"||(Yt=Qe.cc[Qe.cc.length-1])&&(Yt==Mn||Yt==Ln)&&!/^[,\.=+\-*:?[\(]/.test(bt));)Bt=Bt.prev;U&&Bt.type==")"&&Bt.prev.type=="stat"&&(Bt=Bt.prev);var pn=Bt.type,Sn=wt==pn;return pn=="vardef"?Bt.indented+(Qe.lastType=="operator"||Qe.lastType==","?Bt.info.length+1:0):pn=="form"&&wt=="{"?Bt.indented:pn=="form"?Bt.indented+j:pn=="stat"?Bt.indented+(Bn(Qe,bt)?U||j:0):Bt.info=="switch"&&!Sn&&B.doubleIndentSwitch!=!1?Bt.indented+(/^(?:case|default)\b/.test(bt)?j:2*j):Bt.align?Bt.column+(Sn?0:1):Bt.indented+(Sn?0:j)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Y?null:"/*",blockCommentEnd:Y?null:"*/",blockCommentContinue:Y?null:" * ",lineComment:Y?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Y?"json":"javascript",jsonldMode:q,jsonMode:Y,expressionAllowed:er,skipExpression:function(Qe){ve(Qe,"atom","atom","true",new I.StringStream("",2,null))}}}),I.registerHelper("wordChars","javascript",/[\w$]/),I.defineMIME("text/javascript","javascript"),I.defineMIME("text/ecmascript","javascript"),I.defineMIME("application/javascript","javascript"),I.defineMIME("application/x-javascript","javascript"),I.defineMIME("application/ecmascript","javascript"),I.defineMIME("application/json",{name:"javascript",json:!0}),I.defineMIME("application/x-json",{name:"javascript",json:!0}),I.defineMIME("application/manifest+json",{name:"javascript",json:!0}),I.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),I.defineMIME("text/typescript",{name:"javascript",typescript:!0}),I.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),javascript.exports}var hasRequiredHtmlmixed;function requireHtmlmixed(){return hasRequiredHtmlmixed||(hasRequiredHtmlmixed=1,function(M,$){(function(I){I(codemirrorExports,requireXml(),requireJavascript(),cssExports)})(function(I){var N={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function B(J,Z,ee){var te=J.current(),se=te.search(Z);return se>-1?J.backUp(te.length-se):te.match(/<\/?$/)&&(J.backUp(te.length),J.match(Z,!1)||J.match(te)),ee}var j={};function U(J){var Z=j[J];return Z||(j[J]=new RegExp("\\s+"+J+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function q(J,Z){var ee=J.match(U(Z));return ee?/^\s*(.*?)\s*$/.exec(ee[2])[1]:""}function Y(J,Z){return new RegExp((Z?"^":"")+"</\\s*"+J+"\\s*>","i")}function K(J,Z){for(var ee in J)for(var te=Z[ee]||(Z[ee]=[]),se=J[ee],re=se.length-1;re>=0;re--)te.unshift(se[re])}function G(J,Z){for(var ee=0;ee<J.length;ee++){var te=J[ee];if(!te[0]||te[1].test(q(Z,te[0])))return te[2]}}I.defineMode("htmlmixed",function(J,Z){var ee=I.getMode(J,{name:"xml",htmlMode:!0,multilineTagIndentFactor:Z.multilineTagIndentFactor,multilineTagIndentPastTag:Z.multilineTagIndentPastTag,allowMissingTagName:Z.allowMissingTagName}),te={},se=Z&&Z.tags,re=Z&&Z.scriptTypes;if(K(N,te),se&&K(se,te),re)for(var ne=re.length-1;ne>=0;ne--)te.script.unshift(["type",re[ne].matches,re[ne].mode]);function ce(me,ue){var _e=ee.token(me,ue.htmlState),fe=/\btag\b/.test(_e),ge;if(fe&&!/[<>\s\/]/.test(me.current())&&(ge=ue.htmlState.tagName&&ue.htmlState.tagName.toLowerCase())&&te.hasOwnProperty(ge))ue.inTag=ge+" ";else if(ue.inTag&&fe&&/>$/.test(me.current())){var ye=/^([\S]+) (.*)/.exec(ue.inTag);ue.inTag=null;var xe=me.current()==">"&&G(te[ye[1]],ye[2]),le=I.getMode(J,xe),be=Y(ye[1],!0),ve=Y(ye[1],!1);ue.token=function(we,Ae){return we.match(be,!1)?(Ae.token=ce,Ae.localState=Ae.localMode=null,null):B(we,ve,Ae.localMode.token(we,Ae.localState))},ue.localMode=le,ue.localState=I.startState(le,ee.indent(ue.htmlState,"",""))}else ue.inTag&&(ue.inTag+=me.current(),me.eol()&&(ue.inTag+=" "));return _e}return{startState:function(){var me=I.startState(ee);return{token:ce,inTag:null,localMode:null,localState:null,htmlState:me}},copyState:function(me){var ue;return me.localState&&(ue=I.copyState(me.localMode,me.localState)),{token:me.token,inTag:me.inTag,localMode:me.localMode,localState:ue,htmlState:I.copyState(ee,me.htmlState)}},token:function(me,ue){return ue.token(me,ue)},indent:function(me,ue,_e){return!me.localMode||/^\s*<\//.test(ue)?ee.indent(me.htmlState,ue,_e):me.localMode.indent?me.localMode.indent(me.localState,ue,_e):I.Pass},innerMode:function(me){return{state:me.localState||me.htmlState,mode:me.localMode||ee}}}},"xml","javascript","css"),I.defineMIME("text/html","htmlmixed")})}()),htmlmixed.exports}var ruby={exports:{}},hasRequiredRuby;function requireRuby(){return hasRequiredRuby||(hasRequiredRuby=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){function N(G){for(var J={},Z=0,ee=G.length;Z<ee;++Z)J[G[Z]]=!0;return J}var B=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],j=N(B),U=N(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),q=N(["end","until"]),Y={"[":"]","{":"}","(":")"},K={"]":"[","}":"{",")":"("};I.defineMode("ruby",function(G){var J;function Z(ue,_e,fe){return fe.tokenize.push(ue),ue(_e,fe)}function ee(ue,_e){if(ue.sol()&&ue.match("=begin")&&ue.eol())return _e.tokenize.push(me),"comment";if(ue.eatSpace())return null;var fe=ue.next(),ge;if(fe=="`"||fe=="'"||fe=='"')return Z(ne(fe,"string",fe=='"'||fe=="`"),ue,_e);if(fe=="/")return te(ue)?Z(ne(fe,"string-2",!0),ue,_e):"operator";if(fe=="%"){var ye="string",xe=!0;ue.eat("s")?ye="atom":ue.eat(/[WQ]/)?ye="string":ue.eat(/[r]/)?ye="string-2":ue.eat(/[wxq]/)&&(ye="string",xe=!1);var le=ue.eat(/[^\w\s=]/);return le?(Y.propertyIsEnumerable(le)&&(le=Y[le]),Z(ne(le,ye,xe,!0),ue,_e)):"operator"}else{if(fe=="#")return ue.skipToEnd(),"comment";if(fe=="<"&&(ge=ue.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return Z(ce(ge[2],ge[1]),ue,_e);if(fe=="0")return ue.eat("x")?ue.eatWhile(/[\da-fA-F]/):ue.eat("b")?ue.eatWhile(/[01]/):ue.eatWhile(/[0-7]/),"number";if(/\d/.test(fe))return ue.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(fe=="?"){for(;ue.match(/^\\[CM]-/););return ue.eat("\\")?ue.eatWhile(/\w/):ue.next(),"string"}else{if(fe==":")return ue.eat("'")?Z(ne("'","atom",!1),ue,_e):ue.eat('"')?Z(ne('"',"atom",!0),ue,_e):ue.eat(/[\<\>]/)?(ue.eat(/[\<\>]/),"atom"):ue.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":ue.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(ue.eatWhile(/[\w$\xa1-\uffff]/),ue.eat(/[\?\!\=]/),"atom"):"operator";if(fe=="@"&&ue.match(/^@?[a-zA-Z_\xa1-\uffff]/))return ue.eat("@"),ue.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(fe=="$")return ue.eat(/[a-zA-Z_]/)?ue.eatWhile(/[\w]/):ue.eat(/\d/)?ue.eat(/\d/):ue.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(fe))return ue.eatWhile(/[\w\xa1-\uffff]/),ue.eat(/[\?\!]/),ue.eat(":")?"atom":"ident";if(fe=="|"&&(_e.varList||_e.lastTok=="{"||_e.lastTok=="do"))return J="|",null;if(/[\(\)\[\]{}\\;]/.test(fe))return J=fe,null;if(fe=="-"&&ue.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(fe)){var be=ue.eatWhile(/[=+\-\/*:\.^%<>~|]/);return fe=="."&&!be&&(J="."),"operator"}else return null}}}function te(ue){for(var _e=ue.pos,fe=0,ge,ye=!1,xe=!1;(ge=ue.next())!=null;)if(xe)xe=!1;else{if("[{(".indexOf(ge)>-1)fe++;else if("]})".indexOf(ge)>-1){if(fe--,fe<0)break}else if(ge=="/"&&fe==0){ye=!0;break}xe=ge=="\\"}return ue.backUp(ue.pos-_e),ye}function se(ue){return ue||(ue=1),function(_e,fe){if(_e.peek()=="}"){if(ue==1)return fe.tokenize.pop(),fe.tokenize[fe.tokenize.length-1](_e,fe);fe.tokenize[fe.tokenize.length-1]=se(ue-1)}else _e.peek()=="{"&&(fe.tokenize[fe.tokenize.length-1]=se(ue+1));return ee(_e,fe)}}function re(){var ue=!1;return function(_e,fe){return ue?(fe.tokenize.pop(),fe.tokenize[fe.tokenize.length-1](_e,fe)):(ue=!0,ee(_e,fe))}}function ne(ue,_e,fe,ge){return function(ye,xe){var le=!1,be;for(xe.context.type==="read-quoted-paused"&&(xe.context=xe.context.prev,ye.eat("}"));(be=ye.next())!=null;){if(be==ue&&(ge||!le)){xe.tokenize.pop();break}if(fe&&be=="#"&&!le){if(ye.eat("{")){ue=="}"&&(xe.context={prev:xe.context,type:"read-quoted-paused"}),xe.tokenize.push(se());break}else if(/[@\$]/.test(ye.peek())){xe.tokenize.push(re());break}}le=!le&&be=="\\"}return _e}}function ce(ue,_e){return function(fe,ge){return _e&&fe.eatSpace(),fe.match(ue)?ge.tokenize.pop():fe.skipToEnd(),"string"}}function me(ue,_e){return ue.sol()&&ue.match("=end")&&ue.eol()&&_e.tokenize.pop(),ue.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[ee],indented:0,context:{type:"top",indented:-G.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(ue,_e){J=null,ue.sol()&&(_e.indented=ue.indentation());var fe=_e.tokenize[_e.tokenize.length-1](ue,_e),ge,ye=J;if(fe=="ident"){var xe=ue.current();fe=_e.lastTok=="."?"property":j.propertyIsEnumerable(ue.current())?"keyword":/^[A-Z]/.test(xe)?"tag":_e.lastTok=="def"||_e.lastTok=="class"||_e.varList?"def":"variable",fe=="keyword"&&(ye=xe,U.propertyIsEnumerable(xe)?ge="indent":q.propertyIsEnumerable(xe)?ge="dedent":((xe=="if"||xe=="unless")&&ue.column()==ue.indentation()||xe=="do"&&_e.context.indented<_e.indented)&&(ge="indent"))}return(J||fe&&fe!="comment")&&(_e.lastTok=ye),J=="|"&&(_e.varList=!_e.varList),ge=="indent"||/[\(\[\{]/.test(J)?_e.context={prev:_e.context,type:J||fe,indented:_e.indented}:(ge=="dedent"||/[\)\]\}]/.test(J))&&_e.context.prev&&(_e.context=_e.context.prev),ue.eol()&&(_e.continuedLine=J=="\\"||fe=="operator"),fe},indent:function(ue,_e){if(ue.tokenize[ue.tokenize.length-1]!=ee)return I.Pass;var fe=_e&&_e.charAt(0),ge=ue.context,ye=ge.type==K[fe]||ge.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(_e);return ge.indented+(ye?0:G.indentUnit)+(ue.continuedLine?G.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),I.defineMIME("text/x-ruby","ruby"),I.registerHelper("hintWords","ruby",B)})}()),ruby.exports}(function(M,$){(function(I){I(codemirrorExports,requireHtmlmixed(),requireRuby())})(function(I){I.defineMode("haml",function(N){var B=I.getMode(N,{name:"htmlmixed"}),j=I.getMode(N,"ruby");function U(K){return function(G,J){var Z=G.peek();return Z==K&&J.rubyState.tokenize.length==1?(G.next(),J.tokenize=Y,"closeAttributeTag"):q(G,J)}}function q(K,G){return K.match("-#")?(K.skipToEnd(),"comment"):j.token(K,G.rubyState)}function Y(K,G){var J=K.peek();if(G.previousToken.style=="comment"&&G.indented>G.previousToken.indented)return K.skipToEnd(),"commentLine";if(G.startOfLine){if(J=="!"&&K.match("!!"))return K.skipToEnd(),"tag";if(K.match(/^%[\w:#\.]+=/))return G.tokenize=q,"hamlTag";if(K.match(/^%[\w:]+/))return"hamlTag";if(J=="/")return K.skipToEnd(),"comment"}if((G.startOfLine||G.previousToken.style=="hamlTag")&&(J=="#"||J=="."))return K.match(/[\w-#\.]*/),"hamlAttribute";if(G.startOfLine&&!K.match("-->",!1)&&(J=="="||J=="-"))return G.tokenize=q,G.tokenize(K,G);if(G.previousToken.style=="hamlTag"||G.previousToken.style=="closeAttributeTag"||G.previousToken.style=="hamlAttribute"){if(J=="(")return G.tokenize=U(")"),G.tokenize(K,G);if(J=="{"&&!K.match(/^\{%.*/))return G.tokenize=U("}"),G.tokenize(K,G)}return B.token(K,G.htmlState)}return{startState:function(){var K=I.startState(B),G=I.startState(j);return{htmlState:K,rubyState:G,indented:0,previousToken:{style:null,indented:0},tokenize:Y}},copyState:function(K){return{htmlState:I.copyState(B,K.htmlState),rubyState:I.copyState(j,K.rubyState),indented:K.indented,previousToken:K.previousToken,tokenize:K.tokenize}},token:function(K,G){if(K.sol()&&(G.indented=K.indentation(),G.startOfLine=!0),K.eatSpace())return null;var J=G.tokenize(K,G);if(G.startOfLine=!1,J&&J!="commentLine"&&(G.previousToken={style:J,indented:G.indented}),K.eol()&&G.tokenize==q){K.backUp(1);var Z=K.peek();K.next(),Z&&Z!=","&&(G.tokenize=Y)}return J=="hamlTag"?J="tag":J=="commentLine"?J="comment":J=="hamlAttribute"?J="attribute":J=="closeAttributeTag"&&(J=null),J}}},"htmlmixed","ruby"),I.defineMIME("text/x-haml","haml")})})();requireHtmlmixed();requireJavascript();requireMarkdown();(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("nginx",function(N){function B(se){for(var re={},ne=se.split(" "),ce=0;ce<ne.length;++ce)re[ne[ce]]=!0;return re}var j=B("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),U=B("http mail events server types location upstream charset_map limit_except if geo map"),q=B("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),Y=N.indentUnit,K;function G(se,re){return K=re,se}function J(se,re){se.eatWhile(/[\w\$_]/);var ne=se.current();if(j.propertyIsEnumerable(ne))return"keyword";if(U.propertyIsEnumerable(ne))return"variable-2";if(q.propertyIsEnumerable(ne))return"string-2";var ce=se.next();if(ce=="@")return se.eatWhile(/[\w\\\-]/),G("meta",se.current());if(ce=="/"&&se.eat("*"))return re.tokenize=Z,Z(se,re);if(ce=="<"&&se.eat("!"))return re.tokenize=ee,ee(se,re);if(ce=="=")G(null,"compare");else return(ce=="~"||ce=="|")&&se.eat("=")?G(null,"compare"):ce=='"'||ce=="'"?(re.tokenize=te(ce),re.tokenize(se,re)):ce=="#"?(se.skipToEnd(),G("comment","comment")):ce=="!"?(se.match(/^\s*\w*/),G("keyword","important")):/\d/.test(ce)?(se.eatWhile(/[\w.%]/),G("number","unit")):/[,.+>*\/]/.test(ce)?G(null,"select-op"):/[;{}:\[\]]/.test(ce)?G(null,ce):(se.eatWhile(/[\w\\\-]/),G("variable","variable"))}function Z(se,re){for(var ne=!1,ce;(ce=se.next())!=null;){if(ne&&ce=="/"){re.tokenize=J;break}ne=ce=="*"}return G("comment","comment")}function ee(se,re){for(var ne=0,ce;(ce=se.next())!=null;){if(ne>=2&&ce==">"){re.tokenize=J;break}ne=ce=="-"?ne+1:0}return G("comment","comment")}function te(se){return function(re,ne){for(var ce=!1,me;(me=re.next())!=null&&!(me==se&&!ce);)ce=!ce&&me=="\\";return ce||(ne.tokenize=J),G("string","string")}}return{startState:function(se){return{tokenize:J,baseIndent:se||0,stack:[]}},token:function(se,re){if(se.eatSpace())return null;K=null;var ne=re.tokenize(se,re),ce=re.stack[re.stack.length-1];return K=="hash"&&ce=="rule"?ne="atom":ne=="variable"&&(ce=="rule"?ne="number":(!ce||ce=="@media{")&&(ne="tag")),ce=="rule"&&/^[\{\};]$/.test(K)&&re.stack.pop(),K=="{"?ce=="@media"?re.stack[re.stack.length-1]="@media{":re.stack.push("{"):K=="}"?re.stack.pop():K=="@media"?re.stack.push("@media"):ce=="{"&&K!="comment"&&re.stack.push("rule"),ne},indent:function(se,re){var ne=se.stack.length;return/^\}/.test(re)&&(ne-=se.stack[se.stack.length-1]=="rule"?2:1),se.baseIndent+ne*Y},electricChars:"}"}}),I.defineMIME("text/x-nginx-conf","nginx")})})();(function(M,$){(function(I){I(codemirrorExports,requireHtmlmixed(),clikeExports)})(function(I){function N(J){for(var Z={},ee=J.split(" "),te=0;te<ee.length;++te)Z[ee[te]]=!0;return Z}function B(J,Z,ee){return J.length==0?j(Z):function(te,se){for(var re=J[0],ne=0;ne<re.length;ne++)if(te.match(re[ne][0]))return se.tokenize=B(J.slice(1),Z),re[ne][1];return se.tokenize=j(Z,ee),"string"}}function j(J,Z){return function(ee,te){return U(ee,te,J,Z)}}function U(J,Z,ee,te){if(te!==!1&&J.match("${",!1)||J.match("{$",!1))return Z.tokenize=null,"string";if(te!==!1&&J.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return J.match("[",!1)&&(Z.tokenize=B([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],ee,te)),J.match(/^->\w/,!1)&&(Z.tokenize=B([[["->",null]],[[/[\w]+/,"variable"]]],ee,te)),"variable-2";for(var se=!1;!J.eol()&&(se||te===!1||!J.match("{$",!1)&&!J.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!se&&J.match(ee)){Z.tokenize=null,Z.tokStack.pop(),Z.tokStack.pop();break}se=J.next()=="\\"&&!se}return"string"}var q="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",Y="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",K="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";I.registerHelper("hintWords","php",[q,Y,K].join(" ").split(" ")),I.registerHelper("wordChars","php",/[\w$]/);var G={name:"clike",helperType:"php",keywords:N(q),blockKeywords:N("catch do else elseif for foreach if switch try while finally"),defKeywords:N("class enum function interface namespace trait"),atoms:N(Y),builtin:N(K),multiLineStrings:!0,hooks:{$:function(J){return J.eatWhile(/[\w\$_]/),"variable-2"},"<":function(J,Z){var ee;if(ee=J.match(/^<<\s*/)){var te=J.eat(/['"]/);J.eatWhile(/[\w\.]/);var se=J.current().slice(ee[0].length+(te?2:1));if(te&&J.eat(te),se)return(Z.tokStack||(Z.tokStack=[])).push(se,0),Z.tokenize=j(se,te!="'"),"string"}return!1},"#":function(J){for(;!J.eol()&&!J.match("?>",!1);)J.next();return"comment"},"/":function(J){if(J.eat("/")){for(;!J.eol()&&!J.match("?>",!1);)J.next();return"comment"}return!1},'"':function(J,Z){return(Z.tokStack||(Z.tokStack=[])).push('"',0),Z.tokenize=j('"'),"string"},"{":function(J,Z){return Z.tokStack&&Z.tokStack.length&&Z.tokStack[Z.tokStack.length-1]++,!1},"}":function(J,Z){return Z.tokStack&&Z.tokStack.length>0&&!--Z.tokStack[Z.tokStack.length-1]&&(Z.tokenize=j(Z.tokStack[Z.tokStack.length-2])),!1}}};I.defineMode("php",function(J,Z){var ee=I.getMode(J,Z&&Z.htmlMode||"text/html"),te=I.getMode(J,G);function se(re,ne){var ce=ne.curMode==te;if(re.sol()&&ne.pending&&ne.pending!='"'&&ne.pending!="'"&&(ne.pending=null),ce)return ce&&ne.php.tokenize==null&&re.match("?>")?(ne.curMode=ee,ne.curState=ne.html,ne.php.context.prev||(ne.php=null),"meta"):te.token(re,ne.curState);if(re.match(/^<\?\w*/))return ne.curMode=te,ne.php||(ne.php=I.startState(te,ee.indent(ne.html,"",""))),ne.curState=ne.php,"meta";if(ne.pending=='"'||ne.pending=="'"){for(;!re.eol()&&re.next()!=ne.pending;);var me="string"}else if(ne.pending&&re.pos<ne.pending.end){re.pos=ne.pending.end;var me=ne.pending.style}else var me=ee.token(re,ne.curState);ne.pending&&(ne.pending=null);var ue=re.current(),_e=ue.search(/<\?/),fe;return _e!=-1&&(me=="string"&&(fe=ue.match(/[\'\"]$/))&&!/\?>/.test(ue)?ne.pending=fe[0]:ne.pending={end:re.pos,style:me},re.backUp(ue.length-_e)),me}return{startState:function(){var re=I.startState(ee),ne=Z.startOpen?I.startState(te):null;return{html:re,php:ne,curMode:Z.startOpen?te:ee,curState:Z.startOpen?ne:re,pending:null}},copyState:function(re){var ne=re.html,ce=I.copyState(ee,ne),me=re.php,ue=me&&I.copyState(te,me),_e;return re.curMode==ee?_e=ce:_e=ue,{html:ce,php:ue,curMode:re.curMode,curState:_e,pending:re.pending}},token:se,indent:function(re,ne,ce){return re.curMode!=te&&/^\s*<\//.test(ne)||re.curMode==te&&/^\?>/.test(ne)?ee.indent(re.html,ne,ce):re.curMode.indent(re.curState,ne,ce)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(re){return{state:re.curState,mode:re.curMode}}}},"htmlmixed","clike"),I.defineMIME("application/x-httpd-php","php"),I.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),I.defineMIME("text/x-php",G)})})();(function(M,$){(function(I){I(codemirrorExports)})(function(I){function N(K){return new RegExp("^(("+K.join(")|(")+"))\\b")}var B=N(["and","or","not","is"]),j=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],U=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];I.registerHelper("hintWords","python",j.concat(U).concat(["exec","print"]));function q(K){return K.scopes[K.scopes.length-1]}I.defineMode("python",function(K,G){for(var J="error",Z=G.delimiters||G.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,ee=[G.singleOperators,G.doubleOperators,G.doubleDelimiters,G.tripleDelimiters,G.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],te=0;te<ee.length;te++)ee[te]||ee.splice(te--,1);var se=G.hangingIndent||K.indentUnit,re=j,ne=U;G.extra_keywords!=null&&(re=re.concat(G.extra_keywords)),G.extra_builtins!=null&&(ne=ne.concat(G.extra_builtins));var ce=!(G.version&&Number(G.version)<3);if(ce){var me=G.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;re=re.concat(["nonlocal","None","aiter","anext","async","await","breakpoint","match","case"]),ne=ne.concat(["ascii","bytes","exec","print"]);var ue=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var me=G.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;re=re.concat(["exec","print"]),ne=ne.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","None"]);var ue=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var _e=N(re),fe=N(ne);function ge(Pe,Me){var Be=Pe.sol()&&Me.lastToken!="\\";if(Be&&(Me.indent=Pe.indentation()),Be&&q(Me).type=="py"){var ze=q(Me).offset;if(Pe.eatSpace()){var Ze=Pe.indentation();return Ze>ze?be(Me):Ze<ze&&we(Pe,Me)&&Pe.peek()!="#"&&(Me.errorToken=!0),null}else{var ft=ye(Pe,Me);return ze>0&&we(Pe,Me)&&(ft+=" "+J),ft}}return ye(Pe,Me)}function ye(Pe,Me,Be){if(Pe.eatSpace())return null;if(!Be&&Pe.match(/^#.*/))return"comment";if(Pe.match(/^[0-9\.]/,!1)){var ze=!1;if(Pe.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(ze=!0),Pe.match(/^[\d_]+\.\d*/)&&(ze=!0),Pe.match(/^\.\d+/)&&(ze=!0),ze)return Pe.eat(/J/i),"number";var Ze=!1;if(Pe.match(/^0x[0-9a-f_]+/i)&&(Ze=!0),Pe.match(/^0b[01_]+/i)&&(Ze=!0),Pe.match(/^0o[0-7_]+/i)&&(Ze=!0),Pe.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(Pe.eat(/J/i),Ze=!0),Pe.match(/^0(?![\dx])/i)&&(Ze=!0),Ze)return Pe.eat(/L/i),"number"}if(Pe.match(ue)){var ft=Pe.current().toLowerCase().indexOf("f")!==-1;return ft?(Me.tokenize=xe(Pe.current(),Me.tokenize),Me.tokenize(Pe,Me)):(Me.tokenize=le(Pe.current(),Me.tokenize),Me.tokenize(Pe,Me))}for(var Ye=0;Ye<ee.length;Ye++)if(Pe.match(ee[Ye]))return"operator";return Pe.match(Z)?"punctuation":Me.lastToken=="."&&Pe.match(me)?"property":Pe.match(_e)||Pe.match(B)?"keyword":Pe.match(fe)?"builtin":Pe.match(/^(self|cls)\b/)?"variable-2":Pe.match(me)?Me.lastToken=="def"||Me.lastToken=="class"?"def":"variable":(Pe.next(),Be?null:J)}function xe(Pe,Me){for(;"rubf".indexOf(Pe.charAt(0).toLowerCase())>=0;)Pe=Pe.substr(1);var Be=Pe.length==1,ze="string";function Ze(Ye){return function(Ve,Dt){var Nt=ye(Ve,Dt,!0);return Nt=="punctuation"&&(Ve.current()=="{"?Dt.tokenize=Ze(Ye+1):Ve.current()=="}"&&(Ye>1?Dt.tokenize=Ze(Ye-1):Dt.tokenize=ft)),Nt}}function ft(Ye,Ve){for(;!Ye.eol();)if(Ye.eatWhile(/[^'"\{\}\\]/),Ye.eat("\\")){if(Ye.next(),Be&&Ye.eol())return ze}else{if(Ye.match(Pe))return Ve.tokenize=Me,ze;if(Ye.match("{{"))return ze;if(Ye.match("{",!1))return Ve.tokenize=Ze(0),Ye.current()?ze:Ve.tokenize(Ye,Ve);if(Ye.match("}}"))return ze;if(Ye.match("}"))return J;Ye.eat(/['"]/)}if(Be){if(G.singleLineStringErrors)return J;Ve.tokenize=Me}return ze}return ft.isString=!0,ft}function le(Pe,Me){for(;"rubf".indexOf(Pe.charAt(0).toLowerCase())>=0;)Pe=Pe.substr(1);var Be=Pe.length==1,ze="string";function Ze(ft,Ye){for(;!ft.eol();)if(ft.eatWhile(/[^'"\\]/),ft.eat("\\")){if(ft.next(),Be&&ft.eol())return ze}else{if(ft.match(Pe))return Ye.tokenize=Me,ze;ft.eat(/['"]/)}if(Be){if(G.singleLineStringErrors)return J;Ye.tokenize=Me}return ze}return Ze.isString=!0,Ze}function be(Pe){for(;q(Pe).type!="py";)Pe.scopes.pop();Pe.scopes.push({offset:q(Pe).offset+K.indentUnit,type:"py",align:null})}function ve(Pe,Me,Be){var ze=Pe.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:Pe.column()+1;Me.scopes.push({offset:Me.indent+se,type:Be,align:ze})}function we(Pe,Me){for(var Be=Pe.indentation();Me.scopes.length>1&&q(Me).offset>Be;){if(q(Me).type!="py")return!0;Me.scopes.pop()}return q(Me).offset!=Be}function Ae(Pe,Me){Pe.sol()&&(Me.beginningOfLine=!0,Me.dedent=!1);var Be=Me.tokenize(Pe,Me),ze=Pe.current();if(Me.beginningOfLine&&ze=="@")return Pe.match(me,!1)?"meta":ce?"operator":J;if(/\S/.test(ze)&&(Me.beginningOfLine=!1),(Be=="variable"||Be=="builtin")&&Me.lastToken=="meta"&&(Be="meta"),(ze=="pass"||ze=="return")&&(Me.dedent=!0),ze=="lambda"&&(Me.lambda=!0),ze==":"&&!Me.lambda&&q(Me).type=="py"&&Pe.match(/^\s*(?:#|$)/,!1)&&be(Me),ze.length==1&&!/string|comment/.test(Be)){var Ze="[({".indexOf(ze);if(Ze!=-1&&ve(Pe,Me,"])}".slice(Ze,Ze+1)),Ze="])}".indexOf(ze),Ze!=-1)if(q(Me).type==ze)Me.indent=Me.scopes.pop().offset-se;else return J}return Me.dedent&&Pe.eol()&&q(Me).type=="py"&&Me.scopes.length>1&&Me.scopes.pop(),Be}var Se={startState:function(Pe){return{tokenize:ge,scopes:[{offset:Pe||0,type:"py",align:null}],indent:Pe||0,lastToken:null,lambda:!1,dedent:0}},token:function(Pe,Me){var Be=Me.errorToken;Be&&(Me.errorToken=!1);var ze=Ae(Pe,Me);return ze&&ze!="comment"&&(Me.lastToken=ze=="keyword"||ze=="punctuation"?Pe.current():ze),ze=="punctuation"&&(ze=null),Pe.eol()&&Me.lambda&&(Me.lambda=!1),Be?ze+" "+J:ze},indent:function(Pe,Me){if(Pe.tokenize!=ge)return Pe.tokenize.isString?I.Pass:0;var Be=q(Pe),ze=Be.type==Me.charAt(0)||Be.type=="py"&&!Pe.dedent&&/^(else:|elif |except |finally:)/.test(Me);return Be.align!=null?Be.align-(ze?1:0):Be.offset-(ze?se:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return Se}),I.defineMIME("text/x-python","python");var Y=function(K){return K.split(" ")};I.defineMIME("text/x-cython",{name:"python",extra_keywords:Y("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();requireRuby();(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("shell",function(){var N={};function B(te,se){for(var re=0;re<se.length;re++)N[se[re]]=te}var j=["true","false"],U=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],q=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];I.registerHelper("hintWords","shell",j.concat(U,q)),B("atom",j),B("keyword",U),B("builtin",q);function Y(te,se){if(te.eatSpace())return null;var re=te.sol(),ne=te.next();if(ne==="\\")return te.next(),null;if(ne==="'"||ne==='"'||ne==="`")return se.tokens.unshift(K(ne,ne==="`"?"quote":"string")),ee(te,se);if(ne==="#")return re&&te.eat("!")?(te.skipToEnd(),"meta"):(te.skipToEnd(),"comment");if(ne==="$")return se.tokens.unshift(J),ee(te,se);if(ne==="+"||ne==="=")return"operator";if(ne==="-")return te.eat("-"),te.eatWhile(/\w/),"attribute";if(ne=="<"){if(te.match("<<"))return"operator";var ce=te.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(ce)return se.tokens.unshift(Z(ce[1])),"string-2"}if(/\d/.test(ne)&&(te.eatWhile(/\d/),te.eol()||!/\w/.test(te.peek())))return"number";te.eatWhile(/[\w-]/);var me=te.current();return te.peek()==="="&&/\w+/.test(me)?"def":N.hasOwnProperty(me)?N[me]:null}function K(te,se){var re=te=="("?")":te=="{"?"}":te;return function(ne,ce){for(var me,ue=!1;(me=ne.next())!=null;){if(me===re&&!ue){ce.tokens.shift();break}else if(me==="$"&&!ue&&te!=="'"&&ne.peek()!=re){ue=!0,ne.backUp(1),ce.tokens.unshift(J);break}else{if(!ue&&te!==re&&me===te)return ce.tokens.unshift(K(te,se)),ee(ne,ce);if(!ue&&/['"]/.test(me)&&!/['"]/.test(te)){ce.tokens.unshift(G(me,"string")),ne.backUp(1);break}}ue=!ue&&me==="\\"}return se}}function G(te,se){return function(re,ne){return ne.tokens[0]=K(te,se),re.next(),ee(re,ne)}}var J=function(te,se){se.tokens.length>1&&te.eat("$");var re=te.next();return/['"({]/.test(re)?(se.tokens[0]=K(re,re=="("?"quote":re=="{"?"def":"string"),ee(te,se)):(/\d/.test(re)||te.eatWhile(/\w/),se.tokens.shift(),"def")};function Z(te){return function(se,re){return se.sol()&&se.string==te&&re.tokens.shift(),se.skipToEnd(),"string-2"}}function ee(te,se){return(se.tokens[0]||Y)(te,se)}return{startState:function(){return{tokens:[]}},token:function(te,se){return ee(te,se)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),I.defineMIME("text/x-sh","shell"),I.defineMIME("application/x-sh","shell")})})();(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("sql",function(G,J){var Z=J.client||{},ee=J.atoms||{false:!0,true:!0,null:!0},te=J.builtin||Y(K),se=J.keywords||Y(q),re=J.operatorChars||/^[*+\-%<>!=&|~^\/]/,ne=J.support||{},ce=J.hooks||{},me=J.dateSQL||{date:!0,time:!0,timestamp:!0},ue=J.backslashStringEscapes!==!1,_e=J.brackets||/^[\{}\(\)\[\]]/,fe=J.punctuation||/^[;.,:]/;function ge(ve,we){var Ae=ve.next();if(ce[Ae]){var Se=ce[Ae](ve,we);if(Se!==!1)return Se}if(ne.hexNumber&&(Ae=="0"&&ve.match(/^[xX][0-9a-fA-F]+/)||(Ae=="x"||Ae=="X")&&ve.match(/^'[0-9a-fA-F]*'/)))return"number";if(ne.binaryNumber&&((Ae=="b"||Ae=="B")&&ve.match(/^'[01]*'/)||Ae=="0"&&ve.match(/^b[01]+/)))return"number";if(Ae.charCodeAt(0)>47&&Ae.charCodeAt(0)<58)return ve.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),ne.decimallessFloat&&ve.match(/^\.(?!\.)/),"number";if(Ae=="?"&&(ve.eatSpace()||ve.eol()||ve.eat(";")))return"variable-3";if(Ae=="'"||Ae=='"'&&ne.doubleQuote)return we.tokenize=ye(Ae),we.tokenize(ve,we);if((ne.nCharCast&&(Ae=="n"||Ae=="N")||ne.charsetCast&&Ae=="_"&&ve.match(/[a-z][a-z0-9]*/i))&&(ve.peek()=="'"||ve.peek()=='"'))return"keyword";if(ne.escapeConstant&&(Ae=="e"||Ae=="E")&&(ve.peek()=="'"||ve.peek()=='"'&&ne.doubleQuote))return we.tokenize=function(Me,Be){return(Be.tokenize=ye(Me.next(),!0))(Me,Be)},"keyword";if(ne.commentSlashSlash&&Ae=="/"&&ve.eat("/"))return ve.skipToEnd(),"comment";if(ne.commentHash&&Ae=="#"||Ae=="-"&&ve.eat("-")&&(!ne.commentSpaceRequired||ve.eat(" ")))return ve.skipToEnd(),"comment";if(Ae=="/"&&ve.eat("*"))return we.tokenize=xe(1),we.tokenize(ve,we);if(Ae=="."){if(ne.zerolessFloat&&ve.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(ve.match(/^\.+/))return null;if(ve.match(/^[\w\d_$#]+/))return"variable-2"}else{if(re.test(Ae))return ve.eatWhile(re),"operator";if(_e.test(Ae))return"bracket";if(fe.test(Ae))return ve.eatWhile(fe),"punctuation";if(Ae=="{"&&(ve.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||ve.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";ve.eatWhile(/^[_\w\d]/);var Pe=ve.current().toLowerCase();return me.hasOwnProperty(Pe)&&(ve.match(/^( )+'[^']*'/)||ve.match(/^( )+"[^"]*"/))?"number":ee.hasOwnProperty(Pe)?"atom":te.hasOwnProperty(Pe)?"type":se.hasOwnProperty(Pe)?"keyword":Z.hasOwnProperty(Pe)?"builtin":null}}function ye(ve,we){return function(Ae,Se){for(var Pe=!1,Me;(Me=Ae.next())!=null;){if(Me==ve&&!Pe){Se.tokenize=ge;break}Pe=(ue||we)&&!Pe&&Me=="\\"}return"string"}}function xe(ve){return function(we,Ae){var Se=we.match(/^.*?(\/\*|\*\/)/);return Se?Se[1]=="/*"?Ae.tokenize=xe(ve+1):ve>1?Ae.tokenize=xe(ve-1):Ae.tokenize=ge:we.skipToEnd(),"comment"}}function le(ve,we,Ae){we.context={prev:we.context,indent:ve.indentation(),col:ve.column(),type:Ae}}function be(ve){ve.indent=ve.context.indent,ve.context=ve.context.prev}return{startState:function(){return{tokenize:ge,context:null}},token:function(ve,we){if(ve.sol()&&we.context&&we.context.align==null&&(we.context.align=!1),we.tokenize==ge&&ve.eatSpace())return null;var Ae=we.tokenize(ve,we);if(Ae=="comment")return Ae;we.context&&we.context.align==null&&(we.context.align=!0);var Se=ve.current();return Se=="("?le(ve,we,")"):Se=="["?le(ve,we,"]"):we.context&&we.context.type==Se&&be(we),Ae},indent:function(ve,we){var Ae=ve.context;if(!Ae)return I.Pass;var Se=we.charAt(0)==Ae.type;return Ae.align?Ae.col+(Se?0:1):Ae.indent+(Se?0:G.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:ne.commentSlashSlash?"//":ne.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:J}});function N(G){for(var J;(J=G.next())!=null;)if(J=="`"&&!G.eat("`"))return"variable-2";return G.backUp(G.current().length-1),G.eatWhile(/\w/)?"variable-2":null}function B(G){for(var J;(J=G.next())!=null;)if(J=='"'&&!G.eat('"'))return"variable-2";return G.backUp(G.current().length-1),G.eatWhile(/\w/)?"variable-2":null}function j(G){return G.eat("@")&&(G.match("session."),G.match("local."),G.match("global.")),G.eat("'")?(G.match(/^.*'/),"variable-2"):G.eat('"')?(G.match(/^.*"/),"variable-2"):G.eat("`")?(G.match(/^.*`/),"variable-2"):G.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function U(G){return G.eat("N")?"atom":G.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var q="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function Y(G){for(var J={},Z=G.split(" "),ee=0;ee<Z.length;++ee)J[Z[ee]]=!0;return J}var K="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";I.defineMIME("text/x-sql",{name:"sql",keywords:Y(q+"begin"),builtin:Y(K),atoms:Y("false true null unknown"),dateSQL:Y("date time timestamp"),support:Y("doubleQuote binaryNumber hexNumber")}),I.defineMIME("text/x-mssql",{name:"sql",client:Y("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:Y(q+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:Y("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:Y("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:Y("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":j}}),I.defineMIME("text/x-mysql",{name:"sql",client:Y("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:Y(q+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:Y("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":j,"`":N,"\\":U}}),I.defineMIME("text/x-mariadb",{name:"sql",client:Y("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:Y(q+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:Y("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":j,"`":N,"\\":U}}),I.defineMIME("text/x-sqlite",{name:"sql",client:Y("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:Y(q+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:Y("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:Y("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:Y("date time timestamp datetime"),support:Y("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":j,":":j,"?":j,$:j,'"':B,"`":N}}),I.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:Y("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:Y("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:Y("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:Y("commentSlashSlash decimallessFloat"),hooks:{}}),I.defineMIME("text/x-plsql",{name:"sql",client:Y("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:Y("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:Y("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:Y("date time timestamp"),support:Y("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),I.defineMIME("text/x-hive",{name:"sql",keywords:Y("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:Y("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:Y("date timestamp"),support:Y("doubleQuote binaryNumber hexNumber")}),I.defineMIME("text/x-pgsql",{name:"sql",client:Y("source"),keywords:Y(q+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:Y("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:Y("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),I.defineMIME("text/x-gql",{name:"sql",keywords:Y("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:Y("false true"),builtin:Y("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),I.defineMIME("text/x-gpsql",{name:"sql",client:Y("source"),keywords:Y("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:Y("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:Y("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:Y("date time timestamp"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),I.defineMIME("text/x-sparksql",{name:"sql",keywords:Y("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:Y("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:Y("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:Y("date time timestamp"),support:Y("doubleQuote zerolessFloat")}),I.defineMIME("text/x-esper",{name:"sql",client:Y("source"),keywords:Y("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:Y("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:Y("time"),support:Y("decimallessFloat zerolessFloat binaryNumber hexNumber")}),I.defineMIME("text/x-trino",{name:"sql",keywords:Y("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:Y("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:Y("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:Y("date time timestamp zone"),support:Y("decimallessFloat zerolessFloat hexNumber")})})})();(function(M,$){(function(I){I(codemirrorExports,requireMultiplex())})(function(I){I.defineMode("twig:inner",function(){var N=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],B=/^[+\-*&%=<>!?|~^]/,j=/^[:\[\(\{]/,U=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],q=/^(\d[+\-\*\/])?\d+(\.\d+)?/;N=new RegExp("(("+N.join(")|(")+"))\\b"),U=new RegExp("(("+U.join(")|(")+"))\\b");function Y(K,G){var J=K.peek();if(G.incomment)return K.skipTo("#}")?(K.eatWhile(/\#|}/),G.incomment=!1):K.skipToEnd(),"comment";if(G.intag){if(G.operator){if(G.operator=!1,K.match(U))return"atom";if(K.match(q))return"number"}if(G.sign){if(G.sign=!1,K.match(U))return"atom";if(K.match(q))return"number"}if(G.instring)return J==G.instring&&(G.instring=!1),K.next(),"string";if(J=="'"||J=='"')return G.instring=J,K.next(),"string";if(K.match(G.intag+"}")||K.eat("-")&&K.match(G.intag+"}"))return G.intag=!1,"tag";if(K.match(B))return G.operator=!0,"operator";if(K.match(j))G.sign=!0;else if(K.eat(" ")||K.sol()){if(K.match(N))return"keyword";if(K.match(U))return"atom";if(K.match(q))return"number";K.sol()&&K.next()}else K.next();return"variable"}else if(K.eat("{")){if(K.eat("#"))return G.incomment=!0,K.skipTo("#}")?(K.eatWhile(/\#|}/),G.incomment=!1):K.skipToEnd(),"comment";if(J=K.eat(/\{|%/))return G.intag=J,J=="{"&&(G.intag="}"),K.eat("-"),"tag"}K.next()}return{startState:function(){return{}},token:function(K,G){return Y(K,G)}}}),I.defineMode("twig",function(N,B){var j=I.getMode(N,"twig:inner");return!B||!B.base?j:I.multiplexingMode(I.getMode(N,B.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:j,parseDelimiters:!0})}),I.defineMIME("text/x-twig","twig")})})();var coffeescript={exports:{}},hasRequiredCoffeescript;function requireCoffeescript(){return hasRequiredCoffeescript||(hasRequiredCoffeescript=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("coffeescript",function(N,B){var j="error";function U(le){return new RegExp("^(("+le.join(")|(")+"))\\b")}var q=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,Y=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,K=/^[_A-Za-z$][_A-Za-z$0-9]*/,G=/^@[_A-Za-z$][_A-Za-z$0-9]*/,J=U(["and","or","not","is","isnt","in","instanceof","typeof"]),Z=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],ee=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],te=U(Z.concat(ee));Z=U(Z);var se=/^('{3}|\"{3}|['\"])/,re=/^(\/{3}|\/)/,ne=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],ce=U(ne);function me(le,be){if(le.sol()){be.scope.align===null&&(be.scope.align=!1);var ve=be.scope.offset;if(le.eatSpace()){var we=le.indentation();return we>ve&&be.scope.type=="coffee"?"indent":we<ve?"dedent":null}else ve>0&&ge(le,be)}if(le.eatSpace())return null;var Ae=le.peek();if(le.match("####"))return le.skipToEnd(),"comment";if(le.match("###"))return be.tokenize=_e,be.tokenize(le,be);if(Ae==="#")return le.skipToEnd(),"comment";if(le.match(/^-?[0-9\.]/,!1)){var Se=!1;if(le.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(Se=!0),le.match(/^-?\d+\.\d*/)&&(Se=!0),le.match(/^-?\.\d+/)&&(Se=!0),Se)return le.peek()=="."&&le.backUp(1),"number";var Pe=!1;if(le.match(/^-?0x[0-9a-f]+/i)&&(Pe=!0),le.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(Pe=!0),le.match(/^-?0(?![\dx])/i)&&(Pe=!0),Pe)return"number"}if(le.match(se))return be.tokenize=ue(le.current(),!1,"string"),be.tokenize(le,be);if(le.match(re)){if(le.current()!="/"||le.match(/^.*\//,!1))return be.tokenize=ue(le.current(),!0,"string-2"),be.tokenize(le,be);le.backUp(1)}return le.match(q)||le.match(J)?"operator":le.match(Y)?"punctuation":le.match(ce)?"atom":le.match(G)||be.prop&&le.match(K)?"property":le.match(te)?"keyword":le.match(K)?"variable":(le.next(),j)}function ue(le,be,ve){return function(we,Ae){for(;!we.eol();)if(we.eatWhile(/[^'"\/\\]/),we.eat("\\")){if(we.next(),be&&we.eol())return ve}else{if(we.match(le))return Ae.tokenize=me,ve;we.eat(/['"\/]/)}return be&&(B.singleLineStringErrors?ve=j:Ae.tokenize=me),ve}}function _e(le,be){for(;!le.eol();){if(le.eatWhile(/[^#]/),le.match("###")){be.tokenize=me;break}le.eatWhile("#")}return"comment"}function fe(le,be,ve){ve=ve||"coffee";for(var we=0,Ae=!1,Se=null,Pe=be.scope;Pe;Pe=Pe.prev)if(Pe.type==="coffee"||Pe.type=="}"){we=Pe.offset+N.indentUnit;break}ve!=="coffee"?(Ae=null,Se=le.column()+le.current().length):be.scope.align&&(be.scope.align=!1),be.scope={offset:we,type:ve,prev:be.scope,align:Ae,alignOffset:Se}}function ge(le,be){if(be.scope.prev)if(be.scope.type==="coffee"){for(var ve=le.indentation(),we=!1,Ae=be.scope;Ae;Ae=Ae.prev)if(ve===Ae.offset){we=!0;break}if(!we)return!0;for(;be.scope.prev&&be.scope.offset!==ve;)be.scope=be.scope.prev;return!1}else return be.scope=be.scope.prev,!1}function ye(le,be){var ve=be.tokenize(le,be),we=le.current();we==="return"&&(be.dedent=!0),((we==="->"||we==="=>")&&le.eol()||ve==="indent")&&fe(le,be);var Ae="[({".indexOf(we);if(Ae!==-1&&fe(le,be,"])}".slice(Ae,Ae+1)),Z.exec(we)&&fe(le,be),we=="then"&&ge(le,be),ve==="dedent"&&ge(le,be))return j;if(Ae="])}".indexOf(we),Ae!==-1){for(;be.scope.type=="coffee"&&be.scope.prev;)be.scope=be.scope.prev;be.scope.type==we&&(be.scope=be.scope.prev)}return be.dedent&&le.eol()&&(be.scope.type=="coffee"&&be.scope.prev&&(be.scope=be.scope.prev),be.dedent=!1),ve}var xe={startState:function(le){return{tokenize:me,scope:{offset:le||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(le,be){var ve=be.scope.align===null&&be.scope;ve&&le.sol()&&(ve.align=!1);var we=ye(le,be);return we&&we!="comment"&&(ve&&(ve.align=!0),be.prop=we=="punctuation"&&le.current()=="."),we},indent:function(le,be){if(le.tokenize!=me)return 0;var ve=le.scope,we=be&&"])}".indexOf(be.charAt(0))>-1;if(we)for(;ve.type=="coffee"&&ve.prev;)ve=ve.prev;var Ae=we&&ve.type===be.charAt(0);return ve.align?ve.alignOffset-(Ae?1:0):(Ae?ve.prev:ve).offset},lineComment:"#",fold:"indent"};return xe}),I.defineMIME("application/vnd.coffeescript","coffeescript"),I.defineMIME("text/x-coffeescript","coffeescript"),I.defineMIME("text/coffeescript","coffeescript")})}()),coffeescript.exports}var sass={exports:{}},hasRequiredSass;function requireSass(){return hasRequiredSass||(hasRequiredSass=1,function(M,$){(function(I){I(codemirrorExports,cssExports)})(function(I){I.defineMode("sass",function(N){var B=I.mimeModes["text/css"],j=B.propertyKeywords||{},U=B.colorKeywords||{},q=B.valueKeywords||{},Y=B.fontProperties||{};function K(xe){return new RegExp("^"+xe.join("|"))}var G=["true","false","null","auto"],J=new RegExp("^"+G.join("|")),Z=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],ee=K(Z),te=/^::?[a-zA-Z_][\w\-]*/,se;function re(xe){return!xe.peek()||xe.match(/\s+$/,!1)}function ne(xe,le){var be=xe.peek();return be===")"?(xe.next(),le.tokenizer=ge,"operator"):be==="("?(xe.next(),xe.eatSpace(),"operator"):be==="'"||be==='"'?(le.tokenizer=me(xe.next()),"string"):(le.tokenizer=me(")",!1),"string")}function ce(xe,le){return function(be,ve){return be.sol()&&be.indentation()<=xe?(ve.tokenizer=ge,ge(be,ve)):(le&&be.skipTo("*/")?(be.next(),be.next(),ve.tokenizer=ge):be.skipToEnd(),"comment")}}function me(xe,le){le==null&&(le=!0);function be(ve,we){var Ae=ve.next(),Se=ve.peek(),Pe=ve.string.charAt(ve.pos-2),Me=Ae!=="\\"&&Se===xe||Ae===xe&&Pe!=="\\";return Me?(Ae!==xe&&le&&ve.next(),re(ve)&&(we.cursorHalf=0),we.tokenizer=ge,"string"):Ae==="#"&&Se==="{"?(we.tokenizer=ue(be),ve.next(),"operator"):"string"}return be}function ue(xe){return function(le,be){return le.peek()==="}"?(le.next(),be.tokenizer=xe,"operator"):ge(le,be)}}function _e(xe){if(xe.indentCount==0){xe.indentCount++;var le=xe.scopes[0].offset,be=le+N.indentUnit;xe.scopes.unshift({offset:be})}}function fe(xe){xe.scopes.length!=1&&xe.scopes.shift()}function ge(xe,le){var be=xe.peek();if(xe.match("/*"))return le.tokenizer=ce(xe.indentation(),!0),le.tokenizer(xe,le);if(xe.match("//"))return le.tokenizer=ce(xe.indentation(),!1),le.tokenizer(xe,le);if(xe.match("#{"))return le.tokenizer=ue(ge),"operator";if(be==='"'||be==="'")return xe.next(),le.tokenizer=me(be),"string";if(le.cursorHalf){if(be==="#"&&(xe.next(),xe.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||xe.match(/^-?[0-9\.]+/))return re(xe)&&(le.cursorHalf=0),"number";if(xe.match(/^(px|em|in)\b/))return re(xe)&&(le.cursorHalf=0),"unit";if(xe.match(J))return re(xe)&&(le.cursorHalf=0),"keyword";if(xe.match(/^url/)&&xe.peek()==="(")return le.tokenizer=ne,re(xe)&&(le.cursorHalf=0),"atom";if(be==="$")return xe.next(),xe.eatWhile(/[\w-]/),re(xe)&&(le.cursorHalf=0),"variable-2";if(be==="!")return xe.next(),le.cursorHalf=0,xe.match(/^[\w]+/)?"keyword":"operator";if(xe.match(ee))return re(xe)&&(le.cursorHalf=0),"operator";if(xe.eatWhile(/[\w-]/))return re(xe)&&(le.cursorHalf=0),se=xe.current().toLowerCase(),q.hasOwnProperty(se)?"atom":U.hasOwnProperty(se)?"keyword":j.hasOwnProperty(se)?(le.prevProp=xe.current().toLowerCase(),"property"):"tag";if(re(xe))return le.cursorHalf=0,null}else{if(be==="-"&&xe.match(/^-\w+-/))return"meta";if(be==="."){if(xe.next(),xe.match(/^[\w-]+/))return _e(le),"qualifier";if(xe.peek()==="#")return _e(le),"tag"}if(be==="#"){if(xe.next(),xe.match(/^[\w-]+/))return _e(le),"builtin";if(xe.peek()==="#")return _e(le),"tag"}if(be==="$")return xe.next(),xe.eatWhile(/[\w-]/),"variable-2";if(xe.match(/^-?[0-9\.]+/))return"number";if(xe.match(/^(px|em|in)\b/))return"unit";if(xe.match(J))return"keyword";if(xe.match(/^url/)&&xe.peek()==="(")return le.tokenizer=ne,"atom";if(be==="="&&xe.match(/^=[\w-]+/))return _e(le),"meta";if(be==="+"&&xe.match(/^\+[\w-]+/))return"variable-3";if(be==="@"&&xe.match("@extend")&&(xe.match(/\s*[\w]/)||fe(le)),xe.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return _e(le),"def";if(be==="@")return xe.next(),xe.eatWhile(/[\w-]/),"def";if(xe.eatWhile(/[\w-]/))if(xe.match(/ *: *[\w-\+\$#!\("']/,!1)){se=xe.current().toLowerCase();var ve=le.prevProp+"-"+se;return j.hasOwnProperty(ve)?"property":j.hasOwnProperty(se)?(le.prevProp=se,"property"):Y.hasOwnProperty(se)?"property":"tag"}else return xe.match(/ *:/,!1)?(_e(le),le.cursorHalf=1,le.prevProp=xe.current().toLowerCase(),"property"):(xe.match(/ *,/,!1)||_e(le),"tag");if(be===":")return xe.match(te)?"variable-3":(xe.next(),le.cursorHalf=1,"operator")}return xe.match(ee)?"operator":(xe.next(),null)}function ye(xe,le){xe.sol()&&(le.indentCount=0);var be=le.tokenizer(xe,le),ve=xe.current();if((ve==="@return"||ve==="}")&&fe(le),be!==null){for(var we=xe.pos-ve.length,Ae=we+N.indentUnit*le.indentCount,Se=[],Pe=0;Pe<le.scopes.length;Pe++){var Me=le.scopes[Pe];Me.offset<=Ae&&Se.push(Me)}le.scopes=Se}return be}return{startState:function(){return{tokenizer:ge,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(xe,le){var be=ye(xe,le);return le.lastToken={style:be,content:xe.current()},be},indent:function(xe){return xe.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}},"css"),I.defineMIME("text/x-sass","sass")})}()),sass.exports}var stylus={exports:{}},hasRequiredStylus;function requireStylus(){return hasRequiredStylus||(hasRequiredStylus=1,function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("stylus",function(ue){for(var _e=ue.indentUnit,fe="",ge=ce(N),ye=/^(a|b|i|s|col|em)$/i,xe=ce(q),le=ce(Y),be=ce(J),ve=ce(G),we=ce(B),Ae=ne(B),Se=ce(U),Pe=ce(j),Me=ce(K),Be=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,ze=ne(Z),Ze=ce(ee),ft=new RegExp(/^\-(moz|ms|o|webkit)-/i),Ye=ce(te),Ve="",Dt={},Nt,Vt,Wt,Gt;fe.length<_e;)fe+=" ";function tn(it,ot){if(Ve=it.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),ot.context.line.firstWord=Ve?Ve[0].replace(/^\s*/,""):"",ot.context.line.indent=it.indentation(),Nt=it.peek(),it.match("//"))return it.skipToEnd(),["comment","comment"];if(it.match("/*"))return ot.tokenize=Qt,Qt(it,ot);if(Nt=='"'||Nt=="'")return it.next(),ot.tokenize=En(Nt),ot.tokenize(it,ot);if(Nt=="@")return it.next(),it.eatWhile(/[\w\\-]/),["def",it.current()];if(Nt=="#"){if(it.next(),it.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(it.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return it.match(ft)?["meta","vendor-prefixes"]:it.match(/^-?[0-9]?\.?[0-9]/)?(it.eatWhile(/[a-z%]/i),["number","unit"]):Nt=="!"?(it.next(),[it.match(/^(important|optional)/i)?"keyword":"operator","important"]):Nt=="."&&it.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:it.match(Ae)?(it.peek()=="("&&(ot.tokenize=kn),["property","word"]):it.match(/^[a-z][\w-]*\(/i)?(it.backUp(1),["keyword","mixin"]):it.match(/^(\+|-)[a-z][\w-]*\(/i)?(it.backUp(1),["keyword","block-mixin"]):it.string.match(/^\s*&/)&&it.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:it.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(it.backUp(1),["variable-3","reference"]):it.match(/^&{1}\s*$/)?["variable-3","reference"]:it.match(ze)?["operator","operator"]:it.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?it.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!Et(it.current())?(it.match("."),["variable-2","variable-name"]):["variable-2","word"]:it.match(Be)?["operator",it.current()]:/[:;,{}\[\]\(\)]/.test(Nt)?(it.next(),[null,Nt]):(it.next(),[null,null])}function Qt(it,ot){for(var Ot=!1,dn;(dn=it.next())!=null;){if(Ot&&dn=="/"){ot.tokenize=null;break}Ot=dn=="*"}return["comment","comment"]}function En(it){return function(ot,Ot){for(var dn=!1,Fn;(Fn=ot.next())!=null;){if(Fn==it&&!dn){it==")"&&ot.backUp(1);break}dn=!dn&&Fn=="\\"}return(Fn==it||!dn&&it!=")")&&(Ot.tokenize=null),["string","string"]}}function kn(it,ot){return it.next(),it.match(/\s*[\"\')]/,!1)?ot.tokenize=null:ot.tokenize=En(")"),[null,"("]}function Gn(it,ot,Ot,dn){this.type=it,this.indent=ot,this.prev=Ot,this.line=dn||{firstWord:"",indent:0}}function An(it,ot,Ot,dn){return dn=dn>=0?dn:_e,it.context=new Gn(Ot,ot.indentation()+dn,it.context),Ot}function jn(it,ot){var Ot=it.context.indent-_e;return ot=ot||!1,it.context=it.context.prev,ot&&(it.context.indent=Ot),it.context.type}function Mn(it,ot,Ot){return Dt[Ot.context.type](it,ot,Ot)}function Ln(it,ot,Ot,dn){for(var Fn=dn||1;Fn>0;Fn--)Ot.context=Ot.context.prev;return Mn(it,ot,Ot)}function Et(it){return it.toLowerCase()in ge}function We(it){return it=it.toLowerCase(),it in xe||it in Me}function xt(it){return it.toLowerCase()in Ze}function Ue(it){return it.toLowerCase().match(ft)}function Oe(it){var ot=it.toLowerCase(),Ot="variable-2";return Et(it)?Ot="tag":xt(it)?Ot="block-keyword":We(it)?Ot="property":ot in be||ot in Ye?Ot="atom":ot=="return"||ot in ve?Ot="keyword":it.match(/^[A-Z]/)&&(Ot="string"),Ot}function ke(it,ot){return ut(ot)&&(it=="{"||it=="]"||it=="hash"||it=="qualifier")||it=="block-mixin"}function $e(it,ot){return it=="{"&&ot.match(/^\s*\$?[\w-]+/i,!1)}function Ge(it,ot){return it==":"&&ot.match(/^[a-z-]+/,!1)}function rt(it){return it.sol()||it.string.match(new RegExp("^\\s*"+me(it.current())))}function ut(it){return it.eol()||it.match(/^\s*$/,!1)}function ct(it){var ot=/^\s*[-_]*[a-z0-9]+[\w-]*/i,Ot=typeof it=="string"?it.match(ot):it.string.match(ot);return Ot?Ot[0].replace(/^\s*/,""):""}return Dt.block=function(it,ot,Ot){if(it=="comment"&&rt(ot)||it==","&&ut(ot)||it=="mixin")return An(Ot,ot,"block",0);if($e(it,ot))return An(Ot,ot,"interpolation");if(ut(ot)&&it=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(ot.string)&&!Et(ct(ot)))return An(Ot,ot,"block",0);if(ke(it,ot))return An(Ot,ot,"block");if(it=="}"&&ut(ot))return An(Ot,ot,"block",0);if(it=="variable-name")return ot.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||xt(ct(ot))?An(Ot,ot,"variableName"):An(Ot,ot,"variableName",0);if(it=="=")return!ut(ot)&&!xt(ct(ot))?An(Ot,ot,"block",0):An(Ot,ot,"block");if(it=="*"&&(ut(ot)||ot.match(/\s*(,|\.|#|\[|:|{)/,!1)))return Gt="tag",An(Ot,ot,"block");if(Ge(it,ot))return An(Ot,ot,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(it))return An(Ot,ot,ut(ot)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(it))return An(Ot,ot,"keyframes");if(/@extends?/.test(it))return An(Ot,ot,"extend",0);if(it&&it.charAt(0)=="@")return ot.indentation()>0&&We(ot.current().slice(1))?(Gt="variable-2","block"):/(@import|@require|@charset)/.test(it)?An(Ot,ot,"block",0):An(Ot,ot,"block");if(it=="reference"&&ut(ot))return An(Ot,ot,"block");if(it=="(")return An(Ot,ot,"parens");if(it=="vendor-prefixes")return An(Ot,ot,"vendorPrefixes");if(it=="word"){var dn=ot.current();if(Gt=Oe(dn),Gt=="property")return rt(ot)?An(Ot,ot,"block",0):(Gt="atom","block");if(Gt=="tag"){if(/embed|menu|pre|progress|sub|table/.test(dn)&&We(ct(ot))||ot.string.match(new RegExp("\\[\\s*"+dn+"|"+dn+"\\s*\\]")))return Gt="atom","block";if(ye.test(dn)&&(rt(ot)&&ot.string.match(/=/)||!rt(ot)&&!ot.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!Et(ct(ot))))return Gt="variable-2",xt(ct(ot))?"block":An(Ot,ot,"block",0);if(ut(ot))return An(Ot,ot,"block")}if(Gt=="block-keyword")return Gt="keyword",ot.current(/(if|unless)/)&&!rt(ot)?"block":An(Ot,ot,"block");if(dn=="return")return An(Ot,ot,"block",0);if(Gt=="variable-2"&&ot.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return An(Ot,ot,"block")}return Ot.context.type},Dt.parens=function(it,ot,Ot){if(it=="(")return An(Ot,ot,"parens");if(it==")")return Ot.context.prev.type=="parens"?jn(Ot):ot.string.match(/^[a-z][\w-]*\(/i)&&ut(ot)||xt(ct(ot))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ct(ot))||!ot.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&Et(ct(ot))?An(Ot,ot,"block"):ot.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||ot.string.match(/^\s*(\(|\)|[0-9])/)||ot.string.match(/^\s+[a-z][\w-]*\(/i)||ot.string.match(/^\s+[\$-]?[a-z]/i)?An(Ot,ot,"block",0):ut(ot)?An(Ot,ot,"block"):An(Ot,ot,"block",0);if(it&&it.charAt(0)=="@"&&We(ot.current().slice(1))&&(Gt="variable-2"),it=="word"){var dn=ot.current();Gt=Oe(dn),Gt=="tag"&&ye.test(dn)&&(Gt="variable-2"),(Gt=="property"||dn=="to")&&(Gt="atom")}return it=="variable-name"?An(Ot,ot,"variableName"):Ge(it,ot)?An(Ot,ot,"pseudo"):Ot.context.type},Dt.vendorPrefixes=function(it,ot,Ot){return it=="word"?(Gt="property",An(Ot,ot,"block",0)):jn(Ot)},Dt.pseudo=function(it,ot,Ot){return We(ct(ot.string))?Ln(it,ot,Ot):(ot.match(/^[a-z-]+/),Gt="variable-3",ut(ot)?An(Ot,ot,"block"):jn(Ot))},Dt.atBlock=function(it,ot,Ot){if(it=="(")return An(Ot,ot,"atBlock_parens");if(ke(it,ot))return An(Ot,ot,"block");if($e(it,ot))return An(Ot,ot,"interpolation");if(it=="word"){var dn=ot.current().toLowerCase();if(/^(only|not|and|or)$/.test(dn)?Gt="keyword":we.hasOwnProperty(dn)?Gt="tag":Pe.hasOwnProperty(dn)?Gt="attribute":Se.hasOwnProperty(dn)?Gt="property":le.hasOwnProperty(dn)?Gt="string-2":Gt=Oe(ot.current()),Gt=="tag"&&ut(ot))return An(Ot,ot,"block")}return it=="operator"&&/^(not|and|or)$/.test(ot.current())&&(Gt="keyword"),Ot.context.type},Dt.atBlock_parens=function(it,ot,Ot){if(it=="{"||it=="}")return Ot.context.type;if(it==")")return ut(ot)?An(Ot,ot,"block"):An(Ot,ot,"atBlock");if(it=="word"){var dn=ot.current().toLowerCase();return Gt=Oe(dn),/^(max|min)/.test(dn)&&(Gt="property"),Gt=="tag"&&(ye.test(dn)?Gt="variable-2":Gt="atom"),Ot.context.type}return Dt.atBlock(it,ot,Ot)},Dt.keyframes=function(it,ot,Ot){return ot.indentation()=="0"&&(it=="}"&&rt(ot)||it=="]"||it=="hash"||it=="qualifier"||Et(ot.current()))?Ln(it,ot,Ot):it=="{"?An(Ot,ot,"keyframes"):it=="}"?rt(ot)?jn(Ot,!0):An(Ot,ot,"keyframes"):it=="unit"&&/^[0-9]+\%$/.test(ot.current())?An(Ot,ot,"keyframes"):it=="word"&&(Gt=Oe(ot.current()),Gt=="block-keyword")?(Gt="keyword",An(Ot,ot,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(it)?An(Ot,ot,ut(ot)?"block":"atBlock"):it=="mixin"?An(Ot,ot,"block",0):Ot.context.type},Dt.interpolation=function(it,ot,Ot){return it=="{"&&jn(Ot)&&An(Ot,ot,"block"),it=="}"?ot.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||ot.string.match(/^\s*[a-z]/i)&&Et(ct(ot))?An(Ot,ot,"block"):!ot.string.match(/^(\{|\s*\&)/)||ot.match(/\s*[\w-]/,!1)?An(Ot,ot,"block",0):An(Ot,ot,"block"):it=="variable-name"?An(Ot,ot,"variableName",0):(it=="word"&&(Gt=Oe(ot.current()),Gt=="tag"&&(Gt="atom")),Ot.context.type)},Dt.extend=function(it,ot,Ot){return it=="["||it=="="?"extend":it=="]"?jn(Ot):it=="word"?(Gt=Oe(ot.current()),"extend"):jn(Ot)},Dt.variableName=function(it,ot,Ot){return it=="string"||it=="["||it=="]"||ot.current().match(/^(\.|\$)/)?(ot.current().match(/^\.[\w-]+/i)&&(Gt="variable-2"),"variableName"):Ln(it,ot,Ot)},{startState:function(it){return{tokenize:null,state:"block",context:new Gn("block",it||0,null)}},token:function(it,ot){return!ot.tokenize&&it.eatSpace()?null:(Vt=(ot.tokenize||tn)(it,ot),Vt&&typeof Vt=="object"&&(Wt=Vt[1],Vt=Vt[0]),Gt=Vt,ot.state=Dt[ot.state](Wt,it,ot),Gt)},indent:function(it,ot,Ot){var dn=it.context,Fn=ot&&ot.charAt(0),Zt=dn.indent,vn=ct(ot),lt=Ot.match(/^\s*/)[0].replace(/\t/g,fe).length,pt=it.context.prev?it.context.prev.line.firstWord:"",Pt=it.context.prev?it.context.prev.line.indent:lt;return dn.prev&&(Fn=="}"&&(dn.type=="block"||dn.type=="atBlock"||dn.type=="keyframes")||Fn==")"&&(dn.type=="parens"||dn.type=="atBlock_parens")||Fn=="{"&&dn.type=="at")?Zt=dn.indent-_e:/(\})/.test(Fn)||(/@|\$|\d/.test(Fn)||/^\{/.test(ot)||/^\s*\/(\/|\*)/.test(ot)||/^\s*\/\*/.test(pt)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(ot)||/^(\+|-)?[a-z][\w-]*\(/i.test(ot)||/^return/.test(ot)||xt(vn)?Zt=lt:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Fn)||Et(vn)?/\,\s*$/.test(pt)?Zt=Pt:/^\s+/.test(Ot)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(pt)||Et(pt))?Zt=lt<=Pt?Pt:Pt+_e:Zt=lt:!/,\s*$/.test(Ot)&&(Ue(vn)||We(vn))&&(xt(pt)?Zt=lt<=Pt?Pt:Pt+_e:/^\{/.test(pt)?Zt=lt<=Pt?lt:Pt+_e:Ue(pt)||We(pt)?Zt=lt>=Pt?Pt:lt:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(pt)||/=\s*$/.test(pt)||Et(pt)||/^\$[\w-\.\[\]\'\"]/.test(pt)?Zt=Pt+_e:Zt=lt)),Zt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}});var N=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],B=["domain","regexp","url-prefix","url"],j=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],U=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],q=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],Y=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],K=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],G=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],J=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],Z=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],ee=["for","if","else","unless","from","to"],te=["null","true","false","href","title","type","not-allowed","readonly","disabled"],se=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],re=N.concat(B,j,U,q,Y,G,J,K,Z,ee,te,se);function ne(ue){return ue=ue.sort(function(_e,fe){return fe>_e}),new RegExp("^(("+ue.join(")|(")+"))\\b")}function ce(ue){for(var _e={},fe=0;fe<ue.length;++fe)_e[ue[fe]]=!0;return _e}function me(ue){return ue.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}I.registerHelper("hintWords","stylus",re),I.defineMIME("text/x-styl","stylus")})}()),stylus.exports}var pug={exports:{}},hasRequiredPug;function requirePug(){return hasRequiredPug||(hasRequiredPug=1,function(M,$){(function(I){I(codemirrorExports,requireJavascript(),cssExports,requireHtmlmixed())})(function(I){I.defineMode("pug",function(N){var B="keyword",j="meta",U="builtin",q="qualifier",Y={"{":"}","(":")","[":"]"},K=I.getMode(N,"javascript");function G(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=I.startState(K),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}G.prototype.copy=function(){var Et=new G;return Et.javaScriptLine=this.javaScriptLine,Et.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,Et.javaScriptArguments=this.javaScriptArguments,Et.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,Et.isInterpolating=this.isInterpolating,Et.interpolationNesting=this.interpolationNesting,Et.jsState=I.copyState(K,this.jsState),Et.innerMode=this.innerMode,this.innerMode&&this.innerState&&(Et.innerState=I.copyState(this.innerMode,this.innerState)),Et.restOfLine=this.restOfLine,Et.isIncludeFiltered=this.isIncludeFiltered,Et.isEach=this.isEach,Et.lastTag=this.lastTag,Et.scriptType=this.scriptType,Et.isAttrs=this.isAttrs,Et.attrsNest=this.attrsNest.slice(),Et.inAttributeName=this.inAttributeName,Et.attributeIsType=this.attributeIsType,Et.attrValue=this.attrValue,Et.indentOf=this.indentOf,Et.indentToken=this.indentToken,Et.innerModeForLine=this.innerModeForLine,Et};function J(Et,We){if(Et.sol()&&(We.javaScriptLine=!1,We.javaScriptLineExcludesColon=!1),We.javaScriptLine){if(We.javaScriptLineExcludesColon&&Et.peek()===":"){We.javaScriptLine=!1,We.javaScriptLineExcludesColon=!1;return}var xt=K.token(Et,We.jsState);return Et.eol()&&(We.javaScriptLine=!1),xt||!0}}function Z(Et,We){if(We.javaScriptArguments){if(We.javaScriptArgumentsDepth===0&&Et.peek()!=="("){We.javaScriptArguments=!1;return}if(Et.peek()==="("?We.javaScriptArgumentsDepth++:Et.peek()===")"&&We.javaScriptArgumentsDepth--,We.javaScriptArgumentsDepth===0){We.javaScriptArguments=!1;return}var xt=K.token(Et,We.jsState);return xt||!0}}function ee(Et){if(Et.match(/^yield\b/))return"keyword"}function te(Et){if(Et.match(/^(?:doctype) *([^\n]+)?/))return j}function se(Et,We){if(Et.match("#{"))return We.isInterpolating=!0,We.interpolationNesting=0,"punctuation"}function re(Et,We){if(We.isInterpolating){if(Et.peek()==="}"){if(We.interpolationNesting--,We.interpolationNesting<0)return Et.next(),We.isInterpolating=!1,"punctuation"}else Et.peek()==="{"&&We.interpolationNesting++;return K.token(Et,We.jsState)||!0}}function ne(Et,We){if(Et.match(/^case\b/))return We.javaScriptLine=!0,B}function ce(Et,We){if(Et.match(/^when\b/))return We.javaScriptLine=!0,We.javaScriptLineExcludesColon=!0,B}function me(Et){if(Et.match(/^default\b/))return B}function ue(Et,We){if(Et.match(/^extends?\b/))return We.restOfLine="string",B}function _e(Et,We){if(Et.match(/^append\b/))return We.restOfLine="variable",B}function fe(Et,We){if(Et.match(/^prepend\b/))return We.restOfLine="variable",B}function ge(Et,We){if(Et.match(/^block\b *(?:(prepend|append)\b)?/))return We.restOfLine="variable",B}function ye(Et,We){if(Et.match(/^include\b/))return We.restOfLine="string",B}function xe(Et,We){if(Et.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&Et.match("include"))return We.isIncludeFiltered=!0,B}function le(Et,We){if(We.isIncludeFiltered){var xt=ze(Et,We);return We.isIncludeFiltered=!1,We.restOfLine="string",xt}}function be(Et,We){if(Et.match(/^mixin\b/))return We.javaScriptLine=!0,B}function ve(Et,We){if(Et.match(/^\+([-\w]+)/))return Et.match(/^\( *[-\w]+ *=/,!1)||(We.javaScriptArguments=!0,We.javaScriptArgumentsDepth=0),"variable";if(Et.match("+#{",!1))return Et.next(),We.mixinCallAfter=!0,se(Et,We)}function we(Et,We){if(We.mixinCallAfter)return We.mixinCallAfter=!1,Et.match(/^\( *[-\w]+ *=/,!1)||(We.javaScriptArguments=!0,We.javaScriptArgumentsDepth=0),!0}function Ae(Et,We){if(Et.match(/^(if|unless|else if|else)\b/))return We.javaScriptLine=!0,B}function Se(Et,We){if(Et.match(/^(- *)?(each|for)\b/))return We.isEach=!0,B}function Pe(Et,We){if(We.isEach){if(Et.match(/^ in\b/))return We.javaScriptLine=!0,We.isEach=!1,B;if(Et.sol()||Et.eol())We.isEach=!1;else if(Et.next()){for(;!Et.match(/^ in\b/,!1)&&Et.next(););return"variable"}}}function Me(Et,We){if(Et.match(/^while\b/))return We.javaScriptLine=!0,B}function Be(Et,We){var xt;if(xt=Et.match(/^(\w(?:[-:\w]*\w)?)\/?/))return We.lastTag=xt[1].toLowerCase(),We.lastTag==="script"&&(We.scriptType="application/javascript"),"tag"}function ze(Et,We){if(Et.match(/^:([\w\-]+)/)){var xt;return N&&N.innerModes&&(xt=N.innerModes(Et.current().substring(1))),xt||(xt=Et.current().substring(1)),typeof xt=="string"&&(xt=I.getMode(N,xt)),kn(Et,We,xt),"atom"}}function Ze(Et,We){if(Et.match(/^(!?=|-)/))return We.javaScriptLine=!0,"punctuation"}function ft(Et){if(Et.match(/^#([\w-]+)/))return U}function Ye(Et){if(Et.match(/^\.([\w-]+)/))return q}function Ve(Et,We){if(Et.peek()=="(")return Et.next(),We.isAttrs=!0,We.attrsNest=[],We.inAttributeName=!0,We.attrValue="",We.attributeIsType=!1,"punctuation"}function Dt(Et,We){if(We.isAttrs){if(Y[Et.peek()]&&We.attrsNest.push(Y[Et.peek()]),We.attrsNest[We.attrsNest.length-1]===Et.peek())We.attrsNest.pop();else if(Et.eat(")"))return We.isAttrs=!1,"punctuation";if(We.inAttributeName&&Et.match(/^[^=,\)!]+/))return(Et.peek()==="="||Et.peek()==="!")&&(We.inAttributeName=!1,We.jsState=I.startState(K),We.lastTag==="script"&&Et.current().trim().toLowerCase()==="type"?We.attributeIsType=!0:We.attributeIsType=!1),"attribute";var xt=K.token(Et,We.jsState);if(We.attributeIsType&&xt==="string"&&(We.scriptType=Et.current().toString()),We.attrsNest.length===0&&(xt==="string"||xt==="variable"||xt==="keyword"))try{return Function("","var x "+We.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),We.inAttributeName=!0,We.attrValue="",Et.backUp(Et.current().length),Dt(Et,We)}catch{}return We.attrValue+=Et.current(),xt||!0}}function Nt(Et,We){if(Et.match(/^&attributes\b/))return We.javaScriptArguments=!0,We.javaScriptArgumentsDepth=0,"keyword"}function Vt(Et){if(Et.sol()&&Et.eatSpace())return"indent"}function Wt(Et,We){if(Et.match(/^ *\/\/(-)?([^\n]*)/))return We.indentOf=Et.indentation(),We.indentToken="comment","comment"}function Gt(Et){if(Et.match(/^: */))return"colon"}function tn(Et,We){if(Et.match(/^(?:\| ?| )([^\n]+)/))return"string";if(Et.match(/^(<[^\n]*)/,!1))return kn(Et,We,"htmlmixed"),We.innerModeForLine=!0,Gn(Et,We,!0)}function Qt(Et,We){if(Et.eat(".")){var xt=null;return We.lastTag==="script"&&We.scriptType.toLowerCase().indexOf("javascript")!=-1?xt=We.scriptType.toLowerCase().replace(/"|'/g,""):We.lastTag==="style"&&(xt="css"),kn(Et,We,xt),"dot"}}function En(Et){return Et.next(),null}function kn(Et,We,xt){xt=I.mimeModes[xt]||xt,xt=N.innerModes&&N.innerModes(xt)||xt,xt=I.mimeModes[xt]||xt,xt=I.getMode(N,xt),We.indentOf=Et.indentation(),xt&&xt.name!=="null"?We.innerMode=xt:We.indentToken="string"}function Gn(Et,We,xt){if(Et.indentation()>We.indentOf||We.innerModeForLine&&!Et.sol()||xt)return We.innerMode?(We.innerState||(We.innerState=We.innerMode.startState?I.startState(We.innerMode,Et.indentation()):{}),Et.hideFirstChars(We.indentOf+2,function(){return We.innerMode.token(Et,We.innerState)||!0})):(Et.skipToEnd(),We.indentToken);Et.sol()&&(We.indentOf=1/0,We.indentToken=null,We.innerMode=null,We.innerState=null)}function An(Et,We){if(Et.sol()&&(We.restOfLine=""),We.restOfLine){Et.skipToEnd();var xt=We.restOfLine;return We.restOfLine="",xt}}function jn(){return new G}function Mn(Et){return Et.copy()}function Ln(Et,We){var xt=Gn(Et,We)||An(Et,We)||re(Et,We)||le(Et,We)||Pe(Et,We)||Dt(Et,We)||J(Et,We)||Z(Et,We)||we(Et,We)||ee(Et)||te(Et)||se(Et,We)||ne(Et,We)||ce(Et,We)||me(Et)||ue(Et,We)||_e(Et,We)||fe(Et,We)||ge(Et,We)||ye(Et,We)||xe(Et,We)||be(Et,We)||ve(Et,We)||Ae(Et,We)||Se(Et,We)||Me(Et,We)||Be(Et,We)||ze(Et,We)||Ze(Et,We)||ft(Et)||Ye(Et)||Ve(Et,We)||Nt(Et,We)||Vt(Et)||tn(Et,We)||Wt(Et,We)||Gt(Et)||Qt(Et,We)||En(Et);return xt===!0?null:xt}return{startState:jn,copyState:Mn,token:Ln}},"javascript","css","htmlmixed"),I.defineMIME("text/x-pug","pug"),I.defineMIME("text/x-jade","pug")})}()),pug.exports}(function(M,$){(function(I){I(codemirrorExports,requireOverlay(),requireXml(),requireJavascript(),requireCoffeescript(),cssExports,requireSass(),requireStylus(),requirePug(),handlebarsExports)})(function(I){var N={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};I.defineMode("vue-template",function(B,j){var U={token:function(q){if(q.match(/^\{\{.*?\}\}/))return"meta mustache";for(;q.next()&&!q.match("{{",!1););return null}};return I.overlayMode(I.getMode(B,j.backdrop||"text/html"),U)}),I.defineMode("vue",function(B){return I.getMode(B,{name:"htmlmixed",tags:N})},"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),I.defineMIME("script/x-vue","vue"),I.defineMIME("text/x-vue","vue")})})();requireXml();var yaml={exports:{}};(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineMode("yaml",function(){var N=["true","false","on","off","yes","no"],B=new RegExp("\\b(("+N.join(")|(")+"))$","i");return{token:function(j,U){var q=j.peek(),Y=U.escaped;if(U.escaped=!1,q=="#"&&(j.pos==0||/\s/.test(j.string.charAt(j.pos-1))))return j.skipToEnd(),"comment";if(j.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(U.literal&&j.indentation()>U.keyCol)return j.skipToEnd(),"string";if(U.literal&&(U.literal=!1),j.sol()){if(U.keyCol=0,U.pair=!1,U.pairStart=!1,j.match("---")||j.match("..."))return"def";if(j.match(/\s*-\s+/))return"meta"}if(j.match(/^(\{|\}|\[|\])/))return q=="{"?U.inlinePairs++:q=="}"?U.inlinePairs--:q=="["?U.inlineList++:U.inlineList--,"meta";if(U.inlineList>0&&!Y&&q==",")return j.next(),"meta";if(U.inlinePairs>0&&!Y&&q==",")return U.keyCol=0,U.pair=!1,U.pairStart=!1,j.next(),"meta";if(U.pairStart){if(j.match(/^\s*(\||\>)\s*/))return U.literal=!0,"meta";if(j.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(U.inlinePairs==0&&j.match(/^\s*-?[0-9\.\,]+\s?$/)||U.inlinePairs>0&&j.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(j.match(B))return"keyword"}return!U.pair&&j.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(U.pair=!0,U.keyCol=j.indentation(),"atom"):U.pair&&j.match(/^:\s*/)?(U.pairStart=!0,"meta"):(U.pairStart=!1,U.escaped=q=="\\",j.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),I.defineMIME("text/x-yaml","yaml"),I.defineMIME("text/yaml","yaml")})})();var yamlExports=yaml.exports;(function(M,$){(function(I){I(codemirrorExports,yamlExports)})(function(I){var N=0,B=1,j=2;I.defineMode("yaml-frontmatter",function(U,q){var Y=I.getMode(U,"yaml"),K=I.getMode(U,q&&q.base||"gfm");function G(J){return J.state==B?{mode:Y,state:J.yaml}:{mode:K,state:J.inner}}return{startState:function(){return{state:N,yaml:null,inner:I.startState(K)}},copyState:function(J){return{state:J.state,yaml:J.yaml&&I.copyState(Y,J.yaml),inner:I.copyState(K,J.inner)}},token:function(J,Z){if(Z.state==N)return J.match("---",!1)?(Z.state=B,Z.yaml=I.startState(Y),Y.token(J,Z.yaml)):(Z.state=j,K.token(J,Z.inner));if(Z.state==B){var ee=J.sol()&&J.match(/(---|\.\.\.)/,!1),te=Y.token(J,Z.yaml);return ee&&(Z.state=j,Z.yaml=null),te}else return K.token(J,Z.inner)},innerMode:G,indent:function(J,Z,ee){var te=G(J);return te.mode.indent?te.mode.indent(te.state,Z,ee):I.Pass},blankLine:function(J){var Z=G(J);if(Z.mode.blankLine)return Z.mode.blankLine(Z.state)}}})})})();const _sfc_main$21={mixins:[Fieldtype],data(){return{codemirror:null,modes:[{value:"clike",label:"C-Like"},{value:"css",label:"CSS"},{value:"diff",label:"Diff"},{value:"go",label:"Go"},{value:"haml",label:"HAML"},{value:"handlebars",label:"Handlebars"},{value:"htmlmixed",label:"HTML"},{value:"less",label:"LESS"},{value:"markdown",label:"Markdown"},{value:"gfm",label:"Markdown (GHF)"},{value:"nginx",label:"Nginx"},{value:"text/x-java",label:"Java"},{value:"javascript",label:"JavaScript"},{value:"jsx",label:"JSX"},{value:"text/x-objectivec",label:"Objective-C"},{value:"php",label:"PHP"},{value:"python",label:"Python"},{value:"ruby",label:"Ruby"},{value:"scss",label:"SCSS"},{value:"shell",label:"Shell"},{value:"sql",label:"SQL"},{value:"twig",label:"Twig"},{value:"vue",label:"Vue"},{value:"xml",label:"XML"},{value:"yaml-frontmatter",label:"YAML"}],mode:this.value.mode||this.config.mode,fullScreenMode:!1}},computed:{modeLabel(){return _.findWhere(this.modes,{value:this.mode}).label||this.mode},exactTheme(){return this.config.theme==="light"?"default":"material"},themeClass(){return"theme-"+this.config.theme},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value.code?truncate(this.value.code,60):""},readOnlyOption(){return this.isReadOnly?"nocursor":!1},rulers(){if(!this.config.rulers)return[];let M=this.config.theme==="light"?"#d1d5db":"#546e7a";return Object.entries(this.config.rulers).map(([$,I])=>{let N=I==="dashed"?"dashed":"solid";return{column:parseInt($),lineStyle:N,color:M}})},internalFieldActions(){return[{title:__("Toggle Fullscreen Mode"),icon:({vm:M})=>M.fullScreenMode?"shrink-all":"expand-bold",quick:!0,visibleWhenReadOnly:!0,run:this.toggleFullscreen}]}},watch:{value(M,$){M.code!=this.codemirror.doc.getValue()&&(M.code||(M.code=""),this.codemirror.doc.setValue(M.code))},readOnlyOption(M){this.codemirror.setOption("readOnly",M)},mode(M){this.codemirror.setOption("mode",M),this.updateDebounced({code:this.value.code,mode:this.mode})},fullScreenMode:{immediate:!0,handler:function(M){this.$nextTick(()=>{this.$nextTick(()=>this.initCodeMirror())})}}},methods:{focus(){this.codemirror.focus()},refresh(){this.$nextTick(function(){this.codemirror.refresh()})},initCodeMirror(){this.codemirror=CodeMirror(this.$refs.codemirror,{value:this.value.code||"",mode:this.mode,direction:document.querySelector("html").getAttribute("dir")??"ltr",addModeClass:!0,keyMap:this.config.key_map,tabSize:this.config.indent_size,indentWithTabs:this.config.indent_type!=="spaces",lineNumbers:this.config.line_numbers,lineWrapping:this.config.line_wrapping,matchBrackets:!0,readOnly:this.readOnlyOption,theme:this.exactTheme,inputStyle:"contenteditable",rulers:this.rulers}),this.codemirror.on("change",M=>{this.updateDebounced({code:M.doc.getValue(),mode:this.mode})}),this.codemirror.on("focus",()=>this.$emit("focus")),this.codemirror.on("blur",()=>this.$emit("blur")),this.refresh(),this.codemirror.setOption("fullScreen",this.fullScreenMode),this.fullScreenMode===!1&&document.documentElement.removeAttribute("style"),this.$events.$on("tab-switched",this.refresh)},toggleFullscreen(){this.fullScreenMode=!this.fullScreenMode}}};var _sfc_render$21=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"code-fullscreen",disabled:!$.fullScreenMode,"target-class":"code-fieldtype"}},[I("element-container",{on:{resized:$.refresh}},[I("div",{staticClass:"code-fieldtype-container",class:[$.themeClass,{"code-fullscreen":$.fullScreenMode}]},[$.fullScreenMode?I("publish-field-fullscreen-header",{attrs:{title:$.config.display,"field-actions":$.fieldActions},on:{close:$.toggleFullscreen}},[I("div",{staticClass:"code-fieldtype-toolbar-fullscreen"},[I("div",[$.config.mode_selectable?I("select-input",{staticClass:"text-xs leading-none",attrs:{options:$.modes,"is-read-only":$.isReadOnly},model:{value:$.mode,callback:function(N){$.mode=N},expression:"mode"}}):I("div",{staticClass:"text-xs font-mono text-gray-700",domProps:{textContent:$._s($.modeLabel)}})],1)])]):$._e(),$.fullScreenMode?$._e():I("div",{staticClass:"code-fieldtype-toolbar"},[I("div",[$.config.mode_selectable?I("select-input",{staticClass:"text-xs leading-none",attrs:{options:$.modes,"is-read-only":$.isReadOnly},model:{value:$.mode,callback:function(N){$.mode=N},expression:"mode"}}):I("div",{staticClass:"text-xs font-mono text-gray-700",domProps:{textContent:$._s($.modeLabel)}})],1)]),I("div",{ref:"codemirror"})],1)])],1)},_sfc_staticRenderFns$21=[],__component__$22=normalizeComponent$2(_sfc_main$21,_sfc_render$21,_sfc_staticRenderFns$21,!1,null,null,null,null);const CodeFieldtype=__component__$22.exports,_sfc_main$20={props:["handle","value","state","columnHeader"],computed:{mode(){return this.value===null||typeof this.value=="string"?"single":"multiple"},sites(){let M=this.state;return M.values.sites?M.values.sites.map(($,I)=>({handle:$,name:M.meta.sites.data[I].title})):[]},hasMultipleSites(){return this.sites.length>1},inMultipleMode(){return this.mode==="multiple"}},methods:{setMode(M){if(M===this.mode)return;let $;M==="single"&&(this.multipleValue=this.value,$=this.singleValue||Object.values(this.value)[0]),M==="multiple"&&(this.singleValue=this.value,this.multipleValue?$=this.multipleValue:($={},this.sites.forEach(I=>$[I.handle]=""))),this.update($)},updateSiteValue(M,$){let I=this.value;I[M]=$,this.update(I)},update(M){this.$emit("input",M)}}};var _sfc_render$20=function M(){var $=this,I=$._self._c;return I("div",[$.hasMultipleSites?I("div",[I("div",{staticClass:"radio-fieldtype mb-2"},[I("radio-fieldtype",{attrs:{handle:`${$.handle}_mode`,value:$.mode,config:{inline:!0,options:{single:$.__("Single"),multiple:$.__("Per-site")}}},on:{input:$.setMode}})],1),$.inMultipleMode?I("table",{staticClass:"grid-table"},[I("thead",[I("tr",[I("th",{domProps:{textContent:$._s($.__("Site"))}}),I("th",{staticClass:"w-2/3",domProps:{textContent:$._s($.columnHeader)}})])]),I("tbody",$._l($.sites,function(N){return I("tr",{key:N.handle},[I("td",{staticClass:"align-middle",domProps:{textContent:$._s($.__(N.name))}}),I("td",[I("text-input",{staticClass:"slug-field",attrs:{dir:"ltr",value:$.value[N.handle]},on:{input:function(B){return $.updateSiteValue(N.handle,B)}}})],1)])}),0)]):$._e()]):$._e(),!$.hasMultipleSites||!$.inMultipleMode?I("div",[I("text-input",{staticClass:"slug-field",attrs:{value:$.value,dir:"ltr"},on:{input:$.update}})],1):$._e()])},_sfc_staticRenderFns$20=[],__component__$21=normalizeComponent$2(_sfc_main$20,_sfc_render$20,_sfc_staticRenderFns$20,!1,null,null,null,null);const OneOrManySitesField=__component__$21.exports,_sfc_main$1$={mixins:[Fieldtype],inject:["storeName"],components:{OneOrManySitesField}};var _sfc_render$1$=function M(){var $=this,I=$._self._c;return I("one-or-many-sites-field",{attrs:{handle:$.handle,value:$.value,state:$.$store.state.publish[this.storeName],"column-header":$.__("Route")},on:{input:$.update}})},_sfc_staticRenderFns$1$=[],__component__$20=normalizeComponent$2(_sfc_main$1$,_sfc_render$1$,_sfc_staticRenderFns$1$,!1,null,null,null,null);const Routes=__component__$20.exports,_sfc_main$1_={mixins:[Fieldtype],inject:["storeName"],components:{OneOrManySitesField}};var _sfc_render$1_=function M(){var $=this,I=$._self._c;return I("one-or-many-sites-field",{attrs:{handle:$.handle,value:$.value,state:$.$store.state.publish[this.storeName],"column-header":$.__("Format")},on:{input:$.update}})},_sfc_staticRenderFns$1_=[],__component__$1$=normalizeComponent$2(_sfc_main$1_,_sfc_render$1_,_sfc_staticRenderFns$1_,!1,null,null,null,null);const TitleFormats=__component__$1$.exports,_sfc_main$1Z={mixins:[Fieldtype],data(){return{customColor:this.value}},watch:{value(M){this.customColor=M}},computed:{replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value?replicatorPreviewHtml(`<span class="little-dot" style="background-color:${this.value}"></span>`):null}},methods:{customColorSelected(M){this.customColor=M.target.value},sanitizeCustomColor(){this.customColor=this.sanitizeColor(this.customColor),this.update(this.customColor)},commitCustomColor(){this.update(this.customColor)},resetColor(){this.update(null)},sanitizeColor(M){if(M&&/^#?([a-fA-F0-9]{3,6})$/.test(M.trim()))return M=M.replace(/[^a-fA-F0-9]/g,""),M.length===3&&(M=M[0]+M[0]+M[1]+M[1]+M[2]+M[2]),`#${M}`}}};var _sfc_render$1Z=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group w-auto",class:{"max-w-[130px]":$.config.allow_any}},[I("popover",{staticClass:"color-picker",attrs:{name:"swatches",placement:"bottom-start"},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Pick Color"),expression:"__('Pick Color')"}],staticClass:"input-group-prepend px-px"},[I("div",{staticClass:"relative flex items-center outline-none"},[I("div",{staticClass:"inline-block cursor-pointer rounded m-0 p-[2px]"},[I("div",{staticClass:"rounded-sm w-8 h-8",class:{"border dark:border-dark-900":!$.value,"cursor-not-allowed":$.isReadOnly},style:{"background-color":$.value}})])])])]},proxy:!0},{key:"default",fn:function({close:N}){return[I("div",{staticClass:"p-4"},[$.config.swatches.length?I("div",{staticClass:"grid grid-cols-4 gap-3"},$._l($.config.swatches,function(B){return I("div",{staticClass:"w-10 h-10 inline-block cursor-pointer rounded flex border border-gray-400",style:{"background-color":B},on:{click:()=>{$.update(B),N()}}},[B===$.value?I("div",{staticClass:"flex items-center justify-center h-full w-full"},[I("div",{staticClass:"w-5 h-5 rounded-full bg-black/10 flex items-center justify-center"},[I("svg",{staticClass:"text-white fill-current",attrs:{version:"1.1",role:"presentation",width:"12",height:"12",viewBox:"0 0 1792 1792"}},[I("path",{attrs:{d:"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"}})])])]):$._e()])}),0):$._e(),$.config.allow_any?I("div",{staticClass:"flex items-center",class:{"mt-5":$.config.swatches.length}},[I("input",{staticClass:"h-10 w-full cursor-pointer input-text w-full rounded p-[2px] rtl:ml-2 ltr:mr-2",attrs:{type:"color"},domProps:{value:$.customColor},on:{input:$.customColorSelected}}),I("button",{staticClass:"btn btn-primary h-10 px-2",domProps:{textContent:$._s($.__("OK"))},on:{click:()=>{$.commitCustomColor(),N()}}})]):$._e()])]}}])}),$.config.allow_any?I("input",{staticClass:"input-text font-mono",attrs:{maxlength:"7",type:"text",readonly:$.isReadOnly},domProps:{value:$.customColor},on:{input:function(N){return $.updateDebounced(N.target.value)},blur:$.sanitizeCustomColor}}):$._e()],1),$.value?I("button",{staticClass:"btn-close rtl:mr-1 ltr:ml-1",attrs:{"aria-label":$.__("Reset")},on:{click:$.resetColor}},[$._v("×")]):$._e()])},_sfc_staticRenderFns$1Z=[],__component__$1_=normalizeComponent$2(_sfc_main$1Z,_sfc_render$1Z,_sfc_staticRenderFns$1Z,!1,null,null,null,null);const ColorFieldtype=__component__$1_.exports,Picker={props:{isReadOnly:{type:Boolean,default:!1},bindings:{type:Object}}},_sfc_main$1Y={mixins:[Picker],data(){return{open:!1,picker:null,portalTarget:`date-picker-${this._uid}`,inputValue:null}},computed:{darkMode(){return Statamic.darkMode},inputEvents(){return{change:M=>this.picker.onInputUpdate(M.target.value,!0,{formatInput:!0}),keyup:M=>{var $;this.picker.onInputKeyup(M),M.key==="Escape"&&(($=this.$refs.popover)==null||$.close())}}}},watch:{"bindings.value":function(){this.$nextTick(()=>this.updateInputValue())}},methods:{updateInputValue(){this.inputValue=this.picker.inputValues[0]},dateSelected(M){this.$emit("input",M),this.$nextTick(()=>{var $;return($=this.$refs.popover)==null?void 0:$.close()})},clear(){this.$emit("input",null)},resetPicker(){this.picker=this.$refs.picker}},mounted(){this.$nextTick(()=>{this.resetPicker(),this.updateInputValue()})}};var _sfc_render$1Y=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex-1"},[I("v-portal",{attrs:{disabled:!$.open,to:$.portalTarget}},[I("v-date-picker",$._b({directives:[{name:"show",rawName:"v-show",value:$.open,expression:"open"}],ref:"picker",attrs:{"is-dark":$.darkMode},on:{input:$.dateSelected}},"v-date-picker",$.bindings,!1))],1),I("popover",{ref:"popover",attrs:{placement:"bottom-start",disabled:$.isReadOnly},on:{opened:function(N){$.open=!0},closed:function(N){$.open=!1}},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/calendar"}})],1),I("div",{staticClass:"input-text border border-gray-500 dark:border-dark-900 rtl:border-r-0 ltr:border-l-0 flex items-center rtl:pl-0 ltr:pr-0",class:{"read-only":$.isReadOnly}},[I("input",$._g({staticClass:"input-text-minimal p-0 bg-transparent leading-none",attrs:{readonly:$.isReadOnly},domProps:{value:$.inputValue},on:{focus:function(N){return $.$emit("focus",N.target)},blur:function(N){return $.$emit("blur")}}},$.inputEvents)),$.isReadOnly?$._e():I("button",{staticClass:"cursor-pointer px-2 hover:text-blue-500",attrs:{type:"button",title:"Clear","aria-label":"Clear"},on:{click:$.clear}},[I("span",[$._v("×")])])])])]},proxy:!0}])},[I("portal-target",{attrs:{name:$.portalTarget},on:{change:$.resetPicker}})],1)],1)},_sfc_staticRenderFns$1Y=[],__component__$1Z=normalizeComponent$2(_sfc_main$1Y,_sfc_render$1Y,_sfc_staticRenderFns$1Y,!1,null,null,null,null);const SinglePopover=__component__$1Z.exports,_sfc_main$1X={mixins:[Picker],computed:{darkMode(){return Statamic.darkMode},pickerBindings(){return{...this.bindings,disabledDates:this.isReadOnly?{weekdays:[1,2,3,4,5,6,7]}:null}}}};var _sfc_render$1X=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative w-full"},[I("v-date-picker",$._b({attrs:{"is-dark":$.darkMode},on:{input:function(N){return $.$emit("input",N)}}},"v-date-picker",$.pickerBindings,!1)),$.isReadOnly?I("div",{staticClass:"absolute inset-0 z-1 cursor-not-allowed"}):$._e()],1)},_sfc_staticRenderFns$1X=[],__component__$1Y=normalizeComponent$2(_sfc_main$1X,_sfc_render$1X,_sfc_staticRenderFns$1X,!1,null,null,null,null);const SingleInline=__component__$1Y.exports,_sfc_main$1W={mixins:[Picker],data(){return{startOpen:!1,endOpen:!1,picker:null,portalTarget:null,startPortalTarget:`date-picker-start-${this._uid}`,endPortalTarget:`date-picker-end-${this._uid}`,startInputValue:null,endInputValue:null}},computed:{darkMode(){return Statamic.darkMode},pickerBindings(){return{...this.bindings,isRange:!0,disabledDates:this.isReadOnly?{weekdays:[1,2,3,4,5,6,7]}:null}},open(){return this.startOpen||this.endOpen},startInputEvents(){return{change:M=>this.picker.onInputUpdate(M.target.value,!0,{formatInput:!0}),keyup:M=>{this.picker.onInputKeyup(M),M.key==="Escape"&&this.$refs.startPopover.close()}}},endInputEvents(){return{change:M=>this.picker.onInputUpdate(M.target.value,!1,{formatInput:!0}),keyup:M=>{this.picker.onInputKeyup(M),M.key==="Escape"&&this.$refs.endPopover.close()}}}},watch:{"bindings.value":function(){this.$nextTick(()=>this.updateInputValues())}},mounted(){this.$nextTick(()=>{this.resetPicker(),this.updateInputValues()})},methods:{startPopoverOpened(){this.endOpen&&this.$refs.endPopover.close(),this.startOpen=!0,this.portalTarget=this.startPortalTarget},startPopoverClosed(){this.startOpen=!1,this.portalTarget=null},endPopoverOpened(){this.startOpen&&this.$refs.startPopover.close(),this.endOpen=!0,this.portalTarget=this.endPortalTarget},endPopoverClosed(){this.endOpen=!1,this.portalTarget=null},updateInputValues(){this.startInputValue=this.picker.inputValues[0],this.endInputValue=this.picker.inputValues[1]},dateSelected(M){this.$emit("input",M),this.$nextTick(()=>{var $,I;($=this.$refs.startPopover)==null||$.close(),(I=this.$refs.endPopover)==null||I.close()})},clear(){this.$emit("input",null)},resetPicker(){this.picker=this.$refs.picker}}};var _sfc_render$1W=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full"},[I("v-portal",{attrs:{disabled:!$.open,to:$.portalTarget}},[I("v-date-picker",$._b({directives:[{name:"show",rawName:"v-show",value:$.open,expression:"open"}],ref:"picker",attrs:{"is-dark":$.darkMode},on:{input:$.dateSelected}},"v-date-picker",$.pickerBindings,!1))],1),I("div",{staticClass:"w-full flex items-start @md:items-center flex-col @md:flex-row"},[I("popover",{ref:"startPopover",staticClass:"w-full",attrs:{placement:"bottom-start",disabled:$.isReadOnly},on:{opened:$.startPopoverOpened,closed:$.startPopoverClosed},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/calendar"}})],1),I("div",{staticClass:"input-text border border-gray-500 dark:border-dark-400 rtl:border-r-0 ltr:border-l-0 flex items-center rtl:pl-0 ltr:pr-0",class:{"read-only":$.isReadOnly}},[I("input",$._g({staticClass:"input-text-minimal p-0 bg-transparent leading-none",attrs:{readonly:$.isReadOnly},domProps:{value:$.startInputValue},on:{focus:function(N){return $.$emit("focus",N.target)},blur:function(N){return $.$emit("blur")}}},$.startInputEvents)),$.isReadOnly?$._e():I("button",{staticClass:"cursor-pointer px-2 hover:text-blue-500",attrs:{type:"button",title:"Clear","aria-label":"Clear"},on:{click:$.clear}},[I("span",[$._v("×")])])])])]},proxy:!0}])},[I("portal-target",{attrs:{name:$.startPortalTarget},on:{change:$.resetPicker}})],1),I("svg-icon",{staticClass:"w-6 h-6 my-1 mx-2 text-gray-700 hidden @md:block",attrs:{name:"micro/arrow-right"}}),I("svg-icon",{staticClass:"w-3.5 h-3.5 my-2 mx-2.5 rotate-90 text-gray-700 @md:hidden",attrs:{name:"micro/arrow-right"}}),I("popover",{ref:"endPopover",staticClass:"w-full",attrs:{placement:"bottom-start",disabled:$.isReadOnly},on:{opened:$.endPopoverOpened,closed:$.endPopoverClosed},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/calendar"}})],1),I("div",{staticClass:"input-text border border-gray-500 dark:border-dark-400 rtl:border-r-0 ltr:border-l-0",class:{"read-only":$.isReadOnly}},[I("input",$._g({staticClass:"input-text-minimal p-0 bg-transparent leading-none",attrs:{readonly:$.isReadOnly},domProps:{value:$.endInputValue},on:{focus:function(N){return $.$emit("focus",N.target)},blur:function(N){return $.$emit("blur")}}},$.endInputEvents))])])]},proxy:!0}])},[I("portal-target",{attrs:{name:$.endPortalTarget},on:{change:$.resetPicker}})],1)],1)],1)},_sfc_staticRenderFns$1W=[],__component__$1X=normalizeComponent$2(_sfc_main$1W,_sfc_render$1W,_sfc_staticRenderFns$1W,!1,null,null,null,null);const RangePopover=__component__$1X.exports,_sfc_main$1V={mixins:[Picker],computed:{darkMode(){return Statamic.darkMode},pickerBindings(){return{...this.bindings,isRange:!0,disabledDates:this.isReadOnly?{weekdays:[1,2,3,4,5,6,7]}:null}}}};var _sfc_render$1V=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative w-full"},[I("v-date-picker",$._b({attrs:{"is-dark":$.darkMode},on:{input:function(N){return $.$emit("input",N)}}},"v-date-picker",$.pickerBindings,!1)),$.isReadOnly?I("div",{staticClass:"absolute inset-0 z-1 cursor-not-allowed"}):$._e()],1)},_sfc_staticRenderFns$1V=[],__component__$1W=normalizeComponent$2(_sfc_main$1V,_sfc_render$1V,_sfc_staticRenderFns$1V,!1,null,null,null,null);const RangeInline=__component__$1W.exports,_sfc_main$1U={components:{SinglePopover,SingleInline,RangePopover,RangeInline},mixins:[Fieldtype],inject:["storeName"],data(){return{containerWidth:null,focusedField:null}},computed:{pickerComponent(){return this.isRange?this.usesPopover?"RangePopover":"RangeInline":this.usesPopover?"SinglePopover":"SingleInline"},hasDate(){return this.config.required||this.value.date},hasTime(){return this.config.time_enabled&&!this.isRange},hasSeconds(){return this.config.time_has_seconds},isSingle(){return!this.isRange},isRange(){return this.config.mode==="range"},isInline(){return this.config.inline},usesPopover(){return!this.isInline},pickerProps(){return{isReadOnly:this.isReadOnly,bindings:this.commonDatePickerBindings}},datePickerValue(){return this.isRange?this.value.date:this.value.date+"T00:00:00"},commonDatePickerBindings(){return{attributes:[{key:"today",dot:!0,popover:{label:__("Today")},dates:new Date}],columns:this.$screens({default:1,lg:this.config.columns}),rows:this.$screens({default:1,lg:this.config.rows}),isExpanded:this.name==="date"||this.config.full_width,isRequired:this.config.required,locale:this.$config.get("locale").replace("_","-"),masks:{input:[this.displayFormat]},minDate:this.config.earliest_date.date,maxDate:this.config.latest_date.date,modelConfig:{type:"string",mask:this.format},updateOnInput:!1,value:this.datePickerValue}},datePickerEvents(){return{input:this.setDate}},format(){return"YYYY-MM-DD"},displayFormat(){return this.meta.displayFormat},replicatorPreview(){if(!this.showFieldPreviews||!this.config.replicator_preview||!this.value.date)return;if(this.isRange)return Vue$3.moment(this.value.date.start).format(this.displayFormat)+" – "+Vue$3.moment(this.value.date.end).format(this.displayFormat);let M=Vue$3.moment(this.value.date).format(this.displayFormat);return this.hasTime&&this.value.time&&(M+=` ${this.value.time}`),M}},created(){this.value.time==="now"&&(this.value.time=Vue$3.moment().format(this.hasSeconds?"HH:mm:ss":"HH:mm")),this.$events.$on(`container.${this.storeName}.saving`,this.triggerChangeOnFocusedField)},destroyed(){this.$events.$off(`container.${this.storeName}.saving`,this.triggerChangeOnFocusedField)},methods:{triggerChangeOnFocusedField(){this.focusedField&&this.focusedField.dispatchEvent(new Event("change"))},setDate(M){if(!M){this.update({date:null,time:null});return}this.update({...this.value,date:M})},setTime(M){this.update({...this.value,time:M})},addDate(){const M=Vue$3.moment().format(this.format),$=this.isRange?{start:M,end:M}:M;this.update({date:$,time:null})}}};var _sfc_render$1U=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"datetime min-w-[145px]"},[!$.isReadOnly&&$.config.inline===!1&&!$.hasDate?I("button",{staticClass:"btn flex mb-2 md:mb-0 items-center rtl:pr-3 ltr:pl-3",attrs:{type:"button",tabindex:"0"},on:{click:$.addDate}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/calendar"}}),$._v(" "+$._s($.__("Add Date"))+" ")],1):$._e(),$.hasDate||$.config.inline?I("div",{staticClass:"date-time-container flex flex-col @sm:flex-row gap-2"},[I($.pickerComponent,$._b({tag:"component",on:{input:$.setDate,focus:function(N){$.focusedField=N},blur:function(N){$.focusedField=null}}},"component",$.pickerProps,!1)),$.config.time_enabled&&!$.isRange?I("div",{staticClass:"time-container time-fieldtype"},[$.hasTime?I("time-fieldtype",{ref:"time",attrs:{handle:"",value:$.value.time,required:$.config.time_enabled,"show-seconds":$.config.time_seconds_enabled,"read-only":$.isReadOnly,config:{}},on:{input:$.setTime}}):$._e()],1):$._e()],1):$._e()])},_sfc_staticRenderFns$1U=[],__component__$1V=normalizeComponent$2(_sfc_main$1U,_sfc_render$1U,_sfc_staticRenderFns$1U,!1,null,null,null,null);const DateFieldtype=__component__$1V.exports,DictionaryFieldtype_vue_vue_type_style_index_0_scoped_70f2d514_lang="",_sfc_main$1T={mixins:[Fieldtype,HasInputOptions,PositionsSelectOptions],components:{SortableList},data(){return{options:{},selectedOptionData:this.meta.selectedOptions}},computed:{multiple(){return this.config.max_items!==1},selectedOptions(){let M=this.value||[];return(typeof M=="string"||typeof M=="number")&&(M=[M]),M.map($=>{let I=this.selectedOptionData.find(N=>N.value===$);return I?{value:I.value,label:I.label,invalid:I.invalid}:{value:$,label:$}})},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.selectedOptions.map(M=>M.label).join(", ")},limitReached(){return this.config.max_items?this.currentLength>=this.config.max_items:!1},limitExceeded(){return this.config.max_items?this.currentLength>this.config.max_items:!1},currentLength(){return this.value?typeof this.value=="string"?1:this.value.length:0},limitIndicatorColor(){return this.limitExceeded?"text-red-500":this.limitReached?"text-green-600":"text-gray"},configParameter(){return utf8btoa(JSON.stringify(this.config))}},mounted(){this.request()},methods:{focus(){this.$refs.input.focus()},vueSelectUpdated(M){this.multiple?(this.update(M.map($=>$.value)),M.forEach($=>this.selectedOptionData.push($))):M?(this.update(M.value),this.selectedOptionData.push(M)):this.update(null)},request(M={}){return M={config:this.configParameter,...M},this.$axios.get(this.meta.url,{params:M}).then($=>(this.options=$.data.data,Promise.resolve($)))},search:_.debounce(function(M,$){$(!0),this.request({search:M}).then(I=>$(!1))},300)}};var _sfc_render$1T=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex"},[I("v-select",{ref:"input",staticClass:"flex-1",attrs:{"input-id":$.fieldId,"append-to-body":"",searchable:"","close-on-select":"","calculate-position":$.positionOptions,name:$.name,disabled:$.config.disabled||$.isReadOnly||$.multiple&&$.limitReached,options:$.normalizeInputOptions($.options),placeholder:$.__($.config.placeholder),multiple:$.multiple,value:$.selectedOptions,"get-option-key":N=>N.value},on:{input:$.vueSelectUpdated,focus:function(N){return $.$emit("focus")},search:$.search,"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([$.multiple?{key:"selected-option-container",fn:function(){return[I("i",{staticClass:"hidden"})]},proxy:!0}:null,$.multiple?{key:"search",fn:function({events:N,attributes:B}){return[I("input",$._g($._b({staticClass:"vs__search",attrs:{placeholder:$.__($.config.placeholder),type:"search"}},"input",B,!1),N))]}}:null,{key:"option",fn:function({label:N}){return[I("div",{domProps:{innerHTML:$._s(N)}})]}},{key:"selected-option",fn:function({label:N}){return[I("div",{domProps:{innerHTML:$._s(N)}})]}},{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0},$.multiple?{key:"footer",fn:function({deselect:N}){return[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",value:$.value,distance:5,mirror:!1},on:{input:$.update}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap"},$._l($.selectedOptions,function(B){return I("span",{key:B.value,staticClass:"vs__selected mt-2 sortable-item",class:{invalid:B.invalid}},[I("div",{domProps:{innerHTML:$._s(B.label)}}),$.readOnly?I("button",{staticClass:"vs__deselect",attrs:{type:"button"}},[I("span",{staticClass:"text-gray-500"},[$._v("×")])]):I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Deselect option")},on:{click:function(j){return N(B)}}},[I("span",[$._v("×")])])])}),0)])]}}:null],null,!0)}),$.config.max_items>1?I("div",{staticClass:"text-xs rtl:mr-2 ltr:ml-2 mt-3",class:$.limitIndicatorColor},[I("span",{domProps:{textContent:$._s($.currentLength)}}),$._v("/"),I("span",{domProps:{textContent:$._s($.config.max_items)}})]):$._e()],1)},_sfc_staticRenderFns$1T=[],__component__$1U=normalizeComponent$2(_sfc_main$1T,_sfc_render$1T,_sfc_staticRenderFns$1T,!1,null,"70f2d514",null,null);const DictionaryFieldtype=__component__$1U.exports,_sfc_main$1S={mixins:[IndexFieldtype],computed:{formatted(){return this.value?this.value.join(", "):null}}};var _sfc_render$1S=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"text-ellipsis",domProps:{innerHTML:$._s($.formatted)}})},_sfc_staticRenderFns$1S=[],__component__$1T=normalizeComponent$2(_sfc_main$1S,_sfc_render$1S,_sfc_staticRenderFns$1S,!1,null,null,null,null);const DictionaryIndexFieldtype=__component__$1T.exports,_sfc_main$1R={mixins:[Fieldtype$1],inject:["storeName"],computed:{dictionary(){var M;return(M=this.value)==null?void 0:M.type},fields(){var M;return this.meta.type.fields.concat(((M=this.meta.dictionaries[this.dictionary])==null?void 0:M.fields)||[])},blueprint(){return{tabs:[{fields:this.fields}]}},publishMeta(){var M;return{...this.meta.type.meta,...(M=this.meta.dictionaries[this.dictionary])==null?void 0:M.meta}},errors(){const M=this.$store.state.publish[this.storeName];if(!M)return{};let $={};return Object.entries(M.errors).filter(([I,N])=>I.startsWith(this.fieldPathPrefix||this.handle)).forEach(([I,N])=>{$[I.split(".").pop()]=N}),$}},watch:{dictionary(M){var $;this.update({type:M,...($=this.meta.dictionaries[M])==null?void 0:$.defaults})}}};var _sfc_render$1R=function M(){var $=this,I=$._self._c;return I("publish-container",{attrs:{name:"dictionary-fields",blueprint:$.blueprint,values:$.value,meta:$.publishMeta,"is-config":!0,errors:$.errors},on:{updated:$.update},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("publish-fields",{attrs:{fields:$.fields},on:{updated:N,"meta-updated":B}})}}])})},_sfc_staticRenderFns$1R=[],__component__$1S=normalizeComponent$2(_sfc_main$1R,_sfc_render$1R,_sfc_staticRenderFns$1R,!1,null,null,null,null);const DictionaryFields=__component__$1S.exports,_sfc_main$1Q={mixins:[Fieldtype$1],inject:["storeName"],computed:{nearestPublishContainer(){let M=this;for(;M.$options.name!=="publish-container";)if(M=M.$parent,M===this.$root)return null;return M},nearestFieldSettings(){let M=this;for(;M.$options._componentTag!=="field-settings";)if(M=M.$parent,M===this.$root)return null;return M},hidden(){return this.nearestFieldSettings.values.hide_display}},mounted(){this.$refs.input.select()},methods:{toggleHidden(){this.nearestFieldSettings.updateField("hide_display",!this.hidden)}}};var _sfc_render$1Q=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[I("input",{ref:"input",staticClass:"input-text",attrs:{id:$.fieldId,name:$.name,type:"text"},domProps:{value:$.value},on:{input:function(N){return $.updateDebounced(N.target.value)},keydown:function(N){return $.$emit("keydown",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}}),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.hidden?$.__("Hidden"):$.__("Visible"),expression:"hidden ? __('Hidden') : __('Visible')"}],staticClass:"input-group-append flex items-center",on:{click:$.toggleHidden}},[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.hidden,expression:"hidden"}],staticClass:"w-5 h-5 text-gray-600 dark:text-dark-200",attrs:{name:"light/hidden"}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:!$.hidden,expression:"!hidden"}],staticClass:"w-5 h-5",attrs:{name:"light/eye"}})],1)])])},_sfc_staticRenderFns$1Q=[],__component__$1R=normalizeComponent$2(_sfc_main$1Q,_sfc_render$1Q,_sfc_staticRenderFns$1Q,!1,null,null,null,null);const FieldDisplayFieldtype=__component__$1R.exports,_sfc_main$1P={props:{field:{type:Object,required:!0},isRoot:{type:Boolean,default:!0},fields:{type:Array},isEditing:Boolean}},_sfc_render$1P=null,_sfc_staticRenderFns$1P=null;var __component__$1Q=normalizeComponent$2(_sfc_main$1P,_sfc_render$1P,_sfc_staticRenderFns$1P,!1,null,null,null,null);const Field=__component__$1Q.exports,RULES=[{label:"Accepted",value:"accepted"},{label:"Accepted If",value:"accepted_if:",example:"accepted_if:anotherfield,value,..."},{label:"Active URL",value:"active_url"},{label:"After (Date)",value:"after:",example:"after:date"},{label:"After Or Equal (Date)",value:"after_or_equal:",example:"after_or_equal:date"},{label:"Alpha",value:"alpha"},{label:"Alpha Dash",value:"alpha_dash"},{label:"Alpha Numeric",value:"alpha_num"},{label:"Array",value:"array"},{label:"Bail",value:"bail"},{label:"Before (Date)",value:"before:",example:"before:date"},{label:"Before Or Equal (Date)",value:"before_or_equal:",example:"before_or_equal:date"},{label:"Between",value:"between:",example:"between:min,max"},{label:"Boolean",value:"boolean"},{label:"Confirmed",value:"confirmed"},{label:"Date",value:"date"},{label:"Date Equals",value:"date_equals:",example:"date_equals:date"},{label:"Date Format",value:"date_format:",example:"date_format:date"},{label:"Different",value:"different:",example:"different:field"},{label:"Digits",value:"digits:",example:"digits:value"},{label:"Digits Between",value:"digits_between:",example:"digits_between:min,max"},{label:"Dimensions (Image Files)",value:"dimensions:",example:"dimensions:min_width=100,min_height=200"},{label:"Distinct",value:"distinct"},{label:"E-Mail",value:"email"},{label:"Ends With",value:"ends_with:",example:"ends_with:foo,bar,...",minVersion:"5.8.17"},{label:"File",value:"file"},{label:"Filled",value:"filled"},{label:"Greater Than",value:"gt:",example:"gt:field"},{label:"Greater Than Or Equal",value:"gte:",example:"gte:field"},{label:"Image (File)",value:"image"},{label:"In",value:"in:",example:"in:foo,bar,..."},{label:"In Array",value:"in_array:",example:"in_array:anotherfield"},{label:"Integer",value:"integer"},{label:"IP Address",value:"ip"},{label:"IP Address (ipv4)",value:"ipv4"},{label:"IP Address (ipv6)",value:"ipv6"},{label:"JSON",value:"json"},{label:"Less Than",value:"lt:",example:"lt:field"},{label:"Less Than Or Equal",value:"lte:",example:"lte:field"},{label:"Max",value:"max:",example:"max:value"},{label:"Max Filesize (KB)",value:"max_filesize:",example:"max_filesize:value"},{label:"MIME Types",value:"mimetypes:",example:"mimetypes:text/plain,..."},{label:"MIME Type By File Extension",value:"mimes:",example:"mimes:foo,bar,..."},{label:"Min",value:"min:",example:"min:value"},{label:"Min Filesize (KB)",value:"min_filesize:",example:"min_filesize:value"},{label:"Not In",value:"not_in:",example:"not_in:foo,bar,..."},{label:"Not Regular Expression",value:"not_regex:",example:"not_regex:pattern"},{label:"Nullable",value:"nullable"},{label:"Numeric",value:"numeric"},{label:"Present",value:"present"},{label:"Regular Expression",value:"regex:",example:"regex:pattern"},{label:"Required",value:"required"},{label:"Required If",value:"required_if:",example:"required_if:anotherfield,value,..."},{label:"Required Unless",value:"required_unless:",example:"required_unless:anotherfield,value,..."},{label:"Required With",value:"required_with:",example:"required_with:foo,bar,..."},{label:"Required With All",value:"required_with_all:",example:"required_with_all:foo,bar,..."},{label:"Required Without",value:"required_without:",example:"required_without:foo,bar,..."},{label:"Required Without All",value:"required_without_all:",example:"required_without_all:foo,bar,..."},{label:"Same",value:"same:",example:"same:field"},{label:"Size",value:"size:",example:"size:value"},{label:"Sometimes",value:"sometimes"},{label:"Starts With",value:"starts_with:",example:"starts_with:foo,bar,...",minVersion:"5.7.15"},{label:"String",value:"string"},{label:"Timezone",value:"timezone"},{label:"Unique Entry Value",value:"new \\Statamic\\Rules\\UniqueEntryValue({collection}, {id}, {site})"},{label:"Unique Term Value",value:"new \\Statamic\\Rules\\UniqueTermValue({taxonomy}, {id}, {site})"},{label:"Unique User Value",value:"new \\Statamic\\Rules\\UniqueUserValue({id})"},{label:"URL",value:"url"},{label:"UUID",value:"uuid",minVersion:"5.7.10"}];var semver={exports:{}};(function(M,$){$=M.exports=ge;var I;typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?I=function(){var lt=Array.prototype.slice.call(arguments,0);lt.unshift("SEMVER"),console.log.apply(console,lt)}:I=function(){},$.SEMVER_SPEC_VERSION="2.0.0";var N=256,B=Number.MAX_SAFE_INTEGER||9007199254740991,j=16,U=N-6,q=$.re=[],Y=$.safeRe=[],K=$.src=[],G=$.tokens={},J=0;function Z(lt){G[lt]=J++}var ee="[a-zA-Z0-9-]",te=[["\\s",1],["\\d",N],[ee,U]];function se(lt){for(var pt=0;pt<te.length;pt++){var Pt=te[pt][0],qt=te[pt][1];lt=lt.split(Pt+"*").join(Pt+"{0,"+qt+"}").split(Pt+"+").join(Pt+"{1,"+qt+"}")}return lt}Z("NUMERICIDENTIFIER"),K[G.NUMERICIDENTIFIER]="0|[1-9]\\d*",Z("NUMERICIDENTIFIERLOOSE"),K[G.NUMERICIDENTIFIERLOOSE]="\\d+",Z("NONNUMERICIDENTIFIER"),K[G.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ee+"*",Z("MAINVERSION"),K[G.MAINVERSION]="("+K[G.NUMERICIDENTIFIER]+")\\.("+K[G.NUMERICIDENTIFIER]+")\\.("+K[G.NUMERICIDENTIFIER]+")",Z("MAINVERSIONLOOSE"),K[G.MAINVERSIONLOOSE]="("+K[G.NUMERICIDENTIFIERLOOSE]+")\\.("+K[G.NUMERICIDENTIFIERLOOSE]+")\\.("+K[G.NUMERICIDENTIFIERLOOSE]+")",Z("PRERELEASEIDENTIFIER"),K[G.PRERELEASEIDENTIFIER]="(?:"+K[G.NUMERICIDENTIFIER]+"|"+K[G.NONNUMERICIDENTIFIER]+")",Z("PRERELEASEIDENTIFIERLOOSE"),K[G.PRERELEASEIDENTIFIERLOOSE]="(?:"+K[G.NUMERICIDENTIFIERLOOSE]+"|"+K[G.NONNUMERICIDENTIFIER]+")",Z("PRERELEASE"),K[G.PRERELEASE]="(?:-("+K[G.PRERELEASEIDENTIFIER]+"(?:\\."+K[G.PRERELEASEIDENTIFIER]+")*))",Z("PRERELEASELOOSE"),K[G.PRERELEASELOOSE]="(?:-?("+K[G.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+K[G.PRERELEASEIDENTIFIERLOOSE]+")*))",Z("BUILDIDENTIFIER"),K[G.BUILDIDENTIFIER]=ee+"+",Z("BUILD"),K[G.BUILD]="(?:\\+("+K[G.BUILDIDENTIFIER]+"(?:\\."+K[G.BUILDIDENTIFIER]+")*))",Z("FULL"),Z("FULLPLAIN"),K[G.FULLPLAIN]="v?"+K[G.MAINVERSION]+K[G.PRERELEASE]+"?"+K[G.BUILD]+"?",K[G.FULL]="^"+K[G.FULLPLAIN]+"$",Z("LOOSEPLAIN"),K[G.LOOSEPLAIN]="[v=\\s]*"+K[G.MAINVERSIONLOOSE]+K[G.PRERELEASELOOSE]+"?"+K[G.BUILD]+"?",Z("LOOSE"),K[G.LOOSE]="^"+K[G.LOOSEPLAIN]+"$",Z("GTLT"),K[G.GTLT]="((?:<|>)?=?)",Z("XRANGEIDENTIFIERLOOSE"),K[G.XRANGEIDENTIFIERLOOSE]=K[G.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",Z("XRANGEIDENTIFIER"),K[G.XRANGEIDENTIFIER]=K[G.NUMERICIDENTIFIER]+"|x|X|\\*",Z("XRANGEPLAIN"),K[G.XRANGEPLAIN]="[v=\\s]*("+K[G.XRANGEIDENTIFIER]+")(?:\\.("+K[G.XRANGEIDENTIFIER]+")(?:\\.("+K[G.XRANGEIDENTIFIER]+")(?:"+K[G.PRERELEASE]+")?"+K[G.BUILD]+"?)?)?",Z("XRANGEPLAINLOOSE"),K[G.XRANGEPLAINLOOSE]="[v=\\s]*("+K[G.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+K[G.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+K[G.XRANGEIDENTIFIERLOOSE]+")(?:"+K[G.PRERELEASELOOSE]+")?"+K[G.BUILD]+"?)?)?",Z("XRANGE"),K[G.XRANGE]="^"+K[G.GTLT]+"\\s*"+K[G.XRANGEPLAIN]+"$",Z("XRANGELOOSE"),K[G.XRANGELOOSE]="^"+K[G.GTLT]+"\\s*"+K[G.XRANGEPLAINLOOSE]+"$",Z("COERCE"),K[G.COERCE]="(^|[^\\d])(\\d{1,"+j+"})(?:\\.(\\d{1,"+j+"}))?(?:\\.(\\d{1,"+j+"}))?(?:$|[^\\d])",Z("COERCERTL"),q[G.COERCERTL]=new RegExp(K[G.COERCE],"g"),Y[G.COERCERTL]=new RegExp(se(K[G.COERCE]),"g"),Z("LONETILDE"),K[G.LONETILDE]="(?:~>?)",Z("TILDETRIM"),K[G.TILDETRIM]="(\\s*)"+K[G.LONETILDE]+"\\s+",q[G.TILDETRIM]=new RegExp(K[G.TILDETRIM],"g"),Y[G.TILDETRIM]=new RegExp(se(K[G.TILDETRIM]),"g");var re="$1~";Z("TILDE"),K[G.TILDE]="^"+K[G.LONETILDE]+K[G.XRANGEPLAIN]+"$",Z("TILDELOOSE"),K[G.TILDELOOSE]="^"+K[G.LONETILDE]+K[G.XRANGEPLAINLOOSE]+"$",Z("LONECARET"),K[G.LONECARET]="(?:\\^)",Z("CARETTRIM"),K[G.CARETTRIM]="(\\s*)"+K[G.LONECARET]+"\\s+",q[G.CARETTRIM]=new RegExp(K[G.CARETTRIM],"g"),Y[G.CARETTRIM]=new RegExp(se(K[G.CARETTRIM]),"g");var ne="$1^";Z("CARET"),K[G.CARET]="^"+K[G.LONECARET]+K[G.XRANGEPLAIN]+"$",Z("CARETLOOSE"),K[G.CARETLOOSE]="^"+K[G.LONECARET]+K[G.XRANGEPLAINLOOSE]+"$",Z("COMPARATORLOOSE"),K[G.COMPARATORLOOSE]="^"+K[G.GTLT]+"\\s*("+K[G.LOOSEPLAIN]+")$|^$",Z("COMPARATOR"),K[G.COMPARATOR]="^"+K[G.GTLT]+"\\s*("+K[G.FULLPLAIN]+")$|^$",Z("COMPARATORTRIM"),K[G.COMPARATORTRIM]="(\\s*)"+K[G.GTLT]+"\\s*("+K[G.LOOSEPLAIN]+"|"+K[G.XRANGEPLAIN]+")",q[G.COMPARATORTRIM]=new RegExp(K[G.COMPARATORTRIM],"g"),Y[G.COMPARATORTRIM]=new RegExp(se(K[G.COMPARATORTRIM]),"g");var ce="$1$2$3";Z("HYPHENRANGE"),K[G.HYPHENRANGE]="^\\s*("+K[G.XRANGEPLAIN]+")\\s+-\\s+("+K[G.XRANGEPLAIN]+")\\s*$",Z("HYPHENRANGELOOSE"),K[G.HYPHENRANGELOOSE]="^\\s*("+K[G.XRANGEPLAINLOOSE]+")\\s+-\\s+("+K[G.XRANGEPLAINLOOSE]+")\\s*$",Z("STAR"),K[G.STAR]="(<|>)?=?\\s*\\*";for(var me=0;me<J;me++)I(me,K[me]),q[me]||(q[me]=new RegExp(K[me]),Y[me]=new RegExp(se(K[me])));$.parse=ue;function ue(lt,pt){if((!pt||typeof pt!="object")&&(pt={loose:!!pt,includePrerelease:!1}),lt instanceof ge)return lt;if(typeof lt!="string"||lt.length>N)return null;var Pt=pt.loose?Y[G.LOOSE]:Y[G.FULL];if(!Pt.test(lt))return null;try{return new ge(lt,pt)}catch{return null}}$.valid=_e;function _e(lt,pt){var Pt=ue(lt,pt);return Pt?Pt.version:null}$.clean=fe;function fe(lt,pt){var Pt=ue(lt.trim().replace(/^[=v]+/,""),pt);return Pt?Pt.version:null}$.SemVer=ge;function ge(lt,pt){if((!pt||typeof pt!="object")&&(pt={loose:!!pt,includePrerelease:!1}),lt instanceof ge){if(lt.loose===pt.loose)return lt;lt=lt.version}else if(typeof lt!="string")throw new TypeError("Invalid Version: "+lt);if(lt.length>N)throw new TypeError("version is longer than "+N+" characters");if(!(this instanceof ge))return new ge(lt,pt);I("SemVer",lt,pt),this.options=pt,this.loose=!!pt.loose;var Pt=lt.trim().match(pt.loose?Y[G.LOOSE]:Y[G.FULL]);if(!Pt)throw new TypeError("Invalid Version: "+lt);if(this.raw=lt,this.major=+Pt[1],this.minor=+Pt[2],this.patch=+Pt[3],this.major>B||this.major<0)throw new TypeError("Invalid major version");if(this.minor>B||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>B||this.patch<0)throw new TypeError("Invalid patch version");Pt[4]?this.prerelease=Pt[4].split(".").map(function(qt){if(/^[0-9]+$/.test(qt)){var Ht=+qt;if(Ht>=0&&Ht<B)return Ht}return qt}):this.prerelease=[],this.build=Pt[5]?Pt[5].split("."):[],this.format()}ge.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},ge.prototype.toString=function(){return this.version},ge.prototype.compare=function(lt){return I("SemVer.compare",this.version,this.options,lt),lt instanceof ge||(lt=new ge(lt,this.options)),this.compareMain(lt)||this.comparePre(lt)},ge.prototype.compareMain=function(lt){return lt instanceof ge||(lt=new ge(lt,this.options)),be(this.major,lt.major)||be(this.minor,lt.minor)||be(this.patch,lt.patch)},ge.prototype.comparePre=function(lt){if(lt instanceof ge||(lt=new ge(lt,this.options)),this.prerelease.length&&!lt.prerelease.length)return-1;if(!this.prerelease.length&<.prerelease.length)return 1;if(!this.prerelease.length&&!lt.prerelease.length)return 0;var pt=0;do{var Pt=this.prerelease[pt],qt=lt.prerelease[pt];if(I("prerelease compare",pt,Pt,qt),Pt===void 0&&qt===void 0)return 0;if(qt===void 0)return 1;if(Pt===void 0)return-1;if(Pt===qt)continue;return be(Pt,qt)}while(++pt)},ge.prototype.compareBuild=function(lt){lt instanceof ge||(lt=new ge(lt,this.options));var pt=0;do{var Pt=this.build[pt],qt=lt.build[pt];if(I("prerelease compare",pt,Pt,qt),Pt===void 0&&qt===void 0)return 0;if(qt===void 0)return 1;if(Pt===void 0)return-1;if(Pt===qt)continue;return be(Pt,qt)}while(++pt)},ge.prototype.inc=function(lt,pt){switch(lt){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",pt);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",pt);break;case"prepatch":this.prerelease.length=0,this.inc("patch",pt),this.inc("pre",pt);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",pt),this.inc("pre",pt);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var Pt=this.prerelease.length;--Pt>=0;)typeof this.prerelease[Pt]=="number"&&(this.prerelease[Pt]++,Pt=-2);Pt===-1&&this.prerelease.push(0)}pt&&(this.prerelease[0]===pt?isNaN(this.prerelease[1])&&(this.prerelease=[pt,0]):this.prerelease=[pt,0]);break;default:throw new Error("invalid increment argument: "+lt)}return this.format(),this.raw=this.version,this},$.inc=ye;function ye(lt,pt,Pt,qt){typeof Pt=="string"&&(qt=Pt,Pt=void 0);try{return new ge(lt,Pt).inc(pt,qt).version}catch{return null}}$.diff=xe;function xe(lt,pt){if(Dt(lt,pt))return null;var Pt=ue(lt),qt=ue(pt),Ht="";if(Pt.prerelease.length||qt.prerelease.length){Ht="pre";var mn="prerelease"}for(var Yn in Pt)if((Yn==="major"||Yn==="minor"||Yn==="patch")&&Pt[Yn]!==qt[Yn])return Ht+Yn;return mn}$.compareIdentifiers=be;var le=/^[0-9]+$/;function be(lt,pt){var Pt=le.test(lt),qt=le.test(pt);return Pt&&qt&&(lt=+lt,pt=+pt),lt===pt?0:Pt&&!qt?-1:qt&&!Pt?1:lt<pt?-1:1}$.rcompareIdentifiers=ve;function ve(lt,pt){return be(pt,lt)}$.major=we;function we(lt,pt){return new ge(lt,pt).major}$.minor=Ae;function Ae(lt,pt){return new ge(lt,pt).minor}$.patch=Se;function Se(lt,pt){return new ge(lt,pt).patch}$.compare=Pe;function Pe(lt,pt,Pt){return new ge(lt,Pt).compare(new ge(pt,Pt))}$.compareLoose=Me;function Me(lt,pt){return Pe(lt,pt,!0)}$.compareBuild=Be;function Be(lt,pt,Pt){var qt=new ge(lt,Pt),Ht=new ge(pt,Pt);return qt.compare(Ht)||qt.compareBuild(Ht)}$.rcompare=ze;function ze(lt,pt,Pt){return Pe(pt,lt,Pt)}$.sort=Ze;function Ze(lt,pt){return lt.sort(function(Pt,qt){return $.compareBuild(Pt,qt,pt)})}$.rsort=ft;function ft(lt,pt){return lt.sort(function(Pt,qt){return $.compareBuild(qt,Pt,pt)})}$.gt=Ye;function Ye(lt,pt,Pt){return Pe(lt,pt,Pt)>0}$.lt=Ve;function Ve(lt,pt,Pt){return Pe(lt,pt,Pt)<0}$.eq=Dt;function Dt(lt,pt,Pt){return Pe(lt,pt,Pt)===0}$.neq=Nt;function Nt(lt,pt,Pt){return Pe(lt,pt,Pt)!==0}$.gte=Vt;function Vt(lt,pt,Pt){return Pe(lt,pt,Pt)>=0}$.lte=Wt;function Wt(lt,pt,Pt){return Pe(lt,pt,Pt)<=0}$.cmp=Gt;function Gt(lt,pt,Pt,qt){switch(pt){case"===":return typeof lt=="object"&&(lt=lt.version),typeof Pt=="object"&&(Pt=Pt.version),lt===Pt;case"!==":return typeof lt=="object"&&(lt=lt.version),typeof Pt=="object"&&(Pt=Pt.version),lt!==Pt;case"":case"=":case"==":return Dt(lt,Pt,qt);case"!=":return Nt(lt,Pt,qt);case">":return Ye(lt,Pt,qt);case">=":return Vt(lt,Pt,qt);case"<":return Ve(lt,Pt,qt);case"<=":return Wt(lt,Pt,qt);default:throw new TypeError("Invalid operator: "+pt)}}$.Comparator=tn;function tn(lt,pt){if((!pt||typeof pt!="object")&&(pt={loose:!!pt,includePrerelease:!1}),lt instanceof tn){if(lt.loose===!!pt.loose)return lt;lt=lt.value}if(!(this instanceof tn))return new tn(lt,pt);lt=lt.trim().split(/\s+/).join(" "),I("comparator",lt,pt),this.options=pt,this.loose=!!pt.loose,this.parse(lt),this.semver===Qt?this.value="":this.value=this.operator+this.semver.version,I("comp",this)}var Qt={};tn.prototype.parse=function(lt){var pt=this.options.loose?Y[G.COMPARATORLOOSE]:Y[G.COMPARATOR],Pt=lt.match(pt);if(!Pt)throw new TypeError("Invalid comparator: "+lt);this.operator=Pt[1]!==void 0?Pt[1]:"",this.operator==="="&&(this.operator=""),Pt[2]?this.semver=new ge(Pt[2],this.options.loose):this.semver=Qt},tn.prototype.toString=function(){return this.value},tn.prototype.test=function(lt){if(I("Comparator.test",lt,this.options.loose),this.semver===Qt||lt===Qt)return!0;if(typeof lt=="string")try{lt=new ge(lt,this.options)}catch{return!1}return Gt(lt,this.operator,this.semver,this.options)},tn.prototype.intersects=function(lt,pt){if(!(lt instanceof tn))throw new TypeError("a Comparator is required");(!pt||typeof pt!="object")&&(pt={loose:!!pt,includePrerelease:!1});var Pt;if(this.operator==="")return this.value===""?!0:(Pt=new En(lt.value,pt),Ge(this.value,Pt,pt));if(lt.operator==="")return lt.value===""?!0:(Pt=new En(this.value,pt),Ge(lt.semver,Pt,pt));var qt=(this.operator===">="||this.operator===">")&&(lt.operator===">="||lt.operator===">"),Ht=(this.operator==="<="||this.operator==="<")&&(lt.operator==="<="||lt.operator==="<"),mn=this.semver.version===lt.semver.version,Yn=(this.operator===">="||this.operator==="<=")&&(lt.operator===">="||lt.operator==="<="),Ct=Gt(this.semver,"<",lt.semver,pt)&&(this.operator===">="||this.operator===">")&&(lt.operator==="<="||lt.operator==="<"),ht=Gt(this.semver,">",lt.semver,pt)&&(this.operator==="<="||this.operator==="<")&&(lt.operator===">="||lt.operator===">");return qt||Ht||mn&&Yn||Ct||ht},$.Range=En;function En(lt,pt){if((!pt||typeof pt!="object")&&(pt={loose:!!pt,includePrerelease:!1}),lt instanceof En)return lt.loose===!!pt.loose&<.includePrerelease===!!pt.includePrerelease?lt:new En(lt.raw,pt);if(lt instanceof tn)return new En(lt.value,pt);if(!(this instanceof En))return new En(lt,pt);if(this.options=pt,this.loose=!!pt.loose,this.includePrerelease=!!pt.includePrerelease,this.raw=lt.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(Pt){return this.parseRange(Pt.trim())},this).filter(function(Pt){return Pt.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}En.prototype.format=function(){return this.range=this.set.map(function(lt){return lt.join(" ").trim()}).join("||").trim(),this.range},En.prototype.toString=function(){return this.range},En.prototype.parseRange=function(lt){var pt=this.options.loose,Pt=pt?Y[G.HYPHENRANGELOOSE]:Y[G.HYPHENRANGE];lt=lt.replace(Pt,ke),I("hyphen replace",lt),lt=lt.replace(Y[G.COMPARATORTRIM],ce),I("comparator trim",lt,Y[G.COMPARATORTRIM]),lt=lt.replace(Y[G.TILDETRIM],re),lt=lt.replace(Y[G.CARETTRIM],ne),lt=lt.split(/\s+/).join(" ");var qt=pt?Y[G.COMPARATORLOOSE]:Y[G.COMPARATOR],Ht=lt.split(" ").map(function(mn){return An(mn,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(Ht=Ht.filter(function(mn){return!!mn.match(qt)})),Ht=Ht.map(function(mn){return new tn(mn,this.options)},this),Ht},En.prototype.intersects=function(lt,pt){if(!(lt instanceof En))throw new TypeError("a Range is required");return this.set.some(function(Pt){return kn(Pt,pt)&<.set.some(function(qt){return kn(qt,pt)&&Pt.every(function(Ht){return qt.every(function(mn){return Ht.intersects(mn,pt)})})})})};function kn(lt,pt){for(var Pt=!0,qt=lt.slice(),Ht=qt.pop();Pt&&qt.length;)Pt=qt.every(function(mn){return Ht.intersects(mn,pt)}),Ht=qt.pop();return Pt}$.toComparators=Gn;function Gn(lt,pt){return new En(lt,pt).set.map(function(Pt){return Pt.map(function(qt){return qt.value}).join(" ").trim().split(" ")})}function An(lt,pt){return I("comp",lt,pt),lt=Et(lt,pt),I("caret",lt),lt=Mn(lt,pt),I("tildes",lt),lt=xt(lt,pt),I("xrange",lt),lt=Oe(lt,pt),I("stars",lt),lt}function jn(lt){return!lt||lt.toLowerCase()==="x"||lt==="*"}function Mn(lt,pt){return lt.trim().split(/\s+/).map(function(Pt){return Ln(Pt,pt)}).join(" ")}function Ln(lt,pt){var Pt=pt.loose?Y[G.TILDELOOSE]:Y[G.TILDE];return lt.replace(Pt,function(qt,Ht,mn,Yn,Ct){I("tilde",lt,qt,Ht,mn,Yn,Ct);var ht;return jn(Ht)?ht="":jn(mn)?ht=">="+Ht+".0.0 <"+(+Ht+1)+".0.0":jn(Yn)?ht=">="+Ht+"."+mn+".0 <"+Ht+"."+(+mn+1)+".0":Ct?(I("replaceTilde pr",Ct),ht=">="+Ht+"."+mn+"."+Yn+"-"+Ct+" <"+Ht+"."+(+mn+1)+".0"):ht=">="+Ht+"."+mn+"."+Yn+" <"+Ht+"."+(+mn+1)+".0",I("tilde return",ht),ht})}function Et(lt,pt){return lt.trim().split(/\s+/).map(function(Pt){return We(Pt,pt)}).join(" ")}function We(lt,pt){I("caret",lt,pt);var Pt=pt.loose?Y[G.CARETLOOSE]:Y[G.CARET];return lt.replace(Pt,function(qt,Ht,mn,Yn,Ct){I("caret",lt,qt,Ht,mn,Yn,Ct);var ht;return jn(Ht)?ht="":jn(mn)?ht=">="+Ht+".0.0 <"+(+Ht+1)+".0.0":jn(Yn)?Ht==="0"?ht=">="+Ht+"."+mn+".0 <"+Ht+"."+(+mn+1)+".0":ht=">="+Ht+"."+mn+".0 <"+(+Ht+1)+".0.0":Ct?(I("replaceCaret pr",Ct),Ht==="0"?mn==="0"?ht=">="+Ht+"."+mn+"."+Yn+"-"+Ct+" <"+Ht+"."+mn+"."+(+Yn+1):ht=">="+Ht+"."+mn+"."+Yn+"-"+Ct+" <"+Ht+"."+(+mn+1)+".0":ht=">="+Ht+"."+mn+"."+Yn+"-"+Ct+" <"+(+Ht+1)+".0.0"):(I("no pr"),Ht==="0"?mn==="0"?ht=">="+Ht+"."+mn+"."+Yn+" <"+Ht+"."+mn+"."+(+Yn+1):ht=">="+Ht+"."+mn+"."+Yn+" <"+Ht+"."+(+mn+1)+".0":ht=">="+Ht+"."+mn+"."+Yn+" <"+(+Ht+1)+".0.0"),I("caret return",ht),ht})}function xt(lt,pt){return I("replaceXRanges",lt,pt),lt.split(/\s+/).map(function(Pt){return Ue(Pt,pt)}).join(" ")}function Ue(lt,pt){lt=lt.trim();var Pt=pt.loose?Y[G.XRANGELOOSE]:Y[G.XRANGE];return lt.replace(Pt,function(qt,Ht,mn,Yn,Ct,ht){I("xRange",lt,qt,Ht,mn,Yn,Ct,ht);var Tt=jn(mn),Lt=Tt||jn(Yn),fn=Lt||jn(Ct),hn=fn;return Ht==="="&&hn&&(Ht=""),ht=pt.includePrerelease?"-0":"",Tt?Ht===">"||Ht==="<"?qt="<0.0.0-0":qt="*":Ht&&hn?(Lt&&(Yn=0),Ct=0,Ht===">"?(Ht=">=",Lt?(mn=+mn+1,Yn=0,Ct=0):(Yn=+Yn+1,Ct=0)):Ht==="<="&&(Ht="<",Lt?mn=+mn+1:Yn=+Yn+1),qt=Ht+mn+"."+Yn+"."+Ct+ht):Lt?qt=">="+mn+".0.0"+ht+" <"+(+mn+1)+".0.0"+ht:fn&&(qt=">="+mn+"."+Yn+".0"+ht+" <"+mn+"."+(+Yn+1)+".0"+ht),I("xRange return",qt),qt})}function Oe(lt,pt){return I("replaceStars",lt,pt),lt.trim().replace(Y[G.STAR],"")}function ke(lt,pt,Pt,qt,Ht,mn,Yn,Ct,ht,Tt,Lt,fn,hn){return jn(Pt)?pt="":jn(qt)?pt=">="+Pt+".0.0":jn(Ht)?pt=">="+Pt+"."+qt+".0":pt=">="+pt,jn(ht)?Ct="":jn(Tt)?Ct="<"+(+ht+1)+".0.0":jn(Lt)?Ct="<"+ht+"."+(+Tt+1)+".0":fn?Ct="<="+ht+"."+Tt+"."+Lt+"-"+fn:Ct="<="+Ct,(pt+" "+Ct).trim()}En.prototype.test=function(lt){if(!lt)return!1;if(typeof lt=="string")try{lt=new ge(lt,this.options)}catch{return!1}for(var pt=0;pt<this.set.length;pt++)if($e(this.set[pt],lt,this.options))return!0;return!1};function $e(lt,pt,Pt){for(var qt=0;qt<lt.length;qt++)if(!lt[qt].test(pt))return!1;if(pt.prerelease.length&&!Pt.includePrerelease){for(qt=0;qt<lt.length;qt++)if(I(lt[qt].semver),lt[qt].semver!==Qt&<[qt].semver.prerelease.length>0){var Ht=lt[qt].semver;if(Ht.major===pt.major&&Ht.minor===pt.minor&&Ht.patch===pt.patch)return!0}return!1}return!0}$.satisfies=Ge;function Ge(lt,pt,Pt){try{pt=new En(pt,Pt)}catch{return!1}return pt.test(lt)}$.maxSatisfying=rt;function rt(lt,pt,Pt){var qt=null,Ht=null;try{var mn=new En(pt,Pt)}catch{return null}return lt.forEach(function(Yn){mn.test(Yn)&&(!qt||Ht.compare(Yn)===-1)&&(qt=Yn,Ht=new ge(qt,Pt))}),qt}$.minSatisfying=ut;function ut(lt,pt,Pt){var qt=null,Ht=null;try{var mn=new En(pt,Pt)}catch{return null}return lt.forEach(function(Yn){mn.test(Yn)&&(!qt||Ht.compare(Yn)===1)&&(qt=Yn,Ht=new ge(qt,Pt))}),qt}$.minVersion=ct;function ct(lt,pt){lt=new En(lt,pt);var Pt=new ge("0.0.0");if(lt.test(Pt)||(Pt=new ge("0.0.0-0"),lt.test(Pt)))return Pt;Pt=null;for(var qt=0;qt<lt.set.length;++qt){var Ht=lt.set[qt];Ht.forEach(function(mn){var Yn=new ge(mn.semver.version);switch(mn.operator){case">":Yn.prerelease.length===0?Yn.patch++:Yn.prerelease.push(0),Yn.raw=Yn.format();case"":case">=":(!Pt||Ye(Pt,Yn))&&(Pt=Yn);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+mn.operator)}})}return Pt&<.test(Pt)?Pt:null}$.validRange=it;function it(lt,pt){try{return new En(lt,pt).range||"*"}catch{return null}}$.ltr=ot;function ot(lt,pt,Pt){return dn(lt,pt,"<",Pt)}$.gtr=Ot;function Ot(lt,pt,Pt){return dn(lt,pt,">",Pt)}$.outside=dn;function dn(lt,pt,Pt,qt){lt=new ge(lt,qt),pt=new En(pt,qt);var Ht,mn,Yn,Ct,ht;switch(Pt){case">":Ht=Ye,mn=Wt,Yn=Ve,Ct=">",ht=">=";break;case"<":Ht=Ve,mn=Vt,Yn=Ye,Ct="<",ht="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ge(lt,pt,qt))return!1;for(var Tt=0;Tt<pt.set.length;++Tt){var Lt=pt.set[Tt],fn=null,hn=null;if(Lt.forEach(function(wn){wn.semver===Qt&&(wn=new tn(">=0.0.0")),fn=fn||wn,hn=hn||wn,Ht(wn.semver,fn.semver,qt)?fn=wn:Yn(wn.semver,hn.semver,qt)&&(hn=wn)}),fn.operator===Ct||fn.operator===ht||(!hn.operator||hn.operator===Ct)&&mn(lt,hn.semver))return!1;if(hn.operator===ht&&Yn(lt,hn.semver))return!1}return!0}$.prerelease=Fn;function Fn(lt,pt){var Pt=ue(lt,pt);return Pt&&Pt.prerelease.length?Pt.prerelease:null}$.intersects=Zt;function Zt(lt,pt,Pt){return lt=new En(lt,Pt),pt=new En(pt,Pt),lt.intersects(pt)}$.coerce=vn;function vn(lt,pt){if(lt instanceof ge)return lt;if(typeof lt=="number"&&(lt=String(lt)),typeof lt!="string")return null;pt=pt||{};var Pt=null;if(!pt.rtl)Pt=lt.match(Y[G.COERCE]);else{for(var qt;(qt=Y[G.COERCERTL].exec(lt))&&(!Pt||Pt.index+Pt[0].length!==lt.length);)(!Pt||qt.index+qt[0].length!==Pt.index+Pt[0].length)&&(Pt=qt),Y[G.COERCERTL].lastIndex=qt.index+qt[1].length+qt[2].length;Y[G.COERCERTL].lastIndex=-1}return Pt===null?null:ue(Pt[2]+"."+(Pt[3]||"0")+"."+(Pt[4]||"0"),pt)}})(semver,semver.exports);var semverExports=semver.exports;const SemVer=getDefaultExportFromCjs$1(semverExports),Builder_vue_vue_type_style_index_0_scoped_a54ebc0f_lang="",_sfc_main$1O={components:{SortableList,SortableItem},props:{config:{required:!0}},data(){return{isRequired:!1,sometimesValidate:!1,rules:[],selectedLaravelRule:null,customRule:null}},computed:{laravelVersion(){return this.$store.state.statamic.config.laravelVersion},laravelDocsLink(){let M=new RegExp("([0-9]+.[0-9]+).[0-9]+").exec(this.laravelVersion)[1],$=Number(M.split(".",1)[0]);return $>=6&&(M=`${$}.x`),`https://laravel.com/docs/${M}/validation#available-validation-rules`},laravelRules(){return _.chain(clone(RULES)).filter(M=>M.minVersion?SemVer.gte(this.laravelVersion,M.minVersion):!0).filter(M=>M.maxVersion?SemVer.lte(this.laravelVersion,M.maxVersion):!0).map(M=>this.prepareRenderableRule(M)).value()},extensionRules(){return _.chain(clone(Statamic.$config.get("extensionRules"))).map(M=>this.prepareRenderableRule(M)).value()},allRules(){return _.sortBy([...this.laravelRules,...this.extensionRules],"display")},helpBlock(){return this.selectedLaravelRule&&_.chain(this.allRules).filter($=>$.value===this.selectedLaravelRule).first().value().example||!1}},watch:{isRequired(M){M===!0?this.ensureToggleableRule("required"):this.remove("required")},sometimesValidate(M){M===!0?this.ensureToggleableRule("sometimes"):this.remove("sometimes")},rules(M){this.resetState(),this.$emit("updated",M)}},created(){this.getInitial()},methods:{getInitial(){this.rules=this.config.validate?this.explodeRules(this.config.validate):[]},resetState(){this.selectedLaravelRule=null,this.customRule=null,this.isRequired=this.rules.includes("required"),this.sometimesValidate=this.rules.includes("sometimes")},explodeRules(M){return typeof M=="string"?M.split("|").map($=>$.trim()):M},prepareRenderableRule(M){return M.display=clone(M.label),this.$nextTick(()=>{M.label=`${M.label} ${M.value}`}),M},ensureToggleableRule(M){this.rules.includes(M)||this.rules.unshift(M)},ensure(M){this.resetState(),this.rules.includes(M)||this.rules.push(M)},add(M){this.hasUnfinishedParameters(M)?(this.resetState(),this.selectedLaravelRule=M,this.customRule=M,this.$nextTick(()=>this.$refs.customRuleInput.$refs.input.focus())):this.ensure(M)},ifSearchNotFoundAddCustom(){let M=this.$refs.rulesSelect,$=M.search;this.searchNotFound(M)||this.hasUnfinishedParameters($)||(this.add($),this.$nextTick(()=>this.$refs.searchInput.blur()))},remove(M){this.rules=this.rules.filter($=>$!==M)},hasUnfinishedParameters(M){return M.substr(M.length-1)===":"},searchNotFound(M){return M.search.length===0||M.filteredOptions.length>0},updated(M){this.rules=M},valueWithoutTrailingColon(M){return this.hasUnfinishedParameters(M)?M.replace(":",""):M}}};var _sfc_render$1O=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"w-full"},[I("div",{staticClass:"flex"},[I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Required")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_validation_required_instructions")))])]),I("toggle-input",{model:{value:$.isRequired,callback:function(N){$.isRequired=N},expression:"isRequired"}})],1),I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Sometimes")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v($._s($.__("messages.field_validation_sometimes_instructions")))])]),I("toggle-input",{model:{value:$.sometimesValidate,callback:function(N){$.sometimesValidate=N},expression:"sometimesValidate"}})],1)]),I("div",{staticClass:"form-group publish-field select-fieldtype field-w-full"},[I("label",{staticClass:"publish-field-label"},[$._v($._s($.__("Rules")))]),I("div",{staticClass:"help-block -mt-2"},[I("p",[$._v(" "+$._s($.__("messages.field_validation_advanced_instructions"))+" "),I("a",{attrs:{href:$.laravelDocsLink,target:"_blank"}},[$._v($._s($.__("Learn more")))]),$.helpBlock?I("span",{staticClass:"italic text-gray-500 ltr:float-right rtl:float-left"},[$._v(" "+$._s($.__("Example"))+": "),I("span",{staticClass:"italic text-blue-400"},[$._v($._s($.helpBlock))])]):$._e()])]),$.customRule?I("text-input",{ref:"customRuleInput",on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.add($.customRule))},blur:function(N){return $.add($.customRule)}},model:{value:$.customRule,callback:function(N){$.customRule=N},expression:"customRule"}}):I("v-select",{ref:"rulesSelect",staticClass:"w-full",attrs:{name:"rules",options:$.allRules,reduce:N=>N.value,placeholder:$.__("Add Rule"),multiple:!1,searchable:!0,value:$.selectedLaravelRule},on:{input:$.add},scopedSlots:$._u([{key:"search",fn:function({attributes:N,events:B}){return[I("input",$._g($._b({ref:"searchInput",staticClass:"vs__search",on:{keydown:function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"enter",13,j.key,"Enter")?null:$.ifSearchNotFoundAddCustom.apply(null,arguments)},blur:$.ifSearchNotFoundAddCustom}},"input",N,!1),B))]}},{key:"option",fn:function({value:N,display:B}){return[$._v(" "+$._s($.__(B))+" "),I("code",{staticClass:"rtl:mr-2 ltr:ml-2"},[$._v($._s($.valueWithoutTrailingColon(N)))])]}},{key:"no-options",fn:function({search:N}){return[I("div",{staticClass:"vs__dropdown-option rtl:text-right ltr:text-left"},[$._v($._s($.__("Add"))+" "),I("code",{staticClass:"rtl:mr-2 ltr:ml-2"},[$._v($._s(N))])])]}}],null,!1,2877689603)}),I("div",{staticClass:"v-select"},[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",distance:5,mirror:!1},model:{value:$.rules,callback:function(N){$.rules=N},expression:"rules"}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap outline-none"},$._l($.rules,function(N){return I("span",{key:N,staticClass:"vs__selected mt-2 sortable-item"},[$._v(" "+$._s(N)+" "),I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Delete Rule")},on:{click:function(B){return $.remove(N)}}},[I("span",[$._v("×")])])])}),0)])],1)],1)])},_sfc_staticRenderFns$1O=[],__component__$1P=normalizeComponent$2(_sfc_main$1O,_sfc_render$1O,_sfc_staticRenderFns$1O,!1,null,"a54ebc0f",null,null);const FieldValidationBuilder=__component__$1P.exports,_sfc_main$1N={components:{PublishField,FieldConditionsBuilder,FieldValidationBuilder},mixins:[ValidatesFieldConditions],props:{id:String,config:Object,overrides:{type:Array,default:()=>[]},type:String,root:Boolean,fields:Array,suggestableConditionFields:Array,isInsideSet:Boolean},provide:{isInsideConfigFields:!0},model:{prop:"config",event:"input"},data:function(){return{values:null,meta:null,error:null,errors:{},editedFields:clone(this.overrides),activeTab:"settings",storeName:"base",fieldtype:null,loading:!0,blueprint:null}},computed:{publishContainer(){return`field-settings-${this._uid}`},selectedWidth:function(){var M=this.config.width||100,$=_.findWhere(this.widths,{value:M});return $.text},fieldtypeConfig(){return this.fieldtype.config},canBeLocalized:function(){return this.root&&Object.keys(Statamic.$config.get("locales")).length>1&&this.fieldtype.canBeLocalized},canBeValidated:function(){return this.fieldtype.canBeValidated},canHaveDefault:function(){return this.fieldtype.canHaveDefault},hasExtras(){return this.filteredFieldtypeConfig.length>0},filteredFieldtypeConfig(){return this.type==="grid"?_.filter(this.fieldtypeConfig,M=>M.handle!=="fields"):["replicator","bard"].includes(this.type)?_.filter(this.fieldtypeConfig,M=>M.handle!=="sets"):this.fieldtypeConfig}},created(){this.load()},methods:{configFieldClasses(M){return[`form-group p-4 m-0 ${M.type}-fieldtype`,tailwind_width_class(M.width)]},updateField(M,$,I=null){this.values[M]=$,this.markFieldEdited(M),I&&I(M,$)},updateFieldConditions(M){let $={};_.each(this.values,(I,N)=>{KEYS.includes(N)||($[N]=I)}),this.values={...$,...M},Object.keys(M).length>0&&this.markFieldEdited(Object.keys(M)[0])},updateAlwaysSave(M){this.values.always_save=M,this.markFieldEdited("always_save")},markFieldEdited(M){this.editedFields.indexOf(M)===-1&&this.editedFields.push(M)},commit(){this.clearErrors(),this.$axios.post(cp_url("fields/update"),{id:this.id,type:this.type,values:this.values,fields:this.fields,isInsideSet:this.isInsideSet}).then(M=>{this.$emit("committed",M.data,this.editedFields),this.close()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))},clearErrors(){this.error=null,this.errors={}},close(){this.$emit("closed")},load(){this.$axios.post(cp_url("fields/edit"),{type:this.type,values:this.config}).then(M=>{this.loading=!1,this.fieldtype=M.data.fieldtype,this.blueprint=M.data.blueprint,this.values=M.data.values,this.meta={...M.data.meta}})}}};var _sfc_render$1N=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full bg-gray-300 h-full dark:bg-dark-800 overflow-scroll"},[$.loading?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),$.loading?$._e():I("header",{staticClass:"flex items-center sticky top-0 inset-x-0 bg-white dark:bg-dark-550 shadow dark:shadow-dark px-8 py-2 z-1 h-13"},[I("h1",{staticClass:"flex-1 flex items-center text-xl"},[$._v(" "+$._s($.__($.values.display)||$.__($.config.display)||$.config.handle)+" "),I("small",{staticClass:"badge-pill bg-gray-100 dark:bg-dark-400 rtl:mr-4 ltr:ml-4 border dark:border-dark-200 text-xs text-gray-700 dark:text-dark-150 font-medium leading-none flex items-center"},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 inline-block text-gray-700 dark:text-dark-150",attrs:{name:$.fieldtype.icon.startsWith("<svg")?$.fieldtype.icon:`light/${$.fieldtype.icon}`}}),$._v(" "+$._s($.fieldtype.title)+" ")],1)]),I("button",{staticClass:"text-gray-700 dark:text-dark-150 hover:text-gray-800 dark:hover:text-dark-100 rtl:ml-6 ltr:mr-6 text-sm",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return N.preventDefault(),$.close.apply(null,arguments)}}}),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Apply"))},on:{click:function(N){return N.preventDefault(),$.commit.apply(null,arguments)}}})]),I("section",{staticClass:"isolate py-4 px-3 md:px-8"},[I("div",{staticClass:"tabs-container"},[I("div",{staticClass:"publish-tabs tabs"},[I("button",{staticClass:"tab-button",class:{active:$.activeTab==="settings"},domProps:{textContent:$._s($.__("Settings"))},on:{click:function(N){$.activeTab="settings"}}}),I("button",{staticClass:"tab-button",class:{active:$.activeTab==="conditions"},domProps:{textContent:$._s($.__("Conditions"))},on:{click:function(N){$.activeTab="conditions"}}}),I("button",{staticClass:"tab-button",class:{active:$.activeTab==="validation"},domProps:{textContent:$._s($.__("Validation"))},on:{click:function(N){$.activeTab="validation"}}})])]),$.loading?$._e():I("div",{staticClass:"field-settings"},[I("publish-container",{attrs:{name:$.publishContainer,blueprint:$.blueprint,values:$.values,meta:$.meta,"is-config":!0,errors:$.errors,"is-root":!0},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{directives:[{name:"show",rawName:"v-show",value:$.activeTab==="settings",expression:"activeTab === 'settings'"}]},[I("publish-sections",{attrs:{sections:$.blueprint.tabs[0].sections},on:{updated:(j,U)=>$.updateField(j,U,N),"meta-updated":B}})],1)}}],null,!1,2204686883)}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.activeTab==="conditions",expression:"activeTab === 'conditions'"}],staticClass:"card p-0"},[I("div",{staticClass:"publish-fields @container"},[I("field-conditions-builder",{attrs:{config:$.config,"suggestable-fields":$.suggestableConditionFields},on:{updated:$.updateFieldConditions,"updated-always-save":$.updateAlwaysSave}})],1)]),I("div",{directives:[{name:"show",rawName:"v-show",value:$.activeTab==="validation",expression:"activeTab === 'validation'"}],staticClass:"card p-0"},[I("div",{staticClass:"publish-fields @container"},[I("field-validation-builder",{attrs:{config:$.config},on:{updated:function(N){return $.updateField("validate",N)}}})],1)])],1)])])},_sfc_staticRenderFns$1N=[],__component__$1O=normalizeComponent$2(_sfc_main$1N,_sfc_render$1N,_sfc_staticRenderFns$1N,!1,null,null,null,null);const FieldSettings$1=__component__$1O.exports,_sfc_main$1M={props:["value","initialWidths"],data(){return{isHovering:!1,hoveringOver:null,widths:this.initialWidths??[25,33,50,66,75,100]}},computed:{selected(){return this.isHovering?this.hoveringOver:this.value}}};var _sfc_render$1M=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"field-width field-width-selector",on:{mouseenter:function(N){$.isHovering=!0},mouseleave:function(N){$.isHovering=!1}}},[I("div",{staticClass:"w-full flex"},$._l($.widths,function(N){return I("div",{key:N,class:["field-width-notch","notch-"+N,{filled:$.selected>=N,selected:$.selected==N}],on:{mouseenter:function(B){B.stopPropagation(),$.hoveringOver=N},click:function(B){return $.$emit("input",N)}}})}),0),I("div",{staticClass:"field-width-label"},[$._v($._s($.selected)+"%")])])},_sfc_staticRenderFns$1M=[],__component__$1N=normalizeComponent$2(_sfc_main$1M,_sfc_render$1M,_sfc_staticRenderFns$1M,!1,null,null,null,null);const WidthSelector=__component__$1N.exports,CanDefineLocalizable={props:{canDefineLocalizable:{type:Boolean,default:()=>Statamic.$config.get("sites").length>1}}},_sfc_main$1L={mixins:[Field,CanDefineLocalizable],components:{FieldSettings:FieldSettings$1,WidthSelector},props:["suggestableConditionFields"],inject:{isInsideSet:{default:!1}},data(){return{showHandle:!1}},computed:{tooltipText(){return this.field.fieldtype},isReferenceField(){return this.field.hasOwnProperty("field_reference")},isInlineField(){return!this.isReferenceField},fieldConfig(){return Object.assign({},this.field.config,{handle:this.field.handle})},labelText(){return this.field.config.display||Vue$3.options.filters.titleize(Vue$3.options.filters.deslugify(this.field.handle))},width:{get(){return this.field.config.width},set(M){let $=this.field;$.config.width=M,$.type==="reference"&&$.config_overrides.push("width"),this.$emit("updated",$)}},isHidden(){return this.fieldConfig.visibility==="hidden"},widthClass(){return`blueprint-section-field-${tailwind_width_class(this.width)}`},localizable:{get(){return this.field.config.localizable||!1},set(M){let $=this.field;$.config.localizable=M,$.type==="reference"&&$.config_overrides.push("localizable"),this.$emit("updated",$)}}},methods:{settingsUpdated(M,$){let I=this.field;I.handle=M.handle,delete M.handle,I.config=M,I.type==="reference"&&(I.config_overrides=$),this.$emit("updated",I)},editorClosed(){this.$emit("editor-closed")}}};var _sfc_render$1L=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-section-field",class:$.widthClass},[I("div",{staticClass:"blueprint-section-field-inner"},[I("div",{staticClass:"blueprint-drag-handle"}),I("div",{staticClass:"flex flex-1 items-center justify-between"},[I("div",{staticClass:"flex items-center flex-1 rtl:pl-4 ltr:pr-4 py-2 rtl:pr-2 ltr:pl-2"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.tooltipText,expression:"tooltipText"}],staticClass:"text-gray-800 dark:text-dark-150 rtl:ml-2 ltr:mr-2 h-4 w-4 flex-none",attrs:{name:$.field.icon.startsWith("<svg")?$.field.icon:`light/${$.field.icon}`,default:"light/generic-field"}}),I("a",{staticClass:"break-all",domProps:{textContent:$._s($.__($.labelText))},on:{click:function(N){return $.$emit("edit")}}}),$.isReferenceField?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Imported from fieldset")+": "+$.field.field_reference,expression:"__('Imported from fieldset') + ': ' + field.field_reference"}],staticClass:"text-gray-600 dark:text-dark-175 text-3xs rtl:mr-2 ltr:ml-2 h-4 w-4",attrs:{name:"light/hyperlink"}}):$._e()],1),I("div",{staticClass:"flex-none rtl:pl-2 ltr:pr-2 flex"},[$.isHidden?I("div",{staticClass:"relative border border-gray-400 dark:border-dark-200 opacity-50 w-12 flex items-center justify-center rtl:ml-2 ltr:mr-2"},[I("svg-icon",{staticClass:"h-4 w-4 opacity-50",attrs:{name:"regular/hidden"}})],1):I("width-selector",{staticClass:"rtl:ml-2 ltr:mr-2",model:{value:$.width,callback:function(N){$.width=N},expression:"width"}}),$.canDefineLocalizable?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Localizable"),expression:"__('Localizable')"}],staticClass:"hover:text-gray-950 dark:hover:text-dark-100 rtl:ml-2 ltr:mr-2 flex items-center",class:{"text-gray-950 dark:text-dark-150":$.localizable,"text-gray-600 dark:text-dark-200":!$.localizable},on:{click:function(N){$.localizable=!$.localizable}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/earth"}})],1):$._e(),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Duplicate"),expression:"__('Duplicate')"}],staticClass:"text-gray-600 dark:text-dark-150 hover:text-gray-950 dark:hover:text-dark-100 flex items-center rtl:ml-2 ltr:mr-2",on:{click:function(N){return N.preventDefault(),$.$emit("duplicate")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/duplicate"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Remove"),expression:"__('Remove')"}],staticClass:"text-gray-600 dark:text-dark-150 hover:text-gray-950 dark:hover:text-dark-100 flex items-center",on:{click:function(N){return N.preventDefault(),$.$emit("deleted")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"micro/trash"}})],1),$.isEditing?I("stack",{attrs:{name:"field-settings"},on:{closed:$.editorClosed}},[I("field-settings",{ref:"settings",attrs:{id:$.field._id,type:$.field.fieldtype,root:$.isRoot,fields:$.fields,config:$.fieldConfig,overrides:$.field.config_overrides||[],"suggestable-condition-fields":$.suggestableConditionFields,"is-inside-set":$.isInsideSet},on:{committed:$.settingsUpdated,closed:$.editorClosed}})],1):$._e()],1)])])])},_sfc_staticRenderFns$1L=[],__component__$1M=normalizeComponent$2(_sfc_main$1L,_sfc_render$1L,_sfc_staticRenderFns$1L,!1,null,null,null,null);const RegularField=__component__$1M.exports,_sfc_main$1K={props:["config"],model:{prop:"config",event:"input"},data:function(){return{values:clone(this.config)}},methods:{focus(){this.$els.display.select()},updateField(M,$){this.values[M]=$},commit(){this.$emit("committed",this.values),this.close()},close(){this.$emit("closed")}}};var _sfc_render$1K=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full overflow-auto p-8 bg-gray-300 h-full dark:bg-dark-800"},[I("div",{staticClass:"flex items-center mb-6 -mt-2"},[I("h1",{staticClass:"flex-1"},[I("small",{staticClass:"block text-xs text-gray-700 dark:text-dark-175 font-medium leading-none mt-2 flex items-center"},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 inline-block text-gray-700 dark:text-dark-175",attrs:{name:"paperclip"}}),$._v($._s($.__("Linked fieldset"))+" ")],1),$._v(" "+$._s($.__("Fieldset"))+" ")]),I("button",{staticClass:"text-gray-700 dark:text-dark-175 hover:text-gray-800 dark:hover:text-dark-100 rtl:ml-6 ltr:mr-6 text-sm",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return N.preventDefault(),$.close.apply(null,arguments)}}}),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Finish"))},on:{click:function(N){return N.preventDefault(),$.commit.apply(null,arguments)}}})]),I("div",{staticClass:"card"},[I("div",{staticClass:"publish-fields @container"},[I("form-group",{attrs:{handle:"fieldset",display:$.__("Fieldset"),instructions:$.__("messages.fieldset_import_fieldset_instructions"),autofocus:"",value:$.config.fieldset},on:{input:function(N){return $.updateField("fieldset",N)}}}),I("form-group",{attrs:{handle:"prefix",display:$.__("Prefix"),instructions:$.__("messages.fieldset_import_prefix_instructions"),value:$.config.prefix},on:{input:function(N){return $.updateField("prefix",N)}}})],1)])])},_sfc_staticRenderFns$1K=[],__component__$1L=normalizeComponent$2(_sfc_main$1K,_sfc_render$1K,_sfc_staticRenderFns$1K,!1,null,null,null,null);const FieldSettings=__component__$1L.exports,_sfc_main$1J={mixins:[Field],components:{FieldSettings},computed:{fieldConfig(){return _.omit(this.field,["_id","type"])}},methods:{settingsUpdated(M){const $=Object.assign({},this.field,M);this.$emit("updated",$)},editorClosed(){this.$emit("editor-closed")}}};var _sfc_render$1J=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-section-field blueprint-section-import blueprint-section-field-w-full"},[I("div",{staticClass:"blueprint-section-field-inner"},[I("div",{staticClass:"blueprint-drag-handle w-4 ltr:border-r rtl:border-l dark:border-dark-300"}),I("div",{staticClass:"flex flex-1 items-center justify-between"},[I("div",{staticClass:"flex items-center flex-1 rtl:pl-4 ltr:pr-4 py-2 rtl:pr-2 ltr:pl-2"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Linked fieldset"),expression:"__('Linked fieldset')"}],staticClass:"flex-none text-gray-700 dark:text-dark-150 h-4 w-4 rtl:ml-2 ltr:mr-2",attrs:{name:"paperclip"}}),I("a",{staticClass:"break-all",on:{click:function(N){return $.$emit("edit")}}},[I("span",{domProps:{textContent:$._s($.__("Fieldset"))}}),I("span",{staticClass:"font-mono text-3xs text-gray-600 dark:text-dark-175 rtl:mr-2 ltr:ml-2"},[$._v($._s($.field.fieldset))])])],1),I("div",{staticClass:"flex-none rtl:pl-2 ltr:pr-2 flex"},[I("button",{staticClass:"text-gray-600 dark:text-dark-150 hover:text-gray-950 dark:hover:text-dark-100",on:{click:function(N){return N.preventDefault(),$.$emit("deleted")}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"micro/trash"}})],1),$.isEditing?I("stack",{attrs:{name:"field-settings"},on:{closed:$.editorClosed}},[I("field-settings",{ref:"settings",attrs:{id:$.field._id,root:$.isRoot,fields:$.fields,config:$.fieldConfig},on:{committed:$.settingsUpdated,closed:$.editorClosed}})],1):$._e()],1)])])])},_sfc_staticRenderFns$1J=[],__component__$1K=normalizeComponent$2(_sfc_main$1J,_sfc_render$1J,_sfc_staticRenderFns$1J,!1,null,null,null,null);const ImportField=__component__$1K.exports,_sfc_main$1I={props:{excludeFieldset:String},data(){const M=JSON.parse(JSON.stringify(Object.values(this.$config.get("fieldsets")).filter(I=>I.handle!=this.excludeFieldset)));return{open:!1,reference:null,fieldset:null,importPrefix:null,fieldSuggestions:M.flatMap(I=>I.fields.filter(N=>N.type!=="import").map(N=>({value:`${I.handle}.${N.handle}`,label:__(N.config.display),fieldset:__(I.title)}))),fieldsetSuggestions:M.map(I=>({value:I.handle,label:__(I.title)})),fieldsets:M}},methods:{linkField(){const[M,$]=this.reference.split("."),I=this.fieldsets.find(N=>N.handle===M).fields.find(N=>N.handle===$);I.config.isNew=!0,this.linkAndClose({...I,_id:uniqid$1(),type:"reference",field_reference:this.reference,config_overrides:[]})},linkFieldset(){this.linkAndClose({_id:uniqid$1(),type:"import",fieldset:this.fieldset,prefix:this.importPrefix})},linkAndClose(M){this.$emit("linked",M),this.open=!1,this.reference=null,this.fieldset=null,this.importPrefix=null}}};var _sfc_render$1I=function M(){var $=this,I=$._self._c;return I("div",[I("button",{staticClass:"btn flex w-full justify-center items-center",on:{click:function(N){$.open=!0}}},[I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 w-4 h-4",attrs:{name:"light/hyperlink"}}),I("span",[$._v($._s($.__("Link Existing")))])],1),$.open?I("stack",{attrs:{narrow:"",name:"field-linker"},on:{closed:function(N){$.open=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white dark:bg-dark-800 h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 dark:bg-dark-600 px-6 py-2 border-b border-gray-300 dark:border-dark-900 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Link Fields"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto p-6"},[I("div",[I("p",{staticClass:"text-sm font-medium mb-2",domProps:{textContent:$._s($.__("Link a single field"))}}),I("p",{staticClass:"text-2xs text-gray mb-2",domProps:{textContent:$._s($.__("Changes to this field in the fieldset will stay in sync."))}}),I("v-select",{attrs:{name:"field",placeholder:$.__("Fields"),options:$.fieldSuggestions,multiple:!1,searchable:!0,reduce:B=>B.value},scopedSlots:$._u([{key:"option",fn:function(B){return[I("div",{staticClass:"flex items-center"},[I("span",{staticClass:"text-2xs text-gray-500 dark:text-dark-150 rtl:ml-2 ltr:mr-2",domProps:{textContent:$._s(B.fieldset)}}),I("span",{domProps:{textContent:$._s(B.label)}})])]}},{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 dark:text-dark-200 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0}],null,!0),model:{value:$.reference,callback:function(B){$.reference=B},expression:"reference"}}),I("button",{staticClass:"btn-primary w-full mt-6",class:{"opacity-50":!$.reference},attrs:{disabled:!$.reference},domProps:{textContent:$._s($.__("Link"))},on:{click:$.linkField}})],1),I("div",{staticClass:"my-4 flex items-center"},[I("div",{staticClass:"border-b border-gray-300 dark:border-dark-200 flex-1"}),I("div",{staticClass:"text-2xs text-gray-600 dark:text-dark-175 mx-4",domProps:{textContent:$._s($.__("or"))}}),I("div",{staticClass:"border-b border-gray-300 dark:border-dark-200 flex-1"})]),I("div",[I("p",{staticClass:"text-sm font-medium mb-2",domProps:{textContent:$._s($.__("Link a fieldset"))}}),I("p",{staticClass:"text-2xs text-gray dark:text-dark-175 mb-2",domProps:{textContent:$._s($.__("Changes to this fieldset will stay in sync."))}}),I("v-select",{attrs:{name:"field",placeholder:$.__("Fieldsets"),options:$.fieldsetSuggestions,multiple:!1,searchable:!0,reduce:B=>B.value},scopedSlots:$._u([{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 dark:text-dark-200 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0}],null,!0),model:{value:$.fieldset,callback:function(B){$.fieldset=B},expression:"fieldset"}}),I("p",{staticClass:"text-sm font-medium mt-6 mb-2",domProps:{textContent:$._s($.__("Prefix"))}}),I("p",{staticClass:"text-2xs text-gray dark:text-dark-175 mb-2",domProps:{textContent:$._s($.__("messages.fieldset_link_fields_prefix_instructions"))}}),I("text-input",{attrs:{placeholder:$.__("e.g. hero_")},model:{value:$.importPrefix,callback:function(B){$.importPrefix=B},expression:"importPrefix"}}),I("button",{staticClass:"btn-primary w-full mt-6",class:{"opacity-50":!$.fieldset},attrs:{disabled:!$.fieldset},domProps:{textContent:$._s($.__("Link"))},on:{click:$.linkFieldset}})],1)])])}}],null,!1,1630451460)}):$._e()],1)},_sfc_staticRenderFns$1I=[],__component__$1J=normalizeComponent$2(_sfc_main$1I,_sfc_render$1I,_sfc_staticRenderFns$1I,!1,null,null,null,null);const LinkFields=__component__$1J.exports,ProvidesFieldtypes={computed:{fieldtypes(){if(!this.fieldtypesLoading)return this.$store.state.statamic.fieldtypes},fieldtypesLoading(){return this.$store.state.statamic.fieldtypes==="loading"},fieldtypesLoaded(){return Array.isArray(this.fieldtypes)}},created(){if(this.fieldtypes||this.fieldtypesLoading)return;this.$store.commit("statamic/fieldtypes","loading");let M=cp_url("fields/fieldtypes?selectable=true");this.$config.get("isFormBlueprint")&&(M+="&forms=true"),this.$axios.get(M).then($=>this.$store.commit("statamic/fieldtypes",$.data))}},_sfc_main$1H={mixins:[ProvidesFieldtypes],props:{allowTitle:{default:!1},allowSlug:{default:!1},allowDate:{default:!1}},data:function(){return{categories:{text:{title:__("Text & Rich Content"),description:__("fieldtypes.picker.category.text.description")},controls:{title:__("Buttons & Controls"),description:__("fieldtypes.picker.category.controls.description")},media:{title:__("Media"),description:__("fieldtypes.picker.category.media.description")},number:{title:__("Number"),description:__("fieldtypes.picker.category.number.description")},relationship:{title:__("Relationship"),description:__("fieldtypes.picker.category.relationship.description")},structured:{title:__("Structured"),description:__("fieldtypes.picker.category.structured.description")},special:{title:__("Special"),description:__("fieldtypes.picker.category.special.description")}},search:""}},computed:{allFieldtypes(){if(!this.fieldtypesLoaded)return[];let M=this.fieldtypes.map($=>({text:$.title,value:$.handle,categories:$.categories,keywords:$.keywords,icon:$.icon}));return this.allowDate&&M.unshift({text:__("Publish Date"),value:"date",categories:["system"],isMeta:!0,icon:"date"}),this.allowSlug&&M.unshift({text:__("Slug"),value:"slug",categories:["system"],isMeta:!0,icon:"slug"}),this.allowTitle&&M.unshift({text:__("Title"),value:"title",categories:["system"],isMeta:!0,icon:"title"}),M},groupedFieldtypes(){return _.mapObject(this.categories,(M,$)=>(M.handle=$,M.fieldtypes=[],this.allFieldtypes.forEach(I=>{let N=I.categories;N.length===0&&(N=["special"]),N.includes($)&&M.fieldtypes.push(I)}),M))},searchFieldtypes(){let M=this.allFieldtypes;return this.search&&(M=new Fuse(M,{findAllMatches:!0,threshold:.1,keys:[{name:"text",weight:1},{name:"categories",weight:.1},{name:"keywords",weight:.4}]}).search(this.search).map(I=>I.item)),M},displayedFieldtypes(){return this.isSearching?[{fieldtypes:this.searchFieldtypes}]:this.groupedFieldtypes},allowMeta(){return this.allowTitle||this.allowSlug||this.allowDate},isSearching(){return this.search}},watch:{fieldtypesLoaded:{immediate:!0,handler(){this.$nextTick(()=>{this.$refs.search&&this.$refs.search.focus()})}}},methods:{select(M){if(M.isMeta)return this.selectMeta(M);const $=this.createField(M.value);this.$emit("selected",$),this.close()},selectMeta(M){let $=M.value;["title","slug"].includes($)&&($="text");let I=this.createField($);I=Object.assign({display:__(`cp.${M.value}`),handle:M.value,type:$,isMeta:!0},I),this.$emit("selected",I),this.close()},createField(M){const $=_.findWhere(this.fieldtypes,{handle:M});let I={type:$.handle,display:__(":title Field",{title:$.title}),handle:null,icon:$.icon,instructions:null,localizable:!1,width:100,listable:"hidden",isNew:!0},N={};return _.each($.config,B=>{N[B.handle]=B.default||null}),Object.assign(N,I)},close(){this.search="",this.filterBy="all",this.$emit("closed")},cancelSearch(M){this.search&&(M.stopPropagation(),this.search="")}}};var _sfc_render$1H=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"h-full bg-gray-100 dark:bg-dark-600 overflow-auto"},[I("div",{staticClass:"bg-gray-300 dark:bg-dark-600 px-6 py-2 border-b dark:border-dark-900 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.__("Fieldtypes"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},on:{click:$.close}},[$._v("×")])]),$.fieldtypesLoading?I("div",{staticClass:"absolute inset-0 z-200 flex items-center justify-center text-center"},[I("loading-graphic")],1):$._e(),$.fieldtypesLoaded?I("div",{staticClass:"py-4 px-6 border-b dark:border-dark-900 bg-white dark:bg-dark-550 flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.search,expression:"search"}],ref:"search",staticClass:"input-text flex-1 text-sm w-full",attrs:{type:"text",autofocus:"",placeholder:`${$.__("Search")}...`},domProps:{value:$.search},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:$.cancelSearch.apply(null,arguments)},input:function(N){N.target.composing||($.search=N.target.value)}}})]):$._e(),$.fieldtypesLoaded?I("div",{staticClass:"p-4"},$._l($.displayedFieldtypes,function(N){return I("div",{directives:[{name:"show",rawName:"v-show",value:N.fieldtypes.length>0,expression:"group.fieldtypes.length > 0"}],key:N.handle,staticClass:"mb-8"},[N.title?I("h2",{staticClass:"px-2 mb-1",domProps:{textContent:$._s(N.title)}}):$._e(),N.description?I("p",{staticClass:"px-2 mb-2 text-gray-700 dark:text-dark-150 text-sm",domProps:{textContent:$._s(N.description)}}):$._e(),I("div",{staticClass:"fieldtype-selector"},[I("div",{staticClass:"fieldtype-list"},$._l(N.fieldtypes,function(B){return I("div",{key:B.handle,staticClass:"p-2"},[I("button",{staticClass:"bg-white dark:bg-dark-700 border border-gray-500 dark:shadow-dark-sm dark:border-dark-900 flex items-center group w-full rounded hover:border-gray-600 dark:hover:border-dark-950 shadow-sm hover:shadow-md rtl:pl-3 ltr:pr-3",on:{click:function(j){return $.select(B)}}},[I("div",{staticClass:"p-2 flex items-center rtl:border-l ltr:border-r border-gray-500 dark:border-dark-900 group-hover:border-gray-600 dark:group-hover:border-dark-950 bg-gray-200 dark:bg-dark-600 rtl:rounded-r ltr:rounded-l"},[I("svg-icon",{staticClass:"h-5 w-5 text-gray-800 dark:text-dark-150",attrs:{name:B.icon.startsWith("<svg")?B.icon:`light/${B.icon}`,default:"light/generic-field"}})],1),I("span",{staticClass:"rtl:pr-3 ltr:pl-3 text-gray-800 dark:text-dark-150 text-md group-hover:text-gray-900 dark:group-hover:text-dark-100"},[$._v($._s(B.text))])])])}),0)])])}),0):$._e()])},_sfc_staticRenderFns$1H=[],__component__$1I=normalizeComponent$2(_sfc_main$1H,_sfc_render$1H,_sfc_staticRenderFns$1H,!1,null,null,null,null);const FieldtypeSelector=__component__$1I.exports,_sfc_main$1G={mixins:[CanDefineLocalizable],components:{RegularField,ImportField,LinkFields,FieldtypeSelector,FieldSettings:FieldSettings$1},props:{tabId:String,sectionId:String,fields:Array,editingField:{},suggestableConditionFields:Array,excludeFieldset:String},inject:{isInsideSet:{default:!1}},data(){return{isSelectingNewFieldtype:!1,pendingCreatedField:null}},methods:{fieldComponent(M){return M.type==="import"?"ImportField":"RegularField"},fieldtypeSelected(M){this.isSelectingNewFieldtype=!1;const $={_id:uniqid$1(),type:"inline",fieldtype:M.type,icon:M.icon,config:{...M,isNew:!0}};this.$nextTick(()=>this.pendingCreatedField=$)},fieldCreated(M){let $=M.handle;delete M.handle,delete M.isNew;let I={...this.pendingCreatedField,handle:$,config:M};this.$emit("field-created",I),this.$toast.success(__("Field added")),this.pendingCreatedField=null},duplicateField(M){let $=`${M.handle}_duplicate`,I=M.config.display?`${M.config.display} (Duplicate)`:`${M.handle} (Duplicate)`,N={...M,_id:uniqid$1(),handle:$,config:{...M.config,display:I}};this.$nextTick(()=>this.pendingCreatedField=N)}}};var _sfc_render$1G=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex flex-col text-sm"},[I("div",{staticClass:"blueprint-section-draggable-zone -mx-1",class:{"flex flex-wrap flex-1":$.fields.length},attrs:{"data-tab":$.tabId,"data-section":$.sectionId}},[$.fields.length?$._e():$._t("empty-state"),$._l($.fields,function(N,B){return I($.fieldComponent(N),{key:N._id,tag:"component",attrs:{field:N,fields:$.fields,"is-editing":$.editingField===N._id,"suggestable-condition-fields":$.suggestableConditionFields,"can-define-localizable":$.canDefineLocalizable},on:{edit:function(j){return $.$emit("field-editing",N._id)},updated:function(j){return $.$emit("field-updated",B,j)},deleted:function(j){return $.$emit("field-deleted",B)},"editor-closed":function(j){return $.$emit("editor-closed")},duplicate:function(j){return $.duplicateField(N)}}})})],2),I("div",{staticClass:"blueprint-section-field-actions flex mt-2 -mx-1"},[I("div",{staticClass:"px-1"},[I("link-fields",{attrs:{"exclude-fieldset":$.excludeFieldset},on:{linked:function(N){return $.$emit("field-linked",N)}}})],1),I("div",{staticClass:"px-1"},[I("button",{staticClass:"btn w-full flex justify-center items-center",on:{click:function(N){$.isSelectingNewFieldtype=!0}}},[I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 w-4 h-4",attrs:{name:"light/wireframe"}}),$._v(" "+$._s($.__("Create Field"))+" ")],1)])]),$.isSelectingNewFieldtype?I("stack",{attrs:{name:"fieldtype-selector"},on:{closed:function(N){$.isSelectingNewFieldtype=!1}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("fieldtype-selector",{on:{closed:N,selected:$.fieldtypeSelected}})}}],null,!1,4030444126)}):$._e(),$.pendingCreatedField!=null?I("stack",{attrs:{name:"field-settings"},on:{closed:function(N){$.pendingCreatedField=null}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("field-settings",{ref:"settings",attrs:{type:$.pendingCreatedField.config.type,root:!0,fields:$.fields,config:$.pendingCreatedField.config,"suggestable-condition-fields":$.suggestableConditionFields,"is-inside-set":$.isInsideSet},on:{committed:$.fieldCreated,closed:N}})}}],null,!1,648160512)}):$._e()],1)},_sfc_staticRenderFns$1G=[],__component__$1H=normalizeComponent$2(_sfc_main$1G,_sfc_render$1G,_sfc_staticRenderFns$1G,!1,null,null,null,null);const Fields=__component__$1H.exports,SuggestsConditionalFields={provide(){return{suggestableConditionFieldsProvider:this.makeConditionsProvider()}},computed:{fieldsForConditionSuggestions(){return this.tabs.reduce((M,$)=>M.concat($.sections.reduce((I,N)=>I.concat(N.fields),[])),[])}},methods:{suggestableConditionFields(M=null){let $=this.getSectionFieldsForConditionSuggestions(M).reduce((I,N)=>I.concat(N.type==="import"?this.getFieldsFromImportedFieldset(N.fieldset,N.prefix):[N]),[]);return _.unique($)},makeConditionsProvider(){return{suggestableFields:$=>this.suggestableConditionFields($)}},getFieldsFromImportedFieldset(M,$){return Statamic.$config.get(`fieldsets.${M}.fields`,[]).reduce((I,N)=>I.concat(N.type==="import"?this.getFieldsFromImportedFieldset(N.fieldset,N.prefix):[N]),[]).map(I=>$?{...I,handle:$+I.handle}:I)},getSectionFieldsForConditionSuggestions(M=null){return this.fieldsForConditionSuggestions}}},_sfc_main$1F={mixins:[Fieldtype,SuggestsConditionalFields],inject:{suggestableConditionFieldsProvider:{default:null}},components:{Fields},data(){return{fields:this.value,editingField:null}},computed:{fieldsForConditionSuggestions(){return this.fields}},mounted(){this.makeSortable()},methods:{fieldCreated(M){this.fields.push(M),this.update(this.fields)},fieldUpdated(M,$){this.fields.splice(M,1,$),this.update(this.fields)},deleteField(M){this.fields.splice(M,1),this.update(this.fields)},fieldLinked(M){this.fields.push(M),this.$toast.success(__("Field added")),M.type==="reference"&&this.$nextTick(()=>this.editingField=M._id)},makeSortable(){new draggable_bundleExports.Sortable(this.$el.querySelector(".blueprint-section-draggable-zone"),{draggable:".blueprint-section-field",handle:".blueprint-drag-handle",mirror:{constrainDimensions:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation]}).on("sortable:stop",M=>{this.fields.splice(M.newIndex,0,this.fields.splice(M.oldIndex,1)[0]),this.update(this.fields)})}}};var _sfc_render$1F=function M(){var $=this,I=$._self._c;return I("fields",{attrs:{fields:$.fields,"editing-field":$.editingField,"can-define-localizable":!1,"suggestable-condition-fields":$.suggestableConditionFields(this)},on:{"field-created":$.fieldCreated,"field-updated":$.fieldUpdated,"field-linked":$.fieldLinked,"field-deleted":$.deleteField,"field-editing":function(N){$.editingField=N},"editor-closed":function(N){$.editingField=null}}})},_sfc_staticRenderFns$1F=[],__component__$1G=normalizeComponent$2(_sfc_main$1F,_sfc_render$1F,_sfc_staticRenderFns$1F,!1,null,null,null,null);const FieldsFieldtype=__component__$1G.exports,_sfc_main$1E={mixins:[Fieldtype],components:{Uploader,Uploads},data(){return{uploads:[]}},computed:{configParameter(){return utf8btoa(JSON.stringify(this.config))}},methods:{uploadComplete(M){this.value.push(M.id)},uploadsUpdated(M){this.uploads=M},uploadError(M,$){this.uploads=$,this.$toast.error(M.errorMessage)},uploadFile(){this.$refs.uploader.browse()},getExtension(M){return M.split(".").pop()},remove(M){this.update([...this.value.slice(0,M),...this.value.slice(M+1)])}}};var _sfc_render$1E=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"assets-fieldtype"},[I("uploader",{ref:"uploader",attrs:{url:$.meta.uploadUrl,"extra-data":{config:$.configParameter},container:$.config.container},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadComplete,error:$.uploadError},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{staticClass:"assets-fieldtype-drag-container"},[I("div",{directives:[{name:"show",rawName:"v-show",value:N,expression:"dragging"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-6 ltr:mr-6",attrs:{name:"upload"}}),I("span",[$._v($._s($.__("Drop File to Upload")))])],1),I("div",{staticClass:"assets-fieldtype-picker py-4",class:{"is-expanded":$.value.length}},[I("p",{staticClass:"asset-upload-control text-xs text-gray-600 rtl:mr-0 ltr:ml-0"},[I("button",{staticClass:"upload-text-button",attrs:{type:"button"},on:{click:function(B){return B.preventDefault(),$.uploadFile.apply(null,arguments)}}},[$._v(" "+$._s($.__("Upload file"))+" ")]),I("span",{staticClass:"drag-drop-text",domProps:{textContent:$._s($.__("or drag & drop here."))}})])]),$.uploads.length?I("uploads",{attrs:{uploads:$.uploads}}):$._e(),$.value.length?I("div",{staticClass:"asset-table-listing"},[I("table",{staticClass:"table-fixed"},[I("tbody",$._l($.value,function(B,j){return I("tr",{key:B,staticClass:"asset-row bg-white dark:bg-dark-600 hover:bg-gray-100"},[I("td",{staticClass:"flex items-center"},[I("div",{staticClass:"w-7 h-7 cursor-pointer whitespace-nowrap flex items-center justify-center"},[I("file-icon",{attrs:{extension:$.getExtension(B)}})],1),I("div",{staticClass:"flex items-center flex-1 rtl:mr-2 ltr:ml-2 text-xs rtl:text-right ltr:text-left truncate",domProps:{textContent:$._s(B)}})]),I("td",{staticClass:"p-0 w-8 rtl:text-left ltr:text-right align-middle"},[I("button",{staticClass:"flex items-center p-2 w-full h-full text-gray-600 dark:text-dark-150 hover:text-gray-950 dark:hover:text-dark-100",on:{click:function(U){return $.remove(j)}}},[I("svg-icon",{staticClass:"w-6 h-6",attrs:{name:"micro/trash"}})],1)])])}),0)])]):$._e()],1)}}])})],1)},_sfc_staticRenderFns$1E=[],__component__$1F=normalizeComponent$2(_sfc_main$1E,_sfc_render$1E,_sfc_staticRenderFns$1E,!1,null,null,null,null);const FilesFieldtype=__component__$1F.exports,_sfc_main$1D={mixins:[Fieldtype],props:["focus"]};var _sfc_render$1D=function M(){var $=this,I=$._self._c;return I("text-input",{attrs:{type:"text",tabindex:"0",name:$.name,focus:$.focus,value:$.value,"is-read-only":$.isReadOnly,id:$.fieldId},on:{input:$.updateDebounced,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$1D=[],__component__$1E=normalizeComponent$2(_sfc_main$1D,_sfc_render$1D,_sfc_staticRenderFns$1D,!1,null,null,null,null);const FloatFieldtype=__component__$1E.exports,_sfc_main$1C={mixins:[Fieldtype],inject:["storeName"],data(){return{sites:this.value}},created(){},watch:{sites(M){this.update(M)}},methods:{siteOriginOptions(M){return this.sites.map($=>({value:$.handle,label:__($.name)})).filter($=>$.value!==M.handle)}}};var _sfc_render$1C=function M(){var $=this,I=$._self._c;return I("div",[I("table",{staticClass:"grid-table"},[I("thead",[I("tr",[I("th",[$._v($._s($.__("Site")))]),I("th",[$._v($._s($.__("Origin")))])])]),I("tbody",$._l($.sites,function(N){return I("tr",{key:N.handle},[I("td",[I("div",{staticClass:"flex items-center text-sm"},[I("toggle-input",{staticClass:"rtl:ml-4 ltr:mr-4",model:{value:N.enabled,callback:function(B){$.$set(N,"enabled",B)},expression:"site.enabled"}}),$._v(" "+$._s($.__(N.name))+" ")],1)]),I("td",{staticClass:"text-sm"},[I("v-select",{attrs:{options:$.siteOriginOptions(N),value:N.origin,searchable:!1,reduce:B=>B.value},on:{input:function(B){N.origin=B}}})],1)])}),0)])])},_sfc_staticRenderFns$1C=[],__component__$1D=normalizeComponent$2(_sfc_main$1C,_sfc_render$1C,_sfc_staticRenderFns$1C,!1,null,null,null,null);const Sites=__component__$1D.exports,_sfc_main$1B={props:["fields","rows","meta","name","canDeleteRows","canAddRows","allowFullscreen","hideDisplay"],inject:["grid"],computed:{sortableItemClass(){return`${this.name}-sortable-item`},sortableHandleClass(){return`${this.name}-drag-handle`},fieldPathPrefix(){return this.grid.fieldPathPrefix||this.grid.handle}},provide(){return{sortableItemClass:this.sortableItemClass,sortableHandleClass:this.sortableHandleClass}}},_sfc_render$1B=null,_sfc_staticRenderFns$1B=null;var __component__$1C=normalizeComponent$2(_sfc_main$1B,_sfc_render$1B,_sfc_staticRenderFns$1B,!1,null,null,null,null);const View=__component__$1C.exports,_sfc_main$1A={props:{field:{type:Object,required:!0},value:{required:!0},meta:{required:!0},index:{type:Number,required:!0},rowIndex:{type:Number,required:!0},gridName:{type:String,required:!0},showInner:{type:Boolean,required:!0},errors:{type:Array,required:!0},fieldPath:{type:String,required:!0}},inject:["grid"],computed:{classes(){return[this.fieldtypeComponent,this.field.classes]},fieldtypeComponent(){return`${this.field.component||this.field.type}-fieldtype`},namePrefix(){return`${this.gridName}[${this.rowIndex}]`},hasError(){return this.errors.length>0},width(){if(this.field.width)return this.field.width+"%"}}};var _sfc_render$1A=function M(){var $=this,I=$._self._c;return I("td",{staticClass:"grid-cell",class:$.classes,attrs:{width:$.width}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.showInner,expression:"showInner"}],staticClass:"@container"},[I($.fieldtypeComponent,{tag:"component",attrs:{config:$.field,value:$.value,meta:$.meta,handle:$.field.handle,"name-prefix":$.namePrefix,"field-path-prefix":$.fieldPath,"read-only":$.grid.isReadOnly},on:{input:function(N){return $.$emit("updated",N)},"meta-updated":function(N){return $.$emit("meta-updated",N)},focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})],1),$.hasError?I("div",$._l($.errors,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s(N)}})}),0):$._e()])},_sfc_staticRenderFns$1A=[],__component__$1B=normalizeComponent$2(_sfc_main$1A,_sfc_render$1A,_sfc_staticRenderFns$1A,!1,null,null,null,null);const GridCell=__component__$1B.exports,Row_vue_vue_type_style_index_0_scoped_7ddde4ab_lang="",_sfc_main$1z={components:{GridCell},mixins:[ValidatesFieldConditions],props:{index:{type:Number,required:!0},fields:{type:Array,required:!0},values:{type:Object,required:!0},meta:{type:Object,required:!0},name:{type:String,required:!0},fieldPathPrefix:{type:String},canDelete:{type:Boolean,default:!0},canAddRows:{type:Boolean,default:!0}},inject:["grid","sortableItemClass","sortableHandleClass","storeName"],computed:{isExcessive(){const M=this.grid.config.max_rows;return M?this.index>=M:!1}},methods:{updated(M,$){let I=JSON.parse(JSON.stringify(this.values));I[M]=$,this.$emit("updated",this.index,I)},metaUpdated(M,$){let I=clone(this.meta);I[M]=$,this.$emit("meta-updated",I)},fieldPath(M){return`${this.fieldPathPrefix}.${this.index}.${M}`},errors(M){const $=this.$store.state.publish[this.storeName];return $?$.errors[this.fieldPath(M)]||[]:[]}}};var _sfc_render$1z=function M(){var $=this,I=$._self._c;return I("tr",{class:[$.sortableItemClass,{"opacity-50":$.isExcessive}]},[$.grid.isReorderable?I("td",{staticClass:"drag-handle",class:$.sortableHandleClass}):$._e(),$._l($.fields,function(N,B){return I("grid-cell",{key:N.handle,attrs:{"show-inner":$.showField(N,$.fieldPath(N.handle)),field:N,value:$.values[N.handle],meta:$.meta[N.handle],index:B,"row-index":$.index,"grid-name":$.name,errors:$.errors(N.handle),"field-path":$.fieldPath(N.handle)},on:{updated:function(j){return $.updated(N.handle,j)},"meta-updated":function(j){return $.metaUpdated(N.handle,j)},focus:function(j){return $.$emit("focus")},blur:function(j){return $.$emit("blur")}}})}),!$.grid.isReadOnly&&($.canAddRows||$.canDelete)?I("td",{staticClass:"grid-row-controls row-controls"},[I("dropdown-list",[$.canAddRows?I("dropdown-item",{attrs:{text:$.__("Duplicate Row")},on:{click:function(N){return $.$emit("duplicate",$.index)}}}):$._e(),$.canDelete?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete Row")},on:{click:function(N){return $.$emit("removed",$.index)}}}):$._e()],1)],1):$._e()],2)},_sfc_staticRenderFns$1z=[],__component__$1A=normalizeComponent$2(_sfc_main$1z,_sfc_render$1z,_sfc_staticRenderFns$1z,!1,null,"7ddde4ab",null,null);const Row=__component__$1A.exports,_sfc_main$1y={props:{field:{type:Object,required:!0}}};var _sfc_render$1y=function M(){var $=this,I=$._self._c;return I("th",{directives:[{name:"show",rawName:"v-show",value:$.field.type!=="hidden",expression:"field.type !== 'hidden'"}]},[I("div",{staticClass:"flex items-center justify-between"},[I("div",[$.field.hide_display?$._e():[$._v($._s($.__($.field.display||$.field.handle)))]],2),$.field.instructions?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.$options.filters.markdown($.__($.field.instructions)),html:!0},expression:"{ content: $options.filters.markdown(__(field.instructions)), html:true }"}],staticClass:"text-gray-600 hover:text-gray-700 h-3 w-3 text-xs",attrs:{name:"micro/circle-help"}}):$._e()],1)])},_sfc_staticRenderFns$1y=[],__component__$1z=normalizeComponent$2(_sfc_main$1y,_sfc_render$1y,_sfc_staticRenderFns$1y,!1,null,null,null,null);const GridHeaderCell=__component__$1z.exports,_sfc_main$1x={mixins:[View],components:{GridRow:Row,GridHeaderCell,SortableList,SortableItem}};var _sfc_render$1x=function M(){var $=this,I=$._self._c;return $.rows.length>0?I("table",{staticClass:"grid-table"},[I("thead",[I("tr",[$.grid.isReorderable?I("th",{staticClass:"grid-drag-handle-header"}):$._e(),$._l($.fields,function(N){return I("grid-header-cell",{key:N.handle,attrs:{field:N}})}),I("th",{staticClass:"grid-row-controls row-controls"})],2)]),I("sortable-list",{attrs:{value:$.rows,vertical:!0,"item-class":$.sortableItemClass,"handle-class":$.sortableHandleClass,"append-to":"body"},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")},input:N=>$.$emit("sorted",N)},scopedSlots:$._u([{key:"default",fn:function({}){return I("tbody",{},$._l($.rows,function(N,B){return I("grid-row",{key:`row-${N._id}`,attrs:{index:B,fields:$.fields,values:N,meta:$.meta[N._id],name:$.name,"field-path-prefix":$.fieldPathPrefix,"can-delete":$.canDeleteRows,"can-add-rows":$.canAddRows},on:{updated:(j,U)=>$.$emit("updated",j,U),"meta-updated":function(j){return $.$emit("meta-updated",N._id,j)},duplicate:j=>$.$emit("duplicate",j),removed:j=>$.$emit("removed",j),focus:function(j){return $.$emit("focus")},blur:function(j){return $.$emit("blur")}}})}),1)}}],null,!1,2994308055)})],1):$._e()},_sfc_staticRenderFns$1x=[],__component__$1y=normalizeComponent$2(_sfc_main$1x,_sfc_render$1x,_sfc_staticRenderFns$1x,!1,null,null,null,null);const GridTable=__component__$1y.exports,StackedRow_vue_vue_type_style_index_0_scoped_3d74a584_lang="",_sfc_main$1w={mixins:[Row,ValidatesFieldConditions],components:{SetField}};var _sfc_render$1w=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"replicator-set shadow-sm mb-4 rounded border dark:border-dark-900",class:[$.sortableItemClass,{"opacity-50":$.isExcessive}]},[I("div",{staticClass:"replicator-set-header"},[I("div",{staticClass:"item-move cursor-grab sortable-handle",class:{[$.sortableHandleClass]:$.grid.isReorderable}}),I("div",{staticClass:"py-2 rtl:pr-2 ltr:pl-2 replicator-set-header-inner flex justify-end items-end w-full"},[$.canAddRows?I("button",{staticClass:"flex self-end group items-center rtl:ml-2 ltr:mr-2",attrs:{"aria-label":$.__("Duplicate Row")},on:{click:function(N){return $.$emit("duplicate",$.index)}}},[I("svg-icon",{staticClass:"w-4 h-4 text-gray-600 group-hover:text-gray-900",attrs:{name:"light/duplicate"}})],1):$._e(),$.canDelete?I("button",{staticClass:"flex self-end group items-center",attrs:{"aria-label":$.__("Delete Row")},on:{click:function(N){return $.$emit("removed",$.index)}}},[I("svg-icon",{staticClass:"w-4 h-4 text-gray-600 group-hover:text-gray-900",attrs:{name:"micro/trash"}})],1):$._e()])]),I("div",{staticClass:"replicator-set-body publish-fields @container"},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N.handle)),expression:"showField(field, fieldPath(field.handle))"}],key:N.handle,staticClass:"p-4",attrs:{field:N,meta:$.meta[N.handle],value:$.values[N.handle],"parent-name":$.name,"set-index":$.index,errors:$.errors(N.handle),"field-path":$.fieldPath(N.handle),"read-only":$.grid.isReadOnly},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.metaUpdated(N.handle,B)},focus:function(B){return $.$emit("focus")},blur:function(B){return $.$emit("blur")}}})}),1)])},_sfc_staticRenderFns$1w=[],__component__$1x=normalizeComponent$2(_sfc_main$1w,_sfc_render$1w,_sfc_staticRenderFns$1w,!1,null,"3d74a584",null,null);const StackedRow=__component__$1x.exports,_sfc_main$1v={mixins:[View],components:{StackedRow,SortableList}};var _sfc_render$1v=function M(){var $=this,I=$._self._c;return I("div",[I("sortable-list",{attrs:{value:$.rows,vertical:!0,"item-class":$.sortableItemClass,"handle-class":$.sortableHandleClass,"append-to":"body","constrain-dimensions":""},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")},input:N=>$.$emit("sorted",N)},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"grid-stacked",class:{"mt-0":!$.allowFullscreen&&$.hideDisplay,"mt-4":!$.hideDisplay,"mt-10":$.allowFullscreen}},$._l($.rows,function(N,B){return I("stacked-row",{key:`row-${N._id}`,attrs:{index:B,fields:$.fields,values:N,meta:$.meta[N._id],name:$.name,"field-path-prefix":$.fieldPathPrefix,"can-delete":$.canDeleteRows,"can-add-rows":$.canAddRows},on:{updated:(j,U)=>$.$emit("updated",j,U),duplicate:j=>$.$emit("duplicate",j),"meta-updated":function(j){return $.$emit("meta-updated",N._id,j)},removed:j=>$.$emit("removed",j),focus:function(j){return $.$emit("focus")},blur:function(j){return $.$emit("blur")}}})}),1)}}])})],1)},_sfc_staticRenderFns$1v=[],__component__$1w=normalizeComponent$2(_sfc_main$1v,_sfc_render$1v,_sfc_staticRenderFns$1v,!1,null,null,null,null);const GridStacked=__component__$1w.exports,_sfc_main$1u={mixins:[Fieldtype,ManagesRowMeta],components:{GridTable,GridStacked},data(){return{containerWidth:null,focused:!1,fullScreenMode:!1,provide:{grid:this.makeGridProvide(),storeName:this.storeName}}},inject:["storeName"],computed:{component(){const M=this.fields.length>1&&this.containerWidth<600;return this.config.mode==="stacked"||M?"GridStacked":"GridTable"},fields(){return this.config.fields},minRows(){return this.config.min_rows||0},maxRows(){return this.config.max_rows||1/0},canAddRows(){return!this.isReadOnly&&this.value.length<this.maxRows},canDeleteRows(){return!this.isReadOnly&&this.value.length>this.minRows},addRowButtonLabel(){return __(this.config.add_row)||__("Add Row")},hasMaxRows(){return this.maxRows!=null},hasExcessRows(){return this.value.length-this.maxRows>0},hasNotEnoughRows(){return this.value.length-this.minRows<0},isReorderable(){return!this.isReadOnly&&this.config.reorderable&&this.maxRows>1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return`${__(this.config.display)}: ${__n(":count row|:count rows",this.value.length)}`},internalFieldActions(){return[{title:__("Toggle Fullscreen Mode"),icon:({vm:M})=>M.fullScreenMode?"shrink-all":"expand-bold",quick:!0,visibleWhenReadOnly:!0,run:this.toggleFullScreen}]}},watch:{isReorderable:{immediate:!0,handler(M){this.reorderable=M}},focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||this.$emit("blur")},1)}}},methods:{addRow(){const M=uniqid$1(),$=_.chain(this.fields).indexBy("handle").mapObject(I=>this.meta.defaults[I.handle]).value();$._id=M,this.updateRowMeta(M,this.meta.new),this.update([...this.value,$])},updated(M,$){this.update([...this.value.slice(0,M),$,...this.value.slice(M+1)])},removed(M){confirm(__("Are you sure?"))&&this.update([...this.value.slice(0,M),...this.value.slice(M+1)])},duplicate(M){const $=clone(this.value[M]),I=$._id;$._id=uniqid$1(),this.updateRowMeta($._id,this.meta.existing[I]),this.update([...this.value,$])},sorted(M){this.update(M)},focus(){},blurred(){setTimeout(()=>{this.$el.contains(document.activeElement)||(this.focused=!1)},1)},toggleFullScreen(){this.fullScreenMode=!this.fullScreenMode},makeGridProvide(){const M={};return Object.defineProperties(M,{config:{get:()=>this.config},isReorderable:{get:()=>this.isReorderable},isReadOnly:{get:()=>this.isReadOnly},handle:{get:()=>this.handle},fieldPathPrefix:{get:()=>this.fieldPathPrefix},fullScreenMode:{get:()=>this.fullScreenMode},toggleFullScreen:{get:()=>this.toggleFullScreen}}),M}}};var _sfc_render$1u=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"grid-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("element-container",{on:{resized:function(N){$.containerWidth=N.width}}},[I("div",{staticClass:"grid-fieldtype-container",class:{"grid-fullscreen bg-white dark:bg-dark-600":$.fullScreenMode}},[$.fullScreenMode?I("publish-field-fullscreen-header",{attrs:{title:$.config.display,"field-actions":$.fieldActions},on:{close:function(N){$.fullScreenMode=!1}}}):$._e(),I("section",{class:{"mt-14 p-4":$.fullScreenMode}},[$.hasExcessRows?I("small",{staticClass:"help-block text-red-500"},[$._v(" "+$._s($.__("Max Rows"))+": "+$._s($.maxRows)+" ")]):$.hasNotEnoughRows?I("small",{staticClass:"help-block text-red-500"},[$._v(" "+$._s($.__("Min Rows"))+": "+$._s($.minRows)+" ")]):$._e(),I($.component,{tag:"component",attrs:{fields:$.fields,rows:$.value,meta:$.meta.existing,name:$.name,"can-delete-rows":$.canDeleteRows,"can-add-rows":$.canAddRows,"allow-fullscreen":$.config.fullscreen,"hide-display":$.config.hide_display},on:{updated:$.updated,"meta-updated":$.updateRowMeta,removed:$.removed,duplicate:$.duplicate,sorted:$.sorted,focus:function(N){$.focused=!0},blur:$.blurred}}),$.canAddRows?I("button",{staticClass:"btn",domProps:{textContent:$._s($.__($.addRowButtonLabel))},on:{click:function(N){return N.preventDefault(),$.addRow.apply(null,arguments)}}}):$._e()],1)],1)])],1)},_sfc_staticRenderFns$1u=[],__component__$1v=normalizeComponent$2(_sfc_main$1u,_sfc_render$1u,_sfc_staticRenderFns$1u,!1,null,null,null,null);const Grid=__component__$1v.exports,_sfc_main$1t={mixins:[IndexFieldtype]};var _sfc_render$1t=function M(){var $=this,I=$._self._c;return $.value?I("div",[$._v(" "+$._s($.__n(":count row|:count rows",$.value))+" ")]):$._e()},_sfc_staticRenderFns$1t=[],__component__$1u=normalizeComponent$2(_sfc_main$1t,_sfc_render$1t,_sfc_staticRenderFns$1t,!1,null,null,null,null);const GridIndex=__component__$1u.exports,GroupFieldtype_vue_vue_type_style_index_0_lang="",_sfc_main$1s={mixins:[Fieldtype$1,ValidatesFieldConditions,ManagesPreviewText],components:{SetField},data(){return{containerWidth:null,focused:!1,fullScreenMode:!1,previews:{},provide:{group:this.makeGroupProvide(),storeName:this.storeName}}},inject:["storeName"],computed:{values(){return this.value},fields(){return this.config.fields},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return replicatorPreviewHtml(this.previewText)},internalFieldActions(){return[{title:__("Toggle Fullscreen Mode"),icon:({vm:M})=>M.fullScreenMode?"shrink-all":"expand-bold",quick:!0,run:this.toggleFullscreen,visible:this.config.fullscreen,visibleWhenReadOnly:!0}]}},methods:{blurred(){setTimeout(()=>{this.$el.contains(document.activeElement)||(this.focused=!1)},1)},toggleFullScreen(){this.fullScreenMode=!this.fullScreenMode},makeGroupProvide(){const M={};return Object.defineProperties(M,{config:{get:()=>this.config},isReadOnly:{get:()=>this.isReadOnly},handle:{get:()=>this.handle},fieldPathPrefix:{get:()=>this.fieldPathPrefix||this.handle},fullScreenMode:{get:()=>this.fullScreenMode},toggleFullScreen:{get:()=>this.toggleFullScreen}}),M},focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||this.$emit("blur")},1)}},updated(M,$){this.update({...this.value,[M]:$})},updateMeta(M,$){this.$emit("meta-updated",{...this.meta,[M]:$})},previewUpdated(M,$){this.previews={...this.previews,[M]:$}},fieldPath(M){return(this.fieldPathPrefix||this.handle)+"."+M},errors(M){const $=this.$store.state.publish[this.storeName];return $?$.errors[this.fieldPath(M)]||[]:[]},toggleFullscreen(){this.fullScreenMode=!this.fullScreenMode}}};var _sfc_render$1s=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"group-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("element-container",{on:{resized:function(N){$.containerWidth=N.width}}},[I("div",{staticClass:"group-fieldtype-container",class:{"grid-fullscreen bg-white":$.fullScreenMode}},[$.fullScreenMode?I("publish-field-fullscreen-header",{attrs:{title:$.config.display,"field-actions":$.fieldActions},on:{close:$.toggleFullscreen}}):$._e(),I("section",{class:{"mt-14 p-4":$.fullScreenMode}},[I("div",{class:{"border dark:border-dark-900 rounded shadow-sm replicator-set":$.config.border}},[I("div",{staticClass:"publish-fields @container",class:{"replicator-set-body":$.config.border,"-mx-4":!$.config.border}},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N.handle)),expression:"showField(field, fieldPath(field.handle))"}],key:N.handle,attrs:{field:N,meta:$.meta[N.handle],value:$.value[N.handle],"parent-name":$.name,"set-index":0,errors:$.errors(N.handle),"field-path":$.fieldPath(N.handle),"read-only":$.isReadOnly,"show-field-previews":$.config.replicator_preview},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.updateMeta(N.handle,B)},focus:function(B){return $.$emit("focus")},blur:function(B){return $.$emit("blur")},"replicator-preview-updated":function(B){return $.previewUpdated(N.handle,B)}}})}),1)])])],1)])],1)},_sfc_staticRenderFns$1s=[],__component__$1t=normalizeComponent$2(_sfc_main$1s,_sfc_render$1s,_sfc_staticRenderFns$1s,!1,null,null,null,null);const GroupFieldtype=__component__$1t.exports,_sfc_main$1r={mixins:[Fieldtype]};var _sfc_render$1r=function M(){var $=this,I=$._self._c;return I("input",{attrs:{type:"hidden",name:$.name},domProps:{value:$.value}})},_sfc_staticRenderFns$1r=[],__component__$1s=normalizeComponent$2(_sfc_main$1r,_sfc_render$1r,_sfc_staticRenderFns$1r,!1,null,null,null,null);const HiddenFieldtype=__component__$1s.exports,_sfc_main$1q={mixins:[Fieldtype]};var _sfc_render$1q=function M(){var $=this,I=$._self._c;return I("div",{domProps:{innerHTML:$._s($.config.html)}})},_sfc_staticRenderFns$1q=[],__component__$1r=normalizeComponent$2(_sfc_main$1q,_sfc_render$1q,_sfc_staticRenderFns$1q,!1,null,null,null,null);const HtmlFieldtype=__component__$1r.exports,iconsCache=ref$1({}),loaders=ref$1({}),_sfc_main$1p={mixins:[Fieldtype,PositionsSelectOptions],data(){return{icons:[],loading:!0}},computed:{options(){let M=[];for(let[$,I]of Object.entries(this.icons))M.push({value:$,label:$,html:I});return M},selectedOption(){return this.options.find(M=>M.value===this.value)}},created(){this.request(),watch(()=>loaders.value[this.meta.directory],M=>{this.icons=iconsCache.value[this.meta.directory],this.loading=M})},methods:{focus(){this.$refs.input.focus()},vueSelectUpdated(M){M?this.update(M.value):this.update(null)},request(){loaders.value[this.meta.directory]||(loaders.value={...loaders.value,[this.meta.directory]:!0},this.$axios.post(this.meta.url,{config:utf8btoa(JSON.stringify(this.config))}).then(M=>{const $=M.data.icons;this.icons=$,iconsCache.value={...iconsCache.value,[this.meta.directory]:$}}).finally(()=>{loaders.value={...loaders.value,[this.meta.directory]:!1}}))}}};var _sfc_render$1p=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex icon-fieldtype-wrapper"},[$.loading?$._e():I("v-select",{ref:"input",staticClass:"w-full",attrs:{"append-to-body":"","calculate-position":$.positionOptions,clearable:"",name:$.name,disabled:$.config.disabled||$.isReadOnly,options:$.options,placeholder:$.__($.config.placeholder||"Search..."),searchable:!0,multiple:!1,"close-on-select":!0,value:$.selectedOption,"create-option":N=>({value:N,label:N})},on:{input:$.vueSelectUpdated,"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([{key:"option",fn:function(N){return[I("div",{staticClass:"flex items-center"},[N.html?$._e():I("svg-icon",{staticClass:"w-5 h-5",attrs:{name:`${$.meta.set}/${N.label}`}}),N.html?I("div",{staticClass:"w-5 h-5",domProps:{innerHTML:$._s(N.html)}}):$._e(),I("span",{staticClass:"text-xs rtl:mr-4 ltr:ml-4 text-gray-800 dark:text-dark-150 truncate"},[$._v($._s($.__(N.label)))])],1)]}},{key:"selected-option",fn:function(N){return[I("div",{staticClass:"flex items-center"},[N.html?$._e():I("svg-icon",{staticClass:"w-5 h-5 flex items-center",attrs:{name:`${$.meta.set}/${N.label}`}}),N.html?I("div",{staticClass:"w-5 h-5",domProps:{innerHTML:$._s(N.html)}}):$._e(),I("span",{staticClass:"text-xs rtl:mr-4 ltr:ml-4 text-gray-800 dark:text-dark-150 truncate"},[$._v($._s($.__(N.label)))])],1)]}}],null,!1,882914394)})],1)},_sfc_staticRenderFns$1p=[],__component__$1q=normalizeComponent$2(_sfc_main$1p,_sfc_render$1p,_sfc_staticRenderFns$1p,!1,null,null,null,null);const IconFieldtype=__component__$1q.exports,_sfc_main$1o={mixins:[Fieldtype],props:{prepend:{default:null},append:{default:null}}};var _sfc_render$1o=function M(){var $=this,I=$._self._c;return I("text-input",{ref:"input",attrs:{type:"number",name:$.name,focus:$.config.focus,value:$.value,"is-read-only":$.isReadOnly,id:$.fieldId,min:$.config.min,prepend:$.__($.config.prepend),append:$.__($.config.append),placeholder:$.__($.config.placeholder)},on:{input:$.updateDebounced,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$1o=[],__component__$1p=normalizeComponent$2(_sfc_main$1o,_sfc_render$1o,_sfc_staticRenderFns$1o,!1,null,null,null,null);const IntegerFieldtype=__component__$1p.exports,_sfc_main$1n={mixins:[Fieldtype,PositionsSelectOptions],data(){return{option:this.meta.initialOption,options:this.initialOptions(),urlValue:this.meta.initialUrl,selectedEntries:this.meta.initialSelectedEntries,selectedAssets:this.meta.initialSelectedAssets,metaChanging:!1}},computed:{entryValue(){return this.selectedEntries.length?`entry::${this.selectedEntries[0]}`:null},assetValue(){return this.selectedAssets.length?`asset::${this.selectedAssets[0]}`:null},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview)){switch(this.option){case"url":return this.urlValue;case"first-child":return __("First child");case"entry":return data_get(this.meta,"entry.meta.data.0.title",this.entryValue);case"asset":return data_get(this.meta,"asset.meta.data.0.basename",this.assetValue)}return this.value}}},watch:{option(M,$){this.metaChanging||(M===null?this.update(null):M==="url"?this.updateDebounced(this.urlValue):M==="first-child"?this.update("@child"):M==="entry"?this.entryValue?this.update(this.entryValue):setTimeout(()=>this.$refs.entries.linkExistingItem(),0):M==="asset"&&(this.assetValue?this.update(this.assetValue):setTimeout(()=>this.$refs.assets.openSelector(),0)),this.updateMeta({...this.meta,initialOption:M}))},urlValue(M){this.metaChanging||(this.update(M),this.updateMeta({...this.meta,initialUrl:M}))},meta(M,$){JSON.stringify(M)!==JSON.stringify($)&&(this.metaChanging=!0,this.urlValue=M.initialUrl,this.option=M.initialOption,this.selectedEntries=M.initialSelectedEntries,this.selectedAssets=M.initialSelectedAssets,this.$nextTick(()=>this.metaChanging=!1))}},methods:{initialOptions(){return[this.config.required?null:{label:__("None"),value:null},{label:__("URL"),value:"url"},this.meta.showFirstChildOption?{label:__("First Child"),value:"first-child"}:null,{label:__("Entry"),value:"entry"},this.meta.showAssetOption?{label:__("Asset"),value:"asset"}:null].filter(M=>M)},entriesSelected(M){this.selectedEntries=M,this.update(this.entryValue),this.updateMeta({...this.meta,initialSelectedEntries:M})},assetsSelected(M){this.selectedAssets=M,this.update(this.assetValue),this.updateMeta({...this.meta,initialSelectedAssets:M})}}};var _sfc_render$1n=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"w-28 rtl:ml-4 ltr:mr-4"},[I("v-select",{attrs:{"append-to-body":"","calculate-position":$.positionOptions,options:$.options,clearable:!1,reduce:N=>N.value},scopedSlots:$._u([{key:"option",fn:function({label:N}){return[$._v(" "+$._s($.__(N))+" ")]}}]),model:{value:$.option,callback:function(N){$.option=N},expression:"option"}})],1),I("div",{staticClass:"flex-1"},[$.option==="url"?I("text-input",{model:{value:$.urlValue,callback:function(N){$.urlValue=N},expression:"urlValue"}}):$._e(),$.option==="entry"?I("relationship-fieldtype",{ref:"entries",attrs:{handle:"entry",value:$.selectedEntries,config:$.meta.entry.config,meta:$.meta.entry.meta},on:{input:$.entriesSelected,"meta-updated":function(N){$.meta.entry.meta=N}}}):$._e(),$.option==="asset"?I("assets-fieldtype",{ref:"assets",attrs:{handle:"asset",value:$.selectedAssets,config:$.meta.asset.config,meta:$.meta.asset.meta},on:{input:$.assetsSelected,"meta-updated":function(N){$.meta.asset.meta=N}}}):$._e()],1)])},_sfc_staticRenderFns$1n=[],__component__$1o=normalizeComponent$2(_sfc_main$1n,_sfc_render$1n,_sfc_staticRenderFns$1n,!1,null,null,null,null);const LinkFieldtype=__component__$1o.exports,_sfc_main$1m={mixins:[Fieldtype,SortableHelpers],components:{SortableList,SortableItem},data(){return{data:[],editing:null,focused:!1,mounted:!1,deleting:!1}},mounted(){this.$nextTick(()=>this.mounted=!0)},watch:{data:{deep:!0,handler(M){this.mounted&&this.updateDebounced(this.sortableToArray(M))}},value:{immediate:!0,handler(M){JSON.stringify(M)!=JSON.stringify(this.sortableToArray(this.data))&&(this.data=this.arrayToSortable(M))}},focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||(this.$emit("blur"),this.editing=null)},1)}}},computed:{addButton(){return __(this.config.add_button||"Add Item")}},methods:{addItem(){this.data.push(this.newSortableValue()),this.$nextTick(()=>this.editItem(this.data.length-1))},deleteValue(M){this.data.splice(M,1)},editItem(M){this.editItemWithoutFocusing(M),this.$refs.listItem[M].focus()},editItemWithoutFocusing(M){this.editing=M},newItemInputPaste(M){const $=M.clipboardData.getData("text");$.includes(` `)&&(this.deleteIfEmpty(),$.split(` `).forEach(I=>{this.data.push(this.newSortableValue(I))}),this.$nextTick(()=>this.editItem(this.data.length-1)),M.preventDefault())},previousItem(){this.deleteIfEmpty(),this.editItem(Math.max(this.editing-1,0))},nextItem(){let M=this.deleteIfEmpty()?1:0;this.editing+1>=this.data.length?this.addItem():this.editItem(this.editing+1-M)},deleteIfEmpty(){if(!data_get(this.data[this.editing],"value",!0))return this.deleteItem(this.editing)},deleteItem(M){return this.data.splice(M,1)}}};var _sfc_render$1m=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"table-field"},[$.data.length>0?I("table",{staticClass:"table-fieldtype-table"},[I("sortable-list",{attrs:{vertical:!0,"item-class":"sortable-row","handle-class":"sortable-handle",mirror:!1},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")}},model:{value:$.data,callback:function(N){$.data=N},expression:"data"}},[I("tbody",$._l($.data,function(N,B){return I("tr",{key:N._id,staticClass:"sortable-row"},[$.isReadOnly?$._e():I("td",{staticClass:"sortable-handle table-drag-handle",class:{"rounded-tl":B===0}}),I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.value,expression:"element.value"}],ref:"listItem",refInFor:!0,staticClass:"input-text",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.value},on:{blur:function(j){$.focused=!1},focus:function(j){return $.editItemWithoutFocusing(B)},keydown:function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"enter",13,j.key,"Enter")?null:(j.preventDefault(),$.nextItem.apply(null,arguments))},keyup:[function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"up",38,j.key,["Up","ArrowUp"])?null:$.previousItem.apply(null,arguments)},function(j){return!j.type.indexOf("key")&&$._k(j.keyCode,"down",40,j.key,["Down","ArrowDown"])?null:$.nextItem.apply(null,arguments)}],paste:$.newItemInputPaste,input:function(j){j.target.composing||$.$set(N,"value",j.target.value)}}})]),$.isReadOnly?$._e():I("td",{staticClass:"row-controls"},[I("button",{staticClass:"inline text-lg antialiased text-gray-600 hover:text-gray-800",on:{click:function(j){return $.deleteValue(B)}}},[$._v("×")])])])}),0)])],1):$._e(),$.isReadOnly?$._e():I("button",{staticClass:"btn btn-sm",on:{click:$.addItem}},[$._v(" "+$._s($.addButton)+" ")])])},_sfc_staticRenderFns$1m=[],__component__$1n=normalizeComponent$2(_sfc_main$1m,_sfc_render$1m,_sfc_staticRenderFns$1m,!1,null,null,null,null);const ListFieldtype=__component__$1n.exports,_sfc_main$1l={mixins:[IndexFieldtype],computed:{formatted(){return this.value?this.value.join(", "):null}}};var _sfc_render$1l=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"text-ellipsis"},[$._v($._s($.formatted))])},_sfc_staticRenderFns$1l=[],__component__$1m=normalizeComponent$2(_sfc_main$1l,_sfc_render$1l,_sfc_staticRenderFns$1l,!1,null,null,null,null);const ListIndexFieldtype=__component__$1m.exports;function Renderer(M){this.options=M||{},this.whitespaceDelimiter=this.options.spaces?" ":` `}Renderer.prototype.code=function(M,$,I){return this.whitespaceDelimiter+this.whitespaceDelimiter+M+this.whitespaceDelimiter+this.whitespaceDelimiter};Renderer.prototype.blockquote=function(M){return" "+M+this.whitespaceDelimiter};Renderer.prototype.html=function(M){return M};Renderer.prototype.heading=function(M,$,I){return M};Renderer.prototype.hr=function(){return this.whitespaceDelimiter+this.whitespaceDelimiter};Renderer.prototype.list=function(M,$){return M};Renderer.prototype.listitem=function(M){return" "+M+this.whitespaceDelimiter};Renderer.prototype.paragraph=function(M){return this.whitespaceDelimiter+M+this.whitespaceDelimiter};Renderer.prototype.table=function(M,$){return this.whitespaceDelimiter+M+this.whitespaceDelimiter+$+this.whitespaceDelimiter};Renderer.prototype.tablerow=function(M){return M+this.whitespaceDelimiter};Renderer.prototype.tablecell=function(M,$){return M+" "};Renderer.prototype.strong=function(M){return M};Renderer.prototype.em=function(M){return M};Renderer.prototype.codespan=function(M){return M};Renderer.prototype.br=function(){return this.whitespaceDelimiter+this.whitespaceDelimiter};Renderer.prototype.del=function(M){return M};Renderer.prototype.link=function(M,$,I){return I};Renderer.prototype.image=function(M,$,I){return I};Renderer.prototype.text=function(M){return M};var markedPlaintext=Renderer;const PlainTextRenderer=getDefaultExportFromCjs$1(markedPlaintext);(function(M,$){(function(I){I(codemirrorExports)})(function(I){var N={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},B=I.Pos;I.defineOption("autoCloseBrackets",!1,function(ne,ce,me){me&&me!=I.Init&&(ne.removeKeyMap(U),ne.state.closeBrackets=null),ce&&(q(j(ce,"pairs")),ne.state.closeBrackets=ce,ne.addKeyMap(U))});function j(ne,ce){return ce=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[ce]!=null?ne[ce]:N[ce]}var U={Backspace:G,Enter:J};function q(ne){for(var ce=0;ce<ne.length;ce++){var me=ne.charAt(ce),ue="'"+me+"'";U[ue]||(U[ue]=Y(me))}}q(N.pairs+"`");function Y(ne){return function(ce){return te(ce,ne)}}function K(ne){var ce=ne.state.closeBrackets;if(!ce||ce.override)return ce;var me=ne.getModeAt(ne.getCursor());return me.closeBrackets||ce}function G(ne){var ce=K(ne);if(!ce||ne.getOption("disableInput"))return I.Pass;for(var me=j(ce,"pairs"),ue=ne.listSelections(),_e=0;_e<ue.length;_e++){if(!ue[_e].empty())return I.Pass;var fe=se(ne,ue[_e].head);if(!fe||me.indexOf(fe)%2!=0)return I.Pass}for(var _e=ue.length-1;_e>=0;_e--){var ge=ue[_e].head;ne.replaceRange("",B(ge.line,ge.ch-1),B(ge.line,ge.ch+1),"+delete")}}function J(ne){var ce=K(ne),me=ce&&j(ce,"explode");if(!me||ne.getOption("disableInput"))return I.Pass;for(var ue=ne.listSelections(),_e=0;_e<ue.length;_e++){if(!ue[_e].empty())return I.Pass;var fe=se(ne,ue[_e].head);if(!fe||me.indexOf(fe)%2!=0)return I.Pass}ne.operation(function(){var ge=ne.lineSeparator()||` `;ne.replaceSelection(ge+ge,null),Z(ne,-1),ue=ne.listSelections();for(var ye=0;ye<ue.length;ye++){var xe=ue[ye].head.line;ne.indentLine(xe,null,!0),ne.indentLine(xe+1,null,!0)}})}function Z(ne,ce){for(var me=[],ue=ne.listSelections(),_e=0,fe=0;fe<ue.length;fe++){var ge=ue[fe];ge.head==ne.getCursor()&&(_e=fe);var ye=ge.head.ch||ce>0?{line:ge.head.line,ch:ge.head.ch+ce}:{line:ge.head.line-1};me.push({anchor:ye,head:ye})}ne.setSelections(me,_e)}function ee(ne){var ce=I.cmpPos(ne.anchor,ne.head)>0;return{anchor:new B(ne.anchor.line,ne.anchor.ch+(ce?-1:1)),head:new B(ne.head.line,ne.head.ch+(ce?1:-1))}}function te(ne,ce){var me=K(ne);if(!me||ne.getOption("disableInput"))return I.Pass;var ue=j(me,"pairs"),_e=ue.indexOf(ce);if(_e==-1)return I.Pass;for(var fe=j(me,"closeBefore"),ge=j(me,"triples"),ye=ue.charAt(_e+1)==ce,xe=ne.listSelections(),le=_e%2==0,be,ve=0;ve<xe.length;ve++){var we=xe[ve],Ae=we.head,Se,Pe=ne.getRange(Ae,B(Ae.line,Ae.ch+1));if(le&&!we.empty())Se="surround";else if((ye||!le)&&Pe==ce)ye&&re(ne,Ae)?Se="both":ge.indexOf(ce)>=0&&ne.getRange(Ae,B(Ae.line,Ae.ch+3))==ce+ce+ce?Se="skipThree":Se="skip";else if(ye&&Ae.ch>1&&ge.indexOf(ce)>=0&&ne.getRange(B(Ae.line,Ae.ch-2),Ae)==ce+ce){if(Ae.ch>2&&/\bstring/.test(ne.getTokenTypeAt(B(Ae.line,Ae.ch-2))))return I.Pass;Se="addFour"}else if(ye){var Me=Ae.ch==0?" ":ne.getRange(B(Ae.line,Ae.ch-1),Ae);if(!I.isWordChar(Pe)&&Me!=ce&&!I.isWordChar(Me))Se="both";else return I.Pass}else if(le&&(Pe.length===0||/\s/.test(Pe)||fe.indexOf(Pe)>-1))Se="both";else return I.Pass;if(!be)be=Se;else if(be!=Se)return I.Pass}var Be=_e%2?ue.charAt(_e-1):ce,ze=_e%2?ce:ue.charAt(_e+1);ne.operation(function(){if(be=="skip")Z(ne,1);else if(be=="skipThree")Z(ne,3);else if(be=="surround"){for(var Ze=ne.getSelections(),ft=0;ft<Ze.length;ft++)Ze[ft]=Be+Ze[ft]+ze;ne.replaceSelections(Ze,"around"),Ze=ne.listSelections().slice();for(var ft=0;ft<Ze.length;ft++)Ze[ft]=ee(Ze[ft]);ne.setSelections(Ze)}else be=="both"?(ne.replaceSelection(Be+ze,null),ne.triggerElectric(Be+ze),Z(ne,-1)):be=="addFour"&&(ne.replaceSelection(Be+Be+Be+Be,"before"),Z(ne,1))})}function se(ne,ce){var me=ne.getRange(B(ce.line,ce.ch-1),B(ce.line,ce.ch+1));return me.length==2?me:null}function re(ne,ce){var me=ne.getTokenAt(B(ce.line,ce.ch+1));return/\bstring/.test(me.type)&&me.start==ce.ch&&(ce.ch==0||!/\bstring/.test(ne.getTokenTypeAt(ce)))}})})();(function(M,$){(function(I){I(codemirrorExports)})(function(I){I.defineOption("autoRefresh",!1,function(j,U){j.state.autoRefresh&&(B(j,j.state.autoRefresh),j.state.autoRefresh=null),U&&j.display.wrapper.offsetHeight==0&&N(j,j.state.autoRefresh={delay:U.delay||250})});function N(j,U){function q(){j.display.wrapper.offsetHeight?(B(j,U),j.display.lastWrapHeight!=j.display.wrapper.clientHeight&&j.refresh()):U.timeout=setTimeout(q,U.delay)}U.timeout=setTimeout(q,U.delay),U.hurry=function(){clearTimeout(U.timeout),U.timeout=setTimeout(q,50)},I.on(window,"mouseup",U.hurry),I.on(window,"keyup",U.hurry)}function B(j,U){clearTimeout(U.timeout),I.off(window,"mouseup",U.hurry),I.off(window,"keyup",U.hurry)}})})();(function(M,$){(function(I){I(codemirrorExports)})(function(I){var N=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,B=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,j=/[*+-]\s/;I.commands.newlineAndIndentContinueMarkdownList=function(q){if(q.getOption("disableInput"))return I.Pass;for(var Y=q.listSelections(),K=[],G=0;G<Y.length;G++){var J=Y[G].head,Z=q.getStateAfter(J.line),ee=I.innerMode(q.getMode(),Z);if(ee.mode.name!=="markdown"&&ee.mode.helperType!=="markdown"){q.execCommand("newlineAndIndent");return}else Z=ee.state;var te=Z.list!==!1,se=Z.quote!==0,re=q.getLine(J.line),ne=N.exec(re),ce=/^\s*$/.test(re.slice(0,J.ch));if(!Y[G].empty()||!te&&!se||!ne||ce){q.execCommand("newlineAndIndent");return}if(B.test(re)){var me=se&&/>\s*$/.test(re),ue=!/>\s*$/.test(re);(me||ue)&&q.replaceRange("",{line:J.line,ch:0},{line:J.line,ch:J.ch+1}),K[G]=` `}else{var _e=ne[1],fe=ne[5],ge=!(j.test(ne[2])||ne[2].indexOf(">")>=0),ye=ge?parseInt(ne[3],10)+1+ne[4]:ne[2].replace("x"," ");K[G]=` `+_e+ye+fe,ge&&U(q,J)}}q.replaceSelections(K)};function U(q,Y){var K=Y.line,G=0,J=0,Z=N.exec(q.getLine(K)),ee=Z[1];do{G+=1;var te=K+G,se=q.getLine(te),re=N.exec(se);if(re){var ne=re[1],ce=parseInt(Z[3],10)+G-J,me=parseInt(re[3],10),ue=me;if(ee===ne&&!isNaN(me))ce===me&&(ue=me+1),ce>me&&(ue=ce+1),q.replaceRange(se.replace(N,ne+ue+re[4]+re[5]),{line:te,ch:0},{line:te,ch:se.length});else{if(ee.length>ne.length||ee.length<ne.length&&G===1)return;J+=1}}}while(re)}})})();const availableButtons=()=>[{name:"bold",text:__("Bold"),command:M=>M.toggleInline("bold"),svg:"text-bold"},{name:"italic",text:__("Italic"),command:M=>M.toggleInline("italic"),svg:"text-italic"},{name:"strikethrough",text:__("Strikethrough"),command:M=>M.toggleInline("strikethrough"),svg:"text-strike-through"},{name:"unorderedlist",text:__("Unordered List"),command:M=>M.toggleLine("unordered-list"),svg:"list-ul"},{name:"orderedlist",text:__("Ordered List"),command:M=>M.toggleLine("ordered-list"),svg:"list-ol"},{name:"quote",text:__("Blockquote"),command:M=>M.toggleLine("quote"),svg:"quote"},{name:"link",text:__("Insert Link"),command:M=>M.insertLink(""),svg:"insert-link"},{name:"table",text:__("Table"),command:M=>M.insertTable(),svg:"add-table"},{name:"image",text:__("Insert Image"),command:M=>M.insertImage(),svg:"insert-image"},{name:"asset",text:__("Insert Asset"),command:M=>M.addAsset(),svg:"asset-folder",condition:M=>M.container},{name:"code",text:__("Inline Code"),command:M=>M.toggleInline("code"),svg:"code-inline"},{name:"codeblock",text:__("Code Block"),command:M=>M.toggleBlock("code"),svg:"code-block"}];function ucs2decode(M){const $=[];let I=0;const N=M.length;for(;I<N;){const B=M.charCodeAt(I++);if(B>=55296&&B<=56319&&I<N){const j=M.charCodeAt(I++);(j&64512)==56320?$.push(((B&1023)<<10)+(j&1023)+65536):($.push(B),I--)}else $.push(B)}return $}const _sfc_main$1k={mixins:[Fieldtype],components:{Selector,Uploader,Uploads},data:function(){return{data:this.value||"",buttons:[],mode:"write",selections:null,showAssetSelector:!1,selectedAssets:[],selectorViewMode:null,draggingFile:!1,showCheatsheet:!1,fullScreenMode:!1,darkMode:!1,codemirror:null,uploads:[],count:{characters:0,words:0},escBinding:null,markdownPreviewText:null}},watch:{data(M){this.updateDebounced(M),this.updateCount(M)},fullScreenMode:{immediate:!0,handler:function(M){this.$nextTick(()=>{this.$nextTick(()=>this.initCodeMirror())})}},mode(M){M==="preview"&&this.updateMarkdownPreview()},readOnly(M){this.codemirror.setOption("readOnly",M?"nocursor":!1)}},mounted(){this.initToolbarButtons(),this.data&&this.updateCount(this.data);let M=document.querySelector(`label[for="${this.fieldId}"]`);M&&M.addEventListener("click",()=>{this.codemirror.focus()})},methods:{closeFullScreen(){this.fullScreenMode=!1,this.escBinding.destroy(),this.trackHeightUpdates()},openFullScreen(){this.fullScreenMode=!0,this.escBinding=this.$keys.bindGlobal("esc",this.closeFullScreen),this.trackHeightUpdates()},toggleFullScreen(){this.fullScreenMode?this.closeFullScreen():this.openFullScreen()},toggleDarkMode(){this.darkMode=!this.darkMode},getText:function(M){var $=_.indexOf(this.selections,M);return this.codemirror.getSelections()[$]},toggleInline(M){var $=this,I=[];let N={bold:{pattern:/^\*{2}(.*)\*{2}$/,delimiter:"**"},code:{pattern:/^\`(.*)\`$/,delimiter:"`"},italic:{pattern:/^\_(.*)\_$/,delimiter:"_"},strikethrough:{pattern:/^\~\~(.*)\~\~$/,delimiter:"~~"}};_.each($.selections,function(B){let j=N[M].delimiter,U=$.getText(B).match(N[M].pattern)?$.removeInline(B,N[M].delimiter):j+$.getText(B)+j;I.push(U)}),this.codemirror.replaceSelections(I,"around"),this.codemirror.focus()},toggleBlock(M){var $=this,I=[];let N={code:{pattern:/^\`\`\`(.*)\n(.*)\n\`\`\`$/,delimiter:"```"}};_.each($.selections,function(B){let j=$.getText(B),U=N[M].delimiter,q=j.match(N[M].pattern)?$.removeInline(B,U):U+` `+j+` `+U;I.push(q)}),this.codemirror.replaceSelections(I,"around"),this.codemirror.focus()},removeInline:function(M,$){var I=this.getText(M),N=$.length;return I.substring(N,I.length-N)},toggleLine(M){let $=this.codemirror.getCursor("start"),I=this.codemirror.getCursor("end"),N={quote:/^(\s*)\>\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},B={quote:"> ","unordered-list":"- ","ordered-list":"1. "};for(let j=$.line;j<=I.line;j++){let U=this.codemirror.getLine(j);U=this.isInside(M)?U.replace(N[M],"$1"):B[M]+U,this.codemirror.replaceRange(U,{line:j,ch:0},{line:j,ch:1/0})}this.codemirror.focus()},getState(M){M=M||this.codemirror.getCursor("start");let $=this.codemirror.getTokenAt(M);if(!$.type)return{};let I=$.type.split(" "),N={},B,j;for(var U=0;U<I.length;U++)B=I[U],B==="strong"?N.bold=!0:B==="variable-2"?(j=this.codemirror.getLine(M.line),/^\s*\d+\.\s/.test(j)?N["ordered-list"]=!0:N["unordered-list"]=!0):B==="atom"?N.quote=!0:B==="em"?N.italic=!0:B==="quote"?N.quote=!0:B==="strikethrough"?N.strikethrough=!0:B==="comment"?N.code=!0:B==="link"?N.link=!0:B==="tag"?N.image=!0:B.match(/^header(\-[1-6])?$/)&&(N[B.replace("header","heading")]=!0);return N},isInside(M){return this.getState()[M]??!1},insertTable(){let M=this.codemirror.getDoc(),$=M.getCursor(),I=M.getLine($.line),N={line:$.line},B=`| | | | --- | --- | | | |`;I.length===0?(M.replaceRange(B,N),this.codemirror.focus(),this.codemirror.setCursor($.line,2)):(M.replaceRange(` `+B,N),this.codemirror.focus(),this.codemirror.setCursor($.line+2,2))},insertImage:function(B,$){var I=this.codemirror.doc,N="";I.somethingSelected()?N=I.getSelection():$&&(N=$);var B=B||"",j="";I.replaceSelection(j,"start");var U=I.getCursor().line,q=I.getCursor().ch+2,Y=q+N.length;I.setSelection({line:U,ch:q},{line:U,ch:Y}),this.codemirror.focus()},appendImage:function(M,$){$=$||"",this.data+=` "},insertLink:function(M,$){var I=this.codemirror.doc,N="";if(I.somethingSelected()?N=I.getSelection():$&&(N=$),!(!M&&(M=prompt(__("Enter URL"),"https://"),!M))){var B="["+N+"]("+M+")";I.replaceSelection(B,"start");var j=I.getCursor().line,U=I.getCursor().ch+1,q=U+N.length;I.setSelection({line:j,ch:U},{line:j,ch:q}),this.codemirror.focus()}},appendLink:function(M,$){$=$||"",this.data+=` [`+$+"]("+M+")"},addAsset:function(){this.showAssetSelector=!0},shortcut:function(M){var $=M.keyCode,I=M.metaKey===!0||M.ctrlKey===!0;I&&$===66&&(this.toggleInline("bold"),M.preventDefault()),I&&$===73&&(this.toggleInline("italic"),M.preventDefault()),I&&$===190&&(this.toggleLine("quote"),M.preventDefault()),I&&$===192&&(this.toggleInline("code"),M.preventDefault()),I&&$===76&&(this.toggleLine("unordered-list"),M.preventDefault()),I&&$===79&&(this.toggleLine("ordered-list"),M.preventDefault()),I&&$===220&&(this.toggleBlock("code"),M.preventDefault()),I&&$===75&&(this.insertLink(),M.preventDefault())},assetsSelected:function(M){var $=M.length===1?"insert":"append";this.closeAssetSelector(),this.selectedAssets=[],this.$axios.post(cp_url("assets-fieldtype"),{assets:M}).then(I=>{_(I.data).each(N=>{var B=N.values.alt||"",j=encodeURI("statamic://"+N.reference);N.isImage?this[$+"Image"](j,B):this[$+"Link"](j,B)})})},closeAssetSelector(){this.showAssetSelector=!1},uploadsUpdated(M){this.uploads=M},uploadComplete(M,$){M.is_image?this.insertImage(M.url):this.insertLink(M.url),$.length>1&&this.codemirror.setCursor(this.codemirror.lineCount(),0)},focus(){this.codemirror.focus()},trackHeightUpdates(){const M=()=>{window.dispatchEvent(new Event("resize"))},$=_.throttle(M,100);this.$root.$on("livepreview.opened",$),this.$root.$on("livepreview.closed",$),this.$root.$on("livepreview.resizing",$),this.$once("hook:beforeDestroy",()=>{this.$root.$off("livepreview.opened",$),this.$root.$off("livepreview.closed",$),this.$root.$off("livepreview.resizing",$)})},updateMarkdownPreview(){this.$axios.post(this.meta.previewUrl,{value:this.data,config:this.config}).then(M=>this.markdownPreviewText=M.data).catch(M=>this.$toast.error(M.response?M.response.data.message:__("Something went wrong")))},initCodeMirror(){var M=this;M.codemirror=CodeMirror(this.$refs.codemirror,{value:M.data,mode:"gfm",dragDrop:!1,keyMap:"sublime",direction:document.querySelector("html").getAttribute("dir")??"ltr",lineWrapping:!0,viewportMargin:1/0,tabindex:0,autoRefresh:!0,readOnly:M.isReadOnly?"nocursor":!1,inputStyle:"contenteditable",spellcheck:!0,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList","Cmd-Left":"goLineLeftSmart"}}),M.codemirror.on("change",function($){M.data=$.doc.getValue()}),M.codemirror.on("focus",()=>M.$emit("focus")),M.codemirror.on("blur",()=>M.$emit("blur")),M.codemirror.on("beforeSelectionChange",function($,I){M.selections=I.ranges}),this.$watch("value",function($){$!==M.codemirror.doc.getValue()&&M.codemirror.doc.setValue($)}),this.trackHeightUpdates()},refresh(){this.$nextTick(function(){this.codemirror.refresh()})},initToolbarButtons(){let M=this.config.buttons.map($=>_.findWhere(availableButtons(),{name:$.toLowerCase()})||$);M=M.filter($=>$.condition?$.condition.call(null,this.config):!0),this.buttons=M},updateCount(M){let $=M.trim();this.count.characters=ucs2decode($.replace(/\s/g,"")).length,this.count.words=$.split(/\s+/).filter(I=>I.length>0).length},toggleFullscreen(){this.fullScreenMode=!this.fullScreenMode}},computed:{assetsEnabled:function(){return!!(this.config&&this.config.container)},container:function(){return this.config.container},editor(){return this},folder:function(){return this.config.folder||"/"},restrictAssetNavigation(){return this.config.restrict_assets||!1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return marked(this.data||"",{renderer:new PlainTextRenderer}).replace(/<\/?[^>]+(>|$)/g,"")},internalFieldActions(){return[{title:__("Toggle Fullscreen Mode"),icon:({vm:M})=>M.fullScreenMode?"shrink-all":"expand-bold",quick:!0,visibleWhenReadOnly:!0,run:this.toggleFullscreen}]}}};var _sfc_render$1k=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"markdown-fullscreen",disabled:!$.fullScreenMode,"target-class":"markdown-fieldtype"}},[I("element-container",{on:{resized:$.refresh}},[I("div",{staticClass:"markdown-fieldtype-wrapper @container/markdown",class:{"markdown-fullscreen":$.fullScreenMode,"markdown-dark-mode":$.darkMode}},[I("uploader",{ref:"uploader",attrs:{enabled:$.assetsEnabled,container:$.container,path:$.folder},on:{updated:$.uploadsUpdated,"upload-complete":$.uploadComplete},scopedSlots:$._u([{key:"default",fn:function({dragging:N}){return I("div",{},[$.fullScreenMode?I("publish-field-fullscreen-header",{attrs:{title:$.config.display,"field-actions":$.fieldActions},on:{close:$.toggleFullscreen}},[I("div",{staticClass:"markdown-toolbar"},[I("div",{staticClass:"markdown-modes"},[I("button",{class:{active:$.mode=="write"},attrs:{"aria-pressed":$.mode==="write"?"true":"false"},domProps:{textContent:$._s($.__("Write"))},on:{click:function(B){$.mode="write"}}}),I("button",{class:{active:$.mode=="preview"},attrs:{"aria-pressed":$.mode==="preview"?"true":"false"},domProps:{textContent:$._s($.__("Preview"))},on:{click:function(B){$.mode="preview"}}})]),$.isReadOnly?$._e():I("div",{staticClass:"markdown-buttons"},[$._l($.buttons,function(B){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:B.text,expression:"button.text"}],attrs:{"aria-label":B.text},on:{click:function(j){return B.command($.editor)}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:B.svg}})],1)}),$.fullScreenMode?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.darkMode?$.__("Light Mode"):$.__("Dark Mode"),expression:"darkMode ? __('Light Mode') : __('Dark Mode')"}],attrs:{"aria-label":$.__("Toggle Dark Mode")},on:{click:$.toggleDarkMode}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"dark-mode"}})],1):$._e()],2)])]):$._e(),$.fullScreenMode?$._e():I("div",{staticClass:"markdown-toolbar"},[I("div",{staticClass:"markdown-modes"},[I("button",{class:{active:$.mode=="write"},attrs:{"aria-pressed":$.mode==="write"?"true":"false"},domProps:{textContent:$._s($.__("Write"))},on:{click:function(B){$.mode="write"}}}),I("button",{class:{active:$.mode=="preview"},attrs:{"aria-pressed":$.mode==="preview"?"true":"false"},domProps:{textContent:$._s($.__("Preview"))},on:{click:function(B){$.mode="preview"}}})]),$.isReadOnly?$._e():I("div",{staticClass:"markdown-buttons"},[$._l($.buttons,function(B){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:B.text,expression:"button.text"}],attrs:{"aria-label":B.text},on:{click:function(j){return B.command($.editor)}}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:B.svg}})],1)}),$.fullScreenMode?I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.darkMode?$.__("Light Mode"):$.__("Dark Mode"),expression:"darkMode ? __('Light Mode') : __('Dark Mode')"}],attrs:{"aria-label":$.__("Toggle Dark Mode")},on:{click:$.toggleDarkMode}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"dark-mode"}})],1):$._e()],2)]),I("div",{directives:[{name:"show",rawName:"v-show",value:N,expression:"dragging"}],staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-12 w-12 mb-4",attrs:{name:"upload"}}),$._v(" "+$._s($.__("Drop File to Upload"))+" ")],1),$.uploads.length?I("uploads",{staticClass:"-mt-px",attrs:{uploads:$.uploads}}):$._e(),I("div",{class:`mode-wrap mode-${$.mode}`,on:{click:$.focus}},[I("div",{directives:[{name:"show",rawName:"v-show",value:$.mode=="write",expression:"mode == 'write'"}],ref:"writer",staticClass:"markdown-writer",on:{dragover:function(B){$.draggingFile=!0},dragleave:function(B){$.draggingFile=!1},drop:function(B){$.draggingFile=!1},keydown:$.shortcut}},[I("div",{ref:"codemirror",staticClass:"editor"}),I("div",{staticClass:"helpers"},[I("div",{staticClass:"flex w-full"},[I("div",{staticClass:"markdown-cheatsheet-helper"},[I("button",{staticClass:"text-link flex items-center",attrs:{"aria-label":$.__("Show Markdown Cheatsheet")},on:{click:function(B){$.showCheatsheet=!0}}},[I("svg-icon",{staticClass:"w-6 h-4 items-start rtl:ml-2 ltr:mr-2",attrs:{name:"markdown-icon"}}),I("span",[$._v($._s($.__("Markdown Cheatsheet")))])],1)])]),$.fullScreenMode?I("div",{staticClass:"flex items-center rtl:pl-2 ltr:pr-2"},[I("div",{staticClass:"whitespace-nowrap rtl:ml-4 ltr:mr-4"},[I("span",{domProps:{textContent:$._s($.count.words)}}),$._v(" "+$._s($.__("Words")))]),I("div",{staticClass:"whitespace-nowrap"},[I("span",{domProps:{textContent:$._s($.count.characters)}}),$._v(" "+$._s($.__("Characters")))])]):$._e()]),$.assetsEnabled&&$.draggingFile?I("div",{staticClass:"drag-notification"},[I("svg-icon",{staticClass:"h-12 w-12 mb-4",attrs:{name:"upload"}}),$._v(" "+$._s($.__("Drop File to Upload"))+" ")],1):$._e()]),I("div",{directives:[{name:"show",rawName:"v-show",value:$.mode=="preview",expression:"mode == 'preview'"}],staticClass:"markdown-preview prose-sm @md/markdown:prose-base",domProps:{innerHTML:$._s($.markdownPreviewText)}})])],1)}}])}),$.showAssetSelector&&!$.isReadOnly?I("stack",{attrs:{name:"markdown-asset-selector"},on:{closed:$.closeAssetSelector}},[I("selector",{attrs:{container:$.container,folder:$.folder,selected:$.selectedAssets,"restrict-folder-navigation":$.restrictAssetNavigation},on:{selected:$.assetsSelected,closed:$.closeAssetSelector}})],1):$._e(),$.showCheatsheet?I("stack",{attrs:{name:"markdownCheatSheet"},on:{closed:function(N){$.showCheatsheet=!1}}},[I("div",{staticClass:"h-full overflow-auto p-6 bg-white dark:bg-dark-600 relative"},[I("button",{staticClass:"btn-close absolute top-0 rtl:left-0 ltr:right-0 mt-4 rtl:ml-8 ltr:mr-8",attrs:{"aria-label":$.__("Close Markdown Cheatsheet")},on:{click:function(N){$.showCheatsheet=!1}}},[$._v("×")]),I("div",{staticClass:"max-w-md mx-auto my-8 prose"},[I("h2",{domProps:{textContent:$._s($.__("Markdown Cheatsheet"))}}),I("div",{domProps:{innerHTML:$._s($.__("markdown.cheatsheet"))}})])])]):$._e()],1)])],1)},_sfc_staticRenderFns$1k=[],__component__$1l=normalizeComponent$2(_sfc_main$1k,_sfc_render$1k,_sfc_staticRenderFns$1k,!1,null,null,null,null);const MarkdownFieldtype=__component__$1l.exports,_sfc_main$1j={mixins:[Fieldtype],data(){return{data:this.value,buttons:[],autoBindChangeWatcher:!1}},mounted(){this.initButtons(),this.initSortable()},watch:{buttons:{deep:!0,handler(M){const $=M.filter(I=>I.enabled).map(I=>I.name);JSON.stringify($)!==JSON.stringify(this.data)&&(this.data=$)}},data(M){this.update(M)}},methods:{initButtons(){let M=availableButtons(),$=M.map(j=>(j.enabled=this.data.includes(j.name),j)),I=M.map(j=>j.name),N=this.data.filter(j=>!I.includes(j));N.length&&(N=N.map(j=>({name:j,text:j,html:`<span>${j.charAt(0).toUpperCase()}</span>`,enabled:!0})),$=[...$,...N]);let B=$.filter(j=>j.enabled).map(j=>j.name);if(JSON.stringify(B)!==JSON.stringify(this.data)){$=this.data.map(U=>_.findWhere($,{name:U}));let j=M.filter(U=>!this.data.includes(U.name));$=[...$,...j]}this.buttons=$},initSortable(){new draggable_bundleExports.Sortable(this.$refs.buttons,{draggable:"button",mirror:{constrainDimensions:!0,xAxis:!0,appendTo:"body"},swapAnimation:{horizontal:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation],distance:10}).on("sortable:stop",M=>{this.buttons.splice(M.newIndex,0,this.buttons.splice(M.oldIndex,1)[0])}).on("mirror:create",M=>M.cancel())},toggleButton(M){const $=_.findWhere(this.buttons,{name:M});$.enabled=!$.enabled},enabled(M){return _.findWhere(this.buttons,{name:M}).enabled}}};var _sfc_render$1j=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"relative"},[I("div",{ref:"buttons",staticClass:"bard-fixed-toolbar dark bard-toolbar-setting"},$._l($.buttons,function(N){return I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:N.text,expression:"button.text"}],key:N.name,class:{active:$.enabled(N.name)},on:{click:function(B){return $.toggleButton(N.name)}}},[I("svg-icon",{attrs:{name:N.svg}})],1)}),0)])},_sfc_staticRenderFns$1j=[],__component__$1k=normalizeComponent$2(_sfc_main$1j,_sfc_render$1j,_sfc_staticRenderFns$1j,!1,null,null,null,null);const MarkdownButtonsSettingFieldtype=__component__$1k.exports,_sfc_main$1i={mixins:[Fieldtype,HasInputOptions],computed:{options(){return this.normalizeInputOptions(this.meta.options||this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview)){var M=_.findWhere(this.options,{value:this.value});return M?M.label:this.value}}},methods:{focus(){this.$refs.radio[0].focus()}}};var _sfc_render$1i=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"radio-fieldtype-wrapper",class:{"inline-mode":$.config.inline}},$._l($.options,function(N,B){return I("div",{key:B,staticClass:"option",class:{selected:$.value===N.value,disabled:$.isReadOnly}},[I("label",[I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.value!=N.value,expression:"value != option.value"}],staticClass:"radio-icon",attrs:{name:"regular/radio-deselected","aria-hidden":$.value==N.value},on:{click:function(j){return $.update(j.target.value)}}}),I("svg-icon",{directives:[{name:"show",rawName:"v-show",value:$.value==N.value,expression:"value == option.value"}],staticClass:"radio-icon",attrs:{name:"regular/radio-selected","aria-hidden":$.value!=N.value},on:{click:function(j){return $.update(j.target.value)}}}),I("input",{ref:"radio",refInFor:!0,attrs:{type:"radio",name:$.name,disabled:$.isReadOnly},domProps:{value:N.value,checked:$.value==N.value},on:{input:function(j){return $.update(j.target.value)}}}),$._v(" "+$._s(N.label||N.value)+" ")],1)])}),0)},_sfc_staticRenderFns$1i=[],__component__$1j=normalizeComponent$2(_sfc_main$1i,_sfc_render$1i,_sfc_staticRenderFns$1i,!1,null,null,null,null);const RadioFieldtype=__component__$1j.exports,_sfc_main$1h={mixins:[Fieldtype$1],data(){return{val:this.getValue()}},methods:{getDefault(){if(this.config.max<this.config.min)return this.config.min;var M=this.config.min+(this.config.max-this.config.min)/2;return this.config.step&&(M=Math.floor(M/this.config.step)*this.config.step),M},getValue(){return typeof this.value=="number"?this.value:typeof this.config.default=="number"?this.config.default:this.getDefault()}},watch:{value(M){this.val=M},val(M){this.updateDebounced(M)}}};var _sfc_render$1h=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"range-fieldtype-wrapper bg-gray-200 dark:bg-dark-700 rounded py-2 px-4 border dark:border-dark-900"},[I("div",{staticClass:"flex items-center"},[$.config.prepend?I("div",{staticClass:"rtl:ml-2 ltr:mr-2",domProps:{textContent:$._s($.__($.config.prepend))}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.val,expression:"val"}],staticClass:"flex-1 min-w-0",attrs:{type:"range",name:$.name,min:$.config.min,max:$.config.max,step:$.config.step,width:$.config.width,readonly:$.isReadOnly,disabled:$.isReadOnly,id:$.fieldId},domProps:{value:$.val},on:{__r:function(N){$.val=N.target.value}}}),I("div",{staticClass:"rounded border dark:border-dark-900 px-2 py-1 mx-2 bg-gray-100 dark:bg-dark-600 dark:shadow-inner-dark"},[$._v($._s($.val))]),$.config.append?I("div",{domProps:{textContent:$._s($.__($.config.append))}}):$._e()])])},_sfc_staticRenderFns$1h=[],__component__$1i=normalizeComponent$2(_sfc_main$1h,_sfc_render$1h,_sfc_staticRenderFns$1h,!1,null,null,null,null);const RangeFieldtype=__component__$1i.exports,_sfc_main$1g={mixins:[Fieldtype],data(){return{}},inject:{storeName:{default:null}},computed:{maxItems(){return this.config.max_items||1/0},columns(){return this.meta.columns},itemComponent(){return this.meta.itemComponent},itemDataUrl(){return this.meta.itemDataUrl+"?"+qs.stringify({config:this.configParameter})},filtersUrl(){return this.meta.filtersUrl+"?"+qs.stringify({config:this.configParameter})},selectionsUrl(){return this.baseSelectionsUrl+"?"+qs.stringify({config:this.configParameter,...this.meta.getBaseSelectionsUrlParameters})},baseSelectionsUrl(){return this.meta.baseSelectionsUrl},configParameter(){return utf8btoa(JSON.stringify(this.config))},site(){return this.storeName?this.$store.state.publish[this.storeName].site||this.$config.get("selectedSite"):this.$config.get("selectedSite")},canEdit(){return this.meta.canEdit},canCreate(){return this.meta.canCreate},canSearch(){return this.meta.canSearch},canReorder(){return this.maxItems>1},statusIcons(){return this.meta.statusIcons},creatables(){return this.meta.creatables},formComponent(){return this.meta.formComponent},formComponentProps(){return this.meta.formComponentProps},formStackSize(){return this.meta.formStackSize},taggable(){return this.meta.taggable},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.value.map(M=>{const $=_.findWhere(this.meta.data,{id:M});return $?$.title:M})},internalFieldActions(){return[{title:__("Unlink All"),dangerous:!0,run:this.unlinkAll,visible:this.value.length>0}]}},methods:{itemDataUpdated(M){const $=clone(this.meta);$.data=M,this.updateMeta($)},linkExistingItem(){this.$refs.input.$refs.existing.click()},unlinkAll(){this.update([]),this.updateMeta({...this.meta,data:[]})}}};var _sfc_render$1g=function M(){var $=this,I=$._self._c;return I("relationship-input",{ref:"input",attrs:{name:$.name,value:$.value,mode:$.config.mode,"can-edit":$.canEdit,config:$.config,"can-create":$.canCreate,"can-reorder":$.canReorder,site:$.site,data:$.meta?$.meta.data:[],"max-items":$.maxItems,"item-component":$.itemComponent,"item-data-url":$.itemDataUrl,"filters-url":$.filtersUrl,"selections-url":$.selectionsUrl,creatables:$.creatables,"form-component":$.formComponent,"form-component-props":$.formComponentProps,"form-stack-size":$.formStackSize,"status-icons":$.statusIcons,columns:$.columns,search:$.canSearch,"read-only":$.isReadOnly,taggable:$.taggable,tree:$.meta.tree,"initial-sort-column":$.meta.initialSortColumn,"initial-sort-direction":$.meta.initialSortDirection},on:{focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")},input:$.update,"item-data-updated":$.itemDataUpdated}})},_sfc_staticRenderFns$1g=[],__component__$1h=normalizeComponent$2(_sfc_main$1g,_sfc_render$1g,_sfc_staticRenderFns$1g,!1,null,null,null,null);const RelationshipFieldtype=__component__$1h.exports,_sfc_main$1f={mixins:[IndexFieldtype],data(){return{showingAll:!1}},computed:{items(){var M;return this.showingAll?this.value:(M=this.value)==null?void 0:M.slice(0,2)},hasMore(){var M;return((M=this.value)==null?void 0:M.length)>2}},methods:{showAll(){this.showingAll=!0},hideExtra(){this.showingAll=!1}}};var _sfc_render$1f=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex flex-wrap"},$._l($.items,function(N,B){return I("div",{key:N.id,staticClass:"relationship-index-field-item h-5",class:{"mb-1.5":B<$.items.length-1}},[I("div",{staticClass:"flex items-center shrink"},[N.hasOwnProperty("published")&&N.published!==null?I("div",{staticClass:"little-dot h-1 w-1 rtl:ml-1 ltr:mr-1",class:[N.published?"bg-green-600":"bg-gray-400 dark:bg-dark-200"]}):$._e(),I("a",{attrs:{href:N.edit_url,title:N.title},domProps:{textContent:$._s(N.title)}})])])}),0),$.hasMore&&!$.showingAll?I("button",{staticClass:"mt-1 text-blue text-2xs",domProps:{textContent:$._s($.__("messages.view_more_count",{count:$.value.length-2}))},on:{click:function(N){return N.stopPropagation(),$.showAll.apply(null,arguments)}}}):$._e(),$.showingAll?I("button",{staticClass:"mt-1 text-blue text-2xs",domProps:{textContent:$._s($.__("Hide"))},on:{click:function(N){return N.stopPropagation(),$.hideExtra.apply(null,arguments)}}}):$._e()])},_sfc_staticRenderFns$1f=[],__component__$1g=normalizeComponent$2(_sfc_main$1f,_sfc_render$1f,_sfc_staticRenderFns$1f,!1,null,null,null,null);const RelationshipIndexFieldtype=__component__$1g.exports,Set_vue_vue_type_style_index_0_scoped_60efcf14_lang="",_sfc_main$1e={components:{SetField,DropdownActions},mixins:[ValidatesFieldConditions,ManagesPreviewText,HasFieldActions],inject:["replicatorSets","storeName"],props:{config:{type:Object,required:!0},meta:{type:Object,required:!0},index:{type:Number,required:!0},collapsed:{type:Boolean,default:!1},values:{type:Object,required:!0},parentName:{type:String,required:!0},fieldPathPrefix:{type:String,required:!0},hasError:{type:Boolean,default:!1},sortableItemClass:{type:String},sortableHandleClass:{type:String},canAddSet:{type:Boolean,default:!0},isReadOnly:Boolean,previews:Object,showFieldPreviews:{type:Boolean}},data(){return{fieldPreviews:this.previews}},computed:{fields(){return this.config.fields},display(){return __(this.config.display)||this.values.type},instructions(){return this.config.instructions?markdown(__(this.config.instructions)):null},setGroup(){return this.replicatorSets.length<1?null:this.replicatorSets.find(M=>M.sets.filter($=>$.handle===this.config.handle).length>0)},hasMultipleFields(){return this.fields.length>1},isSetGroupVisible(){var M;return this.replicatorSets.length>1&&((M=this.setGroup)==null?void 0:M.display)},isHidden(){return this.values["#hidden"]===!0},isInvalid(){return Object.keys(this.config).length===0},fieldVm(){let M=this;for(;M!==M.$root;){if(M.$options.name==="replicator-fieldtype")return M;M=M.$parent}},fieldActionPayload(){return{vm:this,fieldVm:this.fieldVm,fieldPathPrefix:this.fieldPathPrefix,index:this.index,values:this.values,config:this.config,meta:this.meta,update:(M,$)=>this.updated(M,$),updateMeta:(M,$)=>this.metaUpdated(M,$),isReadOnly:this.isReadOnly,store:this.$store,storeName:this.storeName}}},methods:{updated(M,$){this.$emit("updated",this.index,{...this.values,[M]:$})},metaUpdated(M,$){this.$emit("meta-updated",{...this.meta,[M]:$})},previewUpdated(M,$){this.$emit("previews-updated",this.fieldPreviews={...this.fieldPreviews,[M]:$})},destroy(){confirm(__("Are you sure?"))&&this.$emit("removed")},toggle(){this.isHidden?this.expand():this.collapse()},toggleEnabledState(){this.updated("enabled",!this.values.enabled)},toggleCollapsedState(){this.collapsed?this.expand():this.collapse()},collapse(){this.$emit("collapsed")},expand(){this.$emit("expanded")},duplicate(){this.$emit("duplicated")},fieldPath(M){return`${this.fieldPathPrefix}.${this.index}.${M.handle}`}}};var _sfc_render$1e=function M(){var $=this,I=$._self._c;return I("div",{class:$.sortableItemClass},[$._t("picker"),I("div",{staticClass:"replicator-set",class:{"has-error":this.hasError},attrs:{"data-type":$.config.handle}},[I("div",{staticClass:"replicator-set-header",class:{"p-2":$.isReadOnly,collapsed:$.collapsed,invalid:$.isInvalid}},[$.isReadOnly?$._e():I("div",{staticClass:"item-move sortable-handle",class:$.sortableHandleClass}),I("div",{staticClass:"flex items-center flex-1 p-2 replicator-set-header-inner cursor-pointer",class:{"flex items-center":$.collapsed},on:{click:$.toggleCollapsedState}},[I("label",{staticClass:"text-xs rtl:ml-2 ltr:mr-2 cursor-pointer"},[$.isSetGroupVisible?I("span",[$._v(" "+$._s($.__($.setGroup.display))+" "),I("svg-icon",{staticClass:"w-4",attrs:{name:"micro/chevron-right"}})],1):$._e(),$._v(" "+$._s($.display||$.config.handle)+" ")]),$.config.instructions&&!$.collapsed?I("div",{staticClass:"flex items-center"},[I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:$.$options.filters.markdown($.__($.config.instructions)),html:!0},expression:"{ content: $options.filters.markdown(__(config.instructions)), html:true }"}],staticClass:"text-gray-700 hover:text-gray-800 h-3 w-3 text-xs",attrs:{name:"micro/circle-help"}})],1):$._e(),I("div",{directives:[{name:"show",rawName:"v-show",value:$.collapsed,expression:"collapsed"}],staticClass:"flex-1 min-w-0 w-1 rtl:pl-8 ltr:pr-8"},[I("div",{staticClass:"help-block mb-0 whitespace-nowrap overflow-hidden text-ellipsis",domProps:{innerHTML:$._s($.previewText)}})])]),$.isReadOnly?$._e():I("div",{staticClass:"replicator-set-controls"},[I("toggle-fieldtype",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:$.values.enabled?$.__("Included in output"):$.__("Hidden from output"),expression:"(values.enabled) ? __('Included in output') : __('Hidden from output')",modifiers:{top:!0}}],staticClass:"toggle-sm rtl:ml-2 ltr:mr-2",attrs:{handle:"set-enabled",value:$.values.enabled},on:{input:$.toggleEnabledState}}),I("dropdown-list",[$.fieldActions.length?I("dropdown-actions",{attrs:{actions:$.fieldActions}}):$._e(),I("div",{staticClass:"divider"}),I("dropdown-item",{attrs:{text:$.__($.collapsed?$.__("Expand Set"):$.__("Collapse Set"))},on:{click:$.toggleCollapsedState}}),$.canAddSet?I("dropdown-item",{attrs:{text:$.__("Duplicate Set")},on:{click:$.duplicate}}):$._e(),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete Set")},on:{click:$.destroy}})],1)],1)]),I("div",{directives:[{name:"show",rawName:"v-show",value:!$.collapsed,expression:"!collapsed"}],staticClass:"replicator-set-body publish-fields @container"},$._l($.fields,function(N){return I("set-field",{directives:[{name:"show",rawName:"v-show",value:$.showField(N,$.fieldPath(N)),expression:"showField(field, fieldPath(field))"}],key:N.handle,attrs:{field:N,meta:$.meta[N.handle],value:$.values[N.handle],"parent-name":$.parentName,"set-index":$.index,"field-path":$.fieldPath(N),"read-only":$.isReadOnly,"show-field-previews":$.showFieldPreviews},on:{updated:function(B){return $.updated(N.handle,B)},"meta-updated":function(B){return $.metaUpdated(N.handle,B)},focus:function(B){return $.$emit("focus")},blur:function(B){return $.$emit("blur")},"replicator-preview-updated":function(B){return $.previewUpdated(N.handle,B)}}})}),1)])],2)},_sfc_staticRenderFns$1e=[],__component__$1f=normalizeComponent$2(_sfc_main$1e,_sfc_render$1e,_sfc_staticRenderFns$1e,!1,null,"60efcf14",null,null);const ReplicatorSet=__component__$1f.exports,_sfc_main$1d={components:{SetPicker},props:{sets:Array,groups:Array,index:Number,last:Boolean,enabled:{type:Boolean,default:!0},label:String},methods:{addSet(M){this.$emit("added",M,this.index)},addSetButtonClicked(){this.sets.length===1&&this.addSet(this.sets[0].handle)}}};var _sfc_render$1d=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"replicator-set-picker"},[I("set-picker",{attrs:{enabled:$.enabled,sets:$.groups},on:{added:$.addSet},scopedSlots:$._u([{key:"trigger",fn:function(){var N;return[I("div",{staticClass:"replicator-set-picker-button-wrapper flex items-center"},[$.enabled?I("button",{staticClass:"btn-round flex items-center justify-center",class:{"h-5 w-5":!$.last,"mr-2":((N=$.label)==null?void 0:N.length)>0},on:{click:$.addSetButtonClicked}},[I("svg-icon",{class:{"w-3 h-3 text-gray-800 dark:text-dark-175 group-hover:text-black dark:group-hover:dark-text-100":$.last,"w-2 h-2 text-gray-700 dark:text-dark-200 group-hover:text-black dark:group-hover:dark-text-100 transition duration-150":!$.last},attrs:{name:"micro/plus"}})],1):$._e(),I("span",{staticClass:"cursor-pointer text-sm dark:text-dark-175",on:{click:$.addSetButtonClicked}},[$._v($._s($.__($.label)))])])]},proxy:!0}])})],1)},_sfc_staticRenderFns$1d=[],__component__$1e=normalizeComponent$2(_sfc_main$1d,_sfc_render$1d,_sfc_staticRenderFns$1d,!1,null,null,null,null);const AddSetButton=__component__$1e.exports,_sfc_main$1c={mixins:[Fieldtype,ManagesSetMeta],components:{ReplicatorSet,SortableList,AddSetButton},inject:["storeName"],data(){return{focused:!1,collapsed:clone(this.meta.collapsed),previews:this.meta.previews,fullScreenMode:!1,provide:{storeName:this.storeName,replicatorSets:this.config.sets}}},computed:{canAddSet(){return this.isReadOnly?!1:!this.config.max_sets||this.value.length<this.config.max_sets},setConfigs(){return reduce(this.groupConfigs,(M,$)=>M.concat($.sets),[])},groupConfigs(){return this.config.sets},sortableItemClass(){return`${this.name}-sortable-item`},sortableHandleClass(){return`${this.name}-sortable-handle`},storeState(){return this.$store.state.publish[this.storeName]||{}},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return`${__(this.config.display)}: ${__n(":count set|:count sets",this.value.length)}`},internalFieldActions(){return[{title:__("Expand All Sets"),icon:"arrows-horizontal-expand",quick:!0,visibleWhenReadOnly:!0,run:this.expandAll},{title:__("Collapse All Sets"),icon:"arrows-horizontal-collapse",quick:!0,visibleWhenReadOnly:!0,run:this.collapseAll},{title:__("Toggle Fullscreen Mode"),icon:({vm:M})=>M.fullScreenMode?"shrink-all":"expand-bold",quick:!0,visibleWhenReadOnly:!0,run:this.toggleFullscreen}]}},methods:{setConfig(M){return _.find(this.setConfigs,{handle:M})||{}},updated(M,$){this.update([...this.value.slice(0,M),$,...this.value.slice(M+1)])},removed(M,$){this.removeSetMeta(M._id),this.update([...this.value.slice(0,$),...this.value.slice($+1)])},sorted(M){this.update(M)},addSet(M,$){const I={...this.meta.defaults[M],_id:uniqid$1(),type:M,enabled:!0};this.updateSetPreviews(I._id,{}),this.updateSetMeta(I._id,this.meta.new[M]),this.update([...this.value.slice(0,$),I,...this.value.slice($)]),this.expandSet(I._id)},duplicateSet(M){const $=this.value.findIndex(B=>B._id===M),N={...this.value[$],_id:uniqid$1()};this.updateSetPreviews(N._id,{}),this.updateSetMeta(N._id,this.meta.existing[M]),this.update([...this.value.slice(0,$+1),N,...this.value.slice($+1)]),this.expandSet(N._id)},updateSetPreviews(M,$){this.previews[M]=$},collapseSet(M){this.collapsed.includes(M)||this.collapsed.push(M)},expandSet(M){if(this.config.collapse==="accordion"){this.collapsed=this.value.map(I=>I._id).filter(I=>I!==M);return}if(this.collapsed.includes(M)){var $=this.collapsed.indexOf(M);this.collapsed.splice($,1)}},collapseAll(){this.collapsed=_.pluck(this.value,"_id")},expandAll(){this.collapsed=[]},toggleFullscreen(){this.fullScreenMode=!this.fullScreenMode},blurred(){setTimeout(()=>{this.$el.contains(document.activeElement)||(this.focused=!1)},1)},setHasError(M){const $=`${this.fieldPathPrefix||this.handle}.${M}.`;return Object.keys(this.storeState.errors??[]).some(I=>I.startsWith($))}},mounted(){this.config.collapse&&this.collapseAll()},watch:{focused(M,$){if(M!==$){if(M)return this.$emit("focus");setTimeout(()=>{this.$el.contains(document.activeElement)||this.$emit("blur")},1)}},collapsed(M){this.updateMeta({...this.meta,collapsed:clone(M)})},previews:{deep:!0,handler(M){if(JSON.stringify(this.meta.previews)===JSON.stringify(M))return;const $=this.meta;$.previews=M,this.updateMeta($)}}}};var _sfc_render$1c=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"replicator-fullscreen",disabled:!$.fullScreenMode,provide:$.provide}},[I("div",{class:{"publish-fields":$.fullScreenMode}},[I("div",{class:{wrapperClasses:$.fullScreenMode}},[I("div",{staticClass:"replicator-fieldtype-container",class:{"replicator-fullscreen bg-gray-200 dark:bg-dark-700":$.fullScreenMode}},[$.fullScreenMode?I("publish-field-fullscreen-header",{attrs:{title:$.config.display,"field-actions":$.fieldActions},on:{close:$.toggleFullscreen}}):$._e(),I("section",{class:{"mt-14 p-4 bg-gray-200 dark:bg-dark-700":$.fullScreenMode}},[I("sortable-list",{attrs:{value:$.value,vertical:!0,"item-class":$.sortableItemClass,"handle-class":$.sortableHandleClass,"append-to":"body","constrain-dimensions":""},on:{input:function(N){return $.sorted(N)},dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")}},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"replicator-set-container"},$._l($.value,function(N,B){return I("replicator-set",{key:N._id,attrs:{index:B,values:N,meta:$.meta.existing[N._id],config:$.setConfig(N.type),"parent-name":$.name,"sortable-item-class":$.sortableItemClass,"sortable-handle-class":$.sortableHandleClass,"is-read-only":$.isReadOnly,collapsed:$.collapsed.includes(N._id),"field-path-prefix":$.fieldPathPrefix||$.handle,"has-error":$.setHasError(B),previews:$.previews[N._id],"show-field-previews":$.config.previews,"can-add-set":$.canAddSet},on:{collapsed:function(j){return $.collapseSet(N._id)},expanded:function(j){return $.expandSet(N._id)},duplicated:function(j){return $.duplicateSet(N._id)},updated:$.updated,"meta-updated":function(j){return $.updateSetMeta(N._id,j)},removed:function(j){return $.removed(N,B)},focus:function(j){$.focused=!0},blur:$.blurred,"previews-updated":function(j){return $.updateSetPreviews(N._id,j)}},scopedSlots:$._u([{key:"picker",fn:function(){return[I("add-set-button",{staticClass:"between",attrs:{groups:$.groupConfigs,sets:$.setConfigs,index:B,enabled:$.canAddSet},on:{added:$.addSet}})]},proxy:!0}],null,!0)})}),1)}}])}),$.canAddSet?I("add-set-button",{staticClass:"mt-3",attrs:{last:!0,groups:$.groupConfigs,sets:$.setConfigs,index:$.value.length,label:$.config.button_label},on:{added:$.addSet}}):$._e()],1)],1)])])])},_sfc_staticRenderFns$1c=[],__component__$1d=normalizeComponent$2(_sfc_main$1c,_sfc_render$1c,_sfc_staticRenderFns$1c,!1,null,null,null,null);const Replicator=__component__$1d.exports,_sfc_main$1b={mixins:[IndexFieldtype]};var _sfc_render$1b=function M(){var $=this,I=$._self._c;return $.value?I("div",[$._v(" "+$._s($.__n(":count set|:count sets",$.value))+" ")]):$._e()},_sfc_staticRenderFns$1b=[],__component__$1c=normalizeComponent$2(_sfc_main$1b,_sfc_render$1b,_sfc_staticRenderFns$1b,!1,null,null,null,null);const ReplicatorIndex=__component__$1c.exports,_sfc_main$1a={mixins:[Fieldtype],render(){return""}},_sfc_render$1a=null,_sfc_staticRenderFns$1a=null;var __component__$1b=normalizeComponent$2(_sfc_main$1a,_sfc_render$1a,_sfc_staticRenderFns$1a,!1,null,null,null,null);const SectionFieldtype=__component__$1b.exports,SelectFieldtype_vue_vue_type_style_index_0_scoped_83acfd67_lang="",_sfc_main$19={mixins:[Fieldtype,HasInputOptions,PositionsSelectOptions],components:{SortableList},computed:{selectedOptions(){let M=this.value===null?[]:this.value;return(typeof M=="string"||typeof M=="number")&&(M=[M]),M.map($=>_.findWhere(this.options,{value:$})||{value:$,label:$})},options(){return this.normalizeInputOptions(this.meta.options||this.config.options)},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return this.selectedOptions.map(M=>M.label).join(", ")},resetOnOptionsChange(){return this.config.reset_on_options_change!==!0?!1:(M,$,I)=>{let N=M.map(B=>B.value);return!I.some(B=>N.includes(B.value))}},limitReached(){return this.config.max_items?this.currentLength>=this.config.max_items:!1},limitExceeded(){return this.config.max_items?this.currentLength>this.config.max_items:!1},currentLength(){return this.value?typeof this.value=="string"?1:this.value.length:0},limitIndicatorColor(){return this.limitExceeded?"text-red-500":this.limitReached?"text-green-600":"text-gray"}},methods:{focus(){this.$refs.input.focus()},vueSelectUpdated(M){this.config.multiple?this.update(M.map($=>$.value)):M?this.update(M.value):this.update(null)}}};var _sfc_render$19=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex"},[I("v-select",{ref:"input",staticClass:"flex-1",attrs:{"input-id":$.fieldId,"append-to-body":"","calculate-position":$.positionOptions,name:$.name,clearable:$.config.clearable,disabled:$.config.disabled||$.isReadOnly||$.config.multiple&&$.limitReached,options:$.options,placeholder:$.__($.config.placeholder),searchable:$.config.searchable||$.config.taggable,taggable:$.config.taggable,"push-tags":$.config.push_tags,multiple:$.config.multiple,"reset-on-options-change":$.resetOnOptionsChange,"close-on-select":!0,value:$.selectedOptions,"create-option":N=>({value:N,label:N})},on:{input:$.vueSelectUpdated,focus:function(N){return $.$emit("focus")},"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([$.config.multiple?{key:"selected-option-container",fn:function(){return[I("i",{staticClass:"hidden"})]},proxy:!0}:null,$.config.multiple?{key:"search",fn:function({events:N,attributes:B}){return[I("input",$._g($._b({staticClass:"vs__search",attrs:{placeholder:$.__($.config.placeholder),type:"search"}},"input",B,!1),N))]}}:null,{key:"option",fn:function({label:N}){return[$.config.label_html?I("div",{domProps:{innerHTML:$._s(N)}}):void 0]}},{key:"selected-option",fn:function({label:N}){return[$.config.label_html?I("div",{domProps:{innerHTML:$._s(N)}}):void 0]}},{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0},$.config.multiple?{key:"footer",fn:function({deselect:N}){return[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",value:$.value,distance:5,mirror:!1},on:{input:$.update}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap"},$._l($.selectedOptions,function(B){return I("span",{key:B.value,staticClass:"vs__selected mt-2 sortable-item"},[$.config.label_html?I("div",{domProps:{innerHTML:$._s(B.label)}}):[$._v($._s($.__(B.label)))],$.readOnly?I("button",{staticClass:"vs__deselect",attrs:{type:"button"}},[I("span",{staticClass:"text-gray-500"},[$._v("×")])]):I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Deselect option")},on:{click:function(j){return N(B)}}},[I("span",[$._v("×")])])],2)}),0)])]}}:null],null,!0)}),$.config.max_items?I("div",{staticClass:"text-xs rtl:mr-2 ltr:ml-2 mt-3",class:$.limitIndicatorColor},[I("span",{domProps:{textContent:$._s($.currentLength)}}),$._v("/"),I("span",{domProps:{textContent:$._s($.config.max_items)}})]):$._e()],1)},_sfc_staticRenderFns$19=[],__component__$1a=normalizeComponent$2(_sfc_main$19,_sfc_render$19,_sfc_staticRenderFns$19,!1,null,"83acfd67",null,null);const SelectFieldtype=__component__$1a.exports,_sfc_main$18={props:{tab:{type:Object,required:!0},currentTab:{type:String,required:!0},showInstructions:{type:Boolean,default:!1},editText:{type:String}},data(){return{handle:this.tab.handle,display:this.tab.display,instructions:this.tab.instructions,icon:this.tab.icon,editing:!1,handleSyncedWithDisplay:!1}},created(){(!this.handle||this.handle=="new_tab"||this.handle=="new_set_group")&&(this.handleSyncedWithDisplay=!0)},computed:{isActive(){return this.currentTab===this.tab._id},iconBaseDirectory(){return this.$config.get("setIconsDirectory")},iconSubFolder(){return this.$config.get("setIconsFolder")}},methods:{edit(){this.editing=!0},editConfirmed(){this.handle||(this.handle=snake_case(this.display)),this.$emit("updated",{...this.tab,handle:this.handle,display:this.display,instructions:this.instructions,icon:this.icon}),this.editing=!1},editCancelled(){this.editing=!1,this.handle=this.tab.handle,this.display=this.tab.display},fieldUpdated(M,$){M==="display"&&this.handleSyncedWithDisplay&&(this.handle=snake_case($)),M==="handle"&&(this.handleSyncedWithDisplay=!1),this[M]=$},remove(){this.$emit("removed")},iconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:null}}};var _sfc_render$18=function M(){var $=this,I=$._self._c;return I("button",{staticClass:"blueprint-tab tab-button",class:{active:$.isActive},attrs:{role:"tab","aria-controls":`tab-panel-${$.tab._id}`,"aria-selected":$.isActive,id:`tab-${$.tab._id}`,tabindex:$.isActive?0:-1},on:{click:function(N){return $.$emit("selected")},mouseenter:function(N){return $.$emit("mouseenter")}}},[$.tab.icon?I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-1 ltr:mr-1",attrs:{name:$.iconName($.tab.icon),directory:$.iconBaseDirectory}}):$._e(),$._v(" "+$._s($.__($.tab.display))+" "),$.isActive?I("dropdown-list",{ref:"dropdown",staticClass:"rtl:text-right ltr:text-left",attrs:{placement:"bottom-start"},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"rtl:mr-2 ltr:ml-2 hover:text-gray-900 dark:hover:text-gray-400 active:text-gray-900",attrs:{"aria-label":$.__("Open Dropdown")}},[I("svg-icon",{staticClass:"w-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!1,537744276)},[I("dropdown-item",{domProps:{textContent:$._s($.__("Edit"))},on:{click:$.edit}}),I("dropdown-item",{staticClass:"warning",domProps:{textContent:$._s($.__("Delete"))},on:{click:$.remove}})],1):$._e(),$.editing?I("confirmation-modal",{attrs:{title:$.editText},on:{opened:function(N){return $.$refs.title.focus()},confirm:$.editConfirmed,cancel:$.editCancelled}},[I("div",{staticClass:"publish-fields @container"},[I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Title"))}}),I("input",{ref:"title",staticClass:"input-text",attrs:{type:"text"},domProps:{value:$.display},on:{input:function(N){return $.fieldUpdated("display",N.target.value)}}})]),I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Handle"))}}),I("input",{staticClass:"input-text font-mono text-sm",attrs:{type:"text"},domProps:{value:$.handle},on:{input:function(N){return $.fieldUpdated("handle",N.target.value)}}})]),$.showInstructions?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Instructions"))}}),I("input",{staticClass:"input-text text-sm",attrs:{type:"text"},domProps:{value:$.instructions},on:{input:function(N){return $.fieldUpdated("instructions",N.target.value)}}})]):$._e(),$.showInstructions?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Icon"))}}),I("publish-field-meta",{attrs:{config:{handle:"icon",type:"icon",directory:this.iconBaseDirectory,folder:this.iconSubFolder},"initial-value":$.icon},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return[j?$._e():I("icon-fieldtype",{attrs:{handle:"icon",meta:N,value:B},on:{input:function(U){return $.fieldUpdated("icon",U)}}})]}}],null,!1,1777112979)})],1):$._e()])]):$._e()],1)},_sfc_staticRenderFns$18=[],__component__$19=normalizeComponent$2(_sfc_main$18,_sfc_render$18,_sfc_staticRenderFns$18,!1,null,null,null,null);const Tab=__component__$19.exports,_sfc_main$17={mixins:[CanDefineLocalizable],inject:{suggestableConditionFieldsProvider:{default:null}},components:{Fields},props:{tabId:{type:String},section:{type:Object,required:!0},showHandleField:{type:Boolean,default:!1},showHideField:{type:Boolean,default:!1},editText:{type:String}},data(){return{editingSection:!1,editingField:null,handleSyncedWithDisplay:!1}},computed:{suggestableConditionFields(){var M;return((M=this.suggestableConditionFieldsProvider)==null?void 0:M.suggestableFields(this))||[]},iconBaseDirectory(){return this.$config.get("setIconsDirectory")},iconSubFolder(){return this.$config.get("setIconsFolder")}},watch:{section:{deep:!0,handler(M){this.$emit("updated",M)}},"editingSection.display":function(M){this.editingSection&&this.handleSyncedWithDisplay&&(this.editingSection.handle=snake_case(M))}},created(){(!this.section.handle||this.section.handle=="new_section"||this.section.handle=="new_set")&&(this.handleSyncedWithDisplay=!0)},methods:{fieldLinked(M){this.section.fields.push(M),this.$toast.success(__("Field added")),M.type==="reference"&&this.$nextTick(()=>this.editingField=M._id)},fieldCreated(M){this.section.fields.push(M)},fieldUpdated(M,$){this.section.fields.splice(M,1,$)},deleteField(M){this.section.fields.splice(M,1)},edit(){this.editingSection={display:this.section.display,handle:this.section.handle,instructions:this.section.instructions,icon:this.section.icon,hide:this.section.hide}},editConfirmed(){this.editingSection.handle||(this.editingSection.handle=snake_case(this.editingSection.display)),this.$emit("updated",{...this.section,...this.editingSection}),this.editingSection=!1},editCancelled(){this.editingSection=!1},iconName(M){return M?this.iconSubFolder?this.iconSubFolder+"/"+M:M:"folder-generic"}}};var _sfc_render$17=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-section @container"},[I("div",{staticClass:"blueprint-section-card card dark:bg-dark-800 p-0 h-full flex rounded-t flex-col"},[I("div",{staticClass:"bg-gray-200 dark:bg-dark-600 border-b dark:border-none text-sm flex rounded-t"},[I("div",{staticClass:"blueprint-drag-handle blueprint-section-drag-handle w-4 ltr:border-r rtl:border-l dark:border-dark-900"}),I("div",{staticClass:"p-2 flex-1 flex items-center"},[I("a",{staticClass:"flex items-center flex-1 group",on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4 w-4 rtl:ml-2 ltr:mr-2 text-gray-700 dark:text-dark-150 group-hover:text-blue-500 dark:group-hover:text-dark-blue-100",attrs:{name:$.iconName($.section.icon),directory:$.iconBaseDirectory}}),I("div",{staticClass:"rtl:ml-2 ltr:mr-2",domProps:{textContent:$._s($.__($.section.display))}})],1),I("button",{staticClass:"flex items-center text-gray-700 dark:text-dark-175 hover:text-gray-950 dark:hover:text-dark-100 rtl:ml-3 ltr:mr-3",on:{click:$.edit}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"pencil"}})],1),I("button",{staticClass:"flex items-center text-gray-700 dark:text-dark-175 hover:text-gray-950 dark:hover:text-dark-100",on:{click:function(N){return N.preventDefault(),$.$emit("deleted")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"micro/trash"}})],1)])]),$.editingSection?I("confirmation-modal",{attrs:{title:$.editText},on:{opened:function(N){return $.$refs.displayInput.select()},confirm:$.editConfirmed,cancel:$.editCancelled}},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Display"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.editingSection.display,expression:"editingSection.display"}],ref:"displayInput",staticClass:"input-text",attrs:{type:"text"},domProps:{value:$.editingSection.display},on:{input:function(N){N.target.composing||$.$set($.editingSection,"display",N.target.value)}}})]),$.showHandleField?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Handle"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.editingSection.handle,expression:"editingSection.handle"}],staticClass:"input-text font-mono text-sm",attrs:{type:"text"},domProps:{value:$.editingSection.handle},on:{input:[function(N){N.target.composing||$.$set($.editingSection,"handle",N.target.value)},function(N){$.handleSyncedWithDisplay=!1}]}})]):$._e(),I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Instructions"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.editingSection.instructions,expression:"editingSection.instructions"}],staticClass:"input-text",attrs:{type:"text"},domProps:{value:$.editingSection.instructions},on:{input:function(N){N.target.composing||$.$set($.editingSection,"instructions",N.target.value)}}})]),$.showHandleField?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Icon"))}}),I("publish-field-meta",{attrs:{config:{handle:"icon",type:"icon",directory:this.iconBaseDirectory,folder:this.iconSubFolder},"initial-value":$.editingSection.icon},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j}){return[j?$._e():I("icon-fieldtype",{attrs:{handle:"icon",meta:N,value:B},on:{input:function(U){$.editingSection.icon=U}}})]}}],null,!1,2591874917)})],1):$._e(),$.showHideField?I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("Hidden"))}}),I("toggle-input",{model:{value:$.editingSection.hide,callback:function(N){$.$set($.editingSection,"hide",N)},expression:"editingSection.hide"}})],1):$._e()])]):$._e(),I("fields",{staticClass:"p-4",attrs:{"tab-id":$.tabId,"section-id":$.section._id,fields:$.section.fields,"editing-field":$.editingField,"suggestable-condition-fields":$.suggestableConditionFields,"can-define-localizable":$.canDefineLocalizable},on:{"field-created":$.fieldCreated,"field-updated":$.fieldUpdated,"field-deleted":$.deleteField,"field-linked":$.fieldLinked,"field-editing":function(N){$.editingField=N},"editor-closed":function(N){$.editingField=null}},scopedSlots:$._u([{key:"empty-state",fn:function(){return[I("div",{staticClass:"text-2xs text-gray-600 dark:text-dark-150 text-center border dark:border-dark-200 border-dashed rounded mb-2 p-2",domProps:{textContent:$._s($.__("Add or drag fields here"))}})]},proxy:!0}])})],1)])},_sfc_staticRenderFns$17=[],__component__$18=normalizeComponent$2(_sfc_main$17,_sfc_render$17,_sfc_staticRenderFns$17,!1,null,null,null,null);const BlueprintSection=__component__$18.exports,_sfc_main$16={mixins:[CanDefineLocalizable],components:{BlueprintSection},props:{tabId:{type:String},initialSections:{type:Array,required:!0},addSectionText:{type:String,default:()=>__("Add Section")},editSectionText:{type:String,default:()=>__("Edit Section")},newSectionText:{type:String,default:()=>__("New Section")},singleSection:{type:Boolean,default:!1},requireSection:{type:Boolean,default:!0},showSectionHandleField:{type:Boolean,default:!1},showSectionHideField:{type:Boolean,default:!1}},data(){return{sections:this.initialSections}},watch:{sections(M){this.$emit("updated",M)}},methods:{addSection(){const M={_id:uniqid$1(),display:this.newSectionText,instructions:null,icon:null,hide:null,handle:snake_case(this.newSectionText),fields:[]};return this.sections.push(M),M},addAndEditSection(){const M=this.addSection();this.$nextTick(()=>{this.$refs.section.find($=>$.section._id===M._id).edit()})},deleteSection(M){this.sections.splice(M,1),this.ensureSection()},updateSection(M,$){this.sections.splice(M,1,$)},ensureSection(){this.requireSection&&this.sections.length===0&&this.addSection()}}};var _sfc_render$16=function M(){var $=this,I=$._self._c;return I("div",[I("div",{ref:"sections",staticClass:"blueprint-sections flex flex-wrap -mx-2 outline-none",attrs:{"data-tab":$.tabId}},[$._l($.sections,function(N,B){return I("blueprint-section",{key:N._id,ref:"section",refInFor:!0,attrs:{section:N,"can-define-localizable":$.canDefineLocalizable,"tab-id":$.tabId,"show-handle-field":$.showSectionHandleField,"show-hide-field":$.showSectionHideField,"edit-text":$.editSectionText},on:{updated:function(j){return $.updateSection(B,j)},deleted:function(j){return $.deleteSection(B)}}})}),I("div",{staticClass:"blueprint-add-section-container w-full"},[I("button",{staticClass:"blueprint-add-section-button outline-none",on:{click:$.addAndEditSection}},[I("div",{staticClass:"text-center flex items-center leading-none"},[I("svg-icon",{staticClass:"h-3 w-3 rtl:ml-2 ltr:mr-2",attrs:{name:"micro/plus"}}),I("div",{domProps:{textContent:$._s($.addSectionText)}})],1),I("div",{staticClass:"blueprint-section-draggable-zone outline-none",attrs:{"data-tab":$.tabId}})])])],2)])},_sfc_staticRenderFns$16=[],__component__$17=normalizeComponent$2(_sfc_main$16,_sfc_render$16,_sfc_staticRenderFns$16,!1,null,null,null,null);const Sections=__component__$17.exports,_sfc_main$15={mixins:[CanDefineLocalizable],components:{Sections},props:{tab:{type:Object},showSectionHandleField:{type:Boolean,default:!1},showSectionHideField:{type:Boolean,default:!1},addSectionText:{type:String},editSectionText:{type:String},newSectionText:{type:String}},methods:{addSection(){return this.$refs.sections.addSection()},sectionsUpdated(M){let $={...this.tab,sections:M};this.$emit("updated",$)}}};var _sfc_render$15=function M(){var $=this,I=$._self._c;return I("div",{attrs:{role:"tabpanel","aria-labelledby":`tab-${$.tab._id}`,id:`tab-panel-${$.tab._id}`}},[I("sections",{ref:"sections",attrs:{"tab-id":$.tab._id,"initial-sections":$.tab.sections,"new-section-text":$.newSectionText,"add-section-text":$.addSectionText,"edit-section-text":$.editSectionText,"show-section-handle-field":$.showSectionHandleField,"show-section-hide-field":$.showSectionHideField,"can-define-localizable":$.canDefineLocalizable},on:{updated:function(N){return $.sectionsUpdated(N)}}})],1)},_sfc_staticRenderFns$15=[],__component__$16=normalizeComponent$2(_sfc_main$15,_sfc_render$15,_sfc_staticRenderFns$15,!1,null,null,null,null);const TabContent=__component__$16.exports,_sfc_main$14={mixins:[CanDefineLocalizable],components:{Tab,TabContent},props:{initialTabs:{type:Array,required:!0},addSectionText:{type:String},editSectionText:{type:String},newSectionText:{type:String},addTabText:{type:String,default:()=>__("Add Tab")},editTabText:{type:String,default:()=>__("Edit Tab")},newTabText:{type:String,default:()=>__("New Tab")},singleTab:{type:Boolean,default:!1},requireSection:{type:Boolean,default:!0},showTabInstructionsField:{type:Boolean,default:!1},showSectionHandleField:{type:Boolean,default:!1},showSectionHideField:{type:Boolean,default:!1},errors:{type:Array}},data(){return{tabs:this.initialTabs,currentTab:this.initialTabs.length?this.initialTabs[0]._id:null,lastInteractedTab:null,hiddenTabs:[],tabsAreScrolled:!1,canScrollLeft:!1,canScrollRight:!1,sortableTabs:null,sortableSections:null,sortableFields:null}},watch:{tabs(M){this.$emit("updated",M),this.makeSortable()}},mounted(){this.ensureTab(),this.makeSortable()},destroyed(){this.sortableTabs&&this.sortableTabs.destroy(),this.sortableSections&&this.sortableSections.destroy(),this.sortableFields&&this.sortableFields.destroy()},methods:{ensureTab(){this.requireSection&&this.tabs.length===0&&this.addTab()},makeSortable(){this.singleTab||this.makeTabsSortable(),this.makeSectionsSortable(),this.makeFieldsSortable()},makeTabsSortable(){this.sortableTabs&&this.sortableTabs.destroy(),this.sortableTabs=new draggable_bundleExports.Sortable(this.$refs.tabs,{draggable:".blueprint-tab",mirror:{constrainDimensions:!0},swapAnimation:{horizontal:!0},plugins:[draggable_bundleExports.Plugins.SwapAnimation],distance:10}).on("sortable:stop",M=>{this.tabs.splice(M.newIndex,0,this.tabs.splice(M.oldIndex,1)[0])}).on("mirror:create",M=>M.cancel())},makeSectionsSortable(){this.sortableSections&&this.sortableSections.destroy(),this.sortableSections=new draggable_bundleExports.Sortable(this.$el.querySelectorAll(".blueprint-sections"),{draggable:".blueprint-section",handle:".blueprint-section-drag-handle",mirror:{constrainDimensions:!0,appendTo:"body"}}).on("drag:start",M=>this.lastInteractedTab=this.currentTab).on("drag:stop",M=>this.lastInteractedTab=null).on("sortable:sort",M=>this.lastInteractedTab=this.currentTab).on("sortable:stop",M=>this.sectionHasBeenDropped(M))},makeFieldsSortable(){this.sortableFields&&this.sortableFields.destroy(),this.sortableFields=new draggable_bundleExports.Sortable(this.$el.querySelectorAll(".blueprint-section-draggable-zone"),{draggable:".blueprint-section-field",handle:".blueprint-drag-handle",mirror:{constrainDimensions:!0,appendTo:"body"}}).on("drag:start",M=>this.lastInteractedTab=this.currentTab).on("drag:stop",M=>this.lastInteractedTab=null).on("sortable:stop",M=>this.fieldHasBeenDropped(M))},sectionHasBeenDropped(M){const $=M.oldContainer.dataset.tab,I=M.oldIndex;let N=M.newContainer.dataset.tab,B=M.newIndex;if(this.lastInteractedTab!==this.currentTab&&this.currentTab!==N&&(N=this.currentTab,B=0),$!==N){const U=this.tabs.find(K=>K._id===$),q=this.tabs.find(K=>K._id===N),Y=U.sections.splice(I,1)[0];q.sections.splice(B,0,Y),this.updateTab($,U),this.updateTab(N,q)}else{const U=this.tabs.find(q=>q._id===$);U.sections.splice(B,0,U.sections.splice(I,1)[0]),this.updateTab($,U)}},fieldHasBeenDropped(M){const $=M.oldContainer.dataset.tab;let I=M.newContainer.dataset.tab,N=this.tabs.find(K=>K._id===I),B=M.newIndex,j;M.newContainer.parentElement.classList.contains("blueprint-add-section-button")?j=this.$refs.tabContent.find(K=>K.tab._id===I).addSection():j=N.sections.find(K=>K._id===M.newContainer.dataset.section),this.lastInteractedTab!==this.currentTab&&this.currentTab!==I&&(I=this.currentTab,N=this.tabs.find(K=>K._id===I),j=N.sections[0],B=0);const U=this.tabs.find(K=>K._id===$),Y=U.sections.find(K=>K._id===M.oldContainer.dataset.section).fields.splice(M.oldIndex,1)[0];j.fields.splice(B,0,Y),this.updateTab($,U),this.updateTab(I,N),this.$nextTick(()=>this.makeFieldsSortable())},updateTab(M,$){const I=this.tabs.findIndex(N=>N._id===M);this.tabs.splice(I,1,$)},selectTab(M){this.currentTab=M},mouseEnteredTab(M){this.lastInteractedTab&&this.selectTab(M)},addTab(){const M=uniqid$1();this.tabs.push({_id:M,display:this.newTabText,handle:snake_case(this.newTabText),instructions:null,icon:null,sections:[]}),this.selectTab(M),this.$nextTick(()=>this.$refs.tabContent.find($=>$.tab._id===M).addSection())},addAndEditTab(){this.addTab(),this.$nextTick(()=>this.$refs.tab.find(M=>M.tab._id===this.currentTab).edit())},removeTab(M){this.tabs=this.tabs.filter($=>$._id!==M),this.selectTab(this.tabs.length?this.tabs[0]._id:null),this.ensureTab()}}};var _sfc_render$14=function M(){var $=this,I=$._self._c;return I("div",[!$.singleTab&&$.tabs.length>0?I("div",{staticClass:"tabs-container relative"},[I("div",{ref:"tabs",staticClass:"tabs flex-1 flex space-x-3 rtl:space-x-reverse overflow-auto rtl:pl-6 ltr:pr-6",attrs:{role:"tablist"}},[$._l($.tabs,function(N){return I("tab",{key:N._id,ref:"tab",refInFor:!0,attrs:{tab:N,"current-tab":$.currentTab,"show-instructions":$.showTabInstructionsField,"edit-text":$.editTabText},on:{selected:function(B){return $.selectTab(N._id)},removed:function(B){return $.removeTab(N._id)},updated:function(B){return $.updateTab(N._id,B)},mouseenter:function(B){return $.mouseEnteredTab(N._id)}}})}),$.canScrollLeft?I("div",{staticClass:"fade-left"}):$._e()],2),I("div",{staticClass:"fade-right rtl:left-10 ltr:right-10"}),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.addTabText,expression:"addTabText"}],staticClass:"btn-round rtl:mr-2 ltr:ml-2 flex items-center justify-center relative top-1",on:{click:$.addAndEditTab}},[I("svg-icon",{staticClass:"w-3 h-3",attrs:{name:"add"}})],1)]):$._e(),!$.singleTab&&$.tabs.length===0?I("button",{staticClass:"btn",domProps:{textContent:$._s($.addTabText)},on:{click:$.addAndEditTab}}):$._e(),$.errors?I("div",{staticClass:"-mt-2"},$._l($.errors,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e(),$._l($.tabs,function(N){return I("tab-content",{directives:[{name:"show",rawName:"v-show",value:$.currentTab===N._id,expression:"currentTab === tab._id"}],key:N._id,ref:"tabContent",refInFor:!0,attrs:{tab:N,"show-section-handle-field":$.showSectionHandleField,"show-section-hide-field":$.showSectionHideField,"new-section-text":$.newSectionText,"edit-section-text":$.editSectionText,"add-section-text":$.addSectionText,"can-define-localizable":$.canDefineLocalizable},on:{updated:function(B){return $.updateTab(N._id,B)}}})})],2)},_sfc_staticRenderFns$14=[],__component__$15=normalizeComponent$2(_sfc_main$14,_sfc_render$14,_sfc_staticRenderFns$14,!1,null,null,null,null);const Tabs=__component__$15.exports,_sfc_main$13={mixins:[Fieldtype,SuggestsConditionalFields],components:{Tabs},data(){return{tabs:this.value}},provide:{isInsideSet:!0},methods:{tabsUpdated(M){this.update(M)},getSectionFieldsForConditionSuggestions(M=null){return M.section.fields}}};var _sfc_render$13=function M(){var $=this,I=$._self._c;return I("div",[I("tabs",{attrs:{"initial-tabs":$.tabs,"require-section":$.config.require_set,"can-define-localizable":!1,"add-tab-text":$.__("Add Set Group"),"edit-tab-text":$.__("Edit Set Group"),"new-tab-text":$.__("New Set Group"),"add-section-text":$.__("Add Set"),"edit-section-text":$.__("Edit Set"),"new-section-text":$.__("New Set"),"show-tab-instructions-field":"","show-section-handle-field":"","show-section-hide-field":""},on:{updated:$.tabsUpdated}})],1)},_sfc_staticRenderFns$13=[],__component__$14=normalizeComponent$2(_sfc_main$13,_sfc_render$13,_sfc_staticRenderFns$13,!1,null,null,null,null);const SetsFieldtype=__component__$14.exports,_sfc_main$12={mixins:[Fieldtype,SortableHelpers],components:{SortableList,SortableItem},data:function(){return{data:this.arrayToSortable(this.value||[]),deletingRow:!1,deletingColumn:!1,fullScreenMode:!1}},watch:{data:{deep:!0,handler(M){this.updateDebounced(this.sortableToArray(M))}},value(M,$){JSON.stringify(M)!=JSON.stringify($)&&JSON.stringify(M)!=JSON.stringify(this.sortableToArray(this.data))&&(this.data=this.arrayToSortable(M))}},computed:{maxRows(){return this.config.max_rows||null},maxColumns(){return this.config.max_columns||null},rowCount(){return this.data.length},columnCount(){return data_get(this,"data.0.value.cells.length",0)},atRowMax(){return this.maxRows?this.rowCount>=this.maxRows:!1},atColumnMax(){return this.maxColumns?this.columnCount>=this.maxColumns:!1},canAddRows(){return!this.isReadOnly},canDeleteRows(){return!this.isReadOnly},canAddColumns(){return!this.isReadOnly&&this.rowCount>0},canDeleteColumns(){return!this.isReadOnly&&this.columnCount>1},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return _(this.data).map(M=>M.value.cells.filter($=>!!$).join(", ")).filter(M=>!!M).join(", ")},internalFieldActions(){return[{title:__("Toggle Fullscreen Mode"),icon:({vm:M})=>M.fullScreenMode?"shrink-all":"expand-bold",quick:!0,visibleWhenReadOnly:!0,run:this.toggleFullscreen}]}},methods:{addRow(){this.data.push(this.newSortableValue({cells:new Array(this.columnCount||1)}))},addColumn(){for(var M=this.data.length,$=0;$<M;$++)this.data[$].value.cells.push("")},confirmDeleteRow(M){this.deletingRow=M},confirmDeleteColumn(M){this.deletingColumn=M},deleteRow(M){this.deletingRow=!1,this.data.splice(M,1)},deleteColumn(M){this.deletingColumn=!1;for(var $=this.data.length,I=0;I<$;I++)this.data[I].value.cells.splice(M,1)},deleteCancelled(){this.deletingRow=!1,this.deletingColumn=!1},toggleFullscreen(){this.fullScreenMode=!this.fullScreenMode}}};var _sfc_render$12=function M(){var $=this,I=$._self._c;return I("portal",{attrs:{name:"table-fullscreen",disabled:!$.fullScreenMode,"target-class":"table-fieldtype"}},[I("div",{staticClass:"table-fieldtype-container",class:{"table-fullscreen bg-white dark:bg-dark-700":$.fullScreenMode}},[$.fullScreenMode?I("publish-field-fullscreen-header",{attrs:{title:$.config.display,"field-actions":$.fieldActions},on:{close:$.toggleFullscreen}}):$._e(),I("section",{class:{"mt-14 p-4 dark:bg-dark-700":$.fullScreenMode}},[$.rowCount?I("table",{staticClass:"table-fieldtype-table"},[I("thead",[I("tr",[$.isReadOnly?$._e():I("th",{staticClass:"grid-drag-handle-header"}),$._l($.columnCount,function(N,B){return I("th",{key:B},[I("div",{staticClass:"flex items-center justify-between h-6"},[I("span",{staticClass:"column-count"},[$._v($._s(B+1))]),I("a",{directives:[{name:"show",rawName:"v-show",value:$.canDeleteColumns,expression:"canDeleteColumns"}],staticClass:"opacity-25 text-lg antialiased hover:opacity-75",attrs:{"aria-label":$.__("Delete Column")},on:{click:function(j){return $.confirmDeleteColumn(B)}}},[$._v(" × ")])])])}),I("th",{staticClass:"row-controls rtl:pl-0 ltr:pr-0"})],2)]),I("sortable-list",{attrs:{vertical:!0,"item-class":"sortable-row","handle-class":"table-drag-handle",mirror:!1},on:{dragstart:function(N){return $.$emit("focus")},dragend:function(N){return $.$emit("blur")}},model:{value:$.data,callback:function(N){$.data=N},expression:"data"}},[I("tbody",$._l($.data,function(N,B){return I("tr",{key:N._id,staticClass:"sortable-row"},[$.isReadOnly?$._e():I("td",{staticClass:"table-drag-handle"}),$._l(N.value.cells,function(j,U){return I("td",[I("input",{directives:[{name:"model",rawName:"v-model",value:N.value.cells[U],expression:"row.value.cells[cellIndex]"}],staticClass:"input-text",attrs:{type:"text",readonly:$.isReadOnly},domProps:{value:N.value.cells[U]},on:{focus:function(q){return $.$emit("focus")},blur:function(q){return $.$emit("blur")},input:function(q){q.target.composing||$.$set(N.value.cells,U,q.target.value)}}})])}),$.canDeleteRows?I("td",{staticClass:"row-controls"},[I("button",{staticClass:"inline opacity-25 text-lg antialiased hover:opacity-75",attrs:{"aria-label":$.__("Delete Row")},on:{click:function(j){return $.confirmDeleteRow(B)}}},[$._v("×")])]):$._e()],2)}),0)])],1):$._e(),$.canAddRows?I("button",{staticClass:"btn",attrs:{disabled:$.atRowMax},on:{click:$.addRow}},[$._v(" "+$._s($.__("Add Row"))+" ")]):$._e(),$.canAddColumns?I("button",{staticClass:"btn rtl:mr-2 ltr:ml-2",attrs:{disabled:$.atColumnMax},on:{click:$.addColumn}},[$._v(" "+$._s($.__("Add Column"))+" ")]):$._e()]),$.deletingRow!==!1?I("confirmation-modal",{attrs:{title:$.__("Delete Row"),bodyText:$.__("Are you sure you want to delete this row?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:function(N){return $.deleteRow($.deletingRow)},cancel:$.deleteCancelled}}):$._e(),$.deletingColumn!==!1?I("confirmation-modal",{attrs:{title:$.__("Delete Column"),bodyText:$.__("Are you sure you want to delete this column?"),buttonText:$.__("Delete"),danger:!0},on:{confirm:function(N){return $.deleteColumn($.deletingColumn)},cancel:$.deleteCancelled}}):$._e()],1)])},_sfc_staticRenderFns$12=[],__component__$13=normalizeComponent$2(_sfc_main$12,_sfc_render$12,_sfc_staticRenderFns$12,!1,null,null,null,null);const TableFieldtype=__component__$13.exports,TagsFieldtype_vue_vue_type_style_index_0_scoped_38873fff_lang="",_sfc_main$11={components:{SortableList,SortableItem},mixins:[Fieldtype,HasInputOptions],methods:{focus(){this.$refs.input.focus()},onPaste(M){const $=M.clipboardData.getData("text");this.update([...this.value,...$.split(",")]),M.preventDefault()}}};var _sfc_render$11=function M(){var $=this,I=$._self._c;return I("v-select",{ref:"input",attrs:{name:$.name,clearable:$.config.clearable,"close-on-select":!0,options:$.config.options,disabled:$.config.disabled||$.isReadOnly,multiple:!0,placeholder:$.__($.config.placeholder),searchable:!0,"select-on-key-codes":[9,13,188],taggable:!0,"append-to-body":!0,value:$.value,"dropdown-should-open":({open:N})=>N&&$.config.options.length>0},on:{input:$.update,"search:focus":function(N){return $.$emit("focus")},"search:blur":function(N){return $.$emit("blur")}},scopedSlots:$._u([{key:"selected-option-container",fn:function(){return[I("i",{staticClass:"hidden"})]},proxy:!0},{key:"search",fn:function({events:N,attributes:B}){return[I("input",$._g($._b({staticClass:"vs__search",attrs:{placeholder:$.config.placeholder,type:"search"},on:{paste:$.onPaste}},"input",B,!1),N))]}},{key:"no-options",fn:function(){return[I("div",{staticClass:"text-sm text-gray-700 rtl:text-right ltr:text-left py-2 px-4",domProps:{textContent:$._s($.__("No options to choose from."))}})]},proxy:!0},{key:"footer",fn:function({deselect:N}){return[I("sortable-list",{attrs:{"item-class":"sortable-item","handle-class":"sortable-item",value:$.value,distance:5,mirror:!1},on:{input:$.update}},[I("div",{staticClass:"vs__selected-options-outside flex flex-wrap"},$._l($.value,function(B){return I("span",{key:B,staticClass:"vs__selected mt-2 sortable-item"},[$._v(" "+$._s(B)+" "),I("button",{staticClass:"vs__deselect",attrs:{type:"button","aria-label":$.__("Remove tag")},on:{click:function(j){return N(B)}}},[I("span",[$._v("×")])])])}),0)])]}}])})},_sfc_staticRenderFns$11=[],__component__$12=normalizeComponent$2(_sfc_main$11,_sfc_render$11,_sfc_staticRenderFns$11,!1,null,"38873fff",null,null);const TagsFieldtype=__component__$12.exports,_sfc_main$10={mixins:[IndexFieldtype],computed:{formatted(){return this.value?this.value.join(", "):null}}};var _sfc_render$10=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"text-ellipsis"},[$._v($._s($.formatted))])},_sfc_staticRenderFns$10=[],__component__$11=normalizeComponent$2(_sfc_main$10,_sfc_render$10,_sfc_staticRenderFns$10,!1,null,null,null,null);const TagsIndexFieldtype=__component__$11.exports,_sfc_main$$={mixins:[Fieldtype],inject:["storeName"],computed:{relationshipMeta(){return{...this.meta,getBaseSelectionsUrlParameters:{}}}}};var _sfc_render$$=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"template-folder-fieldtype-wrapper"},[I("relationship-fieldtype",{attrs:{handle:$.handle,value:$.value,meta:$.relationshipMeta,config:{type:"template_folder",mode:"select",max_items:1}},on:{input:$.update}})],1)},_sfc_staticRenderFns$$=[],__component__$10=normalizeComponent$2(_sfc_main$$,_sfc_render$$,_sfc_staticRenderFns$$,!1,null,null,null,null);const TemplateFolderFieldtype=__component__$10.exports;function _objectWithoutPropertiesLoose(M,$){if(M==null)return{};var I={},N=Object.keys(M),B,j;for(j=0;j<N.length;j++)B=N[j],!($.indexOf(B)>=0)&&(I[B]=M[B]);return I}class ChangeDetails{constructor($){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},$)}aggregate($){return this.rawInserted+=$.rawInserted,this.skip=this.skip||$.skip,this.inserted+=$.inserted,this.tailShift+=$.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}function isString$1(M){return typeof M=="string"||M instanceof String}const DIRECTION={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function forceDirection(M){switch(M){case DIRECTION.LEFT:return DIRECTION.FORCE_LEFT;case DIRECTION.RIGHT:return DIRECTION.FORCE_RIGHT;default:return M}}function escapeRegExp(M){return M.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function normalizePrepare(M){return Array.isArray(M)?M:[M,new ChangeDetails]}function objectIncludes(M,$){if($===M)return!0;var I=Array.isArray($),N=Array.isArray(M),B;if(I&&N){if($.length!=M.length)return!1;for(B=0;B<$.length;B++)if(!objectIncludes($[B],M[B]))return!1;return!0}if(I!=N)return!1;if($&&M&&typeof $=="object"&&typeof M=="object"){var j=$ instanceof Date,U=M instanceof Date;if(j&&U)return $.getTime()==M.getTime();if(j!=U)return!1;var q=$ instanceof RegExp,Y=M instanceof RegExp;if(q&&Y)return $.toString()==M.toString();if(q!=Y)return!1;var K=Object.keys($);for(B=0;B<K.length;B++)if(!Object.prototype.hasOwnProperty.call(M,K[B]))return!1;for(B=0;B<K.length;B++)if(!objectIncludes(M[K[B]],$[K[B]]))return!1;return!0}else if($&&M&&typeof $=="function"&&typeof M=="function")return $.toString()===M.toString();return!1}class ActionDetails{constructor($,I,N,B){for(this.value=$,this.cursorPos=I,this.oldValue=N,this.oldSelection=B;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?DIRECTION.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?DIRECTION.RIGHT:DIRECTION.LEFT}}class ContinuousTailDetails{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=arguments.length>2?arguments[2]:void 0;this.value=$,this.from=I,this.stop=N}toString(){return this.value}extend($){this.value+=String($)}appendTo($){return $.append(this.toString(),{tail:!0}).aggregate($._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state($){Object.assign(this,$)}unshift($){if(!this.value.length||$!=null&&this.from>=$)return"";const I=this.value[0];return this.value=this.value.slice(1),I}shift(){if(!this.value.length)return"";const $=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),$}}function IMask(M){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new IMask.InputMask(M,$)}class Masked{constructor($){this._value="",this._update(Object.assign({},Masked.DEFAULTS,$)),this.isInitialized=!0}updateOptions($){Object.keys($).length&&this.withValueRefresh(this._update.bind(this,$))}_update($){Object.assign(this,$)}get state(){return{_value:this.value}}set state($){this._value=$._value}reset(){this._value=""}get value(){return this._value}set value($){this.resolve($)}resolve($){return this.reset(),this.append($,{input:!0},""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue($){this.reset(),this.append($,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue($){this.value=this.doFormat($)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue($){this.reset(),this.append($,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos($,I){return $}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice($,I)}extractTail(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return new ContinuousTailDetails(this.extractInput($,I),$)}appendTail($){return isString$1($)&&($=new ContinuousTailDetails(String($))),$.appendTo(this)}_appendCharRaw($){return $?(this._value+=$,new ChangeDetails({inserted:$,rawInserted:$})):new ChangeDetails}_appendChar($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=arguments.length>2?arguments[2]:void 0;const B=this.state;let j;if([$,j]=normalizePrepare(this.doPrepare($,I)),j=j.aggregate(this._appendCharRaw($,I)),j.inserted){let U,q=this.doValidate(I)!==!1;if(q&&N!=null){const Y=this.state;this.overwrite===!0&&(U=N.state,N.unshift(this.value.length-j.tailShift));let K=this.appendTail(N);q=K.rawInserted===N.toString(),!(q&&K.inserted)&&this.overwrite==="shift"&&(this.state=Y,U=N.state,N.shift(),K=this.appendTail(N),q=K.rawInserted===N.toString()),q&&K.inserted&&(this.state=Y)}q||(j=new ChangeDetails,this.state=B,N&&U&&(N.state=U))}return j}_appendPlaceholder(){return new ChangeDetails}_appendEager(){return new ChangeDetails}append($,I,N){if(!isString$1($))throw new Error("value should be string");const B=new ChangeDetails,j=isString$1(N)?new ContinuousTailDetails(String(N)):N;I!=null&&I.tail&&(I._beforeTailState=this.state);for(let U=0;U<$.length;++U){const q=this._appendChar($[U],I,j);if(!q.rawInserted&&!this.doSkipInvalid($[U],I,j))break;B.aggregate(q)}return j!=null&&(B.tailShift+=this.appendTail(j).tailShift),(this.eager===!0||this.eager==="append")&&I!==null&&I!==void 0&&I.input&&$&&B.aggregate(this._appendEager()),B}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this._value=this.value.slice(0,$)+this.value.slice(I),new ChangeDetails}withValueRefresh($){if(this._refreshing||!this.isInitialized)return $();this._refreshing=!0;const I=this.rawInputValue,N=this.value,B=$();return this.rawInputValue=I,this.value&&this.value!==N&&N.indexOf(this.value)===0&&this.append(N.slice(this.value.length),{},""),delete this._refreshing,B}runIsolated($){if(this._isolated||!this.isInitialized)return $(this);this._isolated=!0;const I=this.state,N=$(this);return this.state=I,delete this._isolated,N}doSkipInvalid($){return this.skipInvalid}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.prepare?this.prepare($,this,I):$}doValidate($){return(!this.validate||this.validate(this.value,this,$))&&(!this.parent||this.parent.doValidate($))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat($){return this.format?this.format($,this):$}doParse($){return this.parse?this.parse($,this):$}splice($,I,N,B){let j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{input:!0};const U=$+I,q=this.extractTail(U),Y=this.eager===!0||this.eager==="remove";let K;Y&&(B=forceDirection(B),K=this.extractInput(0,U,{raw:!0}));let G=$;const J=new ChangeDetails;if(B!==DIRECTION.NONE&&(G=this.nearestInputPos($,I>1&&$!==0&&!Y?DIRECTION.NONE:B),J.tailShift=G-$),J.aggregate(this.remove(G)),Y&&B!==DIRECTION.NONE&&K===this.rawInputValue)if(B===DIRECTION.FORCE_LEFT){let Z;for(;K===this.rawInputValue&&(Z=this.value.length);)J.aggregate(new ChangeDetails({tailShift:-1})).aggregate(this.remove(Z-1))}else B===DIRECTION.FORCE_RIGHT&&q.unshift();return J.aggregate(this.append(N,j,q))}maskEquals($){return this.mask===$}typedValueEquals($){const I=this.typedValue;return $===I||Masked.EMPTY_VALUES.includes($)&&Masked.EMPTY_VALUES.includes(I)||this.doFormat($)===this.doFormat(this.typedValue)}}Masked.DEFAULTS={format:String,parse:M=>M,skipInvalid:!0};Masked.EMPTY_VALUES=[void 0,null,""];IMask.Masked=Masked;function maskedClass(M){if(M==null)throw new Error("mask property should be defined");return M instanceof RegExp?IMask.MaskedRegExp:isString$1(M)?IMask.MaskedPattern:M instanceof Date||M===Date?IMask.MaskedDate:M instanceof Number||typeof M=="number"||M===Number?IMask.MaskedNumber:Array.isArray(M)||M===Array?IMask.MaskedDynamic:IMask.Masked&&M.prototype instanceof IMask.Masked?M:M instanceof IMask.Masked?M.constructor:M instanceof Function?IMask.MaskedFunction:(console.warn("Mask not found for mask",M),IMask.Masked)}function createMask(M){if(IMask.Masked&&M instanceof IMask.Masked)return M;M=Object.assign({},M);const $=M.mask;if(IMask.Masked&&$ instanceof IMask.Masked)return $;const I=maskedClass($);if(!I)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new I(M)}IMask.createMask=createMask;const _excluded$4=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],DEFAULT_INPUT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class PatternInputDefinition{constructor($){const{parent:I,isOptional:N,placeholderChar:B,displayChar:j,lazy:U,eager:q}=$,Y=_objectWithoutPropertiesLoose($,_excluded$4);this.masked=createMask(Y),Object.assign(this,{parent:I,isOptional:N,placeholderChar:B,displayChar:j,lazy:U,eager:q})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return $===0&&I>=1?(this.isFilled=!1,this.masked.remove($,I)):new ChangeDetails}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isFilled)return new ChangeDetails;const N=this.masked.state,B=this.masked._appendChar($,I);return B.inserted&&this.doValidate(I)===!1&&(B.inserted=B.rawInserted="",this.masked.state=N),!B.inserted&&!this.isOptional&&!this.lazy&&!I.input&&(B.inserted=this.placeholderChar),B.skip=!B.inserted&&!this.isOptional,this.isFilled=!!B.inserted,B}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const $=new ChangeDetails;return this.isFilled||this.isOptional||(this.isFilled=!0,$.inserted=this.placeholderChar),$}_appendEager(){return new ChangeDetails}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput($,I,N)}nearestInputPos($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DIRECTION.NONE;const N=0,B=this.value.length,j=Math.min(Math.max($,N),B);switch(I){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return this.isComplete?j:N;case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:return this.isComplete?j:B;case DIRECTION.NONE:default:return j}}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state($){this.masked.state=$.masked,this.isFilled=$.isFilled}}class PatternFixedDefinition{constructor($){Object.assign(this,$),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._value=this._value.slice(0,$)+this._value.slice(I),this._value||(this._isRawInput=!1),new ChangeDetails}nearestInputPos($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DIRECTION.NONE;const N=0,B=this._value.length;switch(I){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return N;case DIRECTION.NONE:case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:default:return B}}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice($,I)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=new ChangeDetails;if(this._value)return N;const B=this.eager===!0||this.eager==="append",U=this.char===$&&(this.isUnmasking||I.input||I.raw)&&(!I.raw||!B)&&!I.tail;return U&&(N.rawInserted=this.char),this._value=N.inserted=this.char,this._isRawInput=U&&(I.raw||I.input),N}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const $=new ChangeDetails;return this._value||(this._value=$.inserted=this.char),$}extractTail(){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,new ContinuousTailDetails("")}appendTail($){return isString$1($)&&($=new ContinuousTailDetails(String($))),$.appendTo(this)}append($,I,N){const B=this._appendChar($[0],I);return N!=null&&(B.tailShift+=this.appendTail(N).tailShift),B}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state($){Object.assign(this,$)}}const _excluded$3=["chunks"];class ChunksTailDetails{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.chunks=$,this.from=I}toString(){return this.chunks.map(String).join("")}extend($){if(!String($))return;isString$1($)&&($=new ContinuousTailDetails(String($)));const I=this.chunks[this.chunks.length-1],N=I&&(I.stop===$.stop||$.stop==null)&&$.from===I.from+I.toString().length;if($ instanceof ContinuousTailDetails)N?I.extend($.toString()):this.chunks.push($);else if($ instanceof ChunksTailDetails){if($.stop==null){let B;for(;$.chunks.length&&$.chunks[0].stop==null;)B=$.chunks.shift(),B.from+=$.from,this.extend(B)}$.toString()&&($.stop=$.blockIndex,this.chunks.push($))}}appendTo($){if(!($ instanceof IMask.MaskedPattern))return new ContinuousTailDetails(this.toString()).appendTo($);const I=new ChangeDetails;for(let N=0;N<this.chunks.length&&!I.skip;++N){const B=this.chunks[N],j=$._mapPosToBlock($.value.length),U=B.stop;let q;if(U!=null&&(!j||j.index<=U)&&((B instanceof ChunksTailDetails||$._stops.indexOf(U)>=0)&&I.aggregate($._appendPlaceholder(U)),q=B instanceof ChunksTailDetails&&$._blocks[U]),q){const Y=q.appendTail(B);Y.skip=!1,I.aggregate(Y),$._value+=Y.inserted;const K=B.toString().slice(Y.rawInserted.length);K&&I.aggregate($.append(K,{tail:!0}))}else I.aggregate($.append(B.toString(),{tail:!0}))}return I}get state(){return{chunks:this.chunks.map($=>$.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state($){const{chunks:I}=$,N=_objectWithoutPropertiesLoose($,_excluded$3);Object.assign(this,N),this.chunks=I.map(B=>{const j="chunks"in B?new ChunksTailDetails:new ContinuousTailDetails;return j.state=B,j})}unshift($){if(!this.chunks.length||$!=null&&this.from>=$)return"";const I=$!=null?$-this.from:$;let N=0;for(;N<this.chunks.length;){const B=this.chunks[N],j=B.unshift(I);if(B.toString()){if(!j)break;++N}else this.chunks.splice(N,1);if(j)return j}return""}shift(){if(!this.chunks.length)return"";let $=this.chunks.length-1;for(;0<=$;){const I=this.chunks[$],N=I.shift();if(I.toString()){if(!N)break;--$}else this.chunks.splice($,1);if(N)return N}return""}}class PatternCursor{constructor($,I){this.masked=$,this._log=[];const{offset:N,index:B}=$._mapPosToBlock(I)||(I<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=N,this.index=B,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state($){Object.assign(this,$)}pushState(){this._log.push(this.state)}popState(){const $=this._log.pop();return this.state=$,$}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft($){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((I=this.block)===null||I===void 0?void 0:I.value.length)||0){var I;if($())return this.ok=!0}return this.ok=!1}_pushRight($){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if($())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,DIRECTION.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,DIRECTION.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,DIRECTION.NONE),!0})}}class MaskedRegExp extends Masked{_update($){$.mask&&($.validate=I=>I.search($.mask)>=0),super._update($)}}IMask.MaskedRegExp=MaskedRegExp;const _excluded$2=["_blocks"];class MaskedPattern extends Masked{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$.definitions=Object.assign({},DEFAULT_INPUT_DEFINITIONS,$.definitions),super(Object.assign({},MaskedPattern.DEFAULTS,$))}_update(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$.definitions=Object.assign({},this.definitions,$.definitions),super._update($),this._rebuildMask()}_rebuildMask(){const $=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let I=this.mask;if(!I||!$)return;let N=!1,B=!1;for(let q=0;q<I.length;++q){var j,U;if(this.blocks){const Z=I.slice(q),ee=Object.keys(this.blocks).filter(se=>Z.indexOf(se)===0);ee.sort((se,re)=>re.length-se.length);const te=ee[0];if(te){const se=createMask(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[te]));se&&(this._blocks.push(se),this._maskedBlocks[te]||(this._maskedBlocks[te]=[]),this._maskedBlocks[te].push(this._blocks.length-1)),q+=te.length-1;continue}}let Y=I[q],K=Y in $;if(Y===MaskedPattern.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(Y==="{"||Y==="}"){N=!N;continue}if(Y==="["||Y==="]"){B=!B;continue}if(Y===MaskedPattern.ESCAPE_CHAR){if(++q,Y=I[q],!Y)break;K=!1}const G=(j=$[Y])!==null&&j!==void 0&&j.mask&&!(((U=$[Y])===null||U===void 0?void 0:U.mask.prototype)instanceof IMask.Masked)?$[Y]:{mask:$[Y]},J=K?new PatternInputDefinition(Object.assign({parent:this,isOptional:B,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},G)):new PatternFixedDefinition({char:Y,eager:this.eager,isUnmasking:N});this._blocks.push(J)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map($=>$.state)})}set state($){const{_blocks:I}=$,N=_objectWithoutPropertiesLoose($,_excluded$2);this._blocks.forEach((B,j)=>B.state=I[j]),super.state=N}reset(){super.reset(),this._blocks.forEach($=>$.reset())}get isComplete(){return this._blocks.every($=>$.isComplete)}get isFilled(){return this._blocks.every($=>$.isFilled)}get isFixed(){return this._blocks.every($=>$.isFixed)}get isOptional(){return this._blocks.every($=>$.isOptional)}doCommit(){this._blocks.forEach($=>$.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce(($,I)=>$+=I.unmaskedValue,"")}set unmaskedValue($){super.unmaskedValue=$}get value(){return this._blocks.reduce(($,I)=>$+=I.value,"")}set value($){super.value=$}get displayValue(){return this._blocks.reduce(($,I)=>$+=I.displayValue,"")}appendTail($){return super.appendTail($).aggregate(this._appendPlaceholder())}_appendEager(){var $;const I=new ChangeDetails;let N=($=this._mapPosToBlock(this.value.length))===null||$===void 0?void 0:$.index;if(N==null)return I;this._blocks[N].isFilled&&++N;for(let B=N;B<this._blocks.length;++B){const j=this._blocks[B]._appendEager();if(!j.inserted)break;I.aggregate(j)}return I}_appendCharRaw($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=this._mapPosToBlock(this.value.length),B=new ChangeDetails;if(!N)return B;for(let q=N.index;;++q){var j,U;const Y=this._blocks[q];if(!Y)break;const K=Y._appendChar($,Object.assign({},I,{_beforeTailState:(j=I._beforeTailState)===null||j===void 0||(U=j._blocks)===null||U===void 0?void 0:U[q]})),G=K.skip;if(B.aggregate(K),G||K.rawInserted)break}return B}extractTail(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const N=new ChunksTailDetails;return $===I||this._forEachBlocksInRange($,I,(B,j,U,q)=>{const Y=B.extractTail(U,q);Y.stop=this._findStopBefore(j),Y.from=this._blockStartPos(j),Y instanceof ChunksTailDetails&&(Y.blockIndex=j),N.extend(Y)}),N}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if($===I)return"";let B="";return this._forEachBlocksInRange($,I,(j,U,q,Y)=>{B+=j.extractInput(q,Y,N)}),B}_findStopBefore($){let I;for(let N=0;N<this._stops.length;++N){const B=this._stops[N];if(B<=$)I=B;else break}return I}_appendPlaceholder($){const I=new ChangeDetails;if(this.lazy&&$==null)return I;const N=this._mapPosToBlock(this.value.length);if(!N)return I;const B=N.index,j=$??this._blocks.length;return this._blocks.slice(B,j).forEach(U=>{if(!U.lazy||$!=null){const q=U._blocks!=null?[U._blocks.length]:[],Y=U._appendPlaceholder(...q);this._value+=Y.inserted,I.aggregate(Y)}}),I}_mapPosToBlock($){let I="";for(let N=0;N<this._blocks.length;++N){const B=this._blocks[N],j=I.length;if(I+=B.value,$<=I.length)return{index:N,offset:$-j}}}_blockStartPos($){return this._blocks.slice(0,$).reduce((I,N)=>I+=N.value.length,0)}_forEachBlocksInRange($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2?arguments[2]:void 0;const B=this._mapPosToBlock($);if(B){const j=this._mapPosToBlock(I),U=j&&B.index===j.index,q=B.offset,Y=j&&U?j.offset:this._blocks[B.index].value.length;if(N(this._blocks[B.index],B.index,q,Y),j&&!U){for(let K=B.index+1;K<j.index;++K)N(this._blocks[K],K,0,this._blocks[K].value.length);N(this._blocks[j.index],j.index,0,j.offset)}}}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const N=super.remove($,I);return this._forEachBlocksInRange($,I,(B,j,U,q)=>{N.aggregate(B.remove(U,q))}),N}nearestInputPos($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DIRECTION.NONE;if(!this._blocks.length)return 0;const N=new PatternCursor(this,$);if(I===DIRECTION.NONE)return N.pushRightBeforeInput()||(N.popState(),N.pushLeftBeforeInput())?N.pos:this.value.length;if(I===DIRECTION.LEFT||I===DIRECTION.FORCE_LEFT){if(I===DIRECTION.LEFT){if(N.pushRightBeforeFilled(),N.ok&&N.pos===$)return $;N.popState()}if(N.pushLeftBeforeInput(),N.pushLeftBeforeRequired(),N.pushLeftBeforeFilled(),I===DIRECTION.LEFT){if(N.pushRightBeforeInput(),N.pushRightBeforeRequired(),N.ok&&N.pos<=$||(N.popState(),N.ok&&N.pos<=$))return N.pos;N.popState()}return N.ok?N.pos:I===DIRECTION.FORCE_LEFT?0:(N.popState(),N.ok||(N.popState(),N.ok)?N.pos:0)}return I===DIRECTION.RIGHT||I===DIRECTION.FORCE_RIGHT?(N.pushRightBeforeInput(),N.pushRightBeforeRequired(),N.pushRightBeforeFilled()?N.pos:I===DIRECTION.FORCE_RIGHT?this.value.length:(N.popState(),N.ok||(N.popState(),N.ok)?N.pos:this.nearestInputPos($,DIRECTION.LEFT))):$}maskedBlock($){return this.maskedBlocks($)[0]}maskedBlocks($){const I=this._maskedBlocks[$];return I?I.map(N=>this._blocks[N]):[]}}MaskedPattern.DEFAULTS={lazy:!0,placeholderChar:"_"};MaskedPattern.STOP_CHAR="`";MaskedPattern.ESCAPE_CHAR="\\";MaskedPattern.InputDefinition=PatternInputDefinition;MaskedPattern.FixedDefinition=PatternFixedDefinition;IMask.MaskedPattern=MaskedPattern;class MaskedRange extends MaskedPattern{get _matchFrom(){return this.maxLength-String(this.from).length}_update($){$=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},$);let I=String($.to).length;$.maxLength!=null&&(I=Math.max(I,$.maxLength)),$.maxLength=I;const N=String($.from).padStart(I,"0"),B=String($.to).padStart(I,"0");let j=0;for(;j<B.length&&B[j]===N[j];)++j;$.mask=B.slice(0,j).replace(/0/g,"\\0")+"0".repeat(I-j),super._update($)}get isComplete(){return super.isComplete&&!!this.value}boundaries($){let I="",N="";const[,B,j]=$.match(/^(\D*)(\d*)(\D*)/)||[];return j&&(I="0".repeat(B.length)+j,N="9".repeat(B.length)+j),I=I.padEnd(this.maxLength,"0"),N=N.padEnd(this.maxLength,"9"),[I,N]}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N;if([$,N]=normalizePrepare(super.doPrepare($.replace(/\D/g,""),I)),!this.autofix||!$)return $;const B=String(this.from).padStart(this.maxLength,"0"),j=String(this.to).padStart(this.maxLength,"0");let U=this.value+$;if(U.length>this.maxLength)return"";const[q,Y]=this.boundaries(U);return Number(Y)<this.from?B[U.length-1]:Number(q)>this.to?this.autofix==="pad"&&U.length<this.maxLength?["",N.aggregate(this.append(B[U.length-1]+$,I))]:j[U.length-1]:$}doValidate(){const $=this.value;if($.search(/[^0]/)===-1&&$.length<=this._matchFrom)return!0;const[N,B]=this.boundaries($);return this.from<=Number(B)&&Number(N)<=this.to&&super.doValidate(...arguments)}}IMask.MaskedRange=MaskedRange;class MaskedDate extends MaskedPattern{constructor($){super(Object.assign({},MaskedDate.DEFAULTS,$))}_update($){$.mask===Date&&delete $.mask,$.pattern&&($.mask=$.pattern);const I=$.blocks;$.blocks=Object.assign({},MaskedDate.GET_DEFAULT_BLOCKS()),$.min&&($.blocks.Y.from=$.min.getFullYear()),$.max&&($.blocks.Y.to=$.max.getFullYear()),$.min&&$.max&&$.blocks.Y.from===$.blocks.Y.to&&($.blocks.m.from=$.min.getMonth()+1,$.blocks.m.to=$.max.getMonth()+1,$.blocks.m.from===$.blocks.m.to&&($.blocks.d.from=$.min.getDate(),$.blocks.d.to=$.max.getDate())),Object.assign($.blocks,this.blocks,I),Object.keys($.blocks).forEach(N=>{const B=$.blocks[N];!("autofix"in B)&&"autofix"in $&&(B.autofix=$.autofix)}),super._update($)}doValidate(){const $=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&$!=null&&(this.min==null||this.min<=$)&&(this.max==null||$<=this.max))}isDateExist($){return this.format(this.parse($,this),this).indexOf($)>=0}get date(){return this.typedValue}set date($){this.typedValue=$}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue($){super.typedValue=$}maskEquals($){return $===Date||super.maskEquals($)}}MaskedDate.DEFAULTS={pattern:"d{.}`m{.}`Y",format:M=>{if(!M)return"";const $=String(M.getDate()).padStart(2,"0"),I=String(M.getMonth()+1).padStart(2,"0"),N=M.getFullYear();return[$,I,N].join(".")},parse:M=>{const[$,I,N]=M.split(".");return new Date(N,I-1,$)}};MaskedDate.GET_DEFAULT_BLOCKS=()=>({d:{mask:MaskedRange,from:1,to:31,maxLength:2},m:{mask:MaskedRange,from:1,to:12,maxLength:2},Y:{mask:MaskedRange,from:1900,to:9999}});IMask.MaskedDate=MaskedDate;class MaskElement{get selectionStart(){let $;try{$=this._unsafeSelectionStart}catch{}return $??this.value.length}get selectionEnd(){let $;try{$=this._unsafeSelectionEnd}catch{}return $??this.value.length}select($,I){if(!($==null||I==null||$===this.selectionStart&&I===this.selectionEnd))try{this._unsafeSelect($,I)}catch{}}_unsafeSelect($,I){}get isActive(){return!1}bindEvents($){}unbindEvents(){}}IMask.MaskElement=MaskElement;class HTMLMaskElement extends MaskElement{constructor($){super(),this.input=$,this._handlers={}}get rootElement(){var $,I,N;return($=(I=(N=this.input).getRootNode)===null||I===void 0?void 0:I.call(N))!==null&&$!==void 0?$:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect($,I){this.input.setSelectionRange($,I)}get value(){return this.input.value}set value($){this.input.value=$}bindEvents($){Object.keys($).forEach(I=>this._toggleEventHandler(HTMLMaskElement.EVENTS_MAP[I],$[I]))}unbindEvents(){Object.keys(this._handlers).forEach($=>this._toggleEventHandler($))}_toggleEventHandler($,I){this._handlers[$]&&(this.input.removeEventListener($,this._handlers[$]),delete this._handlers[$]),I&&(this.input.addEventListener($,I),this._handlers[$]=I)}}HTMLMaskElement.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"};IMask.HTMLMaskElement=HTMLMaskElement;class HTMLContenteditableMaskElement extends HTMLMaskElement{get _unsafeSelectionStart(){const $=this.rootElement,I=$.getSelection&&$.getSelection(),N=I&&I.anchorOffset,B=I&&I.focusOffset;return B==null||N==null||N<B?N:B}get _unsafeSelectionEnd(){const $=this.rootElement,I=$.getSelection&&$.getSelection(),N=I&&I.anchorOffset,B=I&&I.focusOffset;return B==null||N==null||N>B?N:B}_unsafeSelect($,I){if(!this.rootElement.createRange)return;const N=this.rootElement.createRange();N.setStart(this.input.firstChild||this.input,$),N.setEnd(this.input.lastChild||this.input,I);const B=this.rootElement,j=B.getSelection&&B.getSelection();j&&(j.removeAllRanges(),j.addRange(N))}get value(){return this.input.textContent}set value($){this.input.textContent=$}}IMask.HTMLContenteditableMaskElement=HTMLContenteditableMaskElement;const _excluded$1=["mask"];class InputMask{constructor($,I){this.el=$ instanceof MaskElement?$:$.isContentEditable&&$.tagName!=="INPUT"&&$.tagName!=="TEXTAREA"?new HTMLContenteditableMaskElement($):new HTMLMaskElement($),this.masked=createMask(I),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals($){var I;return $==null||((I=this.masked)===null||I===void 0?void 0:I.maskEquals($))}set mask($){if(this.maskEquals($))return;if(!($ instanceof IMask.Masked)&&this.masked.constructor===maskedClass($)){this.masked.updateOptions({mask:$});return}const I=createMask({mask:$});I.unmaskedValue=this.masked.unmaskedValue,this.masked=I}get value(){return this._value}set value($){this.value!==$&&(this.masked.value=$,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue($){this.unmaskedValue!==$&&(this.masked.unmaskedValue=$,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue($){this.masked.typedValueEquals($)||(this.masked.typedValue=$,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent($){for(var I=arguments.length,N=new Array(I>1?I-1:0),B=1;B<I;B++)N[B-1]=arguments[B];const j=this._listeners[$];j&&j.forEach(U=>U(...N))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos($){!this.el||!this.el.isActive||(this.el.select($,$),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const $=this.masked.unmaskedValue,I=this.masked.value,N=this.displayValue,B=this.unmaskedValue!==$||this.value!==I;this._unmaskedValue=$,this._value=I,this.el.value!==N&&(this.el.value=N),B&&this._fireChangeEvents()}updateOptions($){const{mask:I}=$,N=_objectWithoutPropertiesLoose($,_excluded$1),B=!this.maskEquals(I),j=!objectIncludes(this.masked,N);B&&(this.mask=I),j&&this.masked.updateOptions(N),(B||j)&&this.updateControl()}updateCursor($){$!=null&&(this.cursorPos=$,this._delayUpdateCursor($))}_delayUpdateCursor($){this._abortUpdateCursor(),this._changingCursorPos=$,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,DIRECTION.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on($,I){return this._listeners[$]||(this._listeners[$]=[]),this._listeners[$].push(I),this}off($,I){if(!this._listeners[$])return this;if(!I)return delete this._listeners[$],this;const N=this._listeners[$].indexOf(I);return N>=0&&this._listeners[$].splice(N,1),this}_onInput($){if(this._inputEvent=$,this._abortUpdateCursor(),!this._selection)return this.updateValue();const I=new ActionDetails(this.el.value,this.cursorPos,this.displayValue,this._selection),N=this.masked.rawInputValue,B=this.masked.splice(I.startChangePos,I.removed.length,I.inserted,I.removeDirection,{input:!0,raw:!0}).offset,j=N===this.masked.rawInputValue?I.removeDirection:DIRECTION.NONE;let U=this.masked.nearestInputPos(I.startChangePos+B,j);j!==DIRECTION.NONE&&(U=this.masked.nearestInputPos(U,DIRECTION.NONE)),this.updateControl(),this.updateCursor(U),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop($){$.preventDefault(),$.stopPropagation()}_onFocus($){this.alignCursorFriendly()}_onClick($){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}IMask.InputMask=InputMask;class MaskedEnum extends MaskedPattern{_update($){$.enum&&($.mask="*".repeat($.enum[0].length)),super._update($)}doValidate(){return this.enum.some($=>$.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}}IMask.MaskedEnum=MaskedEnum;class MaskedNumber extends Masked{constructor($){super(Object.assign({},MaskedNumber.DEFAULTS,$))}_update($){super._update($),this._updateRegExps()}_updateRegExps(){let $="^"+(this.allowNegative?"[+|\\-]?":""),I="\\d*",N=(this.scale?"(".concat(escapeRegExp(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp($+I+N),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(escapeRegExp).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(escapeRegExp(this.thousandsSeparator),"g")}_removeThousandsSeparators($){return $.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators($){const I=$.split(this.radix);return I[0]=I[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),I.join(this.radix)}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(I.input&&I.raw||!I.input&&!I.raw)?$.replace(this._mapToRadixRegExp,this.radix):$);const[N,B]=normalizePrepare(super.doPrepare($,I));return $&&!N&&(B.skip=!0),[N,B]}_separatorsCount($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=0;for(let B=0;B<$;++B)this._value.indexOf(this.thousandsSeparator,B)===B&&(++N,I&&($+=this.thousandsSeparator.length));return N}_separatorsCountFromSlice(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators($).length,!0)}extractInput(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,N=arguments.length>2?arguments[2]:void 0;return[$,I]=this._adjustRangeWithSeparators($,I),this._removeThousandsSeparators(super.extractInput($,I,N))}_appendCharRaw($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw($,I);const N=I.tail&&I._beforeTailState?I._beforeTailState._value:this._value,B=this._separatorsCountFromSlice(N);this._value=this._removeThousandsSeparators(this.value);const j=super._appendCharRaw($,I);this._value=this._insertThousandsSeparators(this._value);const U=I.tail&&I._beforeTailState?I._beforeTailState._value:this._value,q=this._separatorsCountFromSlice(U);return j.tailShift+=(q-B)*this.thousandsSeparator.length,j.skip=!j.rawInserted&&$===this.thousandsSeparator,j}_findSeparatorAround($){if(this.thousandsSeparator){const I=$-this.thousandsSeparator.length+1,N=this.value.indexOf(this.thousandsSeparator,I);if(N<=$)return N}return-1}_adjustRangeWithSeparators($,I){const N=this._findSeparatorAround($);N>=0&&($=N);const B=this._findSeparatorAround(I);return B>=0&&(I=B+this.thousandsSeparator.length),[$,I]}remove(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;[$,I]=this._adjustRangeWithSeparators($,I);const N=this.value.slice(0,$),B=this.value.slice(I),j=this._separatorsCount(N.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(N+B));const U=this._separatorsCountFromSlice(N);return new ChangeDetails({tailShift:(U-j)*this.thousandsSeparator.length})}nearestInputPos($,I){if(!this.thousandsSeparator)return $;switch(I){case DIRECTION.NONE:case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:{const N=this._findSeparatorAround($-1);if(N>=0){const B=N+this.thousandsSeparator.length;if($<B||this.value.length<=B||I===DIRECTION.FORCE_LEFT)return N}break}case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:{const N=this._findSeparatorAround($);if(N>=0)return N+this.thousandsSeparator.length}}return $}doValidate($){let I=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(I){const N=this.number;I=I&&!isNaN(N)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return I&&super.doValidate($)}doCommit(){if(this.value){const $=this.number;let I=$;this.min!=null&&(I=Math.max(I,this.min)),this.max!=null&&(I=Math.min(I,this.max)),I!==$&&(this.unmaskedValue=this.doFormat(I));let N=this.value;this.normalizeZeros&&(N=this._normalizeZeros(N)),this.padFractionalZeros&&this.scale>0&&(N=this._padFractionalZeros(N)),this._value=N}super.doCommit()}_normalizeZeros($){const I=this._removeThousandsSeparators($).split(this.radix);return I[0]=I[0].replace(/^(\D*)(0*)(\d*)/,(N,B,j,U)=>B+U),$.length&&!/\d$/.test(I[0])&&(I[0]=I[0]+"0"),I.length>1&&(I[1]=I[1].replace(/0*$/,""),I[1].length||(I.length=1)),this._insertThousandsSeparators(I.join(this.radix))}_padFractionalZeros($){if(!$)return $;const I=$.split(this.radix);return I.length<2&&I.push(""),I[1]=I[1].padEnd(this.scale,"0"),I.join(this.radix)}doSkipInvalid($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=arguments.length>2?arguments[2]:void 0;const B=this.scale===0&&$!==this.thousandsSeparator&&($===this.radix||$===MaskedNumber.UNMASKED_RADIX||this.mapToRadix.includes($));return super.doSkipInvalid($,I,N)&&!B}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,MaskedNumber.UNMASKED_RADIX)}set unmaskedValue($){super.unmaskedValue=$}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue($){this.rawInputValue=this.doFormat($).replace(MaskedNumber.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number($){this.typedValue=$}get allowNegative(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0}typedValueEquals($){return(super.typedValueEquals($)||MaskedNumber.EMPTY_VALUES.includes($)&&MaskedNumber.EMPTY_VALUES.includes(this.typedValue))&&!($===0&&this.value==="")}}MaskedNumber.UNMASKED_RADIX=".";MaskedNumber.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[MaskedNumber.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:M=>M.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};MaskedNumber.EMPTY_VALUES=[...Masked.EMPTY_VALUES,0];IMask.MaskedNumber=MaskedNumber;class MaskedFunction extends Masked{_update($){$.mask&&($.validate=$.mask),super._update($)}}IMask.MaskedFunction=MaskedFunction;const _excluded=["compiledMasks","currentMaskRef","currentMask"],_excluded2=["mask"];class MaskedDynamic extends Masked{constructor($){super(Object.assign({},MaskedDynamic.DEFAULTS,$)),this.currentMask=null}_update($){super._update($),"mask"in $&&(this.compiledMasks=Array.isArray($.mask)?$.mask.map(I=>createMask(I)):[])}_appendCharRaw($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=this._applyDispatch($,I);return this.currentMask&&N.aggregate(this.currentMask._appendChar($,this.currentMaskFlags(I))),N}_applyDispatch(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const N=I.tail&&I._beforeTailState!=null?I._beforeTailState._value:this.value,B=this.rawInputValue,j=I.tail&&I._beforeTailState!=null?I._beforeTailState._rawInputValue:B,U=B.slice(j.length),q=this.currentMask,Y=new ChangeDetails,K=q==null?void 0:q.state;if(this.currentMask=this.doDispatch($,Object.assign({},I)),this.currentMask)if(this.currentMask!==q){if(this.currentMask.reset(),j){const G=this.currentMask.append(j,{raw:!0});Y.tailShift=G.inserted.length-N.length}U&&(Y.tailShift+=this.currentMask.append(U,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=K;return Y}_appendPlaceholder(){const $=this._applyDispatch(...arguments);return this.currentMask&&$.aggregate(this.currentMask._appendPlaceholder()),$}_appendEager(){const $=this._applyDispatch(...arguments);return this.currentMask&&$.aggregate(this.currentMask._appendEager()),$}currentMaskFlags($){var I,N;return Object.assign({},$,{_beforeTailState:((I=$._beforeTailState)===null||I===void 0?void 0:I.currentMaskRef)===this.currentMask&&((N=$._beforeTailState)===null||N===void 0?void 0:N.currentMask)||$._beforeTailState})}doDispatch($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.dispatch($,this,I)}doValidate($){return super.doValidate($)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags($)))}doPrepare($){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[N,B]=normalizePrepare(super.doPrepare($,I));if(this.currentMask){let j;[N,j]=normalizePrepare(super.doPrepare(N,this.currentMaskFlags(I))),B=B.aggregate(j)}return[N,B]}reset(){var $;($=this.currentMask)===null||$===void 0||$.reset(),this.compiledMasks.forEach(I=>I.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value($){super.value=$}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue($){super.unmaskedValue=$}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue($){let I=String($);this.currentMask&&(this.currentMask.typedValue=$,I=this.currentMask.unmaskedValue),this.unmaskedValue=I}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var $;return!!(!(($=this.currentMask)===null||$===void 0)&&$.isComplete)}get isFilled(){var $;return!!(!(($=this.currentMask)===null||$===void 0)&&$.isFilled)}remove(){const $=new ChangeDetails;return this.currentMask&&$.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),$}get state(){var $;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(I=>I.state),currentMaskRef:this.currentMask,currentMask:($=this.currentMask)===null||$===void 0?void 0:$.state})}set state($){const{compiledMasks:I,currentMaskRef:N,currentMask:B}=$,j=_objectWithoutPropertiesLoose($,_excluded);this.compiledMasks.forEach((U,q)=>U.state=I[q]),N!=null&&(this.currentMask=N,this.currentMask.state=B),super.state=j}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite($){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager($){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid($){console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals($){return Array.isArray($)&&this.compiledMasks.every((I,N)=>{if(!$[N])return;const B=$[N],{mask:j}=B,U=_objectWithoutPropertiesLoose(B,_excluded2);return objectIncludes(I,U)&&I.maskEquals(j)})}typedValueEquals($){var I;return!!(!((I=this.currentMask)===null||I===void 0)&&I.typedValueEquals($))}}MaskedDynamic.DEFAULTS={dispatch:(M,$,I)=>{if(!$.compiledMasks.length)return;const N=$.rawInputValue,B=$.compiledMasks.map((j,U)=>(j.reset(),j.append(N,{raw:!0}),j.append(M,$.currentMaskFlags(I)),{weight:j.rawInputValue.length,index:U}));return B.sort((j,U)=>U.weight-j.weight),$.compiledMasks[B[0].index]}};IMask.MaskedDynamic=MaskedDynamic;const PIPE_TYPE={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function createPipe(M){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:PIPE_TYPE.MASKED,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:PIPE_TYPE.MASKED;const N=createMask(M);return B=>N.runIsolated(j=>(j[$]=B,j[I]))}function pipe(M){for(var $=arguments.length,I=new Array($>1?$-1:0),N=1;N<$;N++)I[N-1]=arguments[N];return createPipe(...I)(M)}IMask.PIPE_TYPE=PIPE_TYPE;IMask.createPipe=createPipe;IMask.pipe=pipe;try{globalThis.IMask=IMask}catch(M){}const _sfc_main$_={mixins:[Fieldtype],props:{required:{type:Boolean,default:!1},showSeconds:{type:Boolean,default:!1}},inject:["storeName"],data(){return{inputValue:this.value,mask:null}},watch:{inputValue(M){this.mask.value=M},value(M){this.inputValue=M,this.updateActualValue()}},computed:{useSeconds(){return this.showSeconds||this.config.seconds_enabled}},created(){this.$events.$on(`container.${this.storeName}.saving`,this.updateActualValue)},mounted(){this.mask=IMask(this.$refs.time,{mask:this.useSeconds?"0[0]:`0[0]:`00":"0[0]:`00"}),this.mask.value=new String(this.inputValue),this.mask.on("accept",M=>this.inputValue=this.mask.value)},destroyed(){this.$events.$off(`container.${this.storeName}.saving`,this.updateActualValue),this.mask.destroy()},methods:{focused(){this.$refs.time.select(),this.$emit("focus")},focus(){this.$refs.time.focus()},updateActualValue(){if(!this.inputValue){this.update(null);return}let M=this.inputValue.split(":");M.length===1&&M.push("00"),M.length===2&&this.useSeconds&&M.push("00"),M=M.map(I=>I.padStart(2,"0"));let $=M.join(":");this.value!==$&&this.update($),this.inputValue=$},setToNow(){const M=new Date,$=String(M.getHours()).padStart(2,"0"),I=String(M.getMinutes()).padStart(2,"0"),N=String(M.getSeconds()).padStart(2,"0");this.update(this.useSeconds?`${$}:${I}:${N}`:`${$}:${I}`)},adjustPart(M,$,I){const N=M.target.selectionStart,B=this.inputValue.split(":");let j=0;N>5?j=2:N>2&&(j=1);const q=parseInt(B[j])+($==="increment"?1:-1),Y=I(j,q);Y?B[j]=Y:B[j]=String(q).padStart(2,"0"),this.update(B.join(":")),this.$nextTick(()=>{M.target.selectionStart=N,M.target.selectionEnd=N})}}};var _sfc_render$_=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"time-fieldtype-container"},[I("div",{staticClass:"input-group"},[$.isReadOnly?$._e():I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Set to now"),expression:"__('Set to now')"}],staticClass:"input-group-prepend flex items-center",on:{click:$.setToNow}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/time"}})],1),I("input",{ref:"time",staticClass:"input-text [&::-webkit-calendar-picker-indicator]:hidden",attrs:{type:"time",step:$.useSeconds?"1":null,readonly:$.isReadOnly},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:$.clear.apply(null,arguments)},focus:$.focused,blur:function(N){return $.$emit("blur")},change:$.updateActualValue}})])])},_sfc_staticRenderFns$_=[],__component__$$=normalizeComponent$2(_sfc_main$_,_sfc_render$_,_sfc_staticRenderFns$_,!1,null,null,null,null);const TimeFieldtype=__component__$$.exports,_sfc_main$Z={mixins:[Fieldtype],computed:{inlineLabel(){return this.value?this.config.inline_label_when_true||this.config.inline_label:this.config.inline_label},replicatorPreview(){if(!(!this.showFieldPreviews||!this.config.replicator_preview))return(this.value?"✓":"✗")+" "+__(this.config.display)}}};var _sfc_render$Z=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"toggle-fieldtype-wrapper"},[I("toggle-input",{attrs:{value:$.value,"read-only":$.isReadOnly,id:$.fieldId},on:{input:$.update}}),$.inlineLabel?I("label",{staticClass:"inline-label",domProps:{innerHTML:$._s($.$options.filters.markdown($.__($.inlineLabel)))}}):$._e()],1)},_sfc_staticRenderFns$Z=[],__component__$_=normalizeComponent$2(_sfc_main$Z,_sfc_render$Z,_sfc_staticRenderFns$Z,!1,null,null,null,null);const ToggleFieldtype=__component__$_.exports,_sfc_main$Y={mixins:[IndexFieldtype]};var _sfc_render$Y=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex items-center"},[this.value?I("svg-icon",{staticClass:"w-3 text-green-600",attrs:{name:"light/check"}}):$._e(),this.value?$._e():I("svg-icon",{staticClass:"w-3 text-gray-500",attrs:{name:"light/close"}})],1)},_sfc_staticRenderFns$Y=[],__component__$Z=normalizeComponent$2(_sfc_main$Y,_sfc_render$Y,_sfc_staticRenderFns$Y,!1,null,null,null,null);const ToggleIndexFieldtype=__component__$Z.exports,_sfc_main$X={mixins:[Fieldtype],components:{WidthSelector},methods:{}};var _sfc_render$X=function M(){var $=this,I=$._self._c;return I("width-selector",{attrs:{name:$.name,value:$.value,"initial-widths":$.config.options},on:{input:$.updateDebounced,focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")}}})},_sfc_staticRenderFns$X=[],__component__$Y=normalizeComponent$2(_sfc_main$X,_sfc_render$X,_sfc_staticRenderFns$X,!1,null,null,null,null);const WidthFieldtype=__component__$Y.exports,_sfc_main$W={mixins:[Fieldtype],data(){return{data:this.value||"",canShowIframe:!1}},watch:{data:_.debounce(function(M){this.update(M)},500),value(M){this.data=M}},mounted(){this.canShowIframe=!0},computed:{embedUrl(){let M=this.data;if(M.includes("youtube")&&(M=M.includes("shorts/")?M.replace("shorts/","embed/"):M.replace("watch?v=","embed/")),M.includes("youtu.be")&&(M=M.replace("youtu.be","www.youtube.com/embed")),M.includes("vimeo")&&(M=M.replace("/vimeo.com","/player.vimeo.com/video"),!this.data.includes("progressive_redirect")&&M.split("/").length>5)){let $=M.substr(M.lastIndexOf("/")+1);M=M.substr(0,M.lastIndexOf("/"))+"?h="+$.replace("?","&")}return M.includes("&")&&!M.includes("?")&&(M=M.replace("&","?")),M},isEmbeddable(){return this.isUrl&&this.data.includes("youtube")||this.data.includes("vimeo")||this.data.includes("youtu.be")},isInvalid(){return new RegExp(/<([A-Z][A-Z0-9]*)\b[^>]*>.*?<\/\1>|<([A-Z][A-Z0-9]*)\b[^\/]*\/>/i).test(this.data)},isUrl(){return new RegExp("^(https?|ftp)://[^s/$.?#].*$","i").test(this.data)},isVideo(){return!this.isEmbeddable&&(this.data.includes(".mp4")||this.data.includes(".ogv")||this.data.includes(".mov")||this.data.includes(".webm"))}}};var _sfc_render$W=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"video-fieldtype-container"},[I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"input-group"},[I("div",{staticClass:"input-group-prepend"},[$._v($._s($.__("URL")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.data,expression:"data"}],staticClass:"input-text flex-1",class:{"bg-white dark:bg-dark-600":!$.isReadOnly},attrs:{type:"text",id:$.fieldId,readonly:$.isReadOnly,placeholder:$.__($.config.placeholder)||"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},domProps:{value:$.data},on:{focus:function(N){return $.$emit("focus")},blur:function(N){return $.$emit("blur")},input:function(N){N.target.composing||($.data=N.target.value)}}})])]),$.isInvalid?I("p",{staticClass:"text-red-500 mt-4"},[$._v($._s($.__("statamic::validation.url")))]):$._e(),!$.isInvalid&&($.isEmbeddable||$.isVideo)?I("div",{staticClass:"video-preview-wrapper"},[$.isEmbeddable&&$.canShowIframe?I("div",{staticClass:"embed-video"},[I("iframe",{attrs:{src:$.embedUrl,frameborder:"0",allow:"fullscreen"}})]):$.isVideo?I("div",{staticClass:"native-video"},[I("video",{attrs:{controls:"",src:$.embedUrl}})]):$._e()]):$._e()])},_sfc_staticRenderFns$W=[],__component__$X=normalizeComponent$2(_sfc_main$W,_sfc_render$W,_sfc_staticRenderFns$W,!1,null,null,null,null);const VideoFieldtype=__component__$X.exports,_sfc_main$V={mixins:[Fieldtype],data(){return{codemirror:null}},computed:{readOnlyOption(){return this.isReadOnly?"nocursor":!1}},mounted(){this.codemirror=CodeMirror(this.$refs.codemirror,{value:this.value||"",mode:"yaml",direction:document.querySelector("html").getAttribute("dir")??"ltr",tabSize:2,indentUnit:2,autoRefresh:!0,indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,readOnly:this.readOnlyOption,theme:this.config.theme||"material",inputStyle:"contenteditable"}),this.codemirror.on("change",M=>{this.updateDebounced(M.doc.getValue())})},watch:{readOnlyOption(M){this.codemirror.setOption("readOnly",M)}},methods:{focus(){this.codemirror.focus()}}};var _sfc_render$V=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"yaml-fieldtype-container relative"},[I("div",{staticClass:"code-mode"},[$._v("YAML")]),I("div",{ref:"codemirror"})])},_sfc_staticRenderFns$V=[],__component__$W=normalizeComponent$2(_sfc_main$V,_sfc_render$V,_sfc_staticRenderFns$V,!1,null,null,null,null);const YamlFieldtype=__component__$W.exports;Vue$3.component("select-input",Select);Vue$3.component("text-input",Text$1);Vue$3.component("textarea-input",Textarea);Vue$3.component("toggle-input",Toggle);Vue$3.component("relationship-input",RelationshipInput);Vue$3.component("text-fieldtype",TextFieldtype);Vue$3.component("textarea-fieldtype",TextareaFieldtype);Vue$3.component("slug-fieldtype",SlugFieldtype);Vue$3.component("array-fieldtype",ArrayFieldtype);Vue$3.component("assets-fieldtype",AssetsFieldtype);Vue$3.component("assets-fieldtype-index",AssetsIndexFieldtype);Vue$3.component("asset_folder-fieldtype",AssetFolderFieldtype);Vue$3.component("bard-fieldtype",BardFieldtype);Vue$3.component("bard-fieldtype-set",BardSet);Vue$3.component("bard_buttons_setting-fieldtype",BardButtonsSettingFieldtype);Vue$3.component("button_group-fieldtype",ButtonGroupFieldtype);Vue$3.component("checkboxes-fieldtype",CheckboxesFieldtype);Vue$3.component("code-fieldtype",CodeFieldtype);Vue$3.component("collection_routes-fieldtype",Routes);Vue$3.component("collection_title_formats-fieldtype",TitleFormats);Vue$3.component("color-fieldtype",ColorFieldtype);Vue$3.component("date-fieldtype",DateFieldtype);Vue$3.component("dictionary-fieldtype",DictionaryFieldtype);Vue$3.component("dictionary-fieldtype-index",DictionaryIndexFieldtype);Vue$3.component("dictionary_fields-fieldtype",DictionaryFields);Vue$3.component("field_display-fieldtype",FieldDisplayFieldtype);Vue$3.component("fields-fieldtype",FieldsFieldtype);Vue$3.component("files-fieldtype",FilesFieldtype);Vue$3.component("float-fieldtype",FloatFieldtype);Vue$3.component("global_set_sites-fieldtype",Sites);Vue$3.component("grid-fieldtype",Grid);Vue$3.component("grid-fieldtype-index",GridIndex);Vue$3.component("group-fieldtype",GroupFieldtype);Vue$3.component("hidden-fieldtype",HiddenFieldtype);Vue$3.component("html-fieldtype",HtmlFieldtype);Vue$3.component("icon-fieldtype",IconFieldtype);Vue$3.component("integer-fieldtype",IntegerFieldtype);Vue$3.component("link-fieldtype",LinkFieldtype);Vue$3.component("list-fieldtype",ListFieldtype);Vue$3.component("list-fieldtype-index",ListIndexFieldtype);Vue$3.component("markdown-fieldtype",MarkdownFieldtype);Vue$3.component("markdown_buttons_setting-fieldtype",MarkdownButtonsSettingFieldtype);Vue$3.component("radio-fieldtype",RadioFieldtype);Vue$3.component("range-fieldtype",RangeFieldtype);Vue$3.component("relationship-fieldtype",RelationshipFieldtype);Vue$3.component("relationship-fieldtype-index",RelationshipIndexFieldtype);Vue$3.component("replicator-fieldtype",Replicator);Vue$3.component("replicator-fieldtype-set",ReplicatorSet);Vue$3.component("replicator-fieldtype-index",ReplicatorIndex);Vue$3.component("section-fieldtype",SectionFieldtype);Vue$3.component("select-fieldtype",SelectFieldtype);Vue$3.component("sets-fieldtype",SetsFieldtype);Vue$3.component("table-fieldtype",TableFieldtype);Vue$3.component("tags-fieldtype",TagsFieldtype);Vue$3.component("tags-fieldtype-index",TagsIndexFieldtype);Vue$3.component("taggable-fieldtype-index",TagsIndexFieldtype);Vue$3.component("template_folder-fieldtype",TemplateFolderFieldtype);Vue$3.component("time-fieldtype",TimeFieldtype);Vue$3.component("toggle-fieldtype",ToggleFieldtype);Vue$3.component("toggle-fieldtype-index",ToggleIndexFieldtype);Vue$3.component("width-fieldtype",WidthFieldtype);Vue$3.component("video-fieldtype",VideoFieldtype);Vue$3.component("yaml-fieldtype",YamlFieldtype);Vue$3.component("set-picker",SetPicker);Vue$3.component("set-field",SetField);Vue$3.component("revealer-fieldtype",RevealerFieldtype);Vue$3.component("status-fieldtype",StatusFieldtype);Vue$3.component("template-fieldtype",TemplateFieldtype);const Elastic={inserted:function(M){setTimeout(()=>{autosize(M)})}};Vue$3.directive("elastic",Elastic);Vue$3.directive("focus",{inserted:function(M){M.focus()}});function getBasePlacement(M){return M.split("-")[0]}function getAlignment(M){return M.split("-")[1]}function getMainAxisFromPlacement(M){return["top","bottom"].includes(getBasePlacement(M))?"x":"y"}function getLengthFromAxis(M){return M==="y"?"height":"width"}function computeCoordsFromPlacement(M){let{reference:$,floating:I,placement:N}=M;const B=$.x+$.width/2-I.width/2,j=$.y+$.height/2-I.height/2;let U;switch(getBasePlacement(N)){case"top":U={x:B,y:$.y-I.height};break;case"bottom":U={x:B,y:$.y+$.height};break;case"right":U={x:$.x+$.width,y:j};break;case"left":U={x:$.x-I.width,y:j};break;default:U={x:$.x,y:$.y}}const q=getMainAxisFromPlacement(N),Y=getLengthFromAxis(q);switch(getAlignment(N)){case"start":U[q]=U[q]-($[Y]/2-I[Y]/2);break;case"end":U[q]=U[q]+($[Y]/2-I[Y]/2);break}return U}const computePosition$1=async(M,$,I)=>{const{placement:N="bottom",strategy:B="absolute",middleware:j=[],platform:U}=I;let q=await U.getElementRects({reference:M,floating:$,strategy:B}),{x:Y,y:K}=computeCoordsFromPlacement({...q,placement:N}),G=N,J={};for(let Z=0;Z<j.length;Z++){const{name:ee,fn:te}=j[Z],{x:se,y:re,data:ne,reset:ce}=await te({x:Y,y:K,initialPlacement:N,placement:G,strategy:B,middlewareData:J,rects:q,platform:U,elements:{reference:M,floating:$}});if(Y=se??Y,K=re??K,J={...J,[ee]:ne??{}},ce){typeof ce=="object"&&(ce.placement&&(G=ce.placement),ce.rects&&(q=ce.rects===!0?await U.getElementRects({reference:M,floating:$,strategy:B}):ce.rects),{x:Y,y:K}=computeCoordsFromPlacement({...q,placement:G})),Z=-1;continue}}return{x:Y,y:K,placement:G,strategy:B,middlewareData:J}};function expandPaddingObject(M){return{top:0,right:0,bottom:0,left:0,...M}}function getSideObjectFromPadding(M){return typeof M!="number"?expandPaddingObject(M):{top:M,right:M,bottom:M,left:M}}function rectToClientRect(M){return{...M,top:M.y,left:M.x,right:M.x+M.width,bottom:M.y+M.height}}async function detectOverflow(M,$){$===void 0&&($={});const{x:I,y:N,platform:B,rects:j,elements:U,strategy:q}=M,{boundary:Y="clippingParents",rootBoundary:K="viewport",elementContext:G="floating",altBoundary:J=!1,padding:Z=0}=$,ee=getSideObjectFromPadding(Z),se=U[J?G==="floating"?"reference":"floating":G],re=await B.getClippingClientRect({element:await B.isElement(se)?se:se.contextElement||await B.getDocumentElement({element:U.floating}),boundary:Y,rootBoundary:K}),ne=rectToClientRect(await B.convertOffsetParentRelativeRectToViewportRelativeRect({rect:G==="floating"?{...j.floating,x:I,y:N}:j.reference,offsetParent:await B.getOffsetParent({element:U.floating}),strategy:q}));return{top:re.top-ne.top+ee.top,bottom:ne.bottom-re.bottom+ee.bottom,left:re.left-ne.left+ee.left,right:ne.right-re.right+ee.right}}const min$2=Math.min,max$2=Math.max;function within(M,$,I){return max$2(M,min$2($,I))}const arrow=M=>({name:"arrow",options:M,async fn($){const{element:I,padding:N=0}=M??{},{x:B,y:j,placement:U,rects:q,platform:Y}=$;if(I==null)return{};const K=getSideObjectFromPadding(N),G={x:B,y:j},J=getBasePlacement(U),Z=getMainAxisFromPlacement(J),ee=getLengthFromAxis(Z),te=await Y.getDimensions({element:I}),se=Z==="y"?"top":"left",re=Z==="y"?"bottom":"right",ne=q.reference[ee]+q.reference[Z]-G[Z]-q.floating[ee],ce=G[Z]-q.reference[Z],me=await Y.getOffsetParent({element:I}),ue=me?Z==="y"?me.clientHeight||0:me.clientWidth||0:0,_e=ne/2-ce/2,fe=K[se],ge=ue-te[ee]-K[re],ye=ue/2-te[ee]/2+_e,xe=within(fe,ye,ge);return{data:{[Z]:xe,centerOffset:ye-xe}}}}),hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(M){return M.replace(/left|right|bottom|top/g,$=>hash$1[$])}function getAlignmentSides(M,$){const I=getAlignment(M)==="start",N=getMainAxisFromPlacement(M),B=getLengthFromAxis(N);let j=N==="x"?I?"right":"left":I?"bottom":"top";return $.reference[B]>$.floating[B]&&(j=getOppositePlacement(j)),{main:j,cross:getOppositePlacement(j)}}const hash={start:"end",end:"start"};function getOppositeAlignmentPlacement(M){return M.replace(/start|end/g,$=>hash[$])}const basePlacements=["top","right","bottom","left"],allPlacements=basePlacements.reduce((M,$)=>M.concat($,$+"-start",$+"-end"),[]);function getPlacementList(M,$,I){return(M?[...I.filter(B=>getAlignment(B)===M),...I.filter(B=>getAlignment(B)!==M)]:I.filter(B=>getBasePlacement(B)===B)).filter(B=>M?getAlignment(B)===M||($?getOppositeAlignmentPlacement(B)!==B:!1):!0)}const autoPlacement=function(M){return M===void 0&&(M={}),{name:"autoPlacement",options:M,async fn($){var I,N,B,j,U,q;const{x:Y,y:K,rects:G,middlewareData:J,placement:Z}=$,{alignment:ee=null,allowedPlacements:te=allPlacements,autoAlignment:se=!0,...re}=M;if((I=J.autoPlacement)!=null&&I.skip)return{};const ne=getPlacementList(ee,se,te),ce=await detectOverflow($,re),me=(N=(B=J.autoPlacement)==null?void 0:B.index)!=null?N:0,ue=ne[me],{main:_e,cross:fe}=getAlignmentSides(ue,G);if(Z!==ue)return{x:Y,y:K,reset:{placement:ne[0]}};const ge=[ce[getBasePlacement(ue)],ce[_e],ce[fe]],ye=[...(j=(U=J.autoPlacement)==null?void 0:U.overflows)!=null?j:[],{placement:ue,overflows:ge}],xe=ne[me+1];if(xe)return{data:{index:me+1,overflows:ye},reset:{placement:xe}};const le=ye.slice().sort((ve,we)=>ve.overflows[0]-we.overflows[0]),be=(q=le.find(ve=>{let{overflows:we}=ve;return we.every(Ae=>Ae<=0)}))==null?void 0:q.placement;return{data:{skip:!0},reset:{placement:be??le[0].placement}}}}};function getExpandedPlacements(M){const $=getOppositePlacement(M);return[getOppositeAlignmentPlacement(M),$,getOppositeAlignmentPlacement($)]}const flip=function(M){return M===void 0&&(M={}),{name:"flip",options:M,async fn($){var I,N;const{placement:B,middlewareData:j,rects:U,initialPlacement:q}=$;if((I=j.flip)!=null&&I.skip)return{};const{mainAxis:Y=!0,crossAxis:K=!0,fallbackPlacements:G,fallbackStrategy:J="bestFit",flipAlignment:Z=!0,...ee}=M,te=getBasePlacement(B),re=G||(te===q||!Z?[getOppositePlacement(q)]:getExpandedPlacements(q)),ne=[q,...re],ce=await detectOverflow($,ee),me=[];let ue=((N=j.flip)==null?void 0:N.overflows)||[];if(Y&&me.push(ce[te]),K){const{main:ye,cross:xe}=getAlignmentSides(B,U);me.push(ce[ye],ce[xe])}if(ue=[...ue,{placement:B,overflows:me}],!me.every(ye=>ye<=0)){var _e,fe;const ye=((_e=(fe=j.flip)==null?void 0:fe.index)!=null?_e:0)+1,xe=ne[ye];if(xe)return{data:{index:ye,overflows:ue},reset:{placement:xe}};let le="bottom";switch(J){case"bestFit":{var ge;const be=(ge=ue.slice().sort((ve,we)=>ve.overflows.filter(Ae=>Ae>0).reduce((Ae,Se)=>Ae+Se,0)-we.overflows.filter(Ae=>Ae>0).reduce((Ae,Se)=>Ae+Se,0))[0])==null?void 0:ge.placement;be&&(le=be);break}case"initialPlacement":le=q;break}return{data:{skip:!0},reset:{placement:le}}}return{}}}};function convertValueToCoords(M){let{placement:$,rects:I,value:N}=M;const B=getBasePlacement($),j=["left","top"].includes(B)?-1:1,U=typeof N=="function"?N({...I,placement:$}):N,{mainAxis:q,crossAxis:Y}=typeof U=="number"?{mainAxis:U,crossAxis:0}:{mainAxis:0,crossAxis:0,...U};return getMainAxisFromPlacement(B)==="x"?{x:Y,y:q*j}:{x:q*j,y:Y}}const offset$1=function(M){return M===void 0&&(M=0),{name:"offset",options:M,fn($){const{x:I,y:N,placement:B,rects:j}=$,U=convertValueToCoords({placement:B,rects:j,value:M});return{x:I+U.x,y:N+U.y,data:U}}}};function getCrossAxis(M){return M==="x"?"y":"x"}const shift=function(M){return M===void 0&&(M={}),{name:"shift",options:M,async fn($){const{x:I,y:N,placement:B}=$,{mainAxis:j=!0,crossAxis:U=!1,limiter:q={fn:re=>{let{x:ne,y:ce}=re;return{x:ne,y:ce}}},...Y}=M,K={x:I,y:N},G=await detectOverflow($,Y),J=getMainAxisFromPlacement(getBasePlacement(B)),Z=getCrossAxis(J);let ee=K[J],te=K[Z];if(j){const re=J==="y"?"top":"left",ne=J==="y"?"bottom":"right",ce=ee+G[re],me=ee-G[ne];ee=within(ce,ee,me)}if(U){const re=Z==="y"?"top":"left",ne=Z==="y"?"bottom":"right",ce=te+G[re],me=te-G[ne];te=within(ce,te,me)}const se=q.fn({...$,[J]:ee,[Z]:te});return{...se,data:{x:se.x-I,y:se.y-N}}}}},size=function(M){return M===void 0&&(M={}),{name:"size",options:M,async fn($){var I;const{placement:N,rects:B,middlewareData:j}=$,{apply:U,...q}=M;if((I=j.size)!=null&&I.skip)return{};const Y=await detectOverflow($,q),K=getBasePlacement(N),G=getAlignment(N)==="end";let J,Z;K==="top"||K==="bottom"?(J=K,Z=G?"left":"right"):(Z=K,J=G?"top":"bottom");const ee=max$2(Y.left,0),te=max$2(Y.right,0),se=max$2(Y.top,0),re=max$2(Y.bottom,0),ne={height:B.floating.height-(["left","right"].includes(N)?2*(se!==0||re!==0?se+re:max$2(Y.top,Y.bottom)):Y[J]),width:B.floating.width-(["top","bottom"].includes(N)?2*(ee!==0||te!==0?ee+te:max$2(Y.left,Y.right)):Y[Z])};return U==null||U({...ne,...B}),{data:{skip:!0},reset:{rects:!0}}}}};function isWindow(M){return(M==null?void 0:M.toString())==="[object Window]"}function getWindow(M){if(M==null)return window;if(!isWindow(M)){const $=M.ownerDocument;return $&&$.defaultView||window}return M}function getComputedStyle$1(M){return getWindow(M).getComputedStyle(M)}function getNodeName(M){return isWindow(M)?"":M?(M.nodeName||"").toLowerCase():""}function isHTMLElement(M){return M instanceof getWindow(M).HTMLElement}function isElement(M){return M instanceof getWindow(M).Element}function isNode(M){return M instanceof getWindow(M).Node}function isShadowRoot(M){const $=getWindow(M).ShadowRoot;return M instanceof $||M instanceof ShadowRoot}function isScrollParent(M){const{overflow:$,overflowX:I,overflowY:N}=getComputedStyle$1(M);return/auto|scroll|overlay|hidden/.test($+N+I)}function isTableElement(M){return["table","td","th"].includes(getNodeName(M))}function isContainingBlock(M){const $=navigator.userAgent.toLowerCase().includes("firefox"),I=getComputedStyle$1(M);return I.transform!=="none"||I.perspective!=="none"||I.contain==="paint"||["transform","perspective"].includes(I.willChange)||$&&I.willChange==="filter"||$&&(I.filter?I.filter!=="none":!1)}const min$1=Math.min,max$1=Math.max,round$1=Math.round;function getBoundingClientRect(M,$){$===void 0&&($=!1);const I=M.getBoundingClientRect();let N=1,B=1;return $&&isHTMLElement(M)&&(N=M.offsetWidth>0&&round$1(I.width)/M.offsetWidth||1,B=M.offsetHeight>0&&round$1(I.height)/M.offsetHeight||1),{width:I.width/N,height:I.height/B,top:I.top/B,right:I.right/N,bottom:I.bottom/B,left:I.left/N,x:I.left/N,y:I.top/B}}function getDocumentElement(M){return((isNode(M)?M.ownerDocument:M.document)||window.document).documentElement}function getNodeScroll(M){return isWindow(M)?{scrollLeft:M.pageXOffset,scrollTop:M.pageYOffset}:{scrollLeft:M.scrollLeft,scrollTop:M.scrollTop}}function getWindowScrollBarX(M){return getBoundingClientRect(getDocumentElement(M)).left+getNodeScroll(M).scrollLeft}function isScaled(M){const $=getBoundingClientRect(M);return round$1($.width)!==M.offsetWidth||round$1($.height)!==M.offsetHeight}function getRectRelativeToOffsetParent(M,$,I){const N=isHTMLElement($),B=getDocumentElement($),j=getBoundingClientRect(M,N&&isScaled($));let U={scrollLeft:0,scrollTop:0};const q={x:0,y:0};if(N||!N&&I!=="fixed")if((getNodeName($)!=="body"||isScrollParent(B))&&(U=getNodeScroll($)),isHTMLElement($)){const Y=getBoundingClientRect($,!0);q.x=Y.x+$.clientLeft,q.y=Y.y+$.clientTop}else B&&(q.x=getWindowScrollBarX(B));return{x:j.left+U.scrollLeft-q.x,y:j.top+U.scrollTop-q.y,width:j.width,height:j.height}}function getParentNode(M){return getNodeName(M)==="html"?M:M.assignedSlot||M.parentNode||(isShadowRoot(M)?M.host:null)||getDocumentElement(M)}function getTrueOffsetParent(M){return!isHTMLElement(M)||getComputedStyle(M).position==="fixed"?null:M.offsetParent}function getContainingBlock(M){let $=getParentNode(M);for(;isHTMLElement($)&&!["html","body"].includes(getNodeName($));){if(isContainingBlock($))return $;$=$.parentNode}return null}function getOffsetParent(M){const $=getWindow(M);let I=getTrueOffsetParent(M);for(;I&&isTableElement(I)&&getComputedStyle(I).position==="static";)I=getTrueOffsetParent(I);return I&&(getNodeName(I)==="html"||getNodeName(I)==="body"&&getComputedStyle(I).position==="static"&&!isContainingBlock(I))?$:I||getContainingBlock(M)||$}function getDimensions(M){return{width:M.offsetWidth,height:M.offsetHeight}}function convertOffsetParentRelativeRectToViewportRelativeRect(M){let{rect:$,offsetParent:I,strategy:N}=M;const B=isHTMLElement(I),j=getDocumentElement(I);if(I===j)return $;let U={scrollLeft:0,scrollTop:0};const q={x:0,y:0};if((B||!B&&N!=="fixed")&&((getNodeName(I)!=="body"||isScrollParent(j))&&(U=getNodeScroll(I)),isHTMLElement(I))){const Y=getBoundingClientRect(I,!0);q.x=Y.x+I.clientLeft,q.y=Y.y+I.clientTop}return{...$,x:$.x-U.scrollLeft+q.x,y:$.y-U.scrollTop+q.y}}function getViewportRect(M){const $=getWindow(M),I=getDocumentElement(M),N=$.visualViewport;let B=I.clientWidth,j=I.clientHeight,U=0,q=0;return N&&(B=N.width,j=N.height,Math.abs($.innerWidth/N.scale-N.width)<.01&&(U=N.offsetLeft,q=N.offsetTop)),{width:B,height:j,x:U,y:q}}function getDocumentRect(M){var $;const I=getDocumentElement(M),N=getNodeScroll(M),B=($=M.ownerDocument)==null?void 0:$.body,j=max$1(I.scrollWidth,I.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),U=max$1(I.scrollHeight,I.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0);let q=-N.scrollLeft+getWindowScrollBarX(M);const Y=-N.scrollTop;return getComputedStyle$1(B||I).direction==="rtl"&&(q+=max$1(I.clientWidth,B?B.clientWidth:0)-j),{width:j,height:U,x:q,y:Y}}function getScrollParent(M){return["html","body","#document"].includes(getNodeName(M))?M.ownerDocument.body:isHTMLElement(M)&&isScrollParent(M)?M:getScrollParent(getParentNode(M))}function getScrollParents(M,$){var I;$===void 0&&($=[]);const N=getScrollParent(M),B=N===((I=M.ownerDocument)==null?void 0:I.body),j=getWindow(N),U=B?[j].concat(j.visualViewport||[],isScrollParent(N)?N:[]):N,q=$.concat(U);return B?q:q.concat(getScrollParents(getParentNode(U)))}function contains(M,$){const I=$.getRootNode==null?void 0:$.getRootNode();if(M.contains($))return!0;if(I&&isShadowRoot(I)){let N=$;do{if(N&&M===N)return!0;N=N.parentNode||N.host}while(N)}return!1}function getInnerBoundingClientRect(M){const $=getBoundingClientRect(M),I=$.top+M.clientTop,N=$.left+M.clientLeft;return{top:I,left:N,x:N,y:I,right:N+M.clientWidth,bottom:I+M.clientHeight,width:M.clientWidth,height:M.clientHeight}}function getClientRectFromClippingParent(M,$){return $==="viewport"?rectToClientRect(getViewportRect(M)):isElement($)?getInnerBoundingClientRect($):rectToClientRect(getDocumentRect(getDocumentElement(M)))}function getClippingParents(M){const $=getScrollParents(getParentNode(M)),N=["absolute","fixed"].includes(getComputedStyle$1(M).position)&&isHTMLElement(M)?getOffsetParent(M):M;return isElement(N)?$.filter(B=>isElement(B)&&contains(B,N)&&getNodeName(B)!=="body"):[]}function getClippingClientRect(M){let{element:$,boundary:I,rootBoundary:N}=M;const j=[...I==="clippingParents"?getClippingParents($):[].concat(I),N],U=j[0],q=j.reduce((Y,K)=>{const G=getClientRectFromClippingParent($,K);return Y.top=max$1(G.top,Y.top),Y.right=min$1(G.right,Y.right),Y.bottom=min$1(G.bottom,Y.bottom),Y.left=max$1(G.left,Y.left),Y},getClientRectFromClippingParent($,U));return q.width=q.right-q.left,q.height=q.bottom-q.top,q.x=q.left,q.y=q.top,q}const platform={getElementRects:M=>{let{reference:$,floating:I,strategy:N}=M;return{reference:getRectRelativeToOffsetParent($,getOffsetParent(I),N),floating:{...getDimensions(I),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:M=>convertOffsetParentRelativeRectToViewportRelativeRect(M),getOffsetParent:M=>{let{element:$}=M;return getOffsetParent($)},isElement:M=>isElement(M),getDocumentElement:M=>{let{element:$}=M;return getDocumentElement($)},getClippingClientRect:M=>getClippingClientRect(M),getDimensions:M=>{let{element:$}=M;return getDimensions($)},getClientRects:M=>{let{element:$}=M;return $.getClientRects()}},computePosition=(M,$,I)=>computePosition$1(M,$,{platform,...I});var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(M,$,I)=>$ in M?__defProp(M,$,{enumerable:!0,configurable:!0,writable:!0,value:I}):M[$]=I,__spreadValues=(M,$)=>{for(var I in $||($={}))__hasOwnProp.call($,I)&&__defNormalProp(M,I,$[I]);if(__getOwnPropSymbols)for(var I of __getOwnPropSymbols($))__propIsEnum.call($,I)&&__defNormalProp(M,I,$[I]);return M},__spreadProps=(M,$)=>__defProps(M,__getOwnPropDescs($)),__objRest=(M,$)=>{var I={};for(var N in M)__hasOwnProp.call(M,N)&&$.indexOf(N)<0&&(I[N]=M[N]);if(M!=null&&__getOwnPropSymbols)for(var N of __getOwnPropSymbols(M))$.indexOf(N)<0&&__propIsEnum.call(M,N)&&(I[N]=M[N]);return I};function assign(M,$){for(const I in $)Object.prototype.hasOwnProperty.call($,I)&&(typeof $[I]=="object"&&M[I]?assign(M[I],$[I]):M[I]=$[I])}const config={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:M=>[...M,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function getDefaultConfig(M,$){let I=config.themes[M]||{},N;do N=I[$],typeof N>"u"?I.$extend?I=config.themes[I.$extend]||{}:(I=null,N=config[$]):I=null;while(I);return N}function getThemeClasses(M){const $=[M];let I=config.themes[M]||{};do I.$extend&&!I.$resetCss?($.push(I.$extend),I=config.themes[I.$extend]||{}):I=null;while(I);return $.map(N=>`v-popper--theme-${N}`)}function getAllParentThemes(M){const $=[M];let I=config.themes[M]||{};do I.$extend?($.push(I.$extend),I=config.themes[I.$extend]||{}):I=null;while(I);return $}let supportsPassive=!1;if(typeof window<"u"){supportsPassive=!1;try{const M=Object.defineProperty({},"passive",{get(){supportsPassive=!0}});window.addEventListener("test",null,M)}catch{}}let isIOS=!1;typeof window<"u"&&typeof navigator<"u"&&(isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const placements=["auto","top","bottom","left","right"].reduce((M,$)=>M.concat([$,`${$}-start`,`${$}-end`]),[]),SHOW_EVENT_MAP={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},HIDE_EVENT_MAP={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function removeFromArray(M,$){const I=M.indexOf($);I!==-1&&M.splice(I,1)}function nextFrame(){return new Promise(M=>requestAnimationFrame(()=>{requestAnimationFrame(M)}))}const shownPoppers=[];let hidingPopper=null;const shownPoppersByTheme={};function getShownPoppersByTheme(M){let $=shownPoppersByTheme[M];return $||($=shownPoppersByTheme[M]=[]),$}let Element$1=function(){};typeof window<"u"&&(Element$1=window.Element);function defaultPropFactory(M){return function(){const $=this.$props;return getDefaultConfig($.theme,M)}}const PROVIDE_KEY="__floating-vue__popper";var PrivatePopper=()=>({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:defaultPropFactory("disabled")},positioningDisabled:{type:Boolean,default:defaultPropFactory("positioningDisabled")},placement:{type:String,default:defaultPropFactory("placement"),validator:M=>placements.includes(M)},delay:{type:[String,Number,Object],default:defaultPropFactory("delay")},distance:{type:[Number,String],default:defaultPropFactory("distance")},skidding:{type:[Number,String],default:defaultPropFactory("skidding")},triggers:{type:Array,default:defaultPropFactory("triggers")},showTriggers:{type:[Array,Function],default:defaultPropFactory("showTriggers")},hideTriggers:{type:[Array,Function],default:defaultPropFactory("hideTriggers")},popperTriggers:{type:Array,default:defaultPropFactory("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:defaultPropFactory("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:defaultPropFactory("popperHideTriggers")},container:{type:[String,Object,Element$1,Boolean],default:defaultPropFactory("container")},boundary:{type:[String,Element$1],default:defaultPropFactory("boundary")},strategy:{type:String,validator:M=>["absolute","fixed"].includes(M),default:defaultPropFactory("strategy")},autoHide:{type:[Boolean,Function],default:defaultPropFactory("autoHide")},handleResize:{type:Boolean,default:defaultPropFactory("handleResize")},instantMove:{type:Boolean,default:defaultPropFactory("instantMove")},eagerMount:{type:Boolean,default:defaultPropFactory("eagerMount")},popperClass:{type:[String,Array,Object],default:defaultPropFactory("popperClass")},computeTransformOrigin:{type:Boolean,default:defaultPropFactory("computeTransformOrigin")},autoMinSize:{type:Boolean,default:defaultPropFactory("autoMinSize")},autoSize:{type:[Boolean,String],default:defaultPropFactory("autoSize")},autoMaxSize:{type:Boolean,default:defaultPropFactory("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:defaultPropFactory("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:defaultPropFactory("preventOverflow")},overflowPadding:{type:[Number,String],default:defaultPropFactory("overflowPadding")},arrowPadding:{type:[Number,String],default:defaultPropFactory("arrowPadding")},arrowOverflow:{type:Boolean,default:defaultPropFactory("arrowOverflow")},flip:{type:Boolean,default:defaultPropFactory("flip")},shift:{type:Boolean,default:defaultPropFactory("shift")},shiftCrossAxis:{type:Boolean,default:defaultPropFactory("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:defaultPropFactory("noAutoFocus")}},provide(){return{[PROVIDE_KEY]:{parentPopper:this}}},inject:{[PROVIDE_KEY]:{default:null}},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:__spreadProps(__spreadValues({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result}},parentPopper(){var M;return(M=this[PROVIDE_KEY])==null?void 0:M.parentPopper},hasPopperShowTriggerHover(){var M,$;return((M=this.popperTriggers)==null?void 0:M.includes("hover"))||(($=this.popperShowTriggers)==null?void 0:$.includes("hover"))}},watch:__spreadValues(__spreadValues({shown:"$_autoShowHide",disabled(M){M?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((M,$)=>(M[$]="$_refreshListeners",M),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((M,$)=>(M[$]="$_computePosition",M),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(M=>M.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeDestroy(){this.dispose()},methods:{show({event:M=null,skipDelay:$=!1,force:I=!1}={}){var N,B;(N=this.parentPopper)!=null&&N.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(I||!this.disabled)&&(((B=this.parentPopper)==null?void 0:B.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(M,$),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:M=null,skipDelay:$=!1,skipAiming:I=!1}={}){var N;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(!I&&this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:$}),this.parentPopper.lockedChild=null)},1e3));return}((N=this.parentPopper)==null?void 0:N.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(M,$),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(M=>M.nodeType===M.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var M;if(this.$_isDisposed||this.positioningDisabled)return;const $={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&$.middleware.push(offset$1({mainAxis:this.distance,crossAxis:this.skidding}));const I=this.placement.startsWith("auto");if(I?$.middleware.push(autoPlacement({alignment:(M=this.placement.split("-")[1])!=null?M:""})):$.placement=this.placement,this.preventOverflow&&(this.shift&&$.middleware.push(shift({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!I&&this.flip&&$.middleware.push(flip({padding:this.overflowPadding,boundary:this.boundary}))),$.middleware.push(arrow({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&$.middleware.push({name:"arrowOverflow",fn:({placement:B,rects:j,middlewareData:U})=>{let q;const{centerOffset:Y}=U.arrow;return B.startsWith("top")||B.startsWith("bottom")?q=Math.abs(Y)>j.reference.width/2:q=Math.abs(Y)>j.reference.height/2,{data:{overflow:q}}}}),this.autoMinSize||this.autoSize){const B=this.autoSize?this.autoSize:this.autoMinSize?"min":null;$.middleware.push({name:"autoSize",fn:({rects:j,placement:U,middlewareData:q})=>{var Y;if((Y=q.autoSize)!=null&&Y.skip)return{};let K,G;return U.startsWith("top")||U.startsWith("bottom")?K=j.reference.width:G=j.reference.height,this.$_innerNode.style[B==="min"?"minWidth":B==="max"?"maxWidth":"width"]=K!=null?`${K}px`:null,this.$_innerNode.style[B==="min"?"minHeight":B==="max"?"maxHeight":"height"]=G!=null?`${G}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,$.middleware.push(size({boundary:this.boundary,padding:this.overflowPadding,apply:({width:B,height:j})=>{this.$_innerNode.style.maxWidth=B!=null?`${B}px`:null,this.$_innerNode.style.maxHeight=j!=null?`${j}px`:null}})));const N=await computePosition(this.$_referenceNode,this.$_popperNode,$);Object.assign(this.result,{x:N.x,y:N.y,placement:N.placement,strategy:N.strategy,arrow:__spreadValues(__spreadValues({},N.middlewareData.arrow),N.middlewareData.arrowOverflow)})},$_scheduleShow(M=null,$=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),hidingPopper&&this.instantMove&&hidingPopper.instantMove&&hidingPopper!==this.parentPopper){hidingPopper.$_applyHide(!0),this.$_applyShow(!0);return}$?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(M=null,$=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(hidingPopper=this),$?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(M){const $=this.delay;return parseInt($&&$[M]||$||0)},async $_applyShow(M=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=M,!this.isShown&&(this.$_ensureTeleport(),await nextFrame(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...getScrollParents(this.$_referenceNode),...getScrollParents(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const $=this.$_referenceNode.getBoundingClientRect(),I=this.$_popperNode.querySelector(".v-popper__wrapper"),N=I.parentNode.getBoundingClientRect(),B=$.x+$.width/2-(N.left+I.offsetLeft),j=$.y+$.height/2-(N.top+I.offsetTop);this.result.transformOrigin=`${B}px ${j}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const M=this.showGroup;if(M){let $;for(let I=0;I<shownPoppers.length;I++)$=shownPoppers[I],$.showGroup!==M&&($.hide(),$.$emit("close-group"))}shownPoppers.push(this),document.body.classList.add("v-popper--some-open");for(const $ of getAllParentThemes(this.theme))getShownPoppersByTheme($).push(this),document.body.classList.add(`v-popper--some-open--${$}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await nextFrame(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(M=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=M,removeFromArray(shownPoppers,this),shownPoppers.length===0&&document.body.classList.remove("v-popper--some-open");for(const I of getAllParentThemes(this.theme)){const N=getShownPoppersByTheme(I);removeFromArray(N,this),N.length===0&&document.body.classList.remove(`v-popper--some-open--${I}`)}hidingPopper===this&&(hidingPopper=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const $=getDefaultConfig(this.theme,"disposeTimeout");$!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},$)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await nextFrame(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let M=this.container;if(typeof M=="string"?M=window.document.querySelector(M):M===!1&&(M=this.$_targetNodes[0].parentNode),!M)throw new Error("No container for popover: "+this.container);M.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const M=I=>{this.isShown&&!this.$_hideInProgress||(I.usedByTooltip=!0,!this.$_preventShow&&this.show({event:I}))};this.$_registerTriggerListeners(this.$_targetNodes,SHOW_EVENT_MAP,this.triggers,this.showTriggers,M),this.$_registerTriggerListeners([this.$_popperNode],SHOW_EVENT_MAP,this.popperTriggers,this.popperShowTriggers,M);const $=I=>N=>{N.usedByTooltip||this.hide({event:N,skipAiming:I})};this.$_registerTriggerListeners(this.$_targetNodes,HIDE_EVENT_MAP,this.triggers,this.hideTriggers,$(!1)),this.$_registerTriggerListeners([this.$_popperNode],HIDE_EVENT_MAP,this.popperTriggers,this.popperHideTriggers,$(!0))},$_registerEventListeners(M,$,I){this.$_events.push({targetNodes:M,eventType:$,handler:I}),M.forEach(N=>N.addEventListener($,I,supportsPassive?{passive:!0}:void 0))},$_registerTriggerListeners(M,$,I,N,B){let j=I;N!=null&&(j=typeof N=="function"?N(j):N),j.forEach(U=>{const q=$[U];q&&this.$_registerEventListeners(M,q,B)})},$_removeEventListeners(M){const $=[];this.$_events.forEach(I=>{const{targetNodes:N,eventType:B,handler:j}=I;!M||M===B?N.forEach(U=>U.removeEventListener(B,j)):$.push(I)}),this.$_events=$},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(M,$=!1){this.$_showFrameLocked||(this.hide({event:M}),M.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),$&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(M,$){for(const I of this.$_targetNodes){const N=I.getAttribute(M);N&&(I.removeAttribute(M),I.setAttribute($,N))}},$_applyAttrsToTarget(M){for(const $ of this.$_targetNodes)for(const I in M){const N=M[I];N==null?$.removeAttribute(I):$.setAttribute(I,N)}},$_updateParentShownChildren(M){let $=this.parentPopper;for(;$;)M?$.shownChildren.add(this.randomId):($.shownChildren.delete(this.randomId),$.$_pendingHide&&$.hide()),$=$.parentPopper},$_isAimingPopper(){const M=this.$el.getBoundingClientRect();if(mouseX>=M.left&&mouseX<=M.right&&mouseY>=M.top&&mouseY<=M.bottom){const $=this.$_popperNode.getBoundingClientRect(),I=mouseX-mousePreviousX,N=mouseY-mousePreviousY,j=$.left+$.width/2-mousePreviousX+($.top+$.height/2)-mousePreviousY+$.width+$.height,U=mousePreviousX+I*j,q=mousePreviousY+N*j;return lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.left,$.top,$.left,$.bottom)||lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.left,$.top,$.right,$.top)||lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.right,$.top,$.right,$.bottom)||lineIntersectsLine(mousePreviousX,mousePreviousY,U,q,$.left,$.bottom,$.right,$.bottom)}return!1}},render(){return this.$scopedSlots.default(this.slotData)[0]}});typeof document<"u"&&typeof window<"u"&&(isIOS?(document.addEventListener("touchstart",handleGlobalMousedown,supportsPassive?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",handleGlobalTouchend,supportsPassive?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",handleGlobalMousedown,!0),window.addEventListener("click",handleGlobalClick,!0)),window.addEventListener("resize",computePositionAllShownPoppers));function handleGlobalMousedown(M){for(let $=0;$<shownPoppers.length;$++){const I=shownPoppers[$];try{const N=I.popperNode();I.$_mouseDownContains=N.contains(M.target)}catch{}}}function handleGlobalClick(M){handleGlobalClose(M)}function handleGlobalTouchend(M){handleGlobalClose(M,!0)}function handleGlobalClose(M,$=!1){const I={};for(let N=shownPoppers.length-1;N>=0;N--){const B=shownPoppers[N];try{const j=B.$_containsGlobalTarget=isContainingEventTarget(B,M);B.$_pendingHide=!1,requestAnimationFrame(()=>{if(B.$_pendingHide=!1,!I[B.randomId]&&shouldAutoHide(B,j,M)){if(B.$_handleGlobalClose(M,$),!M.closeAllPopover&&M.closePopover&&j){let q=B.parentPopper;for(;q;)I[q.randomId]=!0,q=q.parentPopper;return}let U=B.parentPopper;for(;U&&shouldAutoHide(U,U.$_containsGlobalTarget,M);){U.$_handleGlobalClose(M,$);U=U.parentPopper}}})}catch{}}}function isContainingEventTarget(M,$){const I=M.popperNode();return M.$_mouseDownContains||I.contains($.target)}function shouldAutoHide(M,$,I){return I.closeAllPopover||I.closePopover&&$||getAutoHideResult(M,I)&&!$}function getAutoHideResult(M,$){if(typeof M.autoHide=="function"){const I=M.autoHide($);return M.lastAutoHide=I,I}return M.autoHide}function computePositionAllShownPoppers(M){for(let $=0;$<shownPoppers.length;$++)shownPoppers[$].$_computePosition(M)}let mousePreviousX=0,mousePreviousY=0,mouseX=0,mouseY=0;typeof window<"u"&&window.addEventListener("mousemove",M=>{mousePreviousX=mouseX,mousePreviousY=mouseY,mouseX=M.clientX,mouseY=M.clientY},supportsPassive?{passive:!0}:void 0);function lineIntersectsLine(M,$,I,N,B,j,U,q){const Y=((U-B)*($-j)-(q-j)*(M-B))/((q-j)*(I-M)-(U-B)*(N-$)),K=((I-M)*($-j)-(N-$)*(M-B))/((q-j)*(I-M)-(U-B)*(N-$));return Y>=0&&Y<=1&&K>=0&&K<=1}function getInternetExplorerVersion(){var M=window.navigator.userAgent,$=M.indexOf("MSIE ");if($>0)return parseInt(M.substring($+5,M.indexOf(".",$)),10);var I=M.indexOf("Trident/");if(I>0){var N=M.indexOf("rv:");return parseInt(M.substring(N+3,M.indexOf(".",N)),10)}var B=M.indexOf("Edge/");return B>0?parseInt(M.substring(B+5,M.indexOf(".",B)),10):-1}var isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}var script={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function M(){var $=this;initCompat(),this.$nextTick(function(){$._w=$.$el.offsetWidth,$._h=$.$el.offsetHeight,$.emitOnMount&&$.emitSize()});var I=document.createElement("object");this._resizeObject=I,I.setAttribute("aria-hidden","true"),I.setAttribute("tabindex",-1),I.onload=this.addResizeHandlers,I.type="text/html",isIE&&this.$el.appendChild(I),I.data="about:blank",isIE||this.$el.appendChild(I)},beforeDestroy:function M(){this.removeResizeHandlers()},methods:{compareAndNotify:function M(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function M(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function M(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function M(){this._resizeObject&&this._resizeObject.onload&&(!isIE&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function normalizeComponent$1(M,$,I,N,B,j,U,q,Y,K){typeof U!="boolean"&&(Y=q,q=U,U=!1);var G=typeof I=="function"?I.options:I;M&&M.render&&(G.render=M.render,G.staticRenderFns=M.staticRenderFns,G._compiled=!0,B&&(G.functional=!0)),N&&(G._scopeId=N);var J;if(j?(J=function(se){se=se||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!se&&typeof __VUE_SSR_CONTEXT__<"u"&&(se=__VUE_SSR_CONTEXT__),$&&$.call(this,Y(se)),se&&se._registeredComponents&&se._registeredComponents.add(j)},G._ssrRegister=J):$&&(J=U?function(te){$.call(this,K(te,this.$root.$options.shadowRoot))}:function(te){$.call(this,q(te))}),J)if(G.functional){var Z=G.render;G.render=function(se,re){return J.call(re),Z(se,re)}}else{var ee=G.beforeCreate;G.beforeCreate=ee?[].concat(ee,J):[J]}return I}var __vue_script__=script,__vue_render__=function M(){var $=this,I=$.$createElement,N=$._self._c||I;return N("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;var __vue_inject_styles__=void 0,__vue_scope_id__="data-v-8859cc6c",__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent$1({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0);function install$1(M){M.component("resize-observer",__vue_component__),M.component("ResizeObserver",__vue_component__)}var plugin$1={version:"1.0.1",install:install$1},GlobalVue$1=null;typeof window<"u"?GlobalVue$1=window.Vue:typeof global<"u"&&(GlobalVue$1=global.Vue);GlobalVue$1&&GlobalVue$1.use(plugin$1);var PrivateThemeClass={computed:{themeClass(){return getThemeClasses(this.theme)}}},__vue2_script$5={name:"VPopperContent",components:{ResizeObserver:__vue_component__},mixins:[PrivateThemeClass],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},methods:{toPx(M){return M!=null&&!isNaN(M)?`${M}px`:null}}},render$2=function(){var M=this,$=M.$createElement,I=M._self._c||$;return I("div",{ref:"popover",staticClass:"v-popper__popper",class:[M.themeClass,M.classes.popperClass,{"v-popper__popper--shown":M.shown,"v-popper__popper--hidden":!M.shown,"v-popper__popper--show-from":M.classes.showFrom,"v-popper__popper--show-to":M.classes.showTo,"v-popper__popper--hide-from":M.classes.hideFrom,"v-popper__popper--hide-to":M.classes.hideTo,"v-popper__popper--skip-transition":M.skipTransition,"v-popper__popper--arrow-overflow":M.result&&M.result.arrow.overflow,"v-popper__popper--no-positioning":!M.result}],style:M.result?{position:M.result.strategy,transform:"translate3d("+Math.round(M.result.x)+"px,"+Math.round(M.result.y)+"px,0)"}:void 0,attrs:{id:M.popperId,"aria-hidden":M.shown?"false":"true",tabindex:M.autoHide?0:void 0,"data-popper-placement":M.result?M.result.placement:void 0},on:{keyup:function(N){if(!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"]))return null;M.autoHide&&M.$emit("hide")}}},[I("div",{staticClass:"v-popper__backdrop",on:{click:function(N){M.autoHide&&M.$emit("hide")}}}),I("div",{staticClass:"v-popper__wrapper",style:M.result?{transformOrigin:M.result.transformOrigin}:void 0},[I("div",{ref:"inner",staticClass:"v-popper__inner"},[M.mounted?[I("div",[M._t("default")],2),M.handleResize?I("ResizeObserver",{on:{notify:function(N){return M.$emit("resize",N)}}}):M._e()]:M._e()],2),I("div",{ref:"arrow",staticClass:"v-popper__arrow-container",style:M.result?{left:M.toPx(M.result.arrow.x),top:M.toPx(M.result.arrow.y)}:void 0},[I("div",{staticClass:"v-popper__arrow-outer"}),I("div",{staticClass:"v-popper__arrow-inner"})])])])},staticRenderFns$2=[];function normalizeComponent(M,$,I,N,B,j,U,q){var Y=typeof M=="function"?M.options:M;$&&(Y.render=$,Y.staticRenderFns=I,Y._compiled=!0),N&&(Y.functional=!0),j&&(Y._scopeId="data-v-"+j);var K;if(U?(K=function(Z){Z=Z||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!Z&&typeof __VUE_SSR_CONTEXT__<"u"&&(Z=__VUE_SSR_CONTEXT__),B&&B.call(this,Z),Z&&Z._registeredComponents&&Z._registeredComponents.add(U)},Y._ssrRegister=K):B&&(K=q?function(){B.call(this,(Y.functional?this.parent:this).$root.$options.shadowRoot)}:B),K)if(Y.functional){Y._injectStyles=K;var G=Y.render;Y.render=function(ee,te){return K.call(te),G(ee,te)}}else{var J=Y.beforeCreate;Y.beforeCreate=J?[].concat(J,K):[K]}return{exports:M,options:Y}}const __cssModules$5={};var __component__$5$1=normalizeComponent(__vue2_script$5,render$2,staticRenderFns$2,!1,__vue2_injectStyles$5,null,null,null);function __vue2_injectStyles$5(M){for(let $ in __cssModules$5)this[$]=__cssModules$5[$]}var PrivatePopperContent=function(){return __component__$5$1.exports}(),PrivatePopperMethods={methods:{show(...M){return this.$refs.popper.show(...M)},hide(...M){return this.$refs.popper.hide(...M)},dispose(...M){return this.$refs.popper.dispose(...M)},onResize(...M){return this.$refs.popper.onResize(...M)}}},__vue2_script$4={name:"VPopperWrapper",components:{Popper:PrivatePopper(),PopperContent:PrivatePopperContent},mixins:[PrivatePopperMethods,PrivateThemeClass],inheritAttrs:!1,props:{theme:{type:String,default(){return this.$options.vPopperTheme}}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(M=>M!==this.$refs.popperContent.$el)}}},render$1=function(){var M=this,$=M.$createElement,I=M._self._c||$;return I("Popper",M._g(M._b({ref:"popper",attrs:{theme:M.theme,"target-nodes":M.getTargetNodes,"reference-node":function(){return M.$refs.reference},"popper-node":function(){return M.$refs.popperContent.$el}},scopedSlots:M._u([{key:"default",fn:function(N){var B=N.popperId,j=N.isShown,U=N.shouldMountContent,q=N.skipTransition,Y=N.autoHide,K=N.show,G=N.hide,J=N.handleResize,Z=N.onResize,ee=N.classes,te=N.result;return[I("div",{ref:"reference",staticClass:"v-popper",class:[M.themeClass,{"v-popper--shown":j}]},[M._t("default",null,{shown:j,show:K,hide:G}),I("PopperContent",{ref:"popperContent",attrs:{"popper-id":B,theme:M.theme,shown:j,mounted:U,"skip-transition":q,"auto-hide":Y,"handle-resize":J,classes:ee,result:te},on:{hide:G,resize:Z}},[M._t("popper",null,{shown:j,hide:G})],2)],2)]}}],null,!0)},"Popper",M.$attrs,!1),M.$listeners))},staticRenderFns$1=[];const __cssModules$4={};var __component__$4$1=normalizeComponent(__vue2_script$4,render$1,staticRenderFns$1,!1,__vue2_injectStyles$4,null,null,null);function __vue2_injectStyles$4(M){for(let $ in __cssModules$4)this[$]=__cssModules$4[$]}var PrivatePopperWrapper=function(){return __component__$4$1.exports}(),__vue2_script$3=__spreadProps(__spreadValues({},PrivatePopperWrapper),{name:"VDropdown",vPopperTheme:"dropdown"});let __vue2_render$2,__vue2_staticRenderFns$2;const __cssModules$3={};var __component__$3$1=normalizeComponent(__vue2_script$3,__vue2_render$2,__vue2_staticRenderFns$2,!1,__vue2_injectStyles$3,null,null,null);function __vue2_injectStyles$3(M){for(let $ in __cssModules$3)this[$]=__cssModules$3[$]}var PrivateDropdown=function(){return __component__$3$1.exports}(),__vue2_script$2=__spreadProps(__spreadValues({},PrivatePopperWrapper),{name:"VMenu",vPopperTheme:"menu"});let __vue2_render$1,__vue2_staticRenderFns$1;const __cssModules$2={};var __component__$2$1=normalizeComponent(__vue2_script$2,__vue2_render$1,__vue2_staticRenderFns$1,!1,__vue2_injectStyles$2,null,null,null);function __vue2_injectStyles$2(M){for(let $ in __cssModules$2)this[$]=__cssModules$2[$]}var PrivateMenu=function(){return __component__$2$1.exports}(),__vue2_script$1=__spreadProps(__spreadValues({},PrivatePopperWrapper),{name:"VTooltip",vPopperTheme:"tooltip"});let __vue2_render,__vue2_staticRenderFns;const __cssModules$1={};var __component__$1$1=normalizeComponent(__vue2_script$1,__vue2_render,__vue2_staticRenderFns,!1,__vue2_injectStyles$1,null,null,null);function __vue2_injectStyles$1(M){for(let $ in __cssModules$1)this[$]=__cssModules$1[$]}var PrivateTooltip=function(){return __component__$1$1.exports}(),__vue2_script={name:"VTooltipDirective",components:{Popper:PrivatePopper(),PopperContent:PrivatePopperContent},mixins:[PrivatePopperMethods],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default(){return getDefaultConfig(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default(){return getDefaultConfig(this.theme,"loadingContent")}}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(M){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(M){if(typeof this.content=="function"&&this.$_isShown&&(M||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const $=++this.$_fetchId,I=this.content(this);I.then?I.then(N=>this.onResult($,N)):this.onResult($,I)}},onResult(M,$){M===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=$)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}},render=function(){var M=this,$=M.$createElement,I=M._self._c||$;return I("Popper",M._g(M._b({ref:"popper",attrs:{theme:M.theme,"popper-node":function(){return M.$refs.popperContent.$el}},on:{"apply-show":M.onShow,"apply-hide":M.onHide},scopedSlots:M._u([{key:"default",fn:function(N){var B=N.popperId,j=N.isShown,U=N.shouldMountContent,q=N.skipTransition,Y=N.autoHide,K=N.hide,G=N.handleResize,J=N.onResize,Z=N.classes,ee=N.result;return[I("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":M.loading},attrs:{"popper-id":B,theme:M.theme,shown:j,mounted:U,"skip-transition":q,"auto-hide":Y,"handle-resize":G,classes:Z,result:ee},on:{hide:K,resize:J}},[M.html?I("div",{domProps:{innerHTML:M._s(M.finalContent)}}):I("div",{domProps:{textContent:M._s(M.finalContent)}})])]}}])},"Popper",M.$attrs,!1),M.$listeners))},staticRenderFns=[];const __cssModules={};var __component__$V=normalizeComponent(__vue2_script,render,staticRenderFns,!1,__vue2_injectStyles,null,null,null);function __vue2_injectStyles(M){for(let $ in __cssModules)this[$]=__cssModules[$]}var PrivateTooltipDirective=function(){return __component__$V.exports}();const TARGET_CLASS="v-popper--has-tooltip";function getPlacement(M,$){let I=M.placement;if(!I&&$)for(const N of placements)$[N]&&(I=N);return I||(I=getDefaultConfig(M.theme||"tooltip","placement")),I}function getOptions(M,$,I){let N;const B=typeof $;return B==="string"?N={content:$}:$&&B==="object"?N=$:N={content:!1},N.placement=getPlacement(N,I),N.targetNodes=()=>[M],N.referenceNode=()=>M,N}function createTooltip(M,$,I){const N=getOptions(M,$,I),B=M.$_popper=new Vue$3({mixins:[PrivatePopperMethods],data(){return{options:N}},render(U){const q=this.options,{theme:Y,html:K,content:G,loadingContent:J}=q,Z=__objRest(q,["theme","html","content","loadingContent"]);return U(PrivateTooltipDirective,{props:{theme:Y,html:K,content:G,loadingContent:J},attrs:Z,ref:"popper"})},devtools:{hide:!0}}),j=document.createElement("div");return document.body.appendChild(j),B.$mount(j),M.classList&&M.classList.add(TARGET_CLASS),B}function destroyTooltip(M){M.$_popper&&(M.$_popper.$destroy(),delete M.$_popper,delete M.$_popperOldShown),M.classList&&M.classList.remove(TARGET_CLASS)}function bind(M,{value:$,oldValue:I,modifiers:N}){const B=getOptions(M,$,N);if(!B.content||getDefaultConfig(B.theme||"tooltip","disabled"))destroyTooltip(M);else{let j;M.$_popper?(j=M.$_popper,j.options=B):j=createTooltip(M,$,N),typeof $.shown<"u"&&$.shown!==M.$_popperOldShown&&(M.$_popperOldShown=$.shown,$.shown?j.show():j.hide())}}var PrivateVTooltip={bind,update:bind,unbind(M){destroyTooltip(M)}};function addListeners(M){M.addEventListener("click",onClick),M.addEventListener("touchstart",onTouchStart,supportsPassive?{passive:!0}:!1)}function removeListeners(M){M.removeEventListener("click",onClick),M.removeEventListener("touchstart",onTouchStart),M.removeEventListener("touchend",onTouchEnd),M.removeEventListener("touchcancel",onTouchCancel)}function onClick(M){const $=M.currentTarget;M.closePopover=!$.$_vclosepopover_touch,M.closeAllPopover=$.$_closePopoverModifiers&&!!$.$_closePopoverModifiers.all}function onTouchStart(M){if(M.changedTouches.length===1){const $=M.currentTarget;$.$_vclosepopover_touch=!0;const I=M.changedTouches[0];$.$_vclosepopover_touchPoint=I,$.addEventListener("touchend",onTouchEnd),$.addEventListener("touchcancel",onTouchCancel)}}function onTouchEnd(M){const $=M.currentTarget;if($.$_vclosepopover_touch=!1,M.changedTouches.length===1){const I=M.changedTouches[0],N=$.$_vclosepopover_touchPoint;M.closePopover=Math.abs(I.screenY-N.screenY)<20&&Math.abs(I.screenX-N.screenX)<20,M.closeAllPopover=$.$_closePopoverModifiers&&!!$.$_closePopoverModifiers.all}}function onTouchCancel(M){const $=M.currentTarget;$.$_vclosepopover_touch=!1}var PrivateVClosePopper={bind(M,{value:$,modifiers:I}){M.$_closePopoverModifiers=I,(typeof $>"u"||$)&&addListeners(M)},update(M,{value:$,oldValue:I,modifiers:N}){M.$_closePopoverModifiers=N,$!==I&&(typeof $>"u"||$?addListeners(M):removeListeners(M))},unbind(M){removeListeners(M)}};function install$2(M,$={}){M.$_vTooltipInstalled||(M.$_vTooltipInstalled=!0,assign(config,$),M.directive("tooltip",PrivateVTooltip),M.directive("close-popper",PrivateVClosePopper),M.component("v-tooltip",PrivateTooltip),M.component("VTooltip",PrivateTooltip),M.component("v-dropdown",PrivateDropdown),M.component("VDropdown",PrivateDropdown),M.component("v-menu",PrivateMenu),M.component("VMenu",PrivateMenu))}const plugin={version:"1.0.0-beta.19",install:install$2,options:config};let GlobalVue=null;typeof window<"u"?GlobalVue=window.Vue:typeof global<"u"&&(GlobalVue=global.Vue);GlobalVue&&GlobalVue.use(plugin);const style="";Vue$3.use(plugin,{disposeTimeout:3e4,distance:10});var portalVue={exports:{}};(function(M,$){(function(I,N){M.exports=N(require$$0$1)})(commonjsGlobal,function(I){I=I&&I.hasOwnProperty("default")?I.default:I;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(fe){return typeof fe}:function(fe){return fe&&typeof Symbol=="function"&&fe.constructor===Symbol&&fe!==Symbol.prototype?"symbol":typeof fe},B=Object.assign||function(fe){for(var ge=1;ge<arguments.length;ge++){var ye=arguments[ge];for(var xe in ye)Object.prototype.hasOwnProperty.call(ye,xe)&&(fe[xe]=ye[xe])}return fe},j=function(fe){if(Array.isArray(fe)){for(var ge=0,ye=Array(fe.length);ge<fe.length;ge++)ye[ge]=fe[ge];return ye}else return Array.from(fe)};function U(fe){for(var ge=fe.hasAttributes()?fe.attributes:[],ye={},xe=0;xe<ge.length;xe++){var le=ge[xe];le.value&&(ye[le.name]=le.value===""?!0:le.value)}var be=void 0,ve=void 0;ye.class&&(be=ye.class,delete ye.class),ye.style&&(ve=ye.style,delete ye.style);var we={attrs:ye,class:be,style:ve};return we}function q(fe){return Array.isArray(fe)||(typeof fe>"u"?"undefined":N(fe))==="object"?Object.freeze(fe):fe}function Y(fe){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return fe.reduce(function(ye,xe){var le=xe.passengers[0];return le=typeof le=="function"?le(ge):xe.passengers,ye.concat(le)},[])}function K(fe,ge){return fe.map(function(ye,xe){return[xe,ye]}).sort((function(ye,xe){return this(ye[1],xe[1])||ye[0]-xe[0]}).bind(ge)).map(function(ye){return ye[1]})}var G={},J=I.extend({data:function(){return{transports:G}},methods:{open:function(ge){var ye=ge.to,xe=ge.from,le=ge.passengers;if(!(!ye||!xe||!le)){ge.passengers=q(le);var be=Object.keys(this.transports);be.indexOf(ye)===-1&&I.set(this.transports,ye,[]);var ve=this.getTransportIndex(ge),we=this.transports[ye].slice(0);ve===-1?we.push(ge):we[ve]=ge,this.transports[ye]=K(we,function(Ae,Se){return Ae.order-Se.order})}},close:function(ge){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=ge.to,le=ge.from;if(!(!xe||!le)&&this.transports[xe])if(ye)this.transports[xe]=[];else{var be=this.getTransportIndex(ge);if(be>=0){var ve=this.transports[xe].slice(0);ve.splice(be,1),this.transports[xe]=ve}}},hasTarget:function(ge){return this.transports.hasOwnProperty(ge)},hasContentFor:function(ge){return this.transports[ge]?this.getContentFor(ge).length>0:!1},getSourceFor:function(ge){return this.transports[ge]&&this.transports[ge][0].from},getContentFor:function(ge){var ye=this.transports[ge];if(ye)return Y(ye)},getTransportIndex:function(ge){var ye=ge.to,xe=ge.from;for(var le in this.transports[ye])if(this.transports[ye][le].from===xe)return le;return-1}}}),Z=new J(G),ee=/^(attrs|props|on|nativeOn|class|style|hook)$/,te=function(ge){return ge.reduce(function(ye,xe){var le,be,ve,we,Ae;for(ve in xe)if(le=ye[ve],be=xe[ve],le&&ee.test(ve))if(ve==="class"&&(typeof le=="string"&&(Ae=le,ye[ve]=le={},le[Ae]=!0),typeof be=="string"&&(Ae=be,xe[ve]=be={},be[Ae]=!0)),ve==="on"||ve==="nativeOn"||ve==="hook")for(we in be)le[we]=se(le[we],be[we]);else if(Array.isArray(le))ye[ve]=le.concat(be);else if(Array.isArray(be))ye[ve]=[le].concat(be);else for(we in be)le[we]=be[we];else ye[ve]=xe[ve];return ye},{})};function se(fe,ge){return function(){fe&&fe.apply(this,arguments),ge&&ge.apply(this,arguments)}}var re={abstract:!1,name:"portalTarget",props:{attributes:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[Boolean,String,Object],default:!1},transitionEvents:{type:Object,default:function(){return{}}}},data:function(){return{transports:Z.transports,firstRender:!0}},created:function(){this.transports[this.name]||this.$set(this.transports,this.name,[])},mounted:function(){var ge=this;this.unwatch=this.$watch("ownTransports",this.emitChange),this.$nextTick(function(){ge.transition&&(ge.firstRender=!1)}),this.$options.abstract&&(this.$options.abstract=!1)},updated:function(){this.$options.abstract&&(this.$options.abstract=!1)},beforeDestroy:function(){this.unwatch()},computed:{ownTransports:function(){var ge=this.transports[this.name]||[];return this.multiple?ge:ge.length===0?[]:[ge[ge.length-1]]},passengers:function(){return Y(this.ownTransports,this.slotProps)},hasAttributes:function(){return Object.keys(this.attributes).length>0},withTransition:function(){return!!this.transition},transitionData:function(){var ge=this.transition,ye={};return this.firstRender&&N(this.transition)==="object"&&!this.transition.appear?(ye.props={name:"__notranstition__portal-vue__"},ye):(typeof ge=="string"?ye.props={name:ge}:(typeof ge>"u"?"undefined":N(ge))==="object"&&(ye.props=ge),this.renderSlim&&(ye.props.tag=this.tag),ye.on=this.transitionEvents,ye)},transportedClasses:function(){return this.ownTransports.map(function(ge){return ge.class}).reduce(function(ge,ye){return ge.concat(ye)},[])}},methods:{emitChange:function(ge,ye){if(this.multiple)this.$emit("change",[].concat(j(ge)),[].concat(j(ye)));else{var xe=ge.length===0?void 0:ge[0],le=ye.length===0?void 0:ye[0];this.$emit("change",B({},xe),B({},le))}},children:function(){return this.passengers.length!==0?this.passengers:this.$slots.default||[]},noWrapper:function(){var ge=!this.hasAttributes&&this.slim;return ge&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),ge}},render:function(ge){this.$options.abstract=!0;var ye=this.noWrapper(),xe=this.children(),le=ye?"transition":"transition-group",be=this.tag;return this.withTransition?ge(le,te([this.transitionData,{class:"vue-portal-target"}]),[xe]):ye?xe[0]:ge(be,te([{class:"vue-portal-target "+this.transportedClasses.join(" ")},this.attributes]),[xe])}},ne=typeof window<"u",ce=1,me={abstract:!1,name:"portal",props:{disabled:{type:Boolean,default:!1},name:{type:String,default:function(){return String(ce++)}},order:{type:Number,default:0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:[String],default:"DIV"},targetEl:{type:ne?[String,HTMLElement]:String},targetClass:{type:String},to:{type:String,default:function(){return String(Math.round(Math.random()*1e7))}}},mounted:function(){this.targetEl&&this.mountToTarget(),this.disabled||this.sendUpdate(),this.$options.abstract&&(this.$options.abstract=!1)},updated:function(){this.disabled?this.clear():this.sendUpdate(),this.$options.abstract&&(this.$options.abstract=!1)},beforeDestroy:function(){this.clear(),this.mountedComp&&this.mountedComp.$destroy()},watch:{to:function(ge,ye){ye&&ye!==ge&&this.clear(ye),this.sendUpdate()},targetEl:function(ge,ye){ge&&this.mountToTarget()}},methods:{normalizedSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},sendUpdate:function(){var ge=this.normalizedSlots();ge?Z.open({from:this.name,to:this.to,passengers:[].concat(j(ge)),class:this.targetClass&&this.targetClass.split(" "),order:this.order}):this.clear()},clear:function(ge){Z.close({from:this.name,to:ge||this.to})},mountToTarget:function(){var ge=void 0,ye=this.targetEl;if(typeof ye=="string")ge=document.querySelector(ye);else if(ye instanceof HTMLElement)ge=ye;else{console.warn("[vue-portal]: value of targetEl must be of type String or HTMLElement");return}if(ge){var xe=new I(B({},re,{parent:this,propsData:{name:this.to,tag:ge.tagName,attributes:U(ge)}}));xe.$mount(ge),this.mountedComp=xe}else console.warn("[vue-portal]: The specified targetEl "+ye+" was not found")},normalizeChildren:function(ge){return typeof ge=="function"?ge(this.slotProps):ge}},render:function(ge){var ye=this.$slots.default||this.$scopedSlots.default||[],xe=this.tag;return ye.length&&this.disabled?(this.$options.abstract=!0,ye.length<=1&&this.slim?ye[0]:ge(xe,[this.normalizeChildren(ye)])):ge(xe,{class:"v-portal",style:"display: none",key:"v-portal-placeholder"})}};function ue(fe){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fe.component(ge.portalName||"Portal",me),fe.component(ge.portalTargetName||"PortalTarget",re)}typeof window<"u"&&window.Vue&&window.Vue.use({install:ue});var _e={install:ue,Portal:me,PortalTarget:re,Wormhole:Z};return _e})})(portalVue);var portalVueExports=portalVue.exports;const PortalVue=getDefaultExportFromCjs$1(portalVueExports);var dist={exports:{}};(function(M,$){(function(I,N){M.exports=N()})(window,function(){return B={},I.m=N=[function(j,U,q){var Y=q(7);typeof Y=="string"&&(Y=[[j.i,Y,""]]),Y.locals&&(j.exports=Y.locals),(0,q(4).default)("d763679c",Y,!1,{})},function(j,U,q){var Y=q(10);typeof Y=="string"&&(Y=[[j.i,Y,""]]),Y.locals&&(j.exports=Y.locals),(0,q(4).default)("6b9cc0e0",Y,!1,{})},function(j,U,q){var Y=q(12);typeof Y=="string"&&(Y=[[j.i,Y,""]]),Y.locals&&(j.exports=Y.locals),(0,q(4).default)("663c004e",Y,!1,{})},function(j,U){j.exports=function(q){var Y=[];return Y.toString=function(){return this.map(function(K){var G=function(J,Z){var ee=J[1]||"",te=J[3];if(!te)return ee;if(Z&&typeof btoa=="function"){var se=function(ne){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(ne))))+" */"}(te),re=te.sources.map(function(ne){return"/*# sourceURL="+te.sourceRoot+ne+" */"});return[ee].concat(re).concat([se]).join(` `)}return[ee].join(` `)}(K,q);return K[2]?"@media "+K[2]+"{"+G+"}":G}).join("")},Y.i=function(K,G){typeof K=="string"&&(K=[[null,K,""]]);for(var J={},Z=0;Z<this.length;Z++){var ee=this[Z][0];typeof ee=="number"&&(J[ee]=!0)}for(Z=0;Z<K.length;Z++){var te=K[Z];typeof te[0]=="number"&&J[te[0]]||(G&&!te[2]?te[2]=G:G&&(te[2]="("+te[2]+") and ("+G+")"),Y.push(te))}},Y}},function(j,U,q){function Y(le,be){for(var ve=[],we={},Ae=0;Ae<be.length;Ae++){var Se=be[Ae],Pe=Se[0],Me={id:le+":"+Ae,css:Se[1],media:Se[2],sourceMap:Se[3]};we[Pe]?we[Pe].parts.push(Me):ve.push(we[Pe]={id:Pe,parts:[Me]})}return ve}q.r(U),q.d(U,"default",function(){return me});var K=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!K)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var G={},J=K&&(document.head||document.getElementsByTagName("head")[0]),Z=null,ee=0,te=!1,se=function(){},re=null,ne="data-vue-ssr-id",ce=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function me(le,be,ve,we){te=ve,re=we||{};var Ae=Y(le,be);return ue(Ae),function(Se){for(var Pe=[],Me=0;Me<Ae.length;Me++){var Be=Ae[Me];(ze=G[Be.id]).refs--,Pe.push(ze)}for(Se?ue(Ae=Y(le,Se)):Ae=[],Me=0;Me<Pe.length;Me++){var ze;if((ze=Pe[Me]).refs===0){for(var Ze=0;Ze<ze.parts.length;Ze++)ze.parts[Ze]();delete G[ze.id]}}}}function ue(le){for(var be=0;be<le.length;be++){var ve=le[be],we=G[ve.id];if(we){we.refs++;for(var Ae=0;Ae<we.parts.length;Ae++)we.parts[Ae](ve.parts[Ae]);for(;Ae<ve.parts.length;Ae++)we.parts.push(fe(ve.parts[Ae]));we.parts.length>ve.parts.length&&(we.parts.length=ve.parts.length)}else{var Se=[];for(Ae=0;Ae<ve.parts.length;Ae++)Se.push(fe(ve.parts[Ae]));G[ve.id]={id:ve.id,refs:1,parts:Se}}}}function _e(){var le=document.createElement("style");return le.type="text/css",J.appendChild(le),le}function fe(le){var be,ve,we=document.querySelector("style["+ne+'~="'+le.id+'"]');if(we){if(te)return se;we.parentNode.removeChild(we)}if(ce){var Ae=ee++;we=Z=Z||_e(),be=xe.bind(null,we,Ae,!1),ve=xe.bind(null,we,Ae,!0)}else we=_e(),be=(function(Se,Pe){var Me=Pe.css,Be=Pe.media,ze=Pe.sourceMap;if(Be&&Se.setAttribute("media",Be),re.ssrId&&Se.setAttribute(ne,Pe.id),ze&&(Me+=` /*# sourceURL=`+ze.sources[0]+" */",Me+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(ze))))+" */"),Se.styleSheet)Se.styleSheet.cssText=Me;else{for(;Se.firstChild;)Se.removeChild(Se.firstChild);Se.appendChild(document.createTextNode(Me))}}).bind(null,we),ve=function(){we.parentNode.removeChild(we)};return be(le),function(Se){if(Se){if(Se.css===le.css&&Se.media===le.media&&Se.sourceMap===le.sourceMap)return;be(le=Se)}else ve()}}var ge,ye=(ge=[],function(le,be){return ge[le]=be,ge.filter(Boolean).join(` `)});function xe(le,be,ve,we){var Ae=ve?"":we.css;if(le.styleSheet)le.styleSheet.cssText=ye(be,Ae);else{var Se=document.createTextNode(Ae),Pe=le.childNodes;Pe[be]&&le.removeChild(Pe[be]),Pe.length?le.insertBefore(Se,Pe[be]):le.appendChild(Se)}}},function(j,U,q){(function(Y){var K=function(){if(typeof Map<"u")return Map;function ze(ft,Ye){var Ve=-1;return ft.some(function(Dt,Nt){return Dt[0]===Ye&&(Ve=Nt,!0)}),Ve}return Object.defineProperty(Ze.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Ze.prototype.get=function(ft){var Ye=ze(this.__entries__,ft),Ve=this.__entries__[Ye];return Ve&&Ve[1]},Ze.prototype.set=function(ft,Ye){var Ve=ze(this.__entries__,ft);~Ve?this.__entries__[Ve][1]=Ye:this.__entries__.push([ft,Ye])},Ze.prototype.delete=function(ft){var Ye=this.__entries__,Ve=ze(Ye,ft);~Ve&&Ye.splice(Ve,1)},Ze.prototype.has=function(ft){return!!~ze(this.__entries__,ft)},Ze.prototype.clear=function(){this.__entries__.splice(0)},Ze.prototype.forEach=function(ft,Ye){Ye===void 0&&(Ye=null);for(var Ve=0,Dt=this.__entries__;Ve<Dt.length;Ve++){var Nt=Dt[Ve];ft.call(Ye,Nt[1],Nt[0])}},Ze;function Ze(){this.__entries__=[]}}(),G=typeof window<"u"&&typeof document<"u"&&window.document===document,J=Y!==void 0&&Y.Math===Math?Y:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Z=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(J):function(ze){return setTimeout(function(){return ze(Date.now())},1e3/60)},ee=2,te=["top","right","bottom","left","width","height","size","weight"],se=typeof MutationObserver<"u",re=(ne.prototype.addObserver=function(ze){~this.observers_.indexOf(ze)||this.observers_.push(ze),this.connected_||this.connect_()},ne.prototype.removeObserver=function(ze){var Ze=this.observers_,ft=Ze.indexOf(ze);~ft&&Ze.splice(ft,1),!Ze.length&&this.connected_&&this.disconnect_()},ne.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},ne.prototype.updateObservers_=function(){var ze=this.observers_.filter(function(Ze){return Ze.gatherActive(),Ze.hasActive()});return ze.forEach(function(Ze){return Ze.broadcastActive()}),0<ze.length},ne.prototype.connect_=function(){G&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),se?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ne.prototype.disconnect_=function(){G&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ne.prototype.onTransitionEnd_=function(ze){var Ze=ze.propertyName,ft=Ze===void 0?"":Ze;te.some(function(Ye){return!!~ft.indexOf(Ye)})&&this.refresh()},ne.getInstance=function(){return this.instance_||(this.instance_=new ne),this.instance_},ne.instance_=null,ne);function ne(){function ze(){Dt&&(Dt=!1,Ye()),Nt&&ft()}function Ze(){Z(ze)}function ft(){var Wt=Date.now();if(Dt){if(Wt-Vt<ee)return;Nt=!0}else Nt=!(Dt=!0),setTimeout(Ze,Ve);Vt=Wt}var Ye,Ve,Dt,Nt,Vt;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(Ye=this.refresh.bind(this),Nt=Dt=!(Ve=20),Vt=0,ft)}var ce=function(ze,Ze){for(var ft=0,Ye=Object.keys(Ze);ft<Ye.length;ft++){var Ve=Ye[ft];Object.defineProperty(ze,Ve,{value:Ze[Ve],enumerable:!1,writable:!1,configurable:!0})}return ze},me=function(ze){return ze&&ze.ownerDocument&&ze.ownerDocument.defaultView||J},ue=le(0,0,0,0);function _e(ze){return parseFloat(ze)||0}function fe(ze){for(var Ze=[],ft=1;ft<arguments.length;ft++)Ze[ft-1]=arguments[ft];return Ze.reduce(function(Ye,Ve){return Ye+_e(ze["border-"+Ve+"-width"])},0)}function ge(ze){var Ze=ze.clientWidth,ft=ze.clientHeight;if(!Ze&&!ft)return ue;var Ye,Ve=me(ze).getComputedStyle(ze),Dt=function(En){for(var kn={},Gn=0,An=["top","right","bottom","left"];Gn<An.length;Gn++){var jn=An[Gn],Mn=En["padding-"+jn];kn[jn]=_e(Mn)}return kn}(Ve),Nt=Dt.left+Dt.right,Vt=Dt.top+Dt.bottom,Wt=_e(Ve.width),Gt=_e(Ve.height);if(Ve.boxSizing==="border-box"&&(Math.round(Wt+Nt)!==Ze&&(Wt-=fe(Ve,"left","right")+Nt),Math.round(Gt+Vt)!==ft&&(Gt-=fe(Ve,"top","bottom")+Vt)),(Ye=ze)!==me(Ye).document.documentElement){var tn=Math.round(Wt+Nt)-Ze,Qt=Math.round(Gt+Vt)-ft;Math.abs(tn)!==1&&(Wt-=tn),Math.abs(Qt)!==1&&(Gt-=Qt)}return le(Dt.left,Dt.top,Wt,Gt)}var ye=typeof SVGGraphicsElement<"u"?function(ze){return ze instanceof me(ze).SVGGraphicsElement}:function(ze){return ze instanceof me(ze).SVGElement&&typeof ze.getBBox=="function"};function xe(ze){return G?ye(ze)?le(0,0,(Ze=ze.getBBox()).width,Ze.height):ge(ze):ue;var Ze}function le(ze,Ze,ft,Ye){return{x:ze,y:Ze,width:ft,height:Ye}}var be=(ve.prototype.isActive=function(){var ze=xe(this.target);return(this.contentRect_=ze).width!==this.broadcastWidth||ze.height!==this.broadcastHeight},ve.prototype.broadcastRect=function(){var ze=this.contentRect_;return this.broadcastWidth=ze.width,this.broadcastHeight=ze.height,ze},ve);function ve(ze){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=le(0,0,0,0),this.target=ze}var we=function(ze,Ze){var ft,Ye,Ve,Dt,Nt,Vt,Wt,Gt=(Ye=(ft=Ze).x,Ve=ft.y,Dt=ft.width,Nt=ft.height,Vt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,Wt=Object.create(Vt.prototype),ce(Wt,{x:Ye,y:Ve,width:Dt,height:Nt,top:Ve,right:Ye+Dt,bottom:Nt+Ve,left:Ye}),Wt);ce(this,{target:ze,contentRect:Gt})},Ae=(Se.prototype.observe=function(ze){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(ze instanceof me(ze).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ze=this.observations_;Ze.has(ze)||(Ze.set(ze,new be(ze)),this.controller_.addObserver(this),this.controller_.refresh())}},Se.prototype.unobserve=function(ze){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(ze instanceof me(ze).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ze=this.observations_;Ze.has(ze)&&(Ze.delete(ze),Ze.size||this.controller_.removeObserver(this))}},Se.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Se.prototype.gatherActive=function(){var ze=this;this.clearActive(),this.observations_.forEach(function(Ze){Ze.isActive()&&ze.activeObservations_.push(Ze)})},Se.prototype.broadcastActive=function(){if(this.hasActive()){var ze=this.callbackCtx_,Ze=this.activeObservations_.map(function(ft){return new we(ft.target,ft.broadcastRect())});this.callback_.call(ze,Ze,ze),this.clearActive()}},Se.prototype.clearActive=function(){this.activeObservations_.splice(0)},Se.prototype.hasActive=function(){return 0<this.activeObservations_.length},Se);function Se(ze,Ze,ft){if(this.activeObservations_=[],this.observations_=new K,typeof ze!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=ze,this.controller_=Ze,this.callbackCtx_=ft}var Pe=new(typeof WeakMap<"u"?WeakMap:K),Me=function ze(Ze){if(!(this instanceof ze))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ft=re.getInstance(),Ye=new Ae(Ze,ft,this);Pe.set(this,Ye)};["observe","unobserve","disconnect"].forEach(function(ze){Me.prototype[ze]=function(){var Ze;return(Ze=Pe.get(this))[ze].apply(Ze,arguments)}});var Be=J.ResizeObserver!==void 0?J.ResizeObserver:Me;U.a=Be}).call(this,q(8))},function(j,U,q){var Y=q(0);q.n(Y).a},function(j,U,q){(j.exports=q(3)(!1)).push([j.i,` .vue-modal-top, .vue-modal-bottom, .vue-modal-left, .vue-modal-right, .vue-modal-topRight, .vue-modal-topLeft, .vue-modal-bottomLeft, .vue-modal-bottomRight { display: block; overflow: hidden; position: absolute; background: transparent; z-index: 9999999; } .vue-modal-topRight, .vue-modal-topLeft, .vue-modal-bottomLeft, .vue-modal-bottomRight { width: 12px; height: 12px; } .vue-modal-top { right: 12; top: 0; width: 100%; height: 12px; cursor: n-resize; } .vue-modal-bottom { left: 0; bottom: 0; width: 100%; height: 12px; cursor: s-resize; } .vue-modal-left { left: 0; top: 0; width: 12px; height: 100%; cursor: w-resize; } .vue-modal-right { right: 0; top: 0; width: 12px; height: 100%; cursor: e-resize; } .vue-modal-topRight { right: 0; top: 0; background: transparent; cursor: ne-resize; } .vue-modal-topLeft { left: 0; top: 0; cursor: nw-resize; } .vue-modal-bottomLeft { left: 0; bottom: 0; cursor: sw-resize; } .vue-modal-bottomRight { right: 0; bottom: 0; cursor: se-resize; } #vue-modal-triangle::after { display: block; position: absolute; content: ''; background: transparent; left: 0; top: 0; width: 0; height: 0; border-bottom: 10px solid #ddd; border-left: 10px solid transparent; } #vue-modal-triangle.clicked::after { border-bottom: 10px solid #369be9; } `,""])},function(j,U){var q;q=function(){return this}();try{q=q||new Function("return this")()}catch{typeof window=="object"&&(q=window)}j.exports=q},function(j,U,q){var Y=q(1);q.n(Y).a},function(j,U,q){(j.exports=q(3)(!1)).push([j.i,` .vm--block-scroll { overflow: hidden; width: 100vw; } .vm--container { position: fixed; box-sizing: border-box; left: 0; top: 0; width: 100%; height: 100vh; z-index: 999; } .vm--overlay { position: fixed; box-sizing: border-box; left: 0; top: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.2); /* z-index: 999; */ opacity: 1; } .vm--container.scrollable { height: 100%; min-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; } .vm--modal { position: relative; overflow: hidden; box-sizing: border-box; background-color: white; border-radius: 3px; box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4); } .vm--container.scrollable .vm--modal { margin-bottom: 2px; } .vm--top-right-slot { display: block; position: absolute; right: 0; top: 0; } .vm-transition--overlay-enter-active, .vm-transition--overlay-leave-active { transition: all 50ms; } .vm-transition--overlay-enter, .vm-transition--overlay-leave-active { opacity: 0; } .vm-transition--modal-enter-active, .vm-transition--modal-leave-active { transition: all 400ms; } .vm-transition--modal-enter, .vm-transition--modal-leave-active { opacity: 0; transform: translateY(-20px); } .vm-transition--default-enter-active, .vm-transition--default-leave-active { transition: all 2ms; } .vm-transition--default-enter, .vm-transition--default-leave-active { opacity: 0; } `,""])},function(j,U,q){var Y=q(2);q.n(Y).a},function(j,U,q){(j.exports=q(3)(!1)).push([j.i,` .vue-dialog { font-size: 14px; } .vue-dialog div { box-sizing: border-box; } .vue-dialog-content { flex: 1 0 auto; width: 100%; padding: 14px; } .vue-dialog-content-title { font-weight: 600; padding-bottom: 14px; } .vue-dialog-buttons { display: flex; flex: 0 1 auto; width: 100%; border-top: 1px solid #eee; } .vue-dialog-buttons-none { width: 100%; padding-bottom: 14px; } .vue-dialog-button { font-size: inherit; background: transparent; padding: 0; margin: 0; border: 0; cursor: pointer; box-sizing: border-box; line-height: 40px; height: 40px; color: inherit; font: inherit; outline: none; } .vue-dialog-button:hover { background: #f9f9f9; } .vue-dialog-button:active { background: #f3f3f3; } .vue-dialog-button:not(:first-of-type) { border-left: 1px solid #eee; } `,""])},function(j,U,q){q.r(U),q.d(U,"Modal",function(){return Gt}),q.d(U,"Dialog",function(){return kn}),q.d(U,"version",function(){return xt});function Y(){var Ue=this,Oe=Ue.$createElement,ke=Ue._self._c||Oe;return Ue.visible?ke("div",{class:Ue.containerClass},[ke("transition",{attrs:{name:Ue.guaranteedOverlayTransition},on:{"before-enter":Ue.beforeOverlayTransitionEnter,"after-enter":Ue.afterOverlayTransitionEnter,"before-leave":Ue.beforeOverlayTransitionLeave,"after-leave":Ue.afterOverlayTransitionLeave}},[Ue.visibility.overlay?ke("div",{staticClass:"vm--overlay",attrs:{"data-modal":Ue.name,"aria-expanded":Ue.visibility.overlay.toString()},on:{click:function($e){return $e.target!==$e.currentTarget?null:($e.stopPropagation(),Ue.onOverlayClick($e))}}},[ke("div",{staticClass:"vm--top-right-slot"},[Ue._t("top-right")],2)]):Ue._e()]),Ue._v(" "),ke("transition",{attrs:{name:Ue.guaranteedModalTransition},on:{"before-enter":Ue.beforeModalTransitionEnter,"after-enter":Ue.afterModalTransitionEnter,"before-leave":Ue.beforeModalTransitionLeave,"after-leave":Ue.afterModalTransitionLeave}},[Ue.visibility.modal?ke("div",{ref:"modal",class:Ue.modalClass,style:Ue.modalStyle,attrs:{"aria-expanded":Ue.visibility.modal.toString(),role:"dialog","aria-modal":"true"}},[Ue._t("default"),Ue._v(" "),Ue.resizable&&!Ue.isAutoHeight?ke("resizer",{attrs:{"min-width":Ue.minWidth,"min-height":Ue.minHeight,"max-width":Ue.maxWidth,"max-height":Ue.maxHeight,"viewport-height":Ue.viewportHeight,"viewport-width":Ue.viewportWidth,"resize-indicator":Ue.resizeIndicator,"resize-edges":Ue.resizeEdges},on:{resize:Ue.onModalResize}}):Ue._e()],2):Ue._e()])],1):Ue._e()}function K(){var Ue=this,Oe=Ue.$createElement,ke=Ue._self._c||Oe;return ke("div",[this.resizeEdges.includes("t")?ke("div",{staticClass:"vue-modal-top"}):Ue._e(),Ue._v(" "),this.resizeEdges.includes("b")?ke("div",{staticClass:"vue-modal-bottom"}):Ue._e(),Ue._v(" "),this.resizeEdges.includes("l")?ke("div",{staticClass:"vue-modal-left"}):Ue._e(),Ue._v(" "),this.resizeEdges.includes("r")?ke("div",{staticClass:"vue-modal-right"}):Ue._e(),Ue._v(" "),this.resizeEdges.includes("tr")?ke("div",{staticClass:"vue-modal-topRight"}):Ue._e(),Ue._v(" "),this.resizeEdges.includes("tl")?ke("div",{staticClass:"vue-modal-topLeft"}):Ue._e(),Ue._v(" "),this.resizeEdges.includes("br")?ke("div",{class:Ue.className,attrs:{id:Ue.getID}}):Ue._e(),Ue._v(" "),this.resizeEdges.includes("bl")?ke("div",{staticClass:"vue-modal-bottomLeft"}):Ue._e()])}K._withStripped=Y._withStripped=!0;function G(Ue,Oe,ke){return ke<Ue?Ue:Oe<ke?Oe:ke}function J(Ue,Oe,ke){return Oe in Ue?Object.defineProperty(Ue,Oe,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Ue[Oe]=ke,Ue}function Z(Ue,Oe){return function(ke){if(Array.isArray(ke))return ke}(Ue)||function(ke,$e){var Ge=[],rt=!0,ut=!1,ct=void 0;try{for(var it,ot=ke[Symbol.iterator]();!(rt=(it=ot.next()).done)&&(Ge.push(it.value),!$e||Ge.length!==$e);rt=!0);}catch(Ot){ut=!0,ct=Ot}finally{try{rt||ot.return==null||ot.return()}finally{if(ut)throw ct}}return Ge}(Ue,Oe)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ee(){var Ue=window.innerWidth,Oe=document.documentElement.clientWidth;return Ue&&Oe?Math.min(Ue,Oe):Oe||Ue}function te(Ue){return Ue.split(";").map(function(Oe){return Oe.trim()}).filter(Boolean).map(function(Oe){return Oe.split(":")}).reduce(function(Oe,ke){var $e=Z(ke,2);return function(Ge){for(var rt=1;rt<arguments.length;rt++){var ut=arguments[rt]!=null?arguments[rt]:{},ct=Object.keys(ut);typeof Object.getOwnPropertySymbols=="function"&&(ct=ct.concat(Object.getOwnPropertySymbols(ut).filter(function(it){return Object.getOwnPropertyDescriptor(ut,it).enumerable}))),ct.forEach(function(it){J(Ge,it,ut[it])})}return Ge}({},Oe,J({},$e[0],$e[1]))},{})}function se(Ue){return Ue.touches&&0<Ue.touches.length?Ue.touches[0]:Ue}var re=["INPUT","TEXTAREA","SELECT"],ne=function(Ue){var Oe=0<arguments.length&&Ue!==void 0?Ue:0;return function(){return(Oe++).toString()}}(),ce={name:"VueJsModalResizer",props:{minHeight:{type:Number,default:0},minWidth:{type:Number,default:0},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER},viewportWidth:{type:Number,required:!0},viewportHeight:{type:Number,required:!0},resizeIndicator:{type:Boolean,default:!0},resizeEdges:{type:Array,required:!0}},data:function(){return{clicked:!1,targetClass:"",size:{},initialX:0,initialY:0}},mounted:function(){this.$el.addEventListener("mousedown",this.start,!1)},computed:{className:function(){return["vue-modal-bottomRight",{clicked:this.clicked}]},getID:function(){return this.resizeIndicator?"vue-modal-triangle":""}},methods:{start:function(Ue){this.targetClass=Ue.target.className,this.clicked=!0,this.initialX=Ue.clientX,this.initialY=Ue.clientY,window.addEventListener("mousemove",this.mousemove,!1),window.addEventListener("mouseup",this.stop,!1),Ue.stopPropagation(),Ue.preventDefault()},stop:function(){this.clicked=!1,this.clicked=!1,this.targetClass="",this.initialX=0,this.initialY=0,window.removeEventListener("mousemove",this.mousemove,!1),window.removeEventListener("mouseup",this.stop,!1),this.$emit("resize-stop",{element:this.$el.parentElement,size:this.size})},mousemove:function(Ue){this.resize(Ue)},resize:function(Ue){var Oe=this.$el.parentElement,ke=Ue.clientX,$e=Ue.clientY,Ge=parseInt(Oe.style.width.replace("px","")),rt=parseInt(Oe.style.height.replace("px",""));if(!(Ue.clientX>this.viewportWidth||Ue.clientX<0)&&!(Ue.clientY>this.viewportHeight||Ue.clientY<0)&&Oe){switch(this.targetClass){case"vue-modal-right":ke-=Oe.offsetLeft,$e=rt;break;case"vue-modal-left":$e=rt,ke=Ge+(this.initialX-Ue.clientX);break;case"vue-modal-top":ke=Ge,$e=rt+(this.initialY-Ue.clientY);break;case"vue-modal-bottom":ke=Ge,$e-=Oe.offsetTop;break;case"vue-modal-bottomRight":ke-=Oe.offsetLeft,$e-=Oe.offsetTop;break;case"vue-modal-topRight":ke-=Oe.offsetLeft,$e=rt+(this.initialY-Ue.clientY);break;case"vue-modal-bottomLeft":ke=Ge+(this.initialX-Ue.clientX),$e-=Oe.offsetTop;break;case"vue-modal-topLeft":ke=Ge+(this.initialX-Ue.clientX),$e=rt+(this.initialY-Ue.clientY);break;default:console.error("Incorrrect/no resize direction.")}var ut=Math.min(ee(),this.maxWidth),ct=Math.min(window.innerHeight,this.maxHeight);ke=G(this.minWidth,ut,ke),$e=G(this.minHeight,ct,$e),this.initialX=Ue.clientX,this.initialY=Ue.clientY,this.size={width:ke,height:$e};var it={width:ke-Ge,height:$e-rt};Oe.style.width=ke+"px",Oe.style.height=$e+"px",this.$emit("resize",{element:Oe,size:this.size,direction:this.targetClass,dimGrowth:it})}}}};q(6);function me(Ue,Oe,ke,$e,Ge,rt,ut,ct){var it,ot=typeof Ue=="function"?Ue.options:Ue;if(Oe&&(ot.render=Oe,ot.staticRenderFns=ke,ot._compiled=!0),$e&&(ot.functional=!0),rt&&(ot._scopeId="data-v-"+rt),ut?(it=function(Fn){(Fn=Fn||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(Fn=__VUE_SSR_CONTEXT__),Ge&&Ge.call(this,Fn),Fn&&Fn._registeredComponents&&Fn._registeredComponents.add(ut)},ot._ssrRegister=it):Ge&&(it=ct?function(){Ge.call(this,this.$root.$options.shadowRoot)}:Ge),it)if(ot.functional){ot._injectStyles=it;var Ot=ot.render;ot.render=function(Fn,Zt){return it.call(Zt),Ot(Fn,Zt)}}else{var dn=ot.beforeCreate;ot.beforeCreate=dn?[].concat(dn,it):[it]}return{exports:Ue,options:ot}}var ue=me(ce,K,[],!1,null,null,null);ue.options.__file="src/components/Resizer.vue";var _e=ue.exports;function fe(Ue){return(fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe})(Ue)}function ge(Ue){switch(fe(Ue)){case"number":return{type:"px",value:Ue};case"string":return function(Oe){if(Oe==="auto")return{type:Oe,value:0};var ke=le.find(function($e){return $e.regexp.test(Oe)});return ke?{type:ke.name,value:parseFloat(Oe)}:{type:"",value:Oe}}(Ue);default:return{type:"",value:Ue}}}function ye(Ue){if(typeof Ue!="string")return 0<=Ue;var Oe=ge(Ue);return(Oe.type==="%"||Oe.type==="px")&&0<Oe.value}var xe="[-+]?[0-9]*.?[0-9]+",le=[{name:"px",regexp:new RegExp("^".concat(xe,"px$"))},{name:"%",regexp:new RegExp("^".concat(xe,"%$"))},{name:"px",regexp:new RegExp("^".concat(xe,"$"))}],be=q(5),ve=typeof window<"u"&&window.ResizeObserver?ResizeObserver:be.a;function we(Ue,Oe){for(var ke=0;ke<Oe.length;ke++){var $e=Oe[ke];$e.enumerable=$e.enumerable||!1,$e.configurable=!0,"value"in $e&&($e.writable=!0),Object.defineProperty(Ue,$e.key,$e)}}function Ae(Ue){return function(Oe){if(Array.isArray(Oe)){for(var ke=0,$e=new Array(Oe.length);ke<Oe.length;ke++)$e[ke]=Oe[ke];return $e}}(Ue)||function(Oe){if(Symbol.iterator in Object(Oe)||Object.prototype.toString.call(Oe)==="[object Arguments]")return Array.from(Oe)}(Ue)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Se(Ue){return Oe='button:not([disabled]), select:not([disabled]), a[href]:not([disabled]), area[href]:not([disabled]), [contentEditable=""]:not([disabled]), [contentEditable="true"]:not([disabled]), [contentEditable="TRUE"]:not([disabled]), textarea:not([disabled]), iframe:not([disabled]), input:not([disabled]), summary:not([disabled]), [tabindex]:not([tabindex="-1"])',Ae(Ue.querySelectorAll(Oe)||[]);var Oe}function Pe(Ue){return Ue==document.activeElement}var Me=function(){function Ue(){(function($e,Ge){if(!($e instanceof Ge))throw new TypeError("Cannot call a class as a function")})(this,Ue),this.root=null,this.elements=[],this.onKeyDown=this.onKeyDown.bind(this),this.enable=this.enable.bind(this),this.disable=this.disable.bind(this),this.firstElement=this.firstElement.bind(this),this.lastElement=this.lastElement.bind(this)}var Oe,ke;return Oe=Ue,(ke=[{key:"lastElement",value:function(){return this.elements[this.elements.length-1]||null}},{key:"firstElement",value:function(){return this.elements[0]||null}},{key:"onKeyDown",value:function($e){var Ge;if((Ge=$e).key==="Tab"||Ge.keyCode===9)return $e.shiftKey&&Pe(this.firstElement())?(this.lastElement().focus(),void $e.preventDefault()):!document.activeElement||Pe(this.lastElement())?(this.firstElement().focus(),void $e.preventDefault()):void 0}},{key:"enabled",value:function(){return!!this.root}},{key:"enable",value:function($e){if($e){this.root=$e,this.elements=Se(this.root);var Ge=this.firstElement();Ge&&Ge.focus(),this.root.addEventListener("keydown",this.onKeyDown)}}},{key:"disable",value:function(){this.root.removeEventListener("keydown",this.onKeyDown),this.root=null}}])&&we(Oe.prototype,ke),Ue}();function Be(Ue,Oe,ke){return Oe in Ue?Object.defineProperty(Ue,Oe,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Ue[Oe]=ke,Ue}function ze(Ue,Oe){return function(ke){if(Array.isArray(ke))return ke}(Ue)||function(ke,$e){var Ge=[],rt=!0,ut=!1,ct=void 0;try{for(var it,ot=ke[Symbol.iterator]();!(rt=(it=ot.next()).done)&&(Ge.push(it.value),!$e||Ge.length!==$e);rt=!0);}catch(Ot){ut=!0,ct=Ot}finally{try{rt||ot.return==null||ot.return()}finally{if(ut)throw ct}}return Ge}(Ue,Oe)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ze="vm-transition--default",ft="enter",Ye="entering",Ve="leave",Dt="leavng",Nt={name:"VueJsModal",props:{name:{required:!0,type:String},resizable:{type:Boolean,default:!1},resizeEdges:{default:function(){return["r","br","b","bl","l","tl","t","tr"]},validator:function(Ue){return["r","br","b","bl","l","tl","t","tr"].filter(function(Oe){return Ue.indexOf(Oe)!==-1}).length===Ue.length},type:Array},centerResize:{type:Boolean,default:!0},resizeIndicator:{type:Boolean,default:!0},adaptive:{type:Boolean,default:!1},draggable:{type:[Boolean,String],default:!1},scrollable:{type:Boolean,default:!1},focusTrap:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},overlayTransition:{type:String,default:"vm-transition--overlay"},transition:{type:String,default:"vm-transition--modal"},clickToClose:{type:Boolean,default:!0},classes:{type:[String,Array],default:function(){return[]}},styles:{type:[String,Array,Object]},minWidth:{type:Number,default:0,validator:function(Ue){return 0<=Ue}},minHeight:{type:Number,default:0,validator:function(Ue){return 0<=Ue}},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER},width:{type:[Number,String],default:600,validator:function(Ue){return Ue==="auto"||ye(Ue)}},height:{type:[Number,String],default:300,validator:function(Ue){return Ue==="auto"||ye(Ue)}},shiftX:{type:Number,default:.5,validator:function(Ue){return 0<=Ue&&Ue<=1}},shiftY:{type:Number,default:.5,validator:function(Ue){return 0<=Ue&&Ue<=1}}},components:{Resizer:_e},data:function(){return{visible:!1,visibility:{modal:!1,overlay:!1},overlayTransitionState:null,modalTransitionState:null,shiftLeft:0,shiftTop:0,modal:{width:0,widthType:"px",height:0,heightType:"px",renderedHeight:0},viewportHeight:0,viewportWidth:0}},created:function(){this.setInitialSize()},beforeMount:function(){this.$modal.subscription.$on("toggle",this.onToggle),window.addEventListener("resize",this.onWindowResize),window.addEventListener("orientationchange",this.onWindowResize),this.onWindowResize(),this.scrollable&&!this.isAutoHeight&&console.warn('Modal "'.concat(this.name,'" has scrollable flag set to true ')+'but height is not "auto" ('.concat(this.height,")")),this.clickToClose&&window.addEventListener("keyup",this.onEscapeKeyUp)},mounted:function(){var Ue=this;this.resizeObserver=new ve(function(Oe){if(0<Oe.length){var ke=ze(Oe,1)[0];Ue.modal.renderedHeight=ke.contentRect.height}}),this.$focusTrap=new Me},beforeDestroy:function(){this.$modal.subscription.$off("toggle",this.onToggle),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("orientationchange",this.onWindowResize),this.clickToClose&&window.removeEventListener("keyup",this.onEscapeKeyUp),document.body.classList.remove("vm--block-scroll")},computed:{guaranteedOverlayTransition:function(){return this.overlayTransition||Ze},guaranteedModalTransition:function(){return this.transition||Ze},isAutoHeight:function(){return this.modal.heightType==="auto"},position:function(){var Ue=this.viewportHeight,Oe=this.viewportWidth,ke=this.shiftLeft,$e=this.shiftTop,Ge=this.shiftX,rt=this.shiftY,ut=this.trueModalWidth,ct=this.trueModalHeight,it=Oe-ut,ot=Math.max(Ue-ct,0),Ot=$e+rt*ot;return{left:parseInt(G(0,it,ke+Ge*it)),top:!ct&&this.isAutoHeight?void 0:parseInt(G(0,ot,Ot))}},trueModalWidth:function(){var Ue=this.viewportWidth,Oe=this.modal,ke=this.adaptive,$e=this.minWidth,Ge=this.maxWidth,rt=Oe.widthType==="%"?Ue/100*Oe.width:Oe.width;if(ke){var ut=Math.max($e,Math.min(Ue,Ge));return G($e,ut,rt)}return rt},trueModalHeight:function(){var Ue=this.viewportHeight,Oe=this.modal,ke=this.isAutoHeight,$e=this.adaptive,Ge=this.minHeight,rt=this.maxHeight,ut=Oe.heightType==="%"?Ue/100*Oe.height:Oe.height;if(ke)return this.modal.renderedHeight;if($e){var ct=Math.max(Ge,Math.min(Ue,rt));return G(Ge,ct,ut)}return ut},autoHeight:function(){return this.adaptive&&this.modal.renderedHeight>=this.viewportHeight?Math.max(this.minHeight,this.viewportHeight)+"px":"auto"},containerClass:function(){return["vm--container",this.scrollable&&this.isAutoHeight&&"scrollable"]},modalClass:function(){return["vm--modal",this.classes]},stylesProp:function(){return typeof this.styles=="string"?te(this.styles):this.styles},modalStyle:function(){return[this.stylesProp,{top:this.position.top+"px",left:this.position.left+"px",width:this.trueModalWidth+"px",height:this.isAutoHeight?this.autoHeight:this.trueModalHeight+"px"}]},isComponentReadyToBeDestroyed:function(){return this.overlayTransitionState===Ve&&this.modalTransitionState===Ve}},watch:{isComponentReadyToBeDestroyed:function(Ue){Ue&&(this.visible=!1)}},methods:{startTransitionEnter:function(){this.visibility.overlay=!0,this.visibility.modal=!0},startTransitionLeave:function(){this.visibility.overlay=!1,this.visibility.modal=!1},beforeOverlayTransitionEnter:function(){this.overlayTransitionState=Ye},afterOverlayTransitionEnter:function(){this.overlayTransitionState=ft},beforeOverlayTransitionLeave:function(){this.overlayTransitionState=Dt},afterOverlayTransitionLeave:function(){this.overlayTransitionState=Ve},beforeModalTransitionEnter:function(){var Ue=this;this.modalTransitionState=Ye,this.$nextTick(function(){Ue.resizeObserver.observe(Ue.$refs.modal)})},afterModalTransitionEnter:function(){this.modalTransitionState=ft,this.draggable&&this.addDraggableListeners(),this.focusTrap&&this.$focusTrap.enable(this.$refs.modal);var Ue=this.createModalEvent({state:"opened"});this.$emit("opened",Ue)},beforeModalTransitionLeave:function(){this.modalTransitionState=Dt,this.resizeObserver.unobserve(this.$refs.modal),this.$focusTrap.enabled()&&this.$focusTrap.disable()},afterModalTransitionLeave:function(){this.modalTransitionState=Ve;var Ue=this.createModalEvent({state:"closed"});this.$emit("closed",Ue)},onToggle:function(Ue,Oe,ke){if(this.name===Ue){var $e=Oe===void 0?!this.visible:Oe;this.toggle($e,ke)}},setInitialSize:function(){var Ue=ge(this.width),Oe=ge(this.height);this.modal.width=Ue.value,this.modal.widthType=Ue.type,this.modal.height=Oe.value,this.modal.heightType=Oe.type},onEscapeKeyUp:function(Ue){Ue.which===27&&this.visible&&this.$modal.hide(this.name)},onWindowResize:function(){this.viewportWidth=ee(),this.viewportHeight=window.innerHeight,this.ensureShiftInWindowBounds()},createModalEvent:function(Ue){var Oe=0<arguments.length&&Ue!==void 0?Ue:{};return function(ke){for(var $e=1;$e<arguments.length;$e++){var Ge=arguments[$e]!=null?arguments[$e]:{},rt=Object.keys(Ge);typeof Object.getOwnPropertySymbols=="function"&&(rt=rt.concat(Object.getOwnPropertySymbols(Ge).filter(function(ut){return Object.getOwnPropertyDescriptor(Ge,ut).enumerable}))),rt.forEach(function(ut){Be(ke,ut,Ge[ut])})}return ke}({name:this.name,ref:this.$refs.modal||null},Oe)},onModalResize:function(Ue){this.modal.widthType="px",this.modal.width=Ue.size.width,this.modal.heightType="px",this.modal.height=Ue.size.height,this.centerResize||(this.shiftLeft=this.getResizedShiftLeft(Ue),this.shiftTop=this.getResizedShiftTop(Ue));var Oe=this.modal.size;this.$emit("resize",this.createModalEvent({size:Oe}))},getResizedShiftLeft:function(Ue){this.viewportHeight,this.viewportWidth,this.trueModalWidth,this.trueModalHeight;var Oe=this.shiftLeft;switch(Ue.direction){case"vue-modal-topRight":case"vue-modal-bottomRight":case"vue-modal-right":Oe+=.5*Ue.dimGrowth.width;break;case"vue-modal-bottomLeft":case"vue-modal-topLeft":case"vue-modal-left":Oe-=.5*Ue.dimGrowth.width;break;case"vue-modal-top":case"vue-modal-bottom":break;default:console.error("Could not Find Resize Direction In ShiftLeft")}return Oe},getResizedShiftTop:function(Ue){this.viewportHeight,this.viewportWidth,this.trueModalWidth,this.trueModalHeight;var Oe=this.shiftTop;switch(Ue.direction){case"vue-modal-bottom":case"vue-modal-bottomRight":case"vue-modal-bottomLeft":Oe+=.5*Ue.dimGrowth.height;break;case"vue-modal-top":case"vue-modal-topRight":case"vue-modal-topLeft":Oe-=.5*Ue.dimGrowth.height;break;case"vue-modal-left":case"vue-modal-right":break;default:console.error("Could not Find Resize Direction In ShiftTop")}return Oe},open:function(Ue){var Oe=this;this.reset&&(this.setInitialSize(),this.shiftLeft=0,this.shiftTop=0),this.scrollable&&document.body.classList.add("vm--block-scroll");var ke=!1,$e=this.createModalEvent({cancel:function(){ke=!0},state:"before-open",params:Ue});this.$emit("before-open",$e),ke?this.scrollable&&document.body.classList.remove("vm--block-scroll"):(typeof document<"u"&&document.activeElement&&document.activeElement.tagName!=="BODY"&&document.activeElement.blur&&document.activeElement.blur(),this.visible=!0,this.$nextTick(function(){Oe.startTransitionEnter()}))},close:function(Ue){this.scrollable&&document.body.classList.remove("vm--block-scroll");var Oe=!1,ke=this.createModalEvent({cancel:function(){Oe=!0},state:"before-close",params:Ue});this.$emit("before-close",ke),Oe||this.startTransitionLeave()},toggle:function(Ue,Oe){this.visible!==Ue&&(Ue?this.open(Oe):this.close(Oe))},getDraggableElement:function(){return this.draggable===!0?this.$refs.modal:typeof this.draggable=="string"?this.$refs.modal.querySelector(this.draggable):null},onOverlayClick:function(){this.clickToClose&&this.toggle(!1)},addDraggableListeners:function(){var Ue=this,Oe=this.getDraggableElement();if(Oe){var ke=0,$e=0,Ge=0,rt=0,ut=function(ot){var Ot=ot.target;if(!(dn=Ot)||re.indexOf(dn.nodeName)===-1){var dn,Fn=se(ot),Zt=Fn.clientX,vn=Fn.clientY;document.addEventListener("mousemove",ct),document.addEventListener("touchmove",ct),document.addEventListener("mouseup",it),document.addEventListener("touchend",it),ke=Zt,$e=vn,Ge=Ue.shiftLeft,rt=Ue.shiftTop}},ct=function(ot){var Ot=se(ot),dn=Ot.clientX,Fn=Ot.clientY;Ue.shiftLeft=Ge+dn-ke,Ue.shiftTop=rt+Fn-$e,ot.preventDefault()},it=function ot(Ot){Ue.ensureShiftInWindowBounds(),document.removeEventListener("mousemove",ct),document.removeEventListener("touchmove",ct),document.removeEventListener("mouseup",ot),document.removeEventListener("touchend",ot),Ot.preventDefault()};Oe.addEventListener("mousedown",ut),Oe.addEventListener("touchstart",ut)}},ensureShiftInWindowBounds:function(){var Ue=this.viewportHeight,Oe=this.viewportWidth,ke=this.shiftLeft,$e=this.shiftTop,Ge=this.shiftX,rt=this.shiftY,ut=this.trueModalWidth,ct=this.trueModalHeight,it=Oe-ut,ot=Math.max(Ue-ct,0),Ot=ke+Ge*it,dn=$e+rt*ot;this.shiftLeft-=Ot-G(0,it,Ot),this.shiftTop-=dn-G(0,ot,dn)}}},Vt=(q(9),me(Nt,Y,[],!1,null,null,null));Vt.options.__file="src/components/Modal.vue";function Wt(){var Ue=this,Oe=Ue.$createElement,ke=Ue._self._c||Oe;return ke(Ue.$modal.context.componentName,{tag:"component",attrs:{name:"dialog",height:"auto",classes:["vue-dialog",this.params.class],width:Ue.width,"shift-y":.3,adaptive:!0,"focus-trap":!0,clickToClose:Ue.clickToClose,transition:Ue.transition},on:{"before-open":Ue.beforeOpened,"before-close":Ue.beforeClosed,opened:function($e){return Ue.$emit("opened",$e)},closed:function($e){return Ue.$emit("closed",$e)}}},[ke("div",{staticClass:"vue-dialog-content"},[Ue.params.title?ke("div",{staticClass:"vue-dialog-content-title",domProps:{innerHTML:Ue._s(Ue.params.title||"")}}):Ue._e(),Ue._v(" "),Ue.params.component?ke(Ue.params.component,Ue._b({tag:"component"},"component",Ue.params.props,!1)):ke("div",{domProps:{innerHTML:Ue._s(Ue.params.text||"")}})],1),Ue._v(" "),Ue.buttons?ke("div",{staticClass:"vue-dialog-buttons"},Ue._l(Ue.buttons,function($e,Ge){return ke("button",{key:Ge,class:$e.class||"vue-dialog-button",style:Ue.buttonStyle,attrs:{type:"button",tabindex:"0"},domProps:{innerHTML:Ue._s($e.title)},on:{click:function(rt){return rt.stopPropagation(),Ue.click(Ge,rt)}}},[Ue._v(Ue._s($e.title))])}),0):ke("div",{staticClass:"vue-dialog-buttons-none"})])}var Gt=Vt.exports;Wt._withStripped=!0;var tn={name:"VueJsDialog",props:{width:{type:[Number,String],default:400},clickToClose:{type:Boolean,default:!0},transition:{type:String}},data:function(){return{params:{}}},computed:{buttons:function(){return this.params.buttons||[]},buttonStyle:function(){return{flex:"1 1 ".concat(100/this.buttons.length,"%")}}},methods:{beforeOpened:function(Ue){this.params=Ue.params||{},this.$emit("before-opened",Ue)},beforeClosed:function(Ue){this.params={},this.$emit("before-closed",Ue)},click:function(Ue,Oe,ke){var $e=2<arguments.length&&ke!==void 0?ke:"click",Ge=this.buttons[Ue],rt=Ge==null?void 0:Ge.handler;typeof rt=="function"&&rt(Ue,Oe,{source:$e})}}},Qt=(q(11),me(tn,Wt,[],!1,null,null,null));Qt.options.__file="src/components/Dialog.vue";function En(){var Ue=this,Oe=Ue.$createElement,ke=Ue._self._c||Oe;return ke("div",{attrs:{id:"modals-container"}},Ue._l(Ue.modals,function($e){return ke("modal",Ue._g(Ue._b({key:$e.id,on:{closed:function(Ge){return Ue.remove($e.id)}}},"modal",$e.modalAttrs,!1),$e.modalListeners),[ke($e.component,Ue._g(Ue._b({tag:"component",on:{close:function(Ge){return Ue.$modal.hide($e.modalAttrs.name,Ge)}}},"component",$e.componentAttrs,!1),Ue.$listeners))],1)}),1)}var kn=Qt.exports;function Gn(Ue,Oe,ke){return Oe in Ue?Object.defineProperty(Ue,Oe,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Ue[Oe]=ke,Ue}En._withStripped=!0;var An=me({data:function(){return{modals:[]}},created:function(){this.$root.__modalContainer=this},mounted:function(){var Ue=this;this.$modal.subscription.$on("hide-all",function(){Ue.modals=[]})},methods:{add:function(Ue,Oe,ke,$e){var Ge=this,rt=1<arguments.length&&Oe!==void 0?Oe:{},ut=2<arguments.length&&ke!==void 0?ke:{},ct=3<arguments.length&&$e!==void 0?$e:{},it=ne(),ot=ut.name||"dynamic_modal_"+it;this.modals.push({id:it,modalAttrs:function(Ot){for(var dn=1;dn<arguments.length;dn++){var Fn=arguments[dn]!=null?arguments[dn]:{},Zt=Object.keys(Fn);typeof Object.getOwnPropertySymbols=="function"&&(Zt=Zt.concat(Object.getOwnPropertySymbols(Fn).filter(function(vn){return Object.getOwnPropertyDescriptor(Fn,vn).enumerable}))),Zt.forEach(function(vn){Gn(Ot,vn,Fn[vn])})}return Ot}({},ut,{name:ot}),modalListeners:ct,component:Ue,componentAttrs:rt}),this.$nextTick(function(){Ge.$modal.show(ot)})},remove:function(Ue){var Oe=this.modals.findIndex(function(ke){return ke.id===Ue});Oe!==-1&&this.modals.splice(Oe,1)}}},En,[],!1,null,null,null);An.options.__file="src/components/ModalsContainer.vue";var jn=An.exports;function Mn(Ue){return(Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe})(Ue)}function Ln(Ue,Oe,ke){return Oe in Ue?Object.defineProperty(Ue,Oe,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Ue[Oe]=ke,Ue}var Et=function(Ue,Oe){function ke(ut,ct,it,ot){var Ot,dn=2<arguments.length&&it!==void 0?it:{},Fn=3<arguments.length?ot:void 0,Zt=(Ot=rt.root)===null||Ot===void 0?void 0:Ot.__modalContainer,vn=$e.dynamicDefaults||{};Zt!=null&&Zt.add(ut,ct,function(lt){for(var pt=1;pt<arguments.length;pt++){var Pt=arguments[pt]!=null?arguments[pt]:{},qt=Object.keys(Pt);typeof Object.getOwnPropertySymbols=="function"&&(qt=qt.concat(Object.getOwnPropertySymbols(Pt).filter(function(Ht){return Object.getOwnPropertyDescriptor(Pt,Ht).enumerable}))),qt.forEach(function(Ht){Ln(lt,Ht,Pt[Ht])})}return lt}({},vn,dn),Fn)}var $e=1<arguments.length&&Oe!==void 0?Oe:{},Ge=new Ue,rt={root:null,componentName:$e.componentName||"Modal"};return{context:rt,subscription:Ge,show:function(){for(var ut=arguments.length,ct=new Array(ut),it=0;it<ut;it++)ct[it]=arguments[it];var ot=ct[0];switch(Mn(ot)){case"string":(function(Ot,dn){Ge.$emit("toggle",Ot,!0,dn)}).apply(void 0,ct);break;case"object":case"function":ke.apply(void 0,ct);break;default:console.warn("[vue-js-modal] $modal() received an unsupported argument as a first argument.",ot)}},hide:function(ut,ct){Ge.$emit("toggle",ut,!1,ct)},hideAll:function(){Ge.$emit("hide-all")},toggle:function(ut,ct){Ge.$emit("toggle",ut,void 0,ct)},setDynamicModalContainer:function(ut){rt.root=ut;var ct,it=(ct=document.createElement("div"),document.body.appendChild(ct),ct);new Ue({parent:ut,render:function(ot){return ot(jn)}}).$mount(it)}}},We={install:function(Ue,Oe){var ke=1<arguments.length&&Oe!==void 0?Oe:{};if(!Ue.prototype.$modal){var $e=new Et(Ue,ke);if(Object.defineProperty(Ue.prototype,"$modal",{get:function(){if(this instanceof Ue){var rt=this.$root;$e.context.root||$e.setDynamicModalContainer(rt)}return $e}}),Ue.component($e.context.componentName,Gt),ke.dialog){var Ge=ke.dialogComponentName||"VDialog";Ue.component(Ge,kn)}}}},xt="__VERSION__";U.default=We}],I.c=B,I.d=function(j,U,q){I.o(j,U)||Object.defineProperty(j,U,{enumerable:!0,get:q})},I.r=function(j){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},I.t=function(j,U){if(1&U&&(j=I(j)),8&U||4&U&&typeof j=="object"&&j&&j.__esModule)return j;var q=Object.create(null);if(I.r(q),Object.defineProperty(q,"default",{enumerable:!0,value:j}),2&U&&typeof j!="string")for(var Y in j)I.d(q,Y,(function(K){return j[K]}).bind(null,Y));return q},I.n=function(j){var U=j&&j.__esModule?function(){return j.default}:function(){return j};return I.d(U,"a",U),U},I.o=function(j,U){return Object.prototype.hasOwnProperty.call(j,U)},I.p="/dist/",I(I.s=13);function I(j){if(B[j])return B[j].exports;var U=B[j]={i:j,l:!1,exports:{}};return N[j].call(U.exports,U,U.exports,I),U.l=!0,U.exports}var N,B})})(dist);var distExports=dist.exports;const VModal=getDefaultExportFromCjs$1(distExports);/*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */function applyMixin(M){var $=Number(M.version.split(".")[0]);if($>=2)M.mixin({beforeCreate:N});else{var I=M.prototype._init;M.prototype._init=function(B){B===void 0&&(B={}),B.init=B.init?[N].concat(B.init):N,I.call(this,B)}}function N(){var B=this.$options;B.store?this.$store=typeof B.store=="function"?B.store():B.store:B.parent&&B.parent.$store&&(this.$store=B.parent.$store)}}var target=typeof window<"u"?window:typeof global<"u"?global:{},devtoolHook=target.__VUE_DEVTOOLS_GLOBAL_HOOK__;function devtoolPlugin(M){devtoolHook&&(M._devtoolHook=devtoolHook,devtoolHook.emit("vuex:init",M),devtoolHook.on("vuex:travel-to-state",function($){M.replaceState($)}),M.subscribe(function($,I){devtoolHook.emit("vuex:mutation",$,I)},{prepend:!0}),M.subscribeAction(function($,I){devtoolHook.emit("vuex:action",$,I)},{prepend:!0}))}function find(M,$){return M.filter($)[0]}function deepCopy(M,$){if($===void 0&&($=[]),M===null||typeof M!="object")return M;var I=find($,function(B){return B.original===M});if(I)return I.copy;var N=Array.isArray(M)?[]:{};return $.push({original:M,copy:N}),Object.keys(M).forEach(function(B){N[B]=deepCopy(M[B],$)}),N}function forEachValue(M,$){Object.keys(M).forEach(function(I){return $(M[I],I)})}function isObject$1(M){return M!==null&&typeof M=="object"}function isPromise(M){return M&&typeof M.then=="function"}function partial(M,$){return function(){return M($)}}var Module=function M($,I){this.runtime=I,this._children=Object.create(null),this._rawModule=$;var N=$.state;this.state=(typeof N=="function"?N():N)||{}},prototypeAccessors={namespaced:{configurable:!0}};prototypeAccessors.namespaced.get=function(){return!!this._rawModule.namespaced};Module.prototype.addChild=function M($,I){this._children[$]=I};Module.prototype.removeChild=function M($){delete this._children[$]};Module.prototype.getChild=function M($){return this._children[$]};Module.prototype.hasChild=function M($){return $ in this._children};Module.prototype.update=function M($){this._rawModule.namespaced=$.namespaced,$.actions&&(this._rawModule.actions=$.actions),$.mutations&&(this._rawModule.mutations=$.mutations),$.getters&&(this._rawModule.getters=$.getters)};Module.prototype.forEachChild=function M($){forEachValue(this._children,$)};Module.prototype.forEachGetter=function M($){this._rawModule.getters&&forEachValue(this._rawModule.getters,$)};Module.prototype.forEachAction=function M($){this._rawModule.actions&&forEachValue(this._rawModule.actions,$)};Module.prototype.forEachMutation=function M($){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,$)};Object.defineProperties(Module.prototype,prototypeAccessors);var ModuleCollection=function M($){this.register([],$,!1)};ModuleCollection.prototype.get=function M($){return $.reduce(function(I,N){return I.getChild(N)},this.root)};ModuleCollection.prototype.getNamespace=function M($){var I=this.root;return $.reduce(function(N,B){return I=I.getChild(B),N+(I.namespaced?B+"/":"")},"")};ModuleCollection.prototype.update=function M($){update([],this.root,$)};ModuleCollection.prototype.register=function M($,I,N){var B=this;N===void 0&&(N=!0);var j=new Module(I,N);if($.length===0)this.root=j;else{var U=this.get($.slice(0,-1));U.addChild($[$.length-1],j)}I.modules&&forEachValue(I.modules,function(q,Y){B.register($.concat(Y),q,N)})};ModuleCollection.prototype.unregister=function M($){var I=this.get($.slice(0,-1)),N=$[$.length-1],B=I.getChild(N);B&&B.runtime&&I.removeChild(N)};ModuleCollection.prototype.isRegistered=function M($){var I=this.get($.slice(0,-1)),N=$[$.length-1];return I?I.hasChild(N):!1};function update(M,$,I){if($.update(I),I.modules)for(var N in I.modules){if(!$.getChild(N))return;update(M.concat(N),$.getChild(N),I.modules[N])}}var Vue$1,Store=function M($){var I=this;$===void 0&&($={}),!Vue$1&&typeof window<"u"&&window.Vue&&install(window.Vue);var N=$.plugins;N===void 0&&(N=[]);var B=$.strict;B===void 0&&(B=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection($),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Vue$1,this._makeLocalGettersCache=Object.create(null);var j=this,U=this,q=U.dispatch,Y=U.commit;this.dispatch=function(Z,ee){return q.call(j,Z,ee)},this.commit=function(Z,ee,te){return Y.call(j,Z,ee,te)},this.strict=B;var K=this._modules.root.state;installModule(this,K,[],this._modules.root),resetStoreVM(this,K),N.forEach(function(J){return J(I)});var G=$.devtools!==void 0?$.devtools:Vue$1.config.devtools;G&&devtoolPlugin(this)},prototypeAccessors$1={state:{configurable:!0}};prototypeAccessors$1.state.get=function(){return this._vm._data.$$state};prototypeAccessors$1.state.set=function(M){};Store.prototype.commit=function M($,I,N){var B=this,j=unifyObjectStyle($,I,N),U=j.type,q=j.payload,Y={type:U,payload:q},K=this._mutations[U];K&&(this._withCommit(function(){K.forEach(function(J){J(q)})}),this._subscribers.slice().forEach(function(G){return G(Y,B.state)}))};Store.prototype.dispatch=function M($,I){var N=this,B=unifyObjectStyle($,I),j=B.type,U=B.payload,q={type:j,payload:U},Y=this._actions[j];if(Y){try{this._actionSubscribers.slice().filter(function(G){return G.before}).forEach(function(G){return G.before(q,N.state)})}catch{}var K=Y.length>1?Promise.all(Y.map(function(G){return G(U)})):Y[0](U);return new Promise(function(G,J){K.then(function(Z){try{N._actionSubscribers.filter(function(ee){return ee.after}).forEach(function(ee){return ee.after(q,N.state)})}catch{}G(Z)},function(Z){try{N._actionSubscribers.filter(function(ee){return ee.error}).forEach(function(ee){return ee.error(q,N.state,Z)})}catch{}J(Z)})})}};Store.prototype.subscribe=function M($,I){return genericSubscribe($,this._subscribers,I)};Store.prototype.subscribeAction=function M($,I){var N=typeof $=="function"?{before:$}:$;return genericSubscribe(N,this._actionSubscribers,I)};Store.prototype.watch=function M($,I,N){var B=this;return this._watcherVM.$watch(function(){return $(B.state,B.getters)},I,N)};Store.prototype.replaceState=function M($){var I=this;this._withCommit(function(){I._vm._data.$$state=$})};Store.prototype.registerModule=function M($,I,N){N===void 0&&(N={}),typeof $=="string"&&($=[$]),this._modules.register($,I),installModule(this,this.state,$,this._modules.get($),N.preserveState),resetStoreVM(this,this.state)};Store.prototype.unregisterModule=function M($){var I=this;typeof $=="string"&&($=[$]),this._modules.unregister($),this._withCommit(function(){var N=getNestedState(I.state,$.slice(0,-1));Vue$1.delete(N,$[$.length-1])}),resetStore(this)};Store.prototype.hasModule=function M($){return typeof $=="string"&&($=[$]),this._modules.isRegistered($)};Store.prototype.hotUpdate=function M($){this._modules.update($),resetStore(this,!0)};Store.prototype._withCommit=function M($){var I=this._committing;this._committing=!0,$(),this._committing=I};Object.defineProperties(Store.prototype,prototypeAccessors$1);function genericSubscribe(M,$,I){return $.indexOf(M)<0&&(I&&I.prepend?$.unshift(M):$.push(M)),function(){var N=$.indexOf(M);N>-1&&$.splice(N,1)}}function resetStore(M,$){M._actions=Object.create(null),M._mutations=Object.create(null),M._wrappedGetters=Object.create(null),M._modulesNamespaceMap=Object.create(null);var I=M.state;installModule(M,I,[],M._modules.root,!0),resetStoreVM(M,I,$)}function resetStoreVM(M,$,I){var N=M._vm;M.getters={},M._makeLocalGettersCache=Object.create(null);var B=M._wrappedGetters,j={};forEachValue(B,function(q,Y){j[Y]=partial(q,M),Object.defineProperty(M.getters,Y,{get:function(){return M._vm[Y]},enumerable:!0})});var U=Vue$1.config.silent;Vue$1.config.silent=!0,M._vm=new Vue$1({data:{$$state:$},computed:j}),Vue$1.config.silent=U,M.strict&&enableStrictMode(M),N&&(I&&M._withCommit(function(){N._data.$$state=null}),Vue$1.nextTick(function(){return N.$destroy()}))}function installModule(M,$,I,N,B){var j=!I.length,U=M._modules.getNamespace(I);if(N.namespaced&&(M._modulesNamespaceMap[U],M._modulesNamespaceMap[U]=N),!j&&!B){var q=getNestedState($,I.slice(0,-1)),Y=I[I.length-1];M._withCommit(function(){Vue$1.set(q,Y,N.state)})}var K=N.context=makeLocalContext(M,U,I);N.forEachMutation(function(G,J){var Z=U+J;registerMutation(M,Z,G,K)}),N.forEachAction(function(G,J){var Z=G.root?J:U+J,ee=G.handler||G;registerAction(M,Z,ee,K)}),N.forEachGetter(function(G,J){var Z=U+J;registerGetter(M,Z,G,K)}),N.forEachChild(function(G,J){installModule(M,$,I.concat(J),G,B)})}function makeLocalContext(M,$,I){var N=$==="",B={dispatch:N?M.dispatch:function(j,U,q){var Y=unifyObjectStyle(j,U,q),K=Y.payload,G=Y.options,J=Y.type;return(!G||!G.root)&&(J=$+J),M.dispatch(J,K)},commit:N?M.commit:function(j,U,q){var Y=unifyObjectStyle(j,U,q),K=Y.payload,G=Y.options,J=Y.type;(!G||!G.root)&&(J=$+J),M.commit(J,K,G)}};return Object.defineProperties(B,{getters:{get:N?function(){return M.getters}:function(){return makeLocalGetters(M,$)}},state:{get:function(){return getNestedState(M.state,I)}}}),B}function makeLocalGetters(M,$){if(!M._makeLocalGettersCache[$]){var I={},N=$.length;Object.keys(M.getters).forEach(function(B){if(B.slice(0,N)===$){var j=B.slice(N);Object.defineProperty(I,j,{get:function(){return M.getters[B]},enumerable:!0})}}),M._makeLocalGettersCache[$]=I}return M._makeLocalGettersCache[$]}function registerMutation(M,$,I,N){var B=M._mutations[$]||(M._mutations[$]=[]);B.push(function(U){I.call(M,N.state,U)})}function registerAction(M,$,I,N){var B=M._actions[$]||(M._actions[$]=[]);B.push(function(U){var q=I.call(M,{dispatch:N.dispatch,commit:N.commit,getters:N.getters,state:N.state,rootGetters:M.getters,rootState:M.state},U);return isPromise(q)||(q=Promise.resolve(q)),M._devtoolHook?q.catch(function(Y){throw M._devtoolHook.emit("vuex:error",Y),Y}):q})}function registerGetter(M,$,I,N){M._wrappedGetters[$]||(M._wrappedGetters[$]=function(j){return I(N.state,N.getters,j.state,j.getters)})}function enableStrictMode(M){M._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function getNestedState(M,$){return $.reduce(function(I,N){return I[N]},M)}function unifyObjectStyle(M,$,I){return isObject$1(M)&&M.type&&(I=$,$=M,M=M.type),{type:M,payload:$,options:I}}function install(M){Vue$1&&M===Vue$1||(Vue$1=M,applyMixin(Vue$1))}var mapState=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;I[B]=function(){var q=this.$store.state,Y=this.$store.getters;if(M){var K=getModuleByNamespace(this.$store,"mapState",M);if(!K)return;q=K.context.state,Y=K.context.getters}return typeof j=="function"?j.call(this,q,Y):q[j]},I[B].vuex=!0}),I}),mapMutations=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;I[B]=function(){for(var q=[],Y=arguments.length;Y--;)q[Y]=arguments[Y];var K=this.$store.commit;if(M){var G=getModuleByNamespace(this.$store,"mapMutations",M);if(!G)return;K=G.context.commit}return typeof j=="function"?j.apply(this,[K].concat(q)):K.apply(this.$store,[j].concat(q))}}),I}),mapGetters=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;j=M+j,I[B]=function(){if(!(M&&!getModuleByNamespace(this.$store,"mapGetters",M)))return this.$store.getters[j]},I[B].vuex=!0}),I}),mapActions=normalizeNamespace(function(M,$){var I={};return normalizeMap($).forEach(function(N){var B=N.key,j=N.val;I[B]=function(){for(var q=[],Y=arguments.length;Y--;)q[Y]=arguments[Y];var K=this.$store.dispatch;if(M){var G=getModuleByNamespace(this.$store,"mapActions",M);if(!G)return;K=G.context.dispatch}return typeof j=="function"?j.apply(this,[K].concat(q)):K.apply(this.$store,[j].concat(q))}}),I}),createNamespacedHelpers=function(M){return{mapState:mapState.bind(null,M),mapGetters:mapGetters.bind(null,M),mapMutations:mapMutations.bind(null,M),mapActions:mapActions.bind(null,M)}};function normalizeMap(M){return isValidMap(M)?Array.isArray(M)?M.map(function($){return{key:$,val:$}}):Object.keys(M).map(function($){return{key:$,val:M[$]}}):[]}function isValidMap(M){return Array.isArray(M)||isObject$1(M)}function normalizeNamespace(M){return function($,I){return typeof $!="string"?(I=$,$=""):$.charAt($.length-1)!=="/"&&($+="/"),M($,I)}}function getModuleByNamespace(M,$,I){var N=M._modulesNamespaceMap[I];return N}function createLogger(M){M===void 0&&(M={});var $=M.collapsed;$===void 0&&($=!0);var I=M.filter;I===void 0&&(I=function(G,J,Z){return!0});var N=M.transformer;N===void 0&&(N=function(G){return G});var B=M.mutationTransformer;B===void 0&&(B=function(G){return G});var j=M.actionFilter;j===void 0&&(j=function(G,J){return!0});var U=M.actionTransformer;U===void 0&&(U=function(G){return G});var q=M.logMutations;q===void 0&&(q=!0);var Y=M.logActions;Y===void 0&&(Y=!0);var K=M.logger;return K===void 0&&(K=console),function(G){var J=deepCopy(G.state);typeof K>"u"||(q&&G.subscribe(function(Z,ee){var te=deepCopy(ee);if(I(Z,J,te)){var se=getFormattedTime(),re=B(Z),ne="mutation "+Z.type+se;startMessage(K,ne,$),K.log("%c prev state","color: #9E9E9E; font-weight: bold",N(J)),K.log("%c mutation","color: #03A9F4; font-weight: bold",re),K.log("%c next state","color: #4CAF50; font-weight: bold",N(te)),endMessage(K)}J=te}),Y&&G.subscribeAction(function(Z,ee){if(j(Z,ee)){var te=getFormattedTime(),se=U(Z),re="action "+Z.type+te;startMessage(K,re,$),K.log("%c action","color: #03A9F4; font-weight: bold",se),endMessage(K)}}))}}function startMessage(M,$,I){var N=I?M.groupCollapsed:M.group;try{N.call(M,$)}catch{M.log($)}}function endMessage(M){try{M.groupEnd()}catch{M.log("—— log end ——")}}function getFormattedTime(){var M=new Date;return" @ "+pad(M.getHours(),2)+":"+pad(M.getMinutes(),2)+":"+pad(M.getSeconds(),2)+"."+pad(M.getMilliseconds(),3)}function repeat(M,$){return new Array($+1).join(M)}function pad(M,$){return repeat("0",$-M.toString().length)+M}var index={Store,install,version:"3.6.2",mapState,mapMutations,mapGetters,mapActions,createNamespacedHelpers,createLogger};const Vuex=index,StatamicStore={namespaced:!0,state:{windowWidth:null,fieldtypes:null,composer:{},config:{},conditions:{}},mutations:{windowWidth(M,$){M.windowWidth=$},fieldtypes(M,$){M.fieldtypes=$},composer(M,$){M.composer=$},config(M,$){M.config=$},configValue(M,$){M.config[$.key]=$.value},preferences(M,$){M.config.user.preferences=$},condition(M,$){M.conditions[$.name]=$.condition}}};var vCalendar_umd_min={exports:{}};(function(M,$){(function(I,N){M.exports=N(require$$0$1)})(typeof self<"u"?self:commonjsGlobal,function(I){return function(N){var B={};function j(U){if(B[U])return B[U].exports;var q=B[U]={i:U,l:!1,exports:{}};return N[U].call(q.exports,q,q.exports,j),q.l=!0,q.exports}return j.m=N,j.c=B,j.d=function(U,q,Y){j.o(U,q)||Object.defineProperty(U,q,{enumerable:!0,get:Y})},j.r=function(U){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},j.t=function(U,q){if(1&q&&(U=j(U)),8&q||4&q&&typeof U=="object"&&U&&U.__esModule)return U;var Y=Object.create(null);if(j.r(Y),Object.defineProperty(Y,"default",{enumerable:!0,value:U}),2&q&&typeof U!="string")for(var K in U)j.d(Y,K,(function(G){return U[G]}).bind(null,K));return Y},j.n=function(U){var q=U&&U.__esModule?function(){return U.default}:function(){return U};return j.d(q,"a",q),q},j.o=function(U,q){return Object.prototype.hasOwnProperty.call(U,q)},j.p="",j(j.s="fb15")}({"00fd":function(N,B,j){var U=j("9e69"),q=Object.prototype,Y=q.hasOwnProperty,K=q.toString,G=U?U.toStringTag:void 0;function J(Z){var ee=Y.call(Z,G),te=Z[G];try{Z[G]=void 0;var se=!0}catch{}var re=K.call(Z);return se&&(ee?Z[G]=te:delete Z[G]),re}N.exports=J},"03dd":function(N,B,j){var U=j("eac5"),q=j("57a5"),Y=Object.prototype,K=Y.hasOwnProperty;function G(J){if(!U(J))return q(J);var Z=[];for(var ee in Object(J))K.call(J,ee)&&ee!="constructor"&&Z.push(ee);return Z}N.exports=G},"0621":function(N,B,j){var U=j("9e69"),q=j("d370"),Y=j("6747"),K=U?U.isConcatSpreadable:void 0;function G(J){return Y(J)||q(J)||!!(K&&J&&J[K])}N.exports=G},"06cf":function(N,B,j){var U=j("83ab"),q=j("d1e7"),Y=j("5c6c"),K=j("fc6a"),G=j("c04e"),J=j("5135"),Z=j("0cfb"),ee=Object.getOwnPropertyDescriptor;B.f=U?ee:function(te,se){if(te=K(te),se=G(se,!0),Z)try{return ee(te,se)}catch{}if(J(te,se))return Y(!q.f.call(te,se),te[se])}},"0733":function(N,B,j){j.d(B,"a",function(){return Y});var U=j("2fa3"),q=j("9404");const Y=function(K,G,{maxSwipeTime:J,minHorizontalSwipeDistance:Z,maxVerticalSwipeDistance:ee}){if(!K||!K.addEventListener||!Object(q.k)(G))return null;let te=0,se=0,re=null,ne=!1;function ce(ue){const _e=ue.changedTouches[0];te=_e.screenX,se=_e.screenY,re=new Date().getTime(),ne=!0}function me(ue){if(!ne)return;ne=!1;const _e=ue.changedTouches[0],fe=_e.screenX-te,ge=_e.screenY-se;if(new Date().getTime()-re<J&&Math.abs(fe)>=Z&&Math.abs(ge)<=ee){const xe={toLeft:!1,toRight:!1};fe<0?xe.toLeft=!0:xe.toRight=!0,G(xe)}}return Object(U.k)(K,"touchstart",ce,{passive:!0}),Object(U.k)(K,"touchend",me,{passive:!0}),function(){Object(U.j)(K,"touchstart",ce),Object(U.j)(K,"touchend",me)}}},"07c7":function(N,B){function j(){return!1}N.exports=j},"087d":function(N,B){function j(U,q){for(var Y=-1,K=q.length,G=U.length;++Y<K;)U[G+Y]=q[Y];return U}N.exports=j},"08cc":function(N,B,j){var U=j("1a8c");function q(Y){return Y===Y&&!U(Y)}N.exports=q},"0b07":function(N,B,j){var U=j("34ac"),q=j("3698");function Y(K,G){var J=q(K,G);return U(J)?J:void 0}N.exports=Y},"0cb2":function(N,B,j){var U=j("7b0b"),q=Math.floor,Y="".replace,K=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,G=/\$([$&'`]|\d{1,2})/g;N.exports=function(J,Z,ee,te,se,re){var ne=ee+J.length,ce=te.length,me=G;return se!==void 0&&(se=U(se),me=K),Y.call(re,me,function(ue,_e){var fe;switch(_e.charAt(0)){case"$":return"$";case"&":return J;case"`":return Z.slice(0,ee);case"'":return Z.slice(ne);case"<":fe=se[_e.slice(1,-1)];break;default:var ge=+_e;if(ge===0)return ue;if(ge>ce){var ye=q(ge/10);return ye===0?ue:ye<=ce?te[ye-1]===void 0?_e.charAt(1):te[ye-1]+_e.charAt(1):ue}fe=te[ge-1]}return fe===void 0?"":fe})}},"0cfb":function(N,B,j){var U=j("83ab"),q=j("d039"),Y=j("cc12");N.exports=!U&&!q(function(){return Object.defineProperty(Y("div"),"a",{get:function(){return 7}}).a!=7})},"0d24":function(N,B,j){(function(U){var q=j("2b3e"),Y=j("07c7"),K=B&&!B.nodeType&&B,G=K&&typeof U=="object"&&U&&!U.nodeType&&U,J=G&&G.exports===K,Z=J?q.Buffer:void 0,ee=Z?Z.isBuffer:void 0,te=ee||Y;U.exports=te}).call(this,j("62e4")(N))},"0da5":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-nav-header{display:flex;justify-content:space-between}.vc-nav-arrow{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;line-height:var(--leading-snug);border-width:2px;border-style:solid;border-color:transparent;border-radius:var(--rounded)}.vc-nav-arrow.is-left{margin-right:auto}.vc-nav-arrow.is-right{margin-left:auto}.vc-nav-arrow.is-disabled{opacity:.25;pointer-events:none;cursor:not-allowed}.vc-nav-arrow:hover{background-color:var(--gray-900)}.vc-nav-arrow:focus{border-color:var(--accent-600)}.vc-nav-title{color:var(--accent-100);font-weight:var(--font-bold);line-height:var(--leading-snug);padding:4px 8px;border-radius:var(--rounded);border-width:2px;border-style:solid;border-color:transparent;-webkit-user-select:none;user-select:none}.vc-nav-title:hover{background-color:var(--gray-900)}.vc-nav-title:focus{border-color:var(--accent-600)}.vc-nav-items{display:grid;grid-template-columns:repeat(3,1fr);grid-row-gap:2px;grid-column-gap:5px}.vc-nav-item{width:48px;text-align:center;line-height:var(--leading-snug);font-weight:var(--font-semibold);padding:4px 0;cursor:pointer;border-color:transparent;border-width:2px;border-style:solid;border-radius:var(--rounded);-webkit-user-select:none;user-select:none}.vc-nav-item:hover{color:var(--white);background-color:var(--gray-900);box-shadow:var(--shadow-inner)}.vc-nav-item.is-active{color:var(--accent-900);background:var(--accent-100);font-weight:var(--font-bold);box-shadow:var(--shadow)}.vc-nav-item.is-current{color:var(--accent-100);font-weight:var(--bold);border-color:var(--accent-100)}.vc-nav-item:focus{border-color:var(--accent-600)}.vc-nav-item.is-disabled{opacity:.25;pointer-events:none}.vc-is-dark .vc-nav-title{color:var(--gray-900)}.vc-is-dark .vc-nav-title:hover{background-color:var(--gray-200)}.vc-is-dark .vc-nav-title:focus{border-color:var(--accent-400)}.vc-is-dark .vc-nav-arrow:hover{background-color:var(--gray-200)}.vc-is-dark .vc-nav-arrow:focus{border-color:var(--accent-400)}.vc-is-dark .vc-nav-item:hover{color:var(--gray-900);background-color:var(--gray-200);box-shadow:none}.vc-is-dark .vc-nav-item.is-active{color:var(--white);background:var(--accent-500)}.vc-is-dark .vc-nav-item.is-current{color:var(--accent-600);border-color:var(--accent-500)}.vc-is-dark .vc-nav-item:focus{border-color:var(--accent-400)}",""]),N.exports=B},"0f0f":function(N,B,j){var U=j("8eeb"),q=j("9934");function Y(K,G){return K&&U(G,q(G),K)}N.exports=Y},"0f5c":function(N,B,j){var U=j("159a");function q(Y,K,G){return Y==null?Y:U(Y,K,G)}N.exports=q},"0fb2":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,'.vc-popover-content-wrapper[data-v-39b30300]{--popover-horizontal-content-offset:8px;--popover-vertical-content-offset:10px;--popover-slide-translation:15px;--popover-transition-time:0.14s ease-in-out;--popover-caret-horizontal-offset:18px;--popover-caret-vertical-offset:8px;position:absolute;display:block;outline:none;z-index:10}.vc-popover-content-wrapper[data-v-39b30300]:not(.is-interactive){pointer-events:none}.vc-popover-content[data-v-39b30300]{position:relative;outline:none;z-index:10;box-shadow:var(--shadow-lg)}.vc-popover-content.direction-bottom[data-v-39b30300]{margin-top:var(--popover-vertical-content-offset)}.vc-popover-content.direction-top[data-v-39b30300]{margin-bottom:var(--popover-vertical-content-offset)}.vc-popover-content.direction-left[data-v-39b30300]{margin-right:var(--popover-horizontal-content-offset)}.vc-popover-content.direction-right[data-v-39b30300]{margin-left:var(--popover-horizontal-content-offset)}.vc-popover-caret[data-v-39b30300]{content:"";position:absolute;display:block;width:12px;height:12px;border-top:inherit;border-left:inherit;background-color:inherit;-webkit-user-select:none;user-select:none;z-index:-1}.vc-popover-caret.direction-bottom[data-v-39b30300]{top:0}.vc-popover-caret.direction-bottom.align-left[data-v-39b30300]{transform:translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-bottom.align-center[data-v-39b30300]{transform:translateX(-50%) translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-bottom.align-right[data-v-39b30300]{transform:translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-top[data-v-39b30300]{top:100%}.vc-popover-caret.direction-top.align-left[data-v-39b30300]{transform:translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-top.align-center[data-v-39b30300]{transform:translateX(-50%) translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-top.align-right[data-v-39b30300]{transform:translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-left[data-v-39b30300]{left:100%}.vc-popover-caret.direction-left.align-top[data-v-39b30300]{transform:translateX(-50%) rotate(135deg)}.vc-popover-caret.direction-left.align-middle[data-v-39b30300]{transform:translateY(-50%) translateX(-50%) rotate(135deg)}.vc-popover-caret.direction-left.align-bottom[data-v-39b30300]{transform:translateX(-50%) rotate(135deg)}.vc-popover-caret.direction-right[data-v-39b30300]{left:0}.vc-popover-caret.direction-right.align-top[data-v-39b30300]{transform:translateX(-50%) rotate(-45deg)}.vc-popover-caret.direction-right.align-middle[data-v-39b30300]{transform:translateY(-50%) translateX(-50%) rotate(-45deg)}.vc-popover-caret.direction-right.align-bottom[data-v-39b30300]{transform:translateX(-50%) rotate(-45deg)}.vc-popover-caret.align-left[data-v-39b30300]{left:var(--popover-caret-horizontal-offset)}.vc-popover-caret.align-center[data-v-39b30300]{left:50%}.vc-popover-caret.align-right[data-v-39b30300]{right:var(--popover-caret-horizontal-offset)}.vc-popover-caret.align-top[data-v-39b30300]{top:var(--popover-caret-vertical-offset)}.vc-popover-caret.align-middle[data-v-39b30300]{top:50%}.vc-popover-caret.align-bottom[data-v-39b30300]{bottom:var(--popover-caret-vertical-offset)}.fade-enter-active[data-v-39b30300],.fade-leave-active[data-v-39b30300],.slide-fade-enter-active[data-v-39b30300],.slide-fade-leave-active[data-v-39b30300]{transition:all var(--popover-transition-time);pointer-events:none}.fade-enter[data-v-39b30300],.fade-leave-to[data-v-39b30300],.slide-fade-enter[data-v-39b30300],.slide-fade-leave-to[data-v-39b30300]{opacity:0}.slide-fade-enter.direction-bottom[data-v-39b30300],.slide-fade-leave-to.direction-bottom[data-v-39b30300]{transform:translateY(calc(var(--popover-slide-translation)*-1))}.slide-fade-enter.direction-top[data-v-39b30300],.slide-fade-leave-to.direction-top[data-v-39b30300]{transform:translateY(var(--popover-slide-translation))}.slide-fade-enter.direction-left[data-v-39b30300],.slide-fade-leave-to.direction-left[data-v-39b30300]{transform:translateX(var(--popover-slide-translation))}.slide-fade-enter.direction-right[data-v-39b30300],.slide-fade-leave-to.direction-right[data-v-39b30300]{transform:translateX(calc(var(--popover-slide-translation)*-1))}',""]),N.exports=B},"100e":function(N,B,j){var U=j("cd9d"),q=j("2286"),Y=j("c1c9");function K(G,J){return Y(q(G,J,U),G+"")}N.exports=K},1041:function(N,B,j){var U=j("8eeb"),q=j("a029");function Y(K,G){return U(K,q(K),G)}N.exports=Y},"107c":function(N,B,j){var U=j("d039");N.exports=U(function(){var q=RegExp("(?<a>b)","string".charAt(5));return q.exec("b").groups.a!=="b"||"b".replace(q,"$<a>c")!=="bc"})},1290:function(N,B){function j(U){var q=typeof U;return q=="string"||q=="number"||q=="symbol"||q=="boolean"?U!=="__proto__":U===null}N.exports=j},1310:function(N,B){function j(U){return U!=null&&typeof U=="object"}N.exports=j},1315:function(N,B,j){j.d(B,"a",function(){return te});var U=j("8bbf"),q=j.n(U),Y=j("9404");function K(se){return Object(Y.n)(se)&&(se={min:se}),Object(Y.h)(se)||(se=[se]),se.map(function(re){return Object(Y.e)(re,"raw")?re.raw:Object(Y.q)(re,function(ne,ce){return ce=Object(Y.d)({min:"min-width",max:"max-width"},ce,ce),`(${ce}: ${ne})`}).join(" and ")}).join(", ")}var G=j("85a9");let J=!1,Z=!1,ee=null;function te(se=G,re){ee&&!re||J||(J=!0,Z=!0,ee=new q.a({data(){return{matches:[],queries:[]}},methods:{refreshQueries(){var ne=this;window&&window.matchMedia&&(this.queries=Object(Y.r)(se,function(ce){const me=window.matchMedia(K(ce));return Object(Y.k)(me.addEventListener)?me.addEventListener("change",ne.refreshMatches):me.addListener(ne.refreshMatches),me}),this.refreshMatches())},refreshMatches(){this.matches=Object(Y.w)(this.queries).filter(function(ne){return ne[1].matches}).map(function(ne){return ne[0]})}}}),J=!1)}q.a.mixin({beforeCreate(){J||te()},mounted(){Z&&ee&&(ee.refreshQueries(),Z=!1)},computed:{$screens(){return function(se,re){return ee.matches.reduce(function(ne,ce){return Object(Y.e)(se,ce)?se[ce]:ne},Object(Y.o)(re)?se.default:re)}}}})},1368:function(N,B,j){var U=j("da03"),q=function(){var K=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}();function Y(K){return!!q&&q in K}N.exports=Y},"14c3":function(N,B,j){var U=j("c6b6"),q=j("9263");N.exports=function(Y,K){var G=Y.exec;if(typeof G=="function"){var J=G.call(Y,K);if(typeof J!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return J}if(U(Y)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return q.call(Y,K)}},"159a":function(N,B,j){var U=j("32b3"),q=j("e2e4"),Y=j("c098"),K=j("1a8c"),G=j("f4d6");function J(Z,ee,te,se){if(!K(Z))return Z;ee=q(ee,Z);for(var re=-1,ne=ee.length,ce=ne-1,me=Z;me!=null&&++re<ne;){var ue=G(ee[re]),_e=te;if(ue==="__proto__"||ue==="constructor"||ue==="prototype")return Z;if(re!=ce){var fe=me[ue];_e=se?se(fe,ue,me):void 0,_e===void 0&&(_e=K(fe)?fe:Y(ee[re+1])?[]:{})}U(me,ue,_e),me=me[ue]}return Z}N.exports=J},"15f3":function(N,B,j){var U=j("89d9"),q=j("8604");function Y(K,G){return U(K,G,function(J,Z){return q(K,Z)})}N.exports=Y},1838:function(N,B,j){var U=j("c05f"),q=j("9b02"),Y=j("8604"),K=j("f608"),G=j("08cc"),J=j("20ec"),Z=j("f4d6"),ee=1,te=2;function se(re,ne){return K(re)&&G(ne)?J(Z(re),ne):function(ce){var me=q(ce,re);return me===void 0&&me===ne?Y(ce,re):U(ne,me,ee|te)}}N.exports=se},"18d8":function(N,B,j){var U=j("234d"),q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/\\(\\)?/g,K=U(function(G){var J=[];return G.charCodeAt(0)===46&&J.push(""),G.replace(q,function(Z,ee,te,se){J.push(te?se.replace(Y,"$1"):ee||Z)}),J});N.exports=K},"1a2d":function(N,B,j){var U=j("42a2"),q=j("1310"),Y="[object Map]";function K(G){return q(G)&&U(G)==Y}N.exports=K},"1a8c":function(N,B){function j(U){var q=typeof U;return U!=null&&(q=="object"||q=="function")}N.exports=j},"1bac":function(N,B,j){var U=j("7d1f"),q=j("a029"),Y=j("9934");function K(G){return U(G,Y,q)}N.exports=K},"1be4":function(N,B,j){var U=j("d066");N.exports=U("document","documentElement")},"1c3c":function(N,B,j){var U=j("9e69"),q=j("2474"),Y=j("9638"),K=j("a2be"),G=j("edfa"),J=j("ac41"),Z=1,ee=2,te="[object Boolean]",se="[object Date]",re="[object Error]",ne="[object Map]",ce="[object Number]",me="[object RegExp]",ue="[object Set]",_e="[object String]",fe="[object Symbol]",ge="[object ArrayBuffer]",ye="[object DataView]",xe=U?U.prototype:void 0,le=xe?xe.valueOf:void 0;function be(ve,we,Ae,Se,Pe,Me,Be){switch(Ae){case ye:if(ve.byteLength!=we.byteLength||ve.byteOffset!=we.byteOffset)return!1;ve=ve.buffer,we=we.buffer;case ge:return!(ve.byteLength!=we.byteLength||!Me(new q(ve),new q(we)));case te:case se:case ce:return Y(+ve,+we);case re:return ve.name==we.name&&ve.message==we.message;case me:case _e:return ve==we+"";case ne:var ze=G;case ue:var Ze=Se&Z;if(ze||(ze=J),ve.size!=we.size&&!Ze)return!1;var ft=Be.get(ve);if(ft)return ft==we;Se|=ee,Be.set(ve,we);var Ye=K(ze(ve),ze(we),Se,Pe,Me,Be);return Be.delete(ve),Ye;case fe:if(le)return le.call(ve)==le.call(we)}return!1}N.exports=be},"1cec":function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"Promise");N.exports=Y},"1d80":function(N,B){N.exports=function(j){if(j==null)throw TypeError("Can't call method on "+j);return j}},"1efc":function(N,B){function j(U){var q=this.has(U)&&delete this.__data__[U];return this.size-=q?1:0,q}N.exports=j},"1f64":function(N,B,j){var U=j("6a43"),q=j.n(U);q.a},"1fc8":function(N,B,j){var U=j("4245");function q(Y,K){var G=U(this,Y),J=G.size;return G.set(Y,K),this.size+=G.size==J?0:1,this}N.exports=q},"20ec":function(N,B){function j(U,q){return function(Y){return Y!=null&&Y[U]===q&&(q!==void 0||U in Object(Y))}}N.exports=j},2202:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-select[data-v-7b2eaf0a]{position:relative}.vc-select select[data-v-7b2eaf0a]{flex-grow:1;display:block;-webkit-appearance:none;appearance:none;width:52px;height:30px;font-size:var(--text-base);font-weight:var(--font-medium);text-align:left;background-color:var(--gray-200);border:2px solid;border-color:var(--gray-200);color:var(--gray-900);padding:0 20px 0 8px;border-radius:var(--rounded);line-height:var(--leading-tight);text-indent:0;cursor:pointer;-moz-padding-start:3px;background-image:none}.vc-select select[data-v-7b2eaf0a]:hover{color:var(--gray-600)}.vc-select select[data-v-7b2eaf0a]:focus{outline:0;border-color:var(--accent-400);background-color:var(--white)}.vc-select-arrow[data-v-7b2eaf0a]{display:flex;align-items:center;pointer-events:none;position:absolute;top:0;bottom:0;right:0;padding:0 4px 0 0;color:var(--gray-500)}.vc-select-arrow svg[data-v-7b2eaf0a]{width:16px;height:16px;fill:currentColor}.vc-is-dark select[data-v-7b2eaf0a]{background:var(--gray-700);color:var(--gray-100);border-color:var(--gray-700)}.vc-is-dark select[data-v-7b2eaf0a]:hover{color:var(--gray-400)}.vc-is-dark select[data-v-7b2eaf0a]:focus{border-color:var(--accent-500);background-color:var(--gray-800)}",""]),N.exports=B},2285:function(N,B,j){var U=j("2a4d"),q=j.n(U);q.a},2286:function(N,B,j){var U=j("85e3"),q=Math.max;function Y(K,G,J){return G=q(G===void 0?K.length-1:G,0),function(){for(var Z=arguments,ee=-1,te=q(Z.length-G,0),se=Array(te);++ee<te;)se[ee]=Z[G+ee];ee=-1;for(var re=Array(G+1);++ee<G;)re[ee]=Z[ee];return re[G]=J(se),U(K,this,re)}}N.exports=Y},"22f3":function(N,B,j){j.d(B,"a",function(){return K});var U=j("cfe5"),q=j("2fa3"),Y=j("9404");class K{constructor({key:J,hashcode:Z,highlight:ee,content:te,dot:se,bar:re,popover:ne,dates:ce,excludeDates:me,excludeMode:ue,customData:_e,order:fe,pinPage:ge},ye,xe){this.key=Object(Y.o)(J)?Object(q.c)():J,this.hashcode=Z,this.customData=_e,this.order=fe||0,this.dateOpts={order:fe,locale:xe},this.pinPage=ge,ee&&(this.highlight=ye.normalizeHighlight(ee)),te&&(this.content=ye.normalizeContent(te)),se&&(this.dot=ye.normalizeDot(se)),re&&(this.bar=ye.normalizeBar(re)),ne&&(this.popover=ne),this.dates=xe.normalizeDates(ce,this.dateOpts),this.hasDates=!!Object(q.b)(this.dates),this.excludeDates=xe.normalizeDates(me,this.dateOpts),this.hasExcludeDates=!!Object(q.b)(this.excludeDates),this.excludeMode=ue||"intersects",this.hasExcludeDates&&!this.hasDates&&(this.dates.push(new U.a({},this.dateOpts)),this.hasDates=!0),this.isComplex=Object(Y.v)(this.dates,function(le){return le.isComplex})}intersectsDate(J){return J=J instanceof U.a?J:new U.a(J,this.dateOpts),!this.excludesDate(J)&&(this.dates.find(function(Z){return Z.intersectsDate(J)})||!1)}includesDate(J){return J=J instanceof U.a?J:new U.a(J,this.dateOpts),!this.excludesDate(J)&&(this.dates.find(function(Z){return Z.includesDate(J)})||!1)}excludesDate(J){var Z=this;return J=J instanceof U.a?J:new U.a(J,this.dateOpts),this.hasExcludeDates&&this.excludeDates.find(function(ee){return Z.excludeMode==="intersects"&&ee.intersectsDate(J)||Z.excludeMode==="includes"&&ee.includesDate(J)})}intersectsDay(J){return!this.excludesDay(J)&&(this.dates.find(function(Z){return Z.intersectsDay(J)})||!1)}excludesDay(J){return this.hasExcludeDates&&this.excludeDates.find(function(Z){return Z.intersectsDay(J)})}}},"234d":function(N,B,j){var U=j("e380"),q=500;function Y(K){var G=U(K,function(Z){return J.size===q&&J.clear(),Z}),J=G.cache;return G}N.exports=Y},"23a5":function(N){N.exports=JSON.parse('{"maxSwipeTime":300,"minHorizontalSwipeDistance":60,"maxVerticalSwipeDistance":80}')},"23cb":function(N,B,j){var U=j("a691"),q=Math.max,Y=Math.min;N.exports=function(K,G){var J=U(K);return J<0?q(J+G,0):Y(J,G)}},"23e7":function(N,B,j){var U=j("da84"),q=j("06cf").f,Y=j("9112"),K=j("6eeb"),G=j("ce4e"),J=j("e893"),Z=j("94ca");N.exports=function(ee,te){var se,re,ne,ce,me,ue,_e=ee.target,fe=ee.global,ge=ee.stat;if(re=fe?U:ge?U[_e]||G(_e,{}):(U[_e]||{}).prototype,re)for(ne in te){if(me=te[ne],ee.noTargetGet?(ue=q(re,ne),ce=ue&&ue.value):ce=re[ne],se=Z(fe?ne:_e+(ge?".":"#")+ne,ee.forced),!se&&ce!==void 0){if(typeof me==typeof ce)continue;J(me,ce)}(ee.sham||ce&&ce.sham)&&Y(me,"sham",!0),K(re,ne,me,ee)}}},2411:function(N,B,j){var U=j("f909"),q=j("2ec1"),Y=q(function(K,G,J,Z){U(K,G,J,Z)});N.exports=Y},"241c":function(N,B,j){var U=j("ca84"),q=j("7839"),Y=q.concat("length","prototype");B.f=Object.getOwnPropertyNames||function(K){return U(K,Y)}},"242e":function(N,B,j){var U=j("72af"),q=j("ec69");function Y(K,G){return K&&U(K,G,q)}N.exports=Y},2474:function(N,B,j){var U=j("2b3e"),q=U.Uint8Array;N.exports=q},2478:function(N,B,j){var U=j("4245");function q(Y){return U(this,Y).get(Y)}N.exports=q},"24fb":function(N,B,j){function U(Y,K){var G=Y[1]||"",J=Y[3];if(!J)return G;if(K&&typeof btoa=="function"){var Z=q(J),ee=J.sources.map(function(te){return"/*# sourceURL=".concat(J.sourceRoot||"").concat(te," */")});return[G].concat(ee).concat([Z]).join(` `)}return[G].join(` `)}function q(Y){var K=btoa(unescape(encodeURIComponent(JSON.stringify(Y)))),G="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(K);return"/*# ".concat(G," */")}N.exports=function(Y){var K=[];return K.toString=function(){return this.map(function(G){var J=U(G,Y);return G[2]?"@media ".concat(G[2]," {").concat(J,"}"):J}).join("")},K.i=function(G,J,Z){typeof G=="string"&&(G=[[null,G,""]]);var ee={};if(Z)for(var te=0;te<this.length;te++){var se=this[te][0];se!=null&&(ee[se]=!0)}for(var re=0;re<G.length;re++){var ne=[].concat(G[re]);Z&&ee[ne[0]]||(J&&(ne[2]?ne[2]="".concat(J," and ").concat(ne[2]):ne[2]=J),K.push(ne))}},K}},2524:function(N,B,j){var U=j("6044"),q="__lodash_hash_undefined__";function Y(K,G){var J=this.__data__;return this.size+=this.has(K)?0:1,J[K]=U&&G===void 0?q:G,this}N.exports=Y},"253c":function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Arguments]";function K(G){return q(G)&&U(G)==Y}N.exports=K},2593:function(N,B,j){var U=j("15f3"),q=j("c6cf"),Y=q(function(K,G){return K==null?{}:U(K,G)});N.exports=Y},"26e8":function(N,B){function j(U,q){return U!=null&&q in Object(U)}N.exports=j},"27e3":function(N,B,j){var U=j("8a64"),q=j.n(U);q.a},"28c9":function(N,B){function j(){this.__data__=[],this.size=0}N.exports=j},"29ae":function(N,B,j){j.d(B,"a",function(){return Ge}),j.d(B,"b",function(){return Yn}),j("5319");var U=j("fe1f");function q(Ct){var ht=new Date(Date.UTC(Ct.getFullYear(),Ct.getMonth(),Ct.getDate(),Ct.getHours(),Ct.getMinutes(),Ct.getSeconds(),Ct.getMilliseconds()));return ht.setUTCFullYear(Ct.getFullYear()),Ct.getTime()-ht.getTime()}function Y(Ct,ht){var Tt=ee(ht);return Tt.formatToParts?G(Tt,Ct):J(Tt,Ct)}var K={year:0,month:1,day:2,hour:3,minute:4,second:5};function G(Ct,ht){for(var Tt=Ct.formatToParts(ht),Lt=[],fn=0;fn<Tt.length;fn++){var hn=K[Tt[fn].type];hn>=0&&(Lt[hn]=parseInt(Tt[fn].value,10))}return Lt}function J(Ct,ht){var Tt=Ct.format(ht).replace(/\u200E/g,""),Lt=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(Tt);return[Lt[3],Lt[1],Lt[2],Lt[4],Lt[5],Lt[6]]}var Z={};function ee(Ct){if(!Z[Ct]){var ht=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Tt=ht==="06/25/2014, 00:00:00"||ht==="06/25/2014 00:00:00";Z[Ct]=Tt?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Ct,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:Ct,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Z[Ct]}var te=36e5,se=6e4,re={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/,timezoneIANA:/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_-]+(?:\/[a-zA-Z_]+)?))$/};function ne(Ct,ht,Tt){var Lt,fn,hn;if(Lt=re.timezoneZ.exec(Ct),Lt)return 0;if(Lt=re.timezoneHH.exec(Ct),Lt)return hn=parseInt(Lt[2],10),_e()?(fn=hn*te,Lt[1]==="+"?-fn:fn):NaN;if(Lt=re.timezoneHHMM.exec(Ct),Lt){hn=parseInt(Lt[2],10);var wn=parseInt(Lt[3],10);return _e(hn,wn)?(fn=hn*te+wn*se,Lt[1]==="+"?-fn:fn):NaN}if(Lt=re.timezoneIANA.exec(Ct),Lt){ht=new Date(ht||Date.now());var cr=Tt?ht:ce(ht),zn=me(cr,Ct),ir=Tt?zn:ue(ht,zn,Ct);return-ir}return 0}function ce(Ct){return new Date(Date.UTC(Ct.getFullYear(),Ct.getMonth(),Ct.getDate(),Ct.getHours(),Ct.getMinutes(),Ct.getSeconds(),Ct.getMilliseconds()))}function me(Ct,ht){var Tt=Y(Ct,ht),Lt=Date.UTC(Tt[0],Tt[1]-1,Tt[2],Tt[3]%24,Tt[4],Tt[5]),fn=Ct.getTime(),hn=fn%1e3;return fn-=hn>=0?hn:1e3+hn,Lt-fn}function ue(Ct,ht,Tt){var Lt=Ct.getTime(),fn=Lt-ht,hn=me(new Date(fn),Tt);if(ht===hn)return ht;fn-=hn-ht;var wn=me(new Date(fn),Tt);return hn===wn?hn:Math.max(hn,wn)}function _e(Ct,ht){return ht==null||!(ht<0||ht>59)}var fe=36e5,ge=6e4,ye=2,xe={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function le(Ct,ht){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(Ct===null)return new Date(NaN);var Tt=ht||{},Lt=Tt.additionalDigits==null?ye:Object(U.a)(Tt.additionalDigits);if(Lt!==2&&Lt!==1&&Lt!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(Ct instanceof Date||typeof Ct=="object"&&Object.prototype.toString.call(Ct)==="[object Date]")return new Date(Ct.getTime());if(typeof Ct=="number"||Object.prototype.toString.call(Ct)==="[object Number]")return new Date(Ct);if(typeof Ct!="string"&&Object.prototype.toString.call(Ct)!=="[object String]")return new Date(NaN);var fn=be(Ct),hn=ve(fn.date,Lt),wn=hn.year,cr=hn.restDateString,zn=we(cr,wn);if(isNaN(zn))return new Date(NaN);if(zn){var ir,Ir=zn.getTime(),Er=0;if(fn.time&&(Er=Ae(fn.time),isNaN(Er)))return new Date(NaN);if(fn.timezone||Tt.timeZone){if(ir=ne(fn.timezone||Tt.timeZone,new Date(Ir+Er)),isNaN(ir))return new Date(NaN)}else ir=q(new Date(Ir+Er)),ir=q(new Date(Ir+Er+ir));return new Date(Ir+Er+ir)}return new Date(NaN)}function be(Ct){var ht,Tt={},Lt=Ct.split(xe.dateTimeDelimeter);if(xe.plainTime.test(Lt[0])?(Tt.date=null,ht=Lt[0]):(Tt.date=Lt[0],ht=Lt[1],Tt.timezone=Lt[2],xe.timeZoneDelimeter.test(Tt.date)&&(Tt.date=Ct.split(xe.timeZoneDelimeter)[0],ht=Ct.substr(Tt.date.length,Ct.length))),ht){var fn=xe.timezone.exec(ht);fn?(Tt.time=ht.replace(fn[1],""),Tt.timezone=fn[1]):Tt.time=ht}return Tt}function ve(Ct,ht){var Tt,Lt=xe.YYY[ht],fn=xe.YYYYY[ht];if(Tt=xe.YYYY.exec(Ct)||fn.exec(Ct),Tt){var hn=Tt[1];return{year:parseInt(hn,10),restDateString:Ct.slice(hn.length)}}if(Tt=xe.YY.exec(Ct)||Lt.exec(Ct),Tt){var wn=Tt[1];return{year:100*parseInt(wn,10),restDateString:Ct.slice(wn.length)}}return{year:null}}function we(Ct,ht){if(ht===null)return null;var Tt,Lt,fn,hn;if(Ct.length===0)return Lt=new Date(0),Lt.setUTCFullYear(ht),Lt;if(Tt=xe.MM.exec(Ct),Tt)return Lt=new Date(0),fn=parseInt(Tt[1],10)-1,ze(ht,fn)?(Lt.setUTCFullYear(ht,fn),Lt):new Date(NaN);if(Tt=xe.DDD.exec(Ct),Tt){Lt=new Date(0);var wn=parseInt(Tt[1],10);return Ze(ht,wn)?(Lt.setUTCFullYear(ht,0,wn),Lt):new Date(NaN)}if(Tt=xe.MMDD.exec(Ct),Tt){Lt=new Date(0),fn=parseInt(Tt[1],10)-1;var cr=parseInt(Tt[2],10);return ze(ht,fn,cr)?(Lt.setUTCFullYear(ht,fn,cr),Lt):new Date(NaN)}if(Tt=xe.Www.exec(Ct),Tt)return hn=parseInt(Tt[1],10)-1,ft(ht,hn)?Se(ht,hn):new Date(NaN);if(Tt=xe.WwwD.exec(Ct),Tt){hn=parseInt(Tt[1],10)-1;var zn=parseInt(Tt[2],10)-1;return ft(ht,hn,zn)?Se(ht,hn,zn):new Date(NaN)}return null}function Ae(Ct){var ht,Tt,Lt;if(ht=xe.HH.exec(Ct),ht)return Tt=parseFloat(ht[1].replace(",",".")),Ye(Tt)?Tt%24*fe:NaN;if(ht=xe.HHMM.exec(Ct),ht)return Tt=parseInt(ht[1],10),Lt=parseFloat(ht[2].replace(",",".")),Ye(Tt,Lt)?Tt%24*fe+Lt*ge:NaN;if(ht=xe.HHMMSS.exec(Ct),ht){Tt=parseInt(ht[1],10),Lt=parseInt(ht[2],10);var fn=parseFloat(ht[3].replace(",","."));return Ye(Tt,Lt,fn)?Tt%24*fe+Lt*ge+1e3*fn:NaN}return null}function Se(Ct,ht,Tt){ht=ht||0,Tt=Tt||0;var Lt=new Date(0);Lt.setUTCFullYear(Ct,0,4);var fn=Lt.getUTCDay()||7,hn=7*ht+Tt+1-fn;return Lt.setUTCDate(Lt.getUTCDate()+hn),Lt}var Pe=[31,28,31,30,31,30,31,31,30,31,30,31],Me=[31,29,31,30,31,30,31,31,30,31,30,31];function Be(Ct){return Ct%400===0||Ct%4===0&&Ct%100!==0}function ze(Ct,ht,Tt){if(ht<0||ht>11)return!1;if(Tt!=null){if(Tt<1)return!1;var Lt=Be(Ct);if(Lt&&Tt>Me[ht]||!Lt&&Tt>Pe[ht])return!1}return!0}function Ze(Ct,ht){if(ht<1)return!1;var Tt=Be(Ct);return!(Tt&&ht>366)&&!(!Tt&&ht>365)}function ft(Ct,ht,Tt){return!(ht<0||ht>52)&&(Tt==null||!(Tt<0||Tt>6))}function Ye(Ct,ht,Tt){return(Ct==null||!(Ct<0||Ct>=25))&&(ht==null||!(ht<0||ht>=60))&&(Tt==null||!(Tt<0||Tt>=60))}var Ve=j("fd3a"),Dt=j("8c86");function Nt(Ct,ht){Object(Dt.a)(1,arguments);var Tt=ht||{},Lt=Tt.locale,fn=Lt&&Lt.options&&Lt.options.weekStartsOn,hn=fn==null?0:Object(U.a)(fn),wn=Tt.weekStartsOn==null?hn:Object(U.a)(Tt.weekStartsOn);if(!(wn>=0&&wn<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var cr=Object(Ve.a)(Ct),zn=cr.getDay(),ir=(zn<wn?7:0)+zn-wn;return cr.setDate(cr.getDate()-ir),cr.setHours(0,0,0,0),cr}function Vt(Ct){return Object(Dt.a)(1,arguments),Nt(Ct,{weekStartsOn:1})}function Wt(Ct){Object(Dt.a)(1,arguments);var ht=Object(Ve.a)(Ct),Tt=ht.getFullYear(),Lt=new Date(0);Lt.setFullYear(Tt+1,0,4),Lt.setHours(0,0,0,0);var fn=Vt(Lt),hn=new Date(0);hn.setFullYear(Tt,0,4),hn.setHours(0,0,0,0);var wn=Vt(hn);return ht.getTime()>=fn.getTime()?Tt+1:ht.getTime()>=wn.getTime()?Tt:Tt-1}function Gt(Ct){Object(Dt.a)(1,arguments);var ht=Wt(Ct),Tt=new Date(0);Tt.setFullYear(ht,0,4),Tt.setHours(0,0,0,0);var Lt=Vt(Tt);return Lt}var tn=6048e5;function Qt(Ct){Object(Dt.a)(1,arguments);var ht=Object(Ve.a)(Ct),Tt=Vt(ht).getTime()-Gt(ht).getTime();return Math.round(Tt/tn)+1}function En(Ct,ht){var Tt,Lt;Object(Dt.a)(1,arguments);var fn=Object(Ve.a)(Ct),hn=fn.getFullYear(),wn=ht==null||(Tt=ht.locale)===null||Tt===void 0||(Lt=Tt.options)===null||Lt===void 0?void 0:Lt.firstWeekContainsDate,cr=wn==null?1:Object(U.a)(wn),zn=(ht==null?void 0:ht.firstWeekContainsDate)==null?cr:Object(U.a)(ht.firstWeekContainsDate);if(!(zn>=1&&zn<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ir=new Date(0);ir.setFullYear(hn+1,0,zn),ir.setHours(0,0,0,0);var Ir=Nt(ir,ht),Er=new Date(0);Er.setFullYear(hn,0,zn),Er.setHours(0,0,0,0);var Dr=Nt(Er,ht);return fn.getTime()>=Ir.getTime()?hn+1:fn.getTime()>=Dr.getTime()?hn:hn-1}function kn(Ct,ht){Object(Dt.a)(1,arguments);var Tt=ht||{},Lt=Tt.locale,fn=Lt&&Lt.options&&Lt.options.firstWeekContainsDate,hn=fn==null?1:Object(U.a)(fn),wn=Tt.firstWeekContainsDate==null?hn:Object(U.a)(Tt.firstWeekContainsDate),cr=En(Ct,ht),zn=new Date(0);zn.setFullYear(cr,0,wn),zn.setHours(0,0,0,0);var ir=Nt(zn,ht);return ir}var Gn=6048e5;function An(Ct,ht){Object(Dt.a)(1,arguments);var Tt=Object(Ve.a)(Ct),Lt=Nt(Tt,ht).getTime()-kn(Tt,ht).getTime();return Math.round(Lt/Gn)+1}var jn=6048e5;function Mn(Ct,ht,Tt){Object(Dt.a)(2,arguments);var Lt=Nt(Ct,Tt),fn=Nt(ht,Tt),hn=Lt.getTime()-q(Lt),wn=fn.getTime()-q(fn);return Math.round((hn-wn)/jn)}function Ln(Ct){Object(Dt.a)(1,arguments);var ht=Object(Ve.a)(Ct),Tt=ht.getMonth();return ht.setFullYear(ht.getFullYear(),Tt+1,0),ht.setHours(0,0,0,0),ht}function Et(Ct){Object(Dt.a)(1,arguments);var ht=Object(Ve.a)(Ct);return ht.setDate(1),ht.setHours(0,0,0,0),ht}function We(Ct,ht){return Object(Dt.a)(1,arguments),Mn(Ln(Ct),Et(Ct),ht)+1}var xt=j("f7f1"),Ue=j("cfe5"),Oe=j("f15d"),ke=j("2fa3"),$e=j("9404");const Ge={DATE_TIME:1,DATE:2,TIME:3},rt={1:["year","month","day","hours","minutes","seconds","milliseconds"],2:["year","month","day"],3:["hours","minutes","seconds","milliseconds"]},ut=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ct=/\d\d?/,it=/\d{3}/,ot=/\d{4}/,Ot=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,dn=/\[([^]*?)\]/gm,Fn=function(){},Zt=function(Ct){return function(ht,Tt,Lt){const fn=Lt[Ct].indexOf(Tt.charAt(0).toUpperCase()+Tt.substr(1).toLowerCase());~fn&&(ht.month=fn)}},vn=["L","iso"],lt=7,pt=[31,28,31,30,31,30,31,31,30,31,30,31],Pt=[{value:0,label:"00"},{value:1,label:"01"},{value:2,label:"02"},{value:3,label:"03"},{value:4,label:"04"},{value:5,label:"05"},{value:6,label:"06"},{value:7,label:"07"},{value:8,label:"08"},{value:9,label:"09"},{value:10,label:"10"},{value:11,label:"11"},{value:12,label:"12"},{value:13,label:"13"},{value:14,label:"14"},{value:15,label:"15"},{value:16,label:"16"},{value:17,label:"17"},{value:18,label:"18"},{value:19,label:"19"},{value:20,label:"20"},{value:21,label:"21"},{value:22,label:"22"},{value:23,label:"23"}],qt={D(Ct){return Ct.day},DD(Ct){return Object(ke.m)(Ct.day)},Do(Ct,ht){return ht.DoFn(Ct.day)},d(Ct){return Ct.weekday-1},dd(Ct){return Object(ke.m)(Ct.weekday-1)},W(Ct,ht){return ht.dayNamesNarrow[Ct.weekday-1]},WW(Ct,ht){return ht.dayNamesShorter[Ct.weekday-1]},WWW(Ct,ht){return ht.dayNamesShort[Ct.weekday-1]},WWWW(Ct,ht){return ht.dayNames[Ct.weekday-1]},M(Ct){return Ct.month},MM(Ct){return Object(ke.m)(Ct.month)},MMM(Ct,ht){return ht.monthNamesShort[Ct.month-1]},MMMM(Ct,ht){return ht.monthNames[Ct.month-1]},YY(Ct){return String(Ct.year).substr(2)},YYYY(Ct){return Object(ke.m)(Ct.year,4)},h(Ct){return Ct.hours%12||12},hh(Ct){return Object(ke.m)(Ct.hours%12||12)},H(Ct){return Ct.hours},HH(Ct){return Object(ke.m)(Ct.hours)},m(Ct){return Ct.minutes},mm(Ct){return Object(ke.m)(Ct.minutes)},s(Ct){return Ct.seconds},ss(Ct){return Object(ke.m)(Ct.seconds)},S(Ct){return Math.round(Ct.milliseconds/100)},SS(Ct){return Object(ke.m)(Math.round(Ct.milliseconds/10),2)},SSS(Ct){return Object(ke.m)(Ct.milliseconds,3)},a(Ct,ht){return Ct.hours<12?ht.amPm[0]:ht.amPm[1]},A(Ct,ht){return Ct.hours<12?ht.amPm[0].toUpperCase():ht.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(Ct){const ht=Ct.timezoneOffset;return`${ht>0?"-":"+"}${Object(ke.m)(Math.floor(Math.abs(ht)/60),2)}`},ZZZ(Ct){const ht=Ct.timezoneOffset;return`${ht>0?"-":"+"}${Object(ke.m)(100*Math.floor(Math.abs(ht)/60)+Math.abs(ht)%60,4)}`},ZZZZ(Ct){const ht=Ct.timezoneOffset;return`${ht>0?"-":"+"}${Object(ke.m)(Math.floor(Math.abs(ht)/60),2)}:${Object(ke.m)(Math.abs(ht)%60,2)}`}},Ht={D:[ct,function(Ct,ht){Ct.day=ht}],Do:[new RegExp(ct.source+Ot.source),function(Ct,ht){Ct.day=parseInt(ht,10)}],d:[ct,Fn],W:[Ot,Fn],M:[ct,function(Ct,ht){Ct.month=ht-1}],MMM:[Ot,Zt("monthNamesShort")],MMMM:[Ot,Zt("monthNames")],YY:[ct,function(Ct,ht){const Tt=new Date,Lt=+Tt.getFullYear().toString().substr(0,2);Ct.year=`${ht>68?Lt-1:Lt}${ht}`}],YYYY:[ot,function(Ct,ht){Ct.year=ht}],S:[/\d/,function(Ct,ht){Ct.millisecond=100*ht}],SS:[/\d{2}/,function(Ct,ht){Ct.millisecond=10*ht}],SSS:[it,function(Ct,ht){Ct.millisecond=ht}],h:[ct,function(Ct,ht){Ct.hour=ht}],m:[ct,function(Ct,ht){Ct.minute=ht}],s:[ct,function(Ct,ht){Ct.second=ht}],a:[Ot,function(Ct,ht,Tt){const Lt=ht.toLowerCase();Lt===Tt.amPm[0]?Ct.isPm=!1:Lt===Tt.amPm[1]&&(Ct.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,function(Ct,ht){ht==="Z"&&(ht="+00:00");const Tt=(""+ht).match(/([+-]|\d\d)/gi);if(Tt){const Lt=60*Tt[1]+parseInt(Tt[2],10);Ct.timezoneOffset=Tt[0]==="+"?Lt:-Lt}}]};function mn(Ct,ht){const Tt=new Intl.DateTimeFormat().resolvedOptions().locale;let Lt;Object($e.n)(Ct)?Lt=Ct:Object($e.e)(Ct,"id")&&(Lt=Ct.id),Lt=(Lt||Tt).toLowerCase();const fn=Object.keys(ht),hn=function(cr){return fn.find(function(zn){return zn.toLowerCase()===cr})};Lt=hn(Lt)||hn(Lt.substring(0,2))||Tt;const wn={...ht["en-IE"],...ht[Lt],id:Lt};return Ct=Object($e.m)(Ct)?Object($e.c)(Ct,wn):wn,Ct}Ht.DD=Ht.D,Ht.dd=Ht.d,Ht.WWWW=Ht.WWW=Ht.WW=Ht.W,Ht.MM=Ht.M,Ht.mm=Ht.m,Ht.hh=Ht.H=Ht.HH=Ht.h,Ht.ss=Ht.s,Ht.A=Ht.a,Ht.ZZZZ=Ht.ZZZ=Ht.ZZ=Ht.Z;class Yn{constructor(ht,{locales:Tt=Oe.a,timezone:Lt}={}){const{id:fn,firstDayOfWeek:hn,masks:wn}=mn(ht,Tt);this.id=fn,this.daysInWeek=lt,this.firstDayOfWeek=Object($e.a)(hn,1,lt),this.masks=wn,this.timezone=Lt||void 0,this.dayNames=this.getDayNames("long"),this.dayNamesShort=this.getDayNames("short"),this.dayNamesShorter=this.dayNamesShort.map(function(cr){return cr.substring(0,2)}),this.dayNamesNarrow=this.getDayNames("narrow"),this.monthNames=this.getMonthNames("long"),this.monthNamesShort=this.getMonthNames("short"),this.amPm=["am","pm"],this.monthData={},this.getMonthComps=this.getMonthComps.bind(this),this.parse=this.parse.bind(this),this.format=this.format.bind(this),this.toPage=this.toPage.bind(this)}format(ht,Tt){var Lt=this;if(ht=this.normalizeDate(ht),!ht)return"";Tt=this.normalizeMasks(Tt)[0];const fn=[];Tt=Tt.replace(dn,function(cr,zn){return fn.push(zn),"??"});const hn=/Z$/.test(Tt)?"utc":this.timezone,wn=this.getDateParts(ht,hn);return Tt=Tt.replace(ut,function(cr){return cr in qt?qt[cr](wn,Lt):cr.slice(1,cr.length-1)}),Tt.replace(/\?\?/g,function(){return fn.shift()})}parse(ht,Tt){var Lt=this;return this.normalizeMasks(Tt).map(function(hn){if(typeof hn!="string")throw new Error("Invalid mask in fecha.parse");let wn=ht;if(wn.length>1e3)return!1;let cr=!0;const zn={};if(hn.replace(ut,function(Er){if(Ht[Er]){const Dr=Ht[Er],Ur=wn.search(Dr[0]);~Ur?wn.replace(Dr[0],function(Ke){return Dr[1](zn,Ke,Lt),wn=wn.substr(Ur+Ke.length),Ke}):cr=!1}return Ht[Er]?"":Er.slice(1,Er.length-1)}),!cr)return!1;const ir=new Date;let Ir;return zn.isPm===!0&&zn.hour!=null&&+zn.hour!=12?zn.hour=+zn.hour+12:zn.isPm===!1&&+zn.hour==12&&(zn.hour=0),zn.timezoneOffset!=null?(zn.minute=+(zn.minute||0)-+zn.timezoneOffset,Ir=new Date(Date.UTC(zn.year||ir.getFullYear(),zn.month||0,zn.day||1,zn.hour||0,zn.minute||0,zn.second||0,zn.millisecond||0))):Ir=Lt.getDateFromParts({year:zn.year||ir.getFullYear(),month:(zn.month||0)+1,day:zn.day||1,hours:zn.hour||0,minutes:zn.minute||0,seconds:zn.second||0,milliseconds:zn.millisecond||0}),Ir}).find(function(hn){return hn})||new Date(ht)}normalizeMasks(ht){var Tt=this;return(Object(ke.b)(ht)&&ht||[Object($e.n)(ht)&&ht||"YYYY-MM-DD"]).map(function(Lt){return vn.reduce(function(fn,hn){return fn.replace(hn,Tt.masks[hn]||"")},Lt)})}normalizeDate(ht,Tt={}){let Lt=null,{type:fn,fillDate:hn}=Tt;const{mask:wn,patch:cr,time:zn}=Tt,ir=fn==="auto"||!fn;if(Object($e.l)(ht)?(fn="number",Lt=new Date(+ht)):Object($e.n)(ht)?(fn="string",Lt=ht?this.parse(ht,wn||"iso"):null):Object($e.m)(ht)?(fn="object",Lt=this.getDateFromParts(ht)):(fn="date",Lt=Object($e.j)(ht)?new Date(ht.getTime()):null),Lt&&cr){hn=hn==null?new Date:this.normalizeDate(hn);const Ir={...this.getDateParts(hn),...Object($e.t)(this.getDateParts(Lt),rt[cr])};Lt=this.getDateFromParts(Ir)}return ir&&(Tt.type=fn),Lt&&!isNaN(Lt.getTime())?(zn&&(Lt=this.adjustTimeForDate(Lt,{timeAdjust:zn})),Lt):null}denormalizeDate(ht,{type:Tt,mask:Lt}={}){switch(Tt){case"number":return ht?ht.getTime():NaN;case"string":return ht?this.format(ht,Lt||"iso"):"";default:return ht?new Date(ht):null}}hourIsValid(ht,Tt,Lt){if(!Tt)return!0;if(Object($e.h)(Tt))return Tt.includes(ht);if(Object($e.m)(Tt)){const fn=Tt.min||0,hn=Tt.max||24;return fn<=ht&&hn>=ht}return Tt(ht,Lt)}getHourOptions(ht,Tt){var Lt=this;return Pt.filter(function(fn){return Lt.hourIsValid(fn.value,ht,Tt)})}getMinuteOptions(ht){const Tt=[];ht=ht>0?ht:1;for(let Lt=0;Lt<=59;Lt+=ht)Tt.push({value:Lt,label:Object(ke.m)(Lt,2)});return Tt}nearestOptionValue(ht,Tt){if(ht==null)return ht;const Lt=Tt.reduce(function(fn,hn){if(hn.disabled)return fn;if(isNaN(fn))return hn.value;const wn=Math.abs(fn-ht);return Math.abs(hn.value-ht)<wn?hn.value:fn},NaN);return isNaN(Lt)?ht:Lt}adjustTimeForDate(ht,{timeAdjust:Tt,validHours:Lt,minuteIncrement:fn}){if(!Tt&&!Lt&&!fn)return ht;const hn=this.getDateParts(ht);if(Tt)if(Tt==="now"){const wn=this.getDateParts(new Date);hn.hours=wn.hours,hn.minutes=wn.minutes,hn.seconds=wn.seconds,hn.milliseconds=wn.milliseconds}else{const wn=new Date(`2000-01-01T${Tt}Z`);hn.hours=wn.getUTCHours(),hn.minutes=wn.getUTCMinutes(),hn.seconds=wn.getUTCSeconds(),hn.milliseconds=wn.getUTCMilliseconds()}if(Lt){const wn=this.getHourOptions(Lt,hn);hn.hours=this.nearestOptionValue(hn.hours,wn)}if(fn){const wn=this.getMinuteOptions(fn);hn.minutes=this.nearestOptionValue(hn.minutes,wn)}return ht=this.getDateFromParts(hn),ht}normalizeDates(ht,Tt){return Tt=Tt||{},Tt.locale=this,(Object($e.h)(ht)?ht:[ht]).map(function(Lt){return Lt&&(Lt instanceof Ue.a?Lt:new Ue.a(Lt,Tt))}).filter(function(Lt){return Lt})}getDateParts(ht,Tt=this.timezone){if(!ht)return null;let Lt=ht;if(Tt){const Xt=new Date(ht.toLocaleString("en-US",{timeZone:Tt}));Xt.setMilliseconds(ht.getMilliseconds());const sn=Xt.getTime()-ht.getTime();Lt=new Date(ht.getTime()+sn)}const fn=Lt.getMilliseconds(),hn=Lt.getSeconds(),wn=Lt.getMinutes(),cr=Lt.getHours(),zn=Lt.getMonth()+1,ir=Lt.getFullYear(),Ir=this.getMonthComps(zn,ir),Er=Lt.getDate(),Dr=Ir.days-Er+1,Ur=Lt.getDay()+1,Ke=Math.floor((Er-1)/7+1),mt=Math.floor((Ir.days-Er)/7+1),dt=Math.ceil((Er+Math.abs(Ir.firstWeekday-Ir.firstDayOfWeek))/7),Ne=Ir.weeks-dt+1,_t={milliseconds:fn,seconds:hn,minutes:wn,hours:cr,day:Er,dayFromEnd:Dr,weekday:Ur,weekdayOrdinal:Ke,weekdayOrdinalFromEnd:mt,week:dt,weekFromEnd:Ne,month:zn,year:ir,date:ht,isValid:!0};return _t.timezoneOffset=this.getTimezoneOffset(_t),_t}getDateFromParts(ht){if(!ht)return null;const Tt=new Date,{year:Lt=Tt.getFullYear(),month:fn=Tt.getMonth()+1,day:hn=Tt.getDate(),hours:wn=0,minutes:cr=0,seconds:zn=0,milliseconds:ir=0}=ht;if(this.timezone){const Ir=`${Object(ke.m)(Lt,4)}-${Object(ke.m)(fn,2)}-${Object(ke.m)(hn,2)}T${Object(ke.m)(wn,2)}:${Object(ke.m)(cr,2)}:${Object(ke.m)(zn,2)}.${Object(ke.m)(ir,3)}`;return le(Ir,{timeZone:this.timezone})}return new Date(Lt,fn-1,hn,wn,cr,zn,ir)}getTimezoneOffset(ht){const{year:Tt,month:Lt,day:fn,hours:hn=0,minutes:wn=0,seconds:cr=0,milliseconds:zn=0}=ht;let ir;const Ir=new Date(Date.UTC(Tt,Lt-1,fn,hn,wn,cr,zn));if(this.timezone){const Er=`${Object(ke.m)(Tt,4)}-${Object(ke.m)(Lt,2)}-${Object(ke.m)(fn,2)}T${Object(ke.m)(hn,2)}:${Object(ke.m)(wn,2)}:${Object(ke.m)(cr,2)}.${Object(ke.m)(zn,3)}`;ir=le(Er,{timeZone:this.timezone})}else ir=new Date(Tt,Lt-1,fn,hn,wn,cr,zn);return(ir-Ir)/6e4}toPage(ht,Tt){return Object($e.l)(ht)?Object(ke.a)(Tt,ht):Object($e.n)(ht)?this.getDateParts(this.normalizeDate(ht)):Object($e.j)(ht)?this.getDateParts(ht):Object($e.m)(ht)?ht:null}getMonthDates(ht=2e3){const Tt=[];for(let Lt=0;Lt<12;Lt++)Tt.push(new Date(ht,Lt,15));return Tt}getMonthNames(ht){const Tt=new Intl.DateTimeFormat(this.id,{month:ht,timezome:"UTC"});return this.getMonthDates().map(function(Lt){return Tt.format(Lt)})}getWeekdayDates(ht=this.firstDayOfWeek){const Tt=[],hn=5+ht-1;for(let wn=0;wn<lt;wn++)Tt.push(this.getDateFromParts({year:2020,month:1,day:hn+wn,hours:12}));return Tt}getDayNames(ht){const Tt=new Intl.DateTimeFormat(this.id,{weekday:ht,timeZone:this.timezone});return this.getWeekdayDates(1).map(function(Lt){return Tt.format(Lt)})}getMonthComps(ht,Tt){const Lt=`${ht}-${Tt}`;let fn=this.monthData[Lt];if(!fn){const hn=Tt%4===0&&Tt%100!==0||Tt%400===0,wn=new Date(Tt,ht-1,1),cr=wn.getDay()+1,zn=ht===2&&hn?29:pt[ht-1],ir=this.firstDayOfWeek-1,Ir=We(wn,{weekStartsOn:ir}),Er=[],Dr=[];for(let Ur=0;Ur<Ir;Ur++){const Ke=Object(xt.a)(wn,7*Ur);Er.push(An(Ke,{weekStartsOn:ir})),Dr.push(Qt(Ke))}fn={firstDayOfWeek:this.firstDayOfWeek,inLeapYear:hn,firstWeekday:cr,days:zn,weeks:Ir,month:ht,year:Tt,weeknumbers:Er,isoWeeknumbers:Dr},this.monthData[Lt]=fn}return fn}getThisMonthComps(){const{month:ht,year:Tt}=this.getDateParts(new Date);return this.getMonthComps(ht,Tt)}getPrevMonthComps(ht,Tt){return ht===1?this.getMonthComps(12,Tt-1):this.getMonthComps(ht-1,Tt)}getNextMonthComps(ht,Tt){return ht===12?this.getMonthComps(1,Tt+1):this.getMonthComps(ht+1,Tt)}getDayId(ht){return this.format(ht,"YYYY-MM-DD")}getCalendarDays({weeks:ht,monthComps:Tt,prevMonthComps:Lt,nextMonthComps:fn}){var hn=this;const wn=[],{firstDayOfWeek:cr,firstWeekday:zn,isoWeeknumbers:ir,weeknumbers:Ir}=Tt,Er=zn+(zn<cr?lt:0)-cr;let Dr=!0,Ur=!1,Ke=!1;const mt=new Intl.DateTimeFormat(this.id,{weekday:"long",year:"numeric",month:"long",day:"numeric"});let dt=Lt.days-Er+1,Ne=Lt.days-dt+1,_t=Math.floor((dt-1)/lt+1),Xt=1,sn=Lt.weeks,Tn=1,In=Lt.month,Qn=Lt.year;const Xn=new Date,Rr=Xn.getDate(),tr=Xn.getMonth()+1,fr=Xn.getFullYear(),kr=function(sr,Pn,mr){return function(br,hr,Bn,er){return hn.normalizeDate({year:sr,month:Pn,day:mr,hours:br,minutes:hr,seconds:Bn,milliseconds:er})}};for(let sr=1;sr<=ht;sr++){for(let Pn=1,mr=cr;Pn<=lt;Pn++,mr+=mr===lt?1-lt:1){Dr&&mr===zn&&(dt=1,Ne=Tt.days,_t=Math.floor((dt-1)/lt+1),Xt=Math.floor((Tt.days-dt)/lt+1),sn=1,Tn=Tt.weeks,In=Tt.month,Qn=Tt.year,Dr=!1,Ur=!0);const br=kr(Qn,In,dt),hr={start:br(0,0,0),end:br(23,59,59,999)},Bn=hr.start,er=`${Object(ke.m)(Qn,4)}-${Object(ke.m)(In,2)}-${Object(ke.m)(dt,2)}`,Qe=Pn,bt=lt-Pn,wt=Ir[sr-1],Bt=ir[sr-1],Yt=dt===Rr&&In===tr&&Qn===fr,Mt=Ur&&dt===1,en=Ur&&dt===Tt.days,pn=sr===1,Sn=sr===ht,cn=Pn===1,ur=Pn===lt;wn.push({id:er,label:dt.toString(),ariaLabel:mt.format(new Date(Qn,In-1,dt)),day:dt,dayFromEnd:Ne,weekday:mr,weekdayPosition:Qe,weekdayPositionFromEnd:bt,weekdayOrdinal:_t,weekdayOrdinalFromEnd:Xt,week:sn,weekFromEnd:Tn,weeknumber:wt,isoWeeknumber:Bt,month:In,year:Qn,dateFromTime:br,date:Bn,range:hr,isToday:Yt,isFirstDay:Mt,isLastDay:en,inMonth:Ur,inPrevMonth:Dr,inNextMonth:Ke,onTop:pn,onBottom:Sn,onLeft:cn,onRight:ur,classes:["id-"+er,"day-"+dt,"day-from-end-"+Ne,"weekday-"+mr,"weekday-position-"+Qe,"weekday-ordinal-"+_t,"weekday-ordinal-from-end-"+Xt,"week-"+sn,"week-from-end-"+Tn,{"is-today":Yt,"is-first-day":Mt,"is-last-day":en,"in-month":Ur,"in-prev-month":Dr,"in-next-month":Ke,"on-top":pn,"on-bottom":Sn,"on-left":cn,"on-right":ur}]}),Ur&&en?(Ur=!1,Ke=!0,dt=1,Ne=fn.days,_t=1,Xt=Math.floor((fn.days-dt)/lt+1),sn=1,Tn=fn.weeks,In=fn.month,Qn=fn.year):(dt++,Ne--,_t=Math.floor((dt-1)/lt+1),Xt=Math.floor((Tt.days-dt)/lt+1))}sn++,Tn--}return wn}}},"29f3":function(N,B){var j=Object.prototype,U=j.toString;function q(Y){return U.call(Y)}N.exports=q},"2a4d":function(N,B,j){var U=j("7dfe");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("99a6e87a",U,!0,{sourceMap:!1,shadowMode:!1})},"2af9":function(N,B,j){j.r(B),j.d(B,"Calendar",function(){return Vs}),j.d(B,"CalendarNav",function(){return Te}),j.d(B,"DatePicker",function(){return ua}),j.d(B,"Popover",function(){return or}),j("ddb0");var U=j("f7f1"),q=j("fe1f"),Y=j("fd3a"),K=j("8c86");function G(Ce,Fe){Object(K.a)(2,arguments);var st=Object(Y.a)(Ce),kt=Object(q.a)(Fe);if(isNaN(kt))return new Date(NaN);if(!kt)return st;var Ft=st.getDate(),Kt=new Date(st.getTime());Kt.setMonth(st.getMonth()+kt+1,0);var ln=Kt.getDate();return Ft>=ln?Kt:(st.setFullYear(Kt.getFullYear(),Kt.getMonth(),Ft),st)}function J(Ce,Fe){Object(K.a)(2,arguments);var st=Object(q.a)(Fe);return G(Ce,12*st)}function Z(Ce){var Fe=Ce.getBoundingClientRect();return{width:Fe.width,height:Fe.height,top:Fe.top,right:Fe.right,bottom:Fe.bottom,left:Fe.left,x:Fe.left,y:Fe.top}}function ee(Ce){if(Ce.toString()!=="[object Window]"){var Fe=Ce.ownerDocument;return Fe&&Fe.defaultView||window}return Ce}function te(Ce){var Fe=ee(Ce),st=Fe.pageXOffset,kt=Fe.pageYOffset;return{scrollLeft:st,scrollTop:kt}}function se(Ce){var Fe=ee(Ce).Element;return Ce instanceof Fe||Ce instanceof Element}function re(Ce){var Fe=ee(Ce).HTMLElement;return Ce instanceof Fe||Ce instanceof HTMLElement}function ne(Ce){var Fe=ee(Ce).ShadowRoot;return Ce instanceof Fe||Ce instanceof ShadowRoot}function ce(Ce){return{scrollLeft:Ce.scrollLeft,scrollTop:Ce.scrollTop}}function me(Ce){return Ce!==ee(Ce)&&re(Ce)?ce(Ce):te(Ce)}function ue(Ce){return Ce?(Ce.nodeName||"").toLowerCase():null}function _e(Ce){return((se(Ce)?Ce.ownerDocument:Ce.document)||window.document).documentElement}function fe(Ce){return Z(_e(Ce)).left+te(Ce).scrollLeft}function ge(Ce){return ee(Ce).getComputedStyle(Ce)}function ye(Ce){var Fe=ge(Ce),st=Fe.overflow,kt=Fe.overflowX,Ft=Fe.overflowY;return/auto|scroll|overlay|hidden/.test(st+Ft+kt)}function xe(Ce,Fe,st){st===void 0&&(st=!1);var kt=_e(Fe),Ft=Z(Ce),Kt=re(Fe),ln={scrollLeft:0,scrollTop:0},un={x:0,y:0};return(Kt||!Kt&&!st)&&((ue(Fe)!=="body"||ye(kt))&&(ln=me(Fe)),re(Fe)?(un=Z(Fe),un.x+=Fe.clientLeft,un.y+=Fe.clientTop):kt&&(un.x=fe(kt))),{x:Ft.left+ln.scrollLeft-un.x,y:Ft.top+ln.scrollTop-un.y,width:Ft.width,height:Ft.height}}function le(Ce){return{x:Ce.offsetLeft,y:Ce.offsetTop,width:Ce.offsetWidth,height:Ce.offsetHeight}}function be(Ce){return ue(Ce)==="html"?Ce:Ce.assignedSlot||Ce.parentNode||Ce.host||_e(Ce)}function ve(Ce){return["html","body","#document"].indexOf(ue(Ce))>=0?Ce.ownerDocument.body:re(Ce)&&ye(Ce)?Ce:ve(be(Ce))}function we(Ce,Fe){Fe===void 0&&(Fe=[]);var st=ve(Ce),kt=ue(st)==="body",Ft=ee(st),Kt=kt?[Ft].concat(Ft.visualViewport||[],ye(st)?st:[]):st,ln=Fe.concat(Kt);return kt?ln:ln.concat(we(be(Kt)))}function Ae(Ce){return["table","td","th"].indexOf(ue(Ce))>=0}function Se(Ce){if(!re(Ce)||ge(Ce).position==="fixed")return null;var Fe=Ce.offsetParent;if(Fe){var st=_e(Fe);if(ue(Fe)==="body"&&ge(Fe).position==="static"&&ge(st).position!=="static")return st}return Fe}function Pe(Ce){for(var Fe=be(Ce);re(Fe)&&["html","body"].indexOf(ue(Fe))<0;){var st=ge(Fe);if(st.transform!=="none"||st.perspective!=="none"||st.willChange&&st.willChange!=="auto")return Fe;Fe=Fe.parentNode}return null}function Me(Ce){for(var Fe=ee(Ce),st=Se(Ce);st&&Ae(st)&&ge(st).position==="static";)st=Se(st);return st&&ue(st)==="body"&&ge(st).position==="static"?Fe:st||Pe(Ce)||Fe}var Be="top",ze="bottom",Ze="right",ft="left",Ye="auto",Ve=[Be,ze,Ze,ft],Dt="start",Nt="end",Vt="clippingParents",Wt="viewport",Gt="popper",tn="reference",Qt=Ve.reduce(function(Ce,Fe){return Ce.concat([Fe+"-"+Dt,Fe+"-"+Nt])},[]),En=[].concat(Ve,[Ye]).reduce(function(Ce,Fe){return Ce.concat([Fe,Fe+"-"+Dt,Fe+"-"+Nt])},[]),kn="beforeRead",Gn="read",An="afterRead",jn="beforeMain",Mn="main",Ln="afterMain",Et="beforeWrite",We="write",xt="afterWrite",Ue=[kn,Gn,An,jn,Mn,Ln,Et,We,xt];function Oe(Ce){var Fe=new Map,st=new Set,kt=[];function Ft(Kt){st.add(Kt.name);var ln=[].concat(Kt.requires||[],Kt.requiresIfExists||[]);ln.forEach(function(un){if(!st.has(un)){var Rn=Fe.get(un);Rn&&Ft(Rn)}}),kt.push(Kt)}return Ce.forEach(function(Kt){Fe.set(Kt.name,Kt)}),Ce.forEach(function(Kt){st.has(Kt.name)||Ft(Kt)}),kt}function ke(Ce){var Fe=Oe(Ce);return Ue.reduce(function(st,kt){return st.concat(Fe.filter(function(Ft){return Ft.phase===kt}))},[])}function $e(Ce){var Fe;return function(){return Fe||(Fe=new Promise(function(st){Promise.resolve().then(function(){Fe=void 0,st(Ce())})})),Fe}}function Ge(Ce){var Fe=Ce.reduce(function(st,kt){var Ft=st[kt.name];return st[kt.name]=Ft?Object.assign(Object.assign(Object.assign({},Ft),kt),{},{options:Object.assign(Object.assign({},Ft.options),kt.options),data:Object.assign(Object.assign({},Ft.data),kt.data)}):kt,st},{});return Object.keys(Fe).map(function(st){return Fe[st]})}var rt={placement:"bottom",modifiers:[],strategy:"absolute"};function ut(){for(var Ce=arguments.length,Fe=new Array(Ce),st=0;st<Ce;st++)Fe[st]=arguments[st];return!Fe.some(function(kt){return!(kt&&typeof kt.getBoundingClientRect=="function")})}function ct(Ce){Ce===void 0&&(Ce={});var Fe=Ce,st=Fe.defaultModifiers,kt=st===void 0?[]:st,Ft=Fe.defaultOptions,Kt=Ft===void 0?rt:Ft;return function(ln,un,Rn){Rn===void 0&&(Rn=Kt);var bn={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},rt),Kt),modifiersData:{},elements:{reference:ln,popper:un},attributes:{},styles:{}},Wn=[],yr=!1,wr={state:bn,setOptions:function(zr){Zr(),bn.options=Object.assign(Object.assign(Object.assign({},Kt),bn.options),zr),bn.scrollParents={reference:se(ln)?we(ln):ln.contextElement?we(ln.contextElement):[],popper:we(un)};var ii=ke(Ge([].concat(kt,bn.options.modifiers)));return bn.orderedModifiers=ii.filter(function(fi){return fi.enabled}),Wr(),wr.update()},forceUpdate:function(){if(!yr){var zr=bn.elements,ii=zr.reference,fi=zr.popper;if(ut(ii,fi)){bn.rects={reference:xe(ii,Me(fi),bn.options.strategy==="fixed"),popper:le(fi)},bn.reset=!1,bn.placement=bn.options.placement,bn.orderedModifiers.forEach(function(Fi){return bn.modifiersData[Fi.name]=Object.assign({},Fi.data)});for(var si=0;si<bn.orderedModifiers.length;si++)if(bn.reset!==!0){var ei=bn.orderedModifiers[si],Xr=ei.fn,Ei=ei.options,vi=Ei===void 0?{}:Ei,Ci=ei.name;typeof Xr=="function"&&(bn=Xr({state:bn,options:vi,name:Ci,instance:wr})||bn)}else bn.reset=!1,si=-1}}},update:$e(function(){return new Promise(function(zr){wr.forceUpdate(),zr(bn)})}),destroy:function(){Zr(),yr=!0}};if(!ut(ln,un))return wr;function Wr(){bn.orderedModifiers.forEach(function(zr){var ii=zr.name,fi=zr.options,si=fi===void 0?{}:fi,ei=zr.effect;if(typeof ei=="function"){var Xr=ei({state:bn,name:ii,instance:wr,options:si}),Ei=function(){};Wn.push(Xr||Ei)}})}function Zr(){Wn.forEach(function(zr){return zr()}),Wn=[]}return wr.setOptions(Rn).then(function(zr){!yr&&Rn.onFirstUpdate&&Rn.onFirstUpdate(zr)}),wr}}var it={passive:!0};function ot(Ce){var Fe=Ce.state,st=Ce.instance,kt=Ce.options,Ft=kt.scroll,Kt=Ft===void 0||Ft,ln=kt.resize,un=ln===void 0||ln,Rn=ee(Fe.elements.popper),bn=[].concat(Fe.scrollParents.reference,Fe.scrollParents.popper);return Kt&&bn.forEach(function(Wn){Wn.addEventListener("scroll",st.update,it)}),un&&Rn.addEventListener("resize",st.update,it),function(){Kt&&bn.forEach(function(Wn){Wn.removeEventListener("scroll",st.update,it)}),un&&Rn.removeEventListener("resize",st.update,it)}}var Ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ot,data:{}};function dn(Ce){return Ce.split("-")[0]}function Fn(Ce){return Ce.split("-")[1]}function Zt(Ce){return["top","bottom"].indexOf(Ce)>=0?"x":"y"}function vn(Ce){var Fe,st=Ce.reference,kt=Ce.element,Ft=Ce.placement,Kt=Ft?dn(Ft):null,ln=Ft?Fn(Ft):null,un=st.x+st.width/2-kt.width/2,Rn=st.y+st.height/2-kt.height/2;switch(Kt){case Be:Fe={x:un,y:st.y-kt.height};break;case ze:Fe={x:un,y:st.y+st.height};break;case Ze:Fe={x:st.x+st.width,y:Rn};break;case ft:Fe={x:st.x-kt.width,y:Rn};break;default:Fe={x:st.x,y:st.y}}var bn=Kt?Zt(Kt):null;if(bn!=null){var Wn=bn==="y"?"height":"width";switch(ln){case Dt:Fe[bn]=Math.floor(Fe[bn])-Math.floor(st[Wn]/2-kt[Wn]/2);break;case Nt:Fe[bn]=Math.floor(Fe[bn])+Math.ceil(st[Wn]/2-kt[Wn]/2);break}}return Fe}function lt(Ce){var Fe=Ce.state,st=Ce.name;Fe.modifiersData[st]=vn({reference:Fe.rects.reference,element:Fe.rects.popper,strategy:"absolute",placement:Fe.placement})}var pt={name:"popperOffsets",enabled:!0,phase:"read",fn:lt,data:{}},Pt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qt(Ce){var Fe=Ce.x,st=Ce.y,kt=window,Ft=kt.devicePixelRatio||1;return{x:Math.round(Fe*Ft)/Ft||0,y:Math.round(st*Ft)/Ft||0}}function Ht(Ce){var Fe,st=Ce.popper,kt=Ce.popperRect,Ft=Ce.placement,Kt=Ce.offsets,ln=Ce.position,un=Ce.gpuAcceleration,Rn=Ce.adaptive,bn=qt(Kt),Wn=bn.x,yr=bn.y,wr=Kt.hasOwnProperty("x"),Wr=Kt.hasOwnProperty("y"),Zr=ft,zr=Be,ii=window;if(Rn){var fi=Me(st);fi===ee(st)&&(fi=_e(st)),Ft===Be&&(zr=ze,yr-=fi.clientHeight-kt.height,yr*=un?1:-1),Ft===ft&&(Zr=Ze,Wn-=fi.clientWidth-kt.width,Wn*=un?1:-1)}var si,ei=Object.assign({position:ln},Rn&&Pt);return un?Object.assign(Object.assign({},ei),{},(si={},si[zr]=Wr?"0":"",si[Zr]=wr?"0":"",si.transform=(ii.devicePixelRatio||1)<2?"translate("+Wn+"px, "+yr+"px)":"translate3d("+Wn+"px, "+yr+"px, 0)",si)):Object.assign(Object.assign({},ei),{},(Fe={},Fe[zr]=Wr?yr+"px":"",Fe[Zr]=wr?Wn+"px":"",Fe.transform="",Fe))}function mn(Ce){var Fe=Ce.state,st=Ce.options,kt=st.gpuAcceleration,Ft=kt===void 0||kt,Kt=st.adaptive,ln=Kt===void 0||Kt,un={placement:dn(Fe.placement),popper:Fe.elements.popper,popperRect:Fe.rects.popper,gpuAcceleration:Ft};Fe.modifiersData.popperOffsets!=null&&(Fe.styles.popper=Object.assign(Object.assign({},Fe.styles.popper),Ht(Object.assign(Object.assign({},un),{},{offsets:Fe.modifiersData.popperOffsets,position:Fe.options.strategy,adaptive:ln})))),Fe.modifiersData.arrow!=null&&(Fe.styles.arrow=Object.assign(Object.assign({},Fe.styles.arrow),Ht(Object.assign(Object.assign({},un),{},{offsets:Fe.modifiersData.arrow,position:"absolute",adaptive:!1})))),Fe.attributes.popper=Object.assign(Object.assign({},Fe.attributes.popper),{},{"data-popper-placement":Fe.placement})}var Yn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mn,data:{}};function Ct(Ce){var Fe=Ce.state;Object.keys(Fe.elements).forEach(function(st){var kt=Fe.styles[st]||{},Ft=Fe.attributes[st]||{},Kt=Fe.elements[st];re(Kt)&&ue(Kt)&&(Object.assign(Kt.style,kt),Object.keys(Ft).forEach(function(ln){var un=Ft[ln];un===!1?Kt.removeAttribute(ln):Kt.setAttribute(ln,un===!0?"":un)}))})}function ht(Ce){var Fe=Ce.state,st={popper:{position:Fe.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Fe.elements.popper.style,st.popper),Fe.elements.arrow&&Object.assign(Fe.elements.arrow.style,st.arrow),function(){Object.keys(Fe.elements).forEach(function(kt){var Ft=Fe.elements[kt],Kt=Fe.attributes[kt]||{},ln=Object.keys(Fe.styles.hasOwnProperty(kt)?Fe.styles[kt]:st[kt]),un=ln.reduce(function(Rn,bn){return Rn[bn]="",Rn},{});re(Ft)&&ue(Ft)&&(Object.assign(Ft.style,un),Object.keys(Kt).forEach(function(Rn){Ft.removeAttribute(Rn)}))})}}var Tt={name:"applyStyles",enabled:!0,phase:"write",fn:Ct,effect:ht,requires:["computeStyles"]};function Lt(Ce,Fe,st){var kt=dn(Ce),Ft=[ft,Be].indexOf(kt)>=0?-1:1,Kt=typeof st=="function"?st(Object.assign(Object.assign({},Fe),{},{placement:Ce})):st,ln=Kt[0],un=Kt[1];return ln=ln||0,un=(un||0)*Ft,[ft,Ze].indexOf(kt)>=0?{x:un,y:ln}:{x:ln,y:un}}function fn(Ce){var Fe=Ce.state,st=Ce.options,kt=Ce.name,Ft=st.offset,Kt=Ft===void 0?[0,0]:Ft,ln=En.reduce(function(Wn,yr){return Wn[yr]=Lt(yr,Fe.rects,Kt),Wn},{}),un=ln[Fe.placement],Rn=un.x,bn=un.y;Fe.modifiersData.popperOffsets!=null&&(Fe.modifiersData.popperOffsets.x+=Rn,Fe.modifiersData.popperOffsets.y+=bn),Fe.modifiersData[kt]=ln}var hn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn},wn={left:"right",right:"left",bottom:"top",top:"bottom"};function cr(Ce){return Ce.replace(/left|right|bottom|top/g,function(Fe){return wn[Fe]})}var zn={start:"end",end:"start"};function ir(Ce){return Ce.replace(/start|end/g,function(Fe){return zn[Fe]})}function Ir(Ce){var Fe=ee(Ce),st=_e(Ce),kt=Fe.visualViewport,Ft=st.clientWidth,Kt=st.clientHeight,ln=0,un=0;return kt&&(Ft=kt.width,Kt=kt.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(ln=kt.offsetLeft,un=kt.offsetTop)),{width:Ft,height:Kt,x:ln+fe(Ce),y:un}}function Er(Ce){var Fe=_e(Ce),st=te(Ce),kt=Ce.ownerDocument.body,Ft=Math.max(Fe.scrollWidth,Fe.clientWidth,kt?kt.scrollWidth:0,kt?kt.clientWidth:0),Kt=Math.max(Fe.scrollHeight,Fe.clientHeight,kt?kt.scrollHeight:0,kt?kt.clientHeight:0),ln=-st.scrollLeft+fe(Ce),un=-st.scrollTop;return ge(kt||Fe).direction==="rtl"&&(ln+=Math.max(Fe.clientWidth,kt?kt.clientWidth:0)-Ft),{width:Ft,height:Kt,x:ln,y:un}}function Dr(Ce,Fe){var st=Fe.getRootNode&&Fe.getRootNode();if(Ce.contains(Fe))return!0;if(ne(st)){var kt=Fe;do{if(kt&&Ce.isSameNode(kt))return!0;kt=kt.parentNode||kt.host}while(kt)}return!1}function Ur(Ce){return Object.assign(Object.assign({},Ce),{},{left:Ce.x,top:Ce.y,right:Ce.x+Ce.width,bottom:Ce.y+Ce.height})}function Ke(Ce){var Fe=Z(Ce);return Fe.top=Fe.top+Ce.clientTop,Fe.left=Fe.left+Ce.clientLeft,Fe.bottom=Fe.top+Ce.clientHeight,Fe.right=Fe.left+Ce.clientWidth,Fe.width=Ce.clientWidth,Fe.height=Ce.clientHeight,Fe.x=Fe.left,Fe.y=Fe.top,Fe}function mt(Ce,Fe){return Fe===Wt?Ur(Ir(Ce)):re(Fe)?Ke(Fe):Ur(Er(_e(Ce)))}function dt(Ce){var Fe=we(be(Ce)),st=["absolute","fixed"].indexOf(ge(Ce).position)>=0,kt=st&&re(Ce)?Me(Ce):Ce;return se(kt)?Fe.filter(function(Ft){return se(Ft)&&Dr(Ft,kt)&&ue(Ft)!=="body"}):[]}function Ne(Ce,Fe,st){var kt=Fe==="clippingParents"?dt(Ce):[].concat(Fe),Ft=[].concat(kt,[st]),Kt=Ft[0],ln=Ft.reduce(function(un,Rn){var bn=mt(Ce,Rn);return un.top=Math.max(bn.top,un.top),un.right=Math.min(bn.right,un.right),un.bottom=Math.min(bn.bottom,un.bottom),un.left=Math.max(bn.left,un.left),un},mt(Ce,Kt));return ln.width=ln.right-ln.left,ln.height=ln.bottom-ln.top,ln.x=ln.left,ln.y=ln.top,ln}function _t(){return{top:0,right:0,bottom:0,left:0}}function Xt(Ce){return Object.assign(Object.assign({},_t()),Ce)}function sn(Ce,Fe){return Fe.reduce(function(st,kt){return st[kt]=Ce,st},{})}function Tn(Ce,Fe){Fe===void 0&&(Fe={});var st=Fe,kt=st.placement,Ft=kt===void 0?Ce.placement:kt,Kt=st.boundary,ln=Kt===void 0?Vt:Kt,un=st.rootBoundary,Rn=un===void 0?Wt:un,bn=st.elementContext,Wn=bn===void 0?Gt:bn,yr=st.altBoundary,wr=yr!==void 0&&yr,Wr=st.padding,Zr=Wr===void 0?0:Wr,zr=Xt(typeof Zr!="number"?Zr:sn(Zr,Ve)),ii=Wn===Gt?tn:Gt,fi=Ce.elements.reference,si=Ce.rects.popper,ei=Ce.elements[wr?ii:Wn],Xr=Ne(se(ei)?ei:ei.contextElement||_e(Ce.elements.popper),ln,Rn),Ei=Z(fi),vi=vn({reference:Ei,element:si,strategy:"absolute",placement:Ft}),Ci=Ur(Object.assign(Object.assign({},si),vi)),Fi=Wn===Gt?Ci:Ei,Mi={top:Xr.top-Fi.top+zr.top,bottom:Fi.bottom-Xr.bottom+zr.bottom,left:Xr.left-Fi.left+zr.left,right:Fi.right-Xr.right+zr.right},Hi=Ce.modifiersData.offset;if(Wn===Gt&&Hi){var Gi=Hi[Ft];Object.keys(Mi).forEach(function(ts){var bi=[Ze,ze].indexOf(ts)>=0?1:-1,Vi=[Be,ze].indexOf(ts)>=0?"y":"x";Mi[ts]+=Gi[Vi]*bi})}return Mi}function In(Ce,Fe){Fe===void 0&&(Fe={});var st=Fe,kt=st.placement,Ft=st.boundary,Kt=st.rootBoundary,ln=st.padding,un=st.flipVariations,Rn=st.allowedAutoPlacements,bn=Rn===void 0?En:Rn,Wn=Fn(kt),yr=Wn?un?Qt:Qt.filter(function(Zr){return Fn(Zr)===Wn}):Ve,wr=yr.filter(function(Zr){return bn.indexOf(Zr)>=0});wr.length===0&&(wr=yr);var Wr=wr.reduce(function(Zr,zr){return Zr[zr]=Tn(Ce,{placement:zr,boundary:Ft,rootBoundary:Kt,padding:ln})[dn(zr)],Zr},{});return Object.keys(Wr).sort(function(Zr,zr){return Wr[Zr]-Wr[zr]})}function Qn(Ce){if(dn(Ce)===Ye)return[];var Fe=cr(Ce);return[ir(Ce),Fe,ir(Fe)]}function Xn(Ce){var Fe=Ce.state,st=Ce.options,kt=Ce.name;if(!Fe.modifiersData[kt]._skip){for(var Ft=st.mainAxis,Kt=Ft===void 0||Ft,ln=st.altAxis,un=ln===void 0||ln,Rn=st.fallbackPlacements,bn=st.padding,Wn=st.boundary,yr=st.rootBoundary,wr=st.altBoundary,Wr=st.flipVariations,Zr=Wr===void 0||Wr,zr=st.allowedAutoPlacements,ii=Fe.options.placement,fi=dn(ii),si=fi===ii,ei=Rn||(si||!Zr?[cr(ii)]:Qn(ii)),Xr=[ii].concat(ei).reduce(function(Bi,Pi){return Bi.concat(dn(Pi)===Ye?In(Fe,{placement:Pi,boundary:Wn,rootBoundary:yr,padding:bn,flipVariations:Zr,allowedAutoPlacements:zr}):Pi)},[]),Ei=Fe.rects.reference,vi=Fe.rects.popper,Ci=new Map,Fi=!0,Mi=Xr[0],Hi=0;Hi<Xr.length;Hi++){var Gi=Xr[Hi],ts=dn(Gi),bi=Fn(Gi)===Dt,Vi=[Be,ze].indexOf(ts)>=0,ds=Vi?"width":"height",$s=Tn(Fe,{placement:Gi,boundary:Wn,rootBoundary:yr,altBoundary:wr,padding:bn}),xs=Vi?bi?Ze:ft:bi?ze:Be;Ei[ds]>vi[ds]&&(xs=cr(xs));var vo=cr(xs),Ts=[];if(Kt&&Ts.push($s[ts]<=0),un&&Ts.push($s[xs]<=0,$s[vo]<=0),Ts.every(function(Bi){return Bi})){Mi=Gi,Fi=!1;break}Ci.set(Gi,Ts)}if(Fi)for(var fs=Zr?3:1,ws=function(Bi){var Pi=Xr.find(function(Os){var ro=Ci.get(Os);if(ro)return ro.slice(0,Bi).every(function(ks){return ks})});if(Pi)return Mi=Pi,"break"},yi=fs;yi>0;yi--){var ns=ws(yi);if(ns==="break")break}Fe.placement!==Mi&&(Fe.modifiersData[kt]._skip=!0,Fe.placement=Mi,Fe.reset=!0)}}var Rr={name:"flip",enabled:!0,phase:"main",fn:Xn,requiresIfExists:["offset"],data:{_skip:!1}};function tr(Ce){return Ce==="x"?"y":"x"}function fr(Ce,Fe,st){return Math.max(Ce,Math.min(Fe,st))}function kr(Ce){var Fe=Ce.state,st=Ce.options,kt=Ce.name,Ft=st.mainAxis,Kt=Ft===void 0||Ft,ln=st.altAxis,un=ln!==void 0&&ln,Rn=st.boundary,bn=st.rootBoundary,Wn=st.altBoundary,yr=st.padding,wr=st.tether,Wr=wr===void 0||wr,Zr=st.tetherOffset,zr=Zr===void 0?0:Zr,ii=Tn(Fe,{boundary:Rn,rootBoundary:bn,padding:yr,altBoundary:Wn}),fi=dn(Fe.placement),si=Fn(Fe.placement),ei=!si,Xr=Zt(fi),Ei=tr(Xr),vi=Fe.modifiersData.popperOffsets,Ci=Fe.rects.reference,Fi=Fe.rects.popper,Mi=typeof zr=="function"?zr(Object.assign(Object.assign({},Fe.rects),{},{placement:Fe.placement})):zr,Hi={x:0,y:0};if(vi){if(Kt){var Gi=Xr==="y"?Be:ft,ts=Xr==="y"?ze:Ze,bi=Xr==="y"?"height":"width",Vi=vi[Xr],ds=vi[Xr]+ii[Gi],$s=vi[Xr]-ii[ts],xs=Wr?-Fi[bi]/2:0,vo=si===Dt?Ci[bi]:Fi[bi],Ts=si===Dt?-Fi[bi]:-Ci[bi],fs=Fe.elements.arrow,ws=Wr&&fs?le(fs):{width:0,height:0},yi=Fe.modifiersData["arrow#persistent"]?Fe.modifiersData["arrow#persistent"].padding:_t(),ns=yi[Gi],Bi=yi[ts],Pi=fr(0,Ci[bi],ws[bi]),Os=ei?Ci[bi]/2-xs-Pi-ns-Mi:vo-Pi-ns-Mi,ro=ei?-Ci[bi]/2+xs+Pi+Bi+Mi:Ts+Pi+Bi+Mi,ks=Fe.elements.arrow&&Me(Fe.elements.arrow),da=ks?Xr==="y"?ks.clientTop||0:ks.clientLeft||0:0,Hs=Fe.modifiersData.offset?Fe.modifiersData.offset[Fe.placement][Xr]:0,bo=vi[Xr]+Os-Hs-da,fa=vi[Xr]+ro-Hs,yo=fr(Wr?Math.min(ds,bo):ds,Vi,Wr?Math.max($s,fa):$s);vi[Xr]=yo,Hi[Xr]=yo-Vi}if(un){var Vo=Xr==="x"?Be:ft,Uo=Xr==="x"?ze:Ze,Is=vi[Ei],Ws=Is+ii[Vo],xo=Is-ii[Uo],Ho=fr(Ws,Is,xo);vi[Ei]=Ho,Hi[Ei]=Ho-Is}Fe.modifiersData[kt]=Hi}}var sr={name:"preventOverflow",enabled:!0,phase:"main",fn:kr,requiresIfExists:["offset"]};function Pn(Ce){var Fe,st=Ce.state,kt=Ce.name,Ft=st.elements.arrow,Kt=st.modifiersData.popperOffsets,ln=dn(st.placement),un=Zt(ln),Rn=[ft,Ze].indexOf(ln)>=0,bn=Rn?"height":"width";if(Ft&&Kt){var Wn=st.modifiersData[kt+"#persistent"].padding,yr=le(Ft),wr=un==="y"?Be:ft,Wr=un==="y"?ze:Ze,Zr=st.rects.reference[bn]+st.rects.reference[un]-Kt[un]-st.rects.popper[bn],zr=Kt[un]-st.rects.reference[un],ii=Me(Ft),fi=ii?un==="y"?ii.clientHeight||0:ii.clientWidth||0:0,si=Zr/2-zr/2,ei=Wn[wr],Xr=fi-yr[bn]-Wn[Wr],Ei=fi/2-yr[bn]/2+si,vi=fr(ei,Ei,Xr),Ci=un;st.modifiersData[kt]=(Fe={},Fe[Ci]=vi,Fe.centerOffset=vi-Ei,Fe)}}function mr(Ce){var Fe=Ce.state,st=Ce.options,kt=Ce.name,Ft=st.element,Kt=Ft===void 0?"[data-popper-arrow]":Ft,ln=st.padding,un=ln===void 0?0:ln;Kt!=null&&(typeof Kt!="string"||(Kt=Fe.elements.popper.querySelector(Kt),Kt))&&Dr(Fe.elements.popper,Kt)&&(Fe.elements.arrow=Kt,Fe.modifiersData[kt+"#persistent"]={padding:Xt(typeof un!="number"?un:sn(un,Ve))})}var br={name:"arrow",enabled:!0,phase:"main",fn:Pn,effect:mr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hr(Ce,Fe,st){return st===void 0&&(st={x:0,y:0}),{top:Ce.top-Fe.height-st.y,right:Ce.right-Fe.width+st.x,bottom:Ce.bottom-Fe.height+st.y,left:Ce.left-Fe.width-st.x}}function Bn(Ce){return[Be,Ze,ze,ft].some(function(Fe){return Ce[Fe]>=0})}function er(Ce){var Fe=Ce.state,st=Ce.name,kt=Fe.rects.reference,Ft=Fe.rects.popper,Kt=Fe.modifiersData.preventOverflow,ln=Tn(Fe,{elementContext:"reference"}),un=Tn(Fe,{altBoundary:!0}),Rn=hr(ln,kt),bn=hr(un,Ft,Kt),Wn=Bn(Rn),yr=Bn(bn);Fe.modifiersData[st]={referenceClippingOffsets:Rn,popperEscapeOffsets:bn,isReferenceHidden:Wn,hasPopperEscaped:yr},Fe.attributes.popper=Object.assign(Object.assign({},Fe.attributes.popper),{},{"data-popper-reference-hidden":Wn,"data-popper-escaped":yr})}var Qe,bt,wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:er},Bt=[Ot,pt,Yn,Tt,hn,Rr,sr,br,wt],Yt=ct({defaultModifiers:Bt}),Mt=j("2fa3"),en=j("9404"),pn={name:"Popover",render(Ce){return Ce("div",{class:["vc-popover-content-wrapper",{"is-interactive":this.isInteractive}],ref:"popover"},[Ce("transition",{props:{name:this.transition,appear:!0},on:{beforeEnter:this.beforeEnter,afterEnter:this.afterEnter,beforeLeave:this.beforeLeave,afterLeave:this.afterLeave}},[this.isVisible&&Ce("div",{attrs:{tabindex:-1},class:["vc-popover-content","direction-"+this.direction,this.contentClass]},[this.content,Ce("span",{class:["vc-popover-caret","direction-"+this.direction,"align-"+this.alignment]})])])])},props:{id:{type:String,required:!0},contentClass:String},data(){return{ref:null,opts:null,data:null,transition:"slide-fade",placement:"bottom",positionFixed:!1,modifiers:[],isInteractive:!1,isHovered:!1,isFocused:!1,showDelay:0,hideDelay:110,autoHide:!1,popperEl:null}},computed:{content(){var Ce=this;return Object(en.k)(this.$scopedSlots.default)&&this.$scopedSlots.default({direction:this.direction,alignment:this.alignment,data:this.data,updateLayout:this.setupPopper,hide:function(Fe){return Ce.hide(Fe)}})||this.$slots.default},popperOptions(){return{placement:this.placement,strategy:this.positionFixed?"fixed":"absolute",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:this.onPopperUpdate},...this.modifiers||[]],onFirstUpdate:this.onPopperUpdate}},isVisible(){return!(!this.ref||!this.content)},direction(){return this.placement&&this.placement.split("-")[0]||"bottom"},alignment(){const Ce=this.direction==="left"||this.direction==="right";let Fe=this.placement.split("-");return Fe=Fe.length>1?Fe[1]:"",["start","top","left"].includes(Fe)?Ce?"top":"left":["end","bottom","right"].includes(Fe)?Ce?"bottom":"right":Ce?"middle":"center"},state(){return this.$popovers[this.id]}},watch:{opts(Ce,Fe){Fe&&Fe.callback&&Fe.callback({...Fe,completed:!Ce,reason:Ce?"Overridden by action":null})}},mounted(){this.popoverEl=this.$refs.popover,this.addEvents()},beforeDestroy(){this.destroyPopper(),this.removeEvents(),this.popoverEl=null},methods:{addEvents(){Object(Mt.k)(this.popoverEl,"click",this.onClick),Object(Mt.k)(this.popoverEl,"mouseover",this.onMouseOver),Object(Mt.k)(this.popoverEl,"mouseleave",this.onMouseLeave),Object(Mt.k)(this.popoverEl,"focusin",this.onFocusIn),Object(Mt.k)(this.popoverEl,"focusout",this.onFocusOut),Object(Mt.k)(document,"keydown",this.onDocumentKeydown),Object(Mt.k)(document,"click",this.onDocumentClick),Object(Mt.k)(document,"show-popover",this.onDocumentShowPopover),Object(Mt.k)(document,"hide-popover",this.onDocumentHidePopover),Object(Mt.k)(document,"toggle-popover",this.onDocumentTogglePopover),Object(Mt.k)(document,"update-popover",this.onDocumentUpdatePopover)},removeEvents(){Object(Mt.j)(this.popoverEl,"click",this.onClick),Object(Mt.j)(this.popoverEl,"mouseover",this.onMouseOver),Object(Mt.j)(this.popoverEl,"mouseleave",this.onMouseLeave),Object(Mt.j)(this.popoverEl,"focusin",this.onFocusIn),Object(Mt.j)(this.popoverEl,"focusout",this.onFocusOut),Object(Mt.j)(document,"keydown",this.onDocumentKeydown),Object(Mt.j)(document,"click",this.onDocumentClick),Object(Mt.j)(document,"show-popover",this.onDocumentShowPopover),Object(Mt.j)(document,"hide-popover",this.onDocumentHidePopover),Object(Mt.j)(document,"toggle-popover",this.onDocumentTogglePopover),Object(Mt.j)(document,"update-popover",this.onDocumentUpdatePopover)},onClick(Ce){Ce.stopPropagation()},onMouseOver(){this.isHovered=!0,this.isInteractive&&this.show()},onMouseLeave(){this.isHovered=!1,!this.autoHide||this.isFocused||this.ref&&this.ref===document.activeElement||this.hide()},onFocusIn(){this.isFocused=!0,this.isInteractive&&this.show()},onFocusOut(Ce){Ce.relatedTarget&&Object(Mt.e)(this.popoverEl,Ce.relatedTarget)||(this.isFocused=!1,!this.isHovered&&this.autoHide&&this.hide())},onDocumentClick(Ce){this.$refs.popover&&this.ref&&(Object(Mt.e)(this.popoverEl,Ce.target)||Object(Mt.e)(this.ref,Ce.target)||this.hide())},onDocumentKeydown(Ce){Ce.key!=="Esc"&&Ce.key!=="Escape"||this.hide()},onDocumentShowPopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.show(Ce)},onDocumentHidePopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.hide(Ce)},onDocumentTogglePopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.toggle(Ce)},onDocumentUpdatePopover({detail:Ce}){Ce.id&&Ce.id===this.id&&this.update(Ce)},show(Ce={}){var Fe=this;Ce.action="show";const st=Ce.ref||this.ref,kt=Ce.showDelay>=0?Ce.showDelay:this.showDelay;if(!st)return void(Ce.callback&&Ce.callback({completed:!1,reason:"Invalid reference element provided"}));clearTimeout(this.timeout),this.opts=Ce;const Ft=function(){Object.assign(Fe,Ce),Fe.setupPopper(),Fe.opts=null};kt>0?this.timeout=setTimeout(function(){return Ft()},kt):Ft()},hide(Ce={}){var Fe=this;Ce.action="hide";const st=Ce.ref||this.ref,kt=Ce.hideDelay>=0?Ce.hideDelay:this.hideDelay;if(!this.ref||st!==this.ref)return void(Ce.callback&&Ce.callback({...Ce,completed:!1,reason:this.ref?"Invalid reference element provided":"Popover already hidden"}));const Ft=function(){Fe.ref=null,Fe.opts=null};clearTimeout(this.timeout),this.opts=Ce,kt>0?this.timeout=setTimeout(Ft,kt):Ft()},toggle(Ce={}){this.isVisible&&Ce.ref===this.ref?this.hide(Ce):this.show(Ce)},update(Ce={}){Object.assign(this,Ce),this.setupPopper()},setupPopper(){var Ce=this;this.$nextTick(function(){Ce.ref&&Ce.$refs.popover&&(Ce.popper&&Ce.popper.reference!==Ce.ref&&Ce.destroyPopper(),Ce.popper?Ce.popper.update():Ce.popper=Yt(Ce.ref,Ce.popoverEl,Ce.popperOptions))})},onPopperUpdate(Ce){Ce.placement?this.placement=Ce.placement:Ce.state&&(this.placement=Ce.state.placement)},beforeEnter(Ce){this.$emit("beforeShow",Ce)},afterEnter(Ce){this.$emit("afterShow",Ce)},beforeLeave(Ce){this.$emit("beforeHide",Ce)},afterLeave(Ce){this.destroyPopper(),this.$emit("afterHide",Ce)},destroyPopper(){this.popper&&(this.popper.destroy(),this.popper=null)}}},Sn=pn;j("bdb3");function cn(Ce,Fe,st,kt,Ft,Kt,ln,un){var Rn,bn=typeof Ce=="function"?Ce.options:Ce;if(Fe&&(bn.render=Fe,bn.staticRenderFns=st,bn._compiled=!0),kt&&(bn.functional=!0),Kt&&(bn._scopeId="data-v-"+Kt),ln?(Rn=function(wr){wr=wr||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,wr||typeof __VUE_SSR_CONTEXT__>"u"||(wr=__VUE_SSR_CONTEXT__),Ft&&Ft.call(this,wr),wr&&wr._registeredComponents&&wr._registeredComponents.add(ln)},bn._ssrRegister=Rn):Ft&&(Rn=un?function(){Ft.call(this,(bn.functional?this.parent:this).$root.$options.shadowRoot)}:Ft),Rn)if(bn.functional){bn._injectStyles=Rn;var Wn=bn.render;bn.render=function(wr,Wr){return Rn.call(Wr),Wn(wr,Wr)}}else{var yr=bn.beforeCreate;bn.beforeCreate=yr?[].concat(yr,Rn):[Rn]}return{exports:Ce,options:bn}}var ur=cn(Sn,Qe,bt,!1,null,"39b30300",null),or=ur.exports,nt=function(){var Ce=this,Fe=Ce.$createElement,st=Ce._self._c||Fe;return st("div",{staticClass:"vc-day-popover-row"},[Ce.indicator?st("div",{staticClass:"vc-day-popover-row-indicator"},[st("span",{class:Ce.indicator.class,style:Ce.indicator.style})]):Ce._e(),st("div",{staticClass:"vc-day-popover-row-content"},[Ce._t("default",[Ce._v(Ce._s(Ce.attribute.popover?Ce.attribute.popover.label:"No content provided"))])],2)])},gt=[],et=j("51ec");const nn={inject:["sharedState"],mixins:[et.a],computed:{masks(){return this.sharedState.masks},theme(){return this.sharedState.theme},locale(){return this.sharedState.locale},dayPopoverId(){return this.sharedState.dayPopoverId}},methods:{format(Ce,Fe){return this.locale.format(Ce,Fe)},pageForDate(Ce){return this.locale.getDateParts(this.locale.normalizeDate(Ce))}}},xn=["base","start","end","startEnd"],Un=["class","contentClass","style","contentStyle","color","fillMode"],Jn={color:"blue",isDark:!1,highlight:{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}},dot:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},bar:{base:{fillMode:"solid"},start:{fillMode:"solid"},end:{fillMode:"solid"}},content:{base:{},start:{},end:{}}};class _r{constructor(Fe){Object.assign(this,Jn,Fe)}normalizeAttr({config:Fe,type:st}){let kt=this.color,Ft={};const Kt=this[st];if(Fe===!0||Object(en.n)(Fe))kt=Object(en.n)(Fe)?Fe:kt,Ft={...Kt};else{if(!Object(en.m)(Fe))return null;Ft=Object(en.f)(Fe,xn)?{...Fe}:{base:{...Fe},start:{...Fe},end:{...Fe}}}return Object(en.b)(Ft,{start:Ft.startEnd,end:Ft.startEnd},Kt),Object(en.w)(Ft).forEach(function([ln,un]){let Rn=kt;un===!0||Object(en.n)(un)?(Rn=Object(en.n)(un)?un:Rn,Ft[ln]={color:Rn}):Object(en.m)(un)&&(Object(en.f)(un,Un)?Ft[ln]={...un}:Ft[ln]={}),Object(en.e)(Ft,ln+".color")||Object(en.u)(Ft,ln+".color",Rn)}),Ft}normalizeHighlight(Fe){var st=this;const kt=this.normalizeAttr({config:Fe,type:"highlight"});return Object(en.w)(kt).forEach(function([Ft,Kt]){const ln=Object(en.b)(Kt,{isDark:st.isDark,color:st.color});Kt.style={...st.getHighlightBgStyle(ln),...Kt.style},Kt.contentStyle={...st.getHighlightContentStyle(ln),...Kt.contentStyle}}),kt}getHighlightBgStyle({fillMode:Fe,color:st,isDark:kt}){switch(Fe){case"outline":case"none":return{backgroundColor:kt?"var(--gray-900)":"var(--white)",border:"2px solid",borderColor:kt?`var(--${st}-200)`:`var(--${st}-700)`,borderRadius:"var(--rounded-full)"};case"light":return{backgroundColor:kt?`var(--${st}-800)`:`var(--${st}-200)`,opacity:kt?.75:1,borderRadius:"var(--rounded-full)"};case"solid":return{backgroundColor:kt?`var(--${st}-500)`:`var(--${st}-600)`,borderRadius:"var(--rounded-full)"};default:return{borderRadius:"var(--rounded-full)"}}}getHighlightContentStyle({fillMode:Fe,color:st,isDark:kt}){switch(Fe){case"outline":case"none":return{fontWeight:"var(--font-bold)",color:kt?`var(--${st}-100)`:`var(--${st}-900)`};case"light":return{fontWeight:"var(--font-bold)",color:kt?`var(--${st}-100)`:`var(--${st}-900)`};case"solid":return{fontWeight:"var(--font-bold)",color:"var(--white)"};default:return""}}bgAccentHigh({color:Fe,isDark:st}){return{backgroundColor:st?`var(--${Fe}-500)`:`var(--${Fe}-600)`}}contentAccent({color:Fe,isDark:st}){return Fe?{fontWeight:"var(--font-bold)",color:st?`var(--${Fe}-100)`:`var(--${Fe}-900)`}:null}normalizeDot(Fe){return this.normalizeNonHighlight("dot",Fe,this.bgAccentHigh)}normalizeBar(Fe){return this.normalizeNonHighlight("bar",Fe,this.bgAccentHigh)}normalizeContent(Fe){return this.normalizeNonHighlight("content",Fe,this.contentAccent)}normalizeNonHighlight(Fe,st,kt){var Ft=this;const Kt=this.normalizeAttr({type:Fe,config:st});return Object(en.w)(Kt).forEach(function([ln,un]){Object(en.b)(un,{isDark:Ft.isDark,color:Ft.color}),un.style={...kt(un),...un.style}}),Kt}}var xr=j("29ae"),Nr=j("1315"),Mr=j("22f3");const Qr={mixins:[et.a],props:{color:String,isDark:Boolean,firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,minDateExact:null,maxDateExact:null,disabledDates:null,availableDates:null,theme:null},computed:{$theme(){return this.theme instanceof _r?this.theme:new _r({color:this.passedProp("color","blue"),isDark:this.passedProp("isDark",!1)})},$locale(){if(this.locale instanceof xr.b)return this.locale;const Ce=Object(en.m)(this.locale)?this.locale:{id:this.locale,firstDayOfWeek:this.firstDayOfWeek,masks:this.masks};return new xr.b(Ce,{locales:this.$locales,timezone:this.timezone})},disabledDates_(){const Ce=this.normalizeDates(this.disabledDates),{minDate:Fe,minDateExact:st,maxDate:kt,maxDateExact:Ft}=this;if(st||Fe){const Kt=st?this.normalizeDate(st):this.normalizeDate(Fe,{time:"00:00:00"});Ce.push({start:null,end:new Date(Kt.getTime()-1e3)})}if(Ft||kt){const Kt=Ft?this.normalizeDate(Ft):this.normalizeDate(kt,{time:"23:59:59"});Ce.push({start:new Date(Kt.getTime()+1e3),end:null})}return Ce},availableDates_(){return this.normalizeDates(this.availableDates)},disabledAttribute(){return new Mr.a({key:"disabled",dates:this.disabledDates_,excludeDates:this.availableDates_,excludeMode:"includes",order:100},this.$theme,this.$locale)}},created(){Object(Nr.a)(this.$defaults.screens)},methods:{formatDate(Ce,Fe){return this.$locale?this.$locale.format(Ce,Fe):""},parseDate(Ce,Fe){if(!this.$locale)return null;const st=this.$locale.parse(Ce,Fe);return Object(en.j)(st)?st:null},normalizeDate(Ce,Fe){return this.$locale?this.$locale.normalizeDate(Ce,Fe):Ce},normalizeDates(Ce){return this.$locale.normalizeDates(Ce,{isFullDay:!0})},pageForDate(Ce){return this.$locale.getDateParts(this.normalizeDate(Ce))},pageForThisMonth(){return this.pageForDate(new Date)}}},ni={methods:{safeScopedSlot(Ce,Fe,st=null){return Object(en.k)(this.$scopedSlots[Ce])?this.$scopedSlots[Ce](Fe):st}}},Jr=nn,ri=Qr,Yr=ni;var ti={name:"PopoverRow",mixins:[Jr],props:{attribute:Object},computed:{indicator(){const{highlight:Ce,dot:Fe,bar:st,popover:kt}=this.attribute;if(kt&&kt.hideIndicator)return null;if(Ce){const{color:Ft,isDark:Kt}=Ce.start;return{style:{...this.theme.bgAccentHigh({color:Ft,isDark:!Kt}),width:"10px",height:"5px",borderRadius:"3px"}}}if(Fe){const{color:Ft,isDark:Kt}=Fe.start;return{style:{...this.theme.bgAccentHigh({color:Ft,isDark:!Kt}),width:"5px",height:"5px",borderRadius:"50%"}}}if(st){const{color:Ft,isDark:Kt}=st.start;return{style:{...this.theme.bgAccentHigh({color:Ft,isDark:!Kt}),width:"10px",height:"3px"}}}return null}}},gi=ti,Di=(j("d438"),cn(gi,nt,gt,!1,null,"eb5afd1a",null)),Zi=Di.exports,Io=function(){var Ce=this,Fe=Ce.$createElement,st=Ce._self._c||Fe;return st("div",{staticClass:"vc-nav-container"},[st("div",{staticClass:"vc-nav-header"},[st("span",{staticClass:"vc-nav-arrow is-left",class:{"is-disabled":!Ce.prevItemsEnabled},attrs:{role:"button",tabindex:Ce.prevItemsEnabled?0:void 0},on:{click:Ce.movePrev,keydown:function(kt){return Ce.onSpaceOrEnter(kt,Ce.movePrev)}}},[Ce._t("nav-left-button",[st("svg-icon",{attrs:{name:"left-arrow",width:"20px",height:"24px"}})])],2),st("span",{staticClass:"vc-nav-title vc-grid-focus",style:{whiteSpace:"nowrap"},attrs:{role:"button",tabindex:"0"},on:{click:Ce.toggleMode,keydown:function(kt){return Ce.onSpaceOrEnter(kt,Ce.toggleMode)}}},[Ce._v(" "+Ce._s(Ce.title)+" ")]),st("span",{staticClass:"vc-nav-arrow is-right",class:{"is-disabled":!Ce.nextItemsEnabled},attrs:{role:"button",tabindex:Ce.nextItemsEnabled?0:void 0},on:{click:Ce.moveNext,keydown:function(kt){return Ce.onSpaceOrEnter(kt,Ce.moveNext)}}},[Ce._t("nav-right-button",[st("svg-icon",{attrs:{name:"right-arrow",width:"20px",height:"24px"}})])],2)]),st("div",{staticClass:"vc-nav-items"},Ce._l(Ce.activeItems,function(kt){return st("span",{key:kt.label,class:Ce.getItemClasses(kt),attrs:{role:"button","data-id":kt.id,"aria-label":kt.ariaLabel,tabindex:kt.isDisabled?void 0:0},on:{click:kt.click,keydown:function(Ft){return Ce.onSpaceOrEnter(Ft,kt.click)}}},[Ce._v(" "+Ce._s(kt.label)+" ")])}),0)])},No=[],Lo=function(){var Ce=this,Fe=Ce.$createElement,st=Ce._self._c||Fe;return st("svg",Ce._g({staticClass:"vc-svg-icon",attrs:{width:Ce.width,height:Ce.height,viewBox:Ce.viewBox}},Ce.$listeners),[st("path",{attrs:{d:Ce.path}})])},Fo=[];const Qi="26px",Js="0 0 32 32",po={"left-arrow":{viewBox:"0 -1 16 34",path:"M11.196 10c0 0.143-0.071 0.304-0.179 0.411l-7.018 7.018 7.018 7.018c0.107 0.107 0.179 0.268 0.179 0.411s-0.071 0.304-0.179 0.411l-0.893 0.893c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-8.321-8.321c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l8.321-8.321c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l0.893 0.893c0.107 0.107 0.179 0.25 0.179 0.411z"},"right-arrow":{viewBox:"-5 -1 16 34",path:"M10.625 17.429c0 0.143-0.071 0.304-0.179 0.411l-8.321 8.321c-0.107 0.107-0.268 0.179-0.411 0.179s-0.304-0.071-0.411-0.179l-0.893-0.893c-0.107-0.107-0.179-0.25-0.179-0.411 0-0.143 0.071-0.304 0.179-0.411l7.018-7.018-7.018-7.018c-0.107-0.107-0.179-0.268-0.179-0.411s0.071-0.304 0.179-0.411l0.893-0.893c0.107-0.107 0.268-0.179 0.411-0.179s0.304 0.071 0.411 0.179l8.321 8.321c0.107 0.107 0.179 0.268 0.179 0.411z"}};var Zs={props:["name"],data(){return{width:Qi,height:Qi,viewBox:Js,path:"",isBaseline:!1}},mounted(){this.updateIcon()},watch:{name(){this.updateIcon()}},methods:{updateIcon(){const Ce=po[this.name];Ce&&(this.width=Ce.width||Qi,this.height=Ce.height||Qi,this.viewBox=Ce.viewBox,this.path=Ce.path)}}},zs=Zs,As=(j("9010"),cn(zs,Lo,Fo,!1,null,"63f7b5ec",null)),gs=As.exports;const Cs=12;var Rs={name:"CalendarNav",components:{SvgIcon:gs},mixins:[Jr],props:{value:{type:Object,default:function(){return{month:0,year:0}}},validator:{type:Function,default:function(){return function(){return!0}}}},data(){return{monthMode:!0,yearIndex:0,yearGroupIndex:0,onSpaceOrEnter:Mt.l}},computed:{month(){return this.value&&this.value.month||0},year(){return this.value&&this.value.year||0},title(){return this.monthMode?this.yearIndex:`${this.firstYear} - ${this.lastYear}`},monthItems(){return this.getMonthItems(this.yearIndex)},yearItems(){return this.getYearItems(this.yearGroupIndex)},prevItemsEnabled(){return this.monthMode?this.prevMonthItemsEnabled:this.prevYearItemsEnabled},nextItemsEnabled(){return this.monthMode?this.nextMonthItemsEnabled:this.nextYearItemsEnabled},prevMonthItemsEnabled(){return this.getMonthItems(this.yearIndex-1).some(function(Ce){return!Ce.isDisabled})},nextMonthItemsEnabled(){return this.getMonthItems(this.yearIndex+1).some(function(Ce){return!Ce.isDisabled})},prevYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex-1).some(function(Ce){return!Ce.isDisabled})},nextYearItemsEnabled(){return this.getYearItems(this.yearGroupIndex+1).some(function(Ce){return!Ce.isDisabled})},activeItems(){return this.monthMode?this.monthItems:this.yearItems},firstYear(){return Object(en.g)(this.yearItems.map(function(Ce){return Ce.year}))},lastYear(){return Object(en.p)(this.yearItems.map(function(Ce){return Ce.year}))}},watch:{year(){this.yearIndex=this.year},yearIndex(Ce){this.yearGroupIndex=this.getYearGroupIndex(Ce)},value(){this.focusFirstItem()}},created(){this.yearIndex=this.year},mounted(){this.focusFirstItem()},methods:{focusFirstItem(){var Ce=this;this.$nextTick(function(){const Fe=Ce.$el.querySelector(".vc-nav-item:not(.is-disabled)");Fe&&Fe.focus()})},getItemClasses({isActive:Ce,isCurrent:Fe,isDisabled:st}){const kt=["vc-nav-item"];return Ce?kt.push("is-active"):Fe&&kt.push("is-current"),st&&kt.push("is-disabled"),kt},getYearGroupIndex(Ce){return Math.floor(Ce/Cs)},getMonthItems(Ce){var Fe=this;const{month:st,year:kt}=this.pageForDate(new Date);return this.locale.getMonthDates().map(function(Ft,Kt){const ln=Kt+1;return{month:ln,year:Ce,id:`${Ce}.${Object(Mt.m)(ln,2)}`,label:Fe.locale.format(Ft,Fe.masks.navMonths),ariaLabel:Fe.locale.format(Ft,"MMMM YYYY"),isActive:ln===Fe.month&&Ce===Fe.year,isCurrent:ln===st&&Ce===kt,isDisabled:!Fe.validator({month:ln,year:Ce}),click:function(){return Fe.monthClick(ln,Ce)}}})},getYearItems(Ce){var Fe=this;const{_:st,year:kt}=this.pageForDate(new Date),Ft=Ce*Cs,Kt=Ft+Cs,ln=[];for(let un=Ft;un<Kt;un+=1){let Rn=!1;for(let bn=1;bn<12&&(Rn=this.validator({month:bn,year:un}),!Rn);bn++);ln.push({year:un,id:un,label:un,ariaLabel:un,isActive:un===this.year,isCurrent:un===kt,isDisabled:!Rn,click:function(){return Fe.yearClick(un)}})}return ln},monthClick(Ce,Fe){this.validator({month:Ce,year:Fe})&&this.$emit("input",{month:Ce,year:Fe})},yearClick(Ce){this.yearIndex=Ce,this.monthMode=!0,this.focusFirstItem()},toggleMode(){this.monthMode=!this.monthMode},movePrev(){this.prevItemsEnabled&&(this.monthMode&&this.movePrevYear(),this.movePrevYearGroup())},moveNext(){this.nextItemsEnabled&&(this.monthMode&&this.moveNextYear(),this.moveNextYearGroup())},movePrevYear(){this.yearIndex--},moveNextYear(){this.yearIndex++},movePrevYearGroup(){this.yearGroupIndex--},moveNextYearGroup(){this.yearGroupIndex++}}},Qs=Rs,pe=(j("3c55"),cn(Qs,Io,No,!1,null,null,null)),Te=pe.exports;function Re(Ce){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:Ce}))}function je(Ce){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:Ce}))}function qe(Ce){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:Ce}))}function Je(Ce){document&&document.dispatchEvent(new CustomEvent("update-popover",{detail:Ce}))}function vt(Ce){const{visibility:Fe}=Ce,st=Fe==="click",kt=Fe==="hover",Ft=Fe==="hover-focus",Kt=Fe==="focus";Ce.autoHide=!st;let ln=!1,un=!1;return{click(Rn){st&&(Ce.ref=Rn.target,qe(Ce),Rn.stopPropagation())},mousemove(Rn){Ce.ref=Rn.currentTarget,ln||(ln=!0,(kt||Ft)&&Re(Ce))},mouseleave(Rn){Ce.ref=Rn.target,ln&&(ln=!1,(kt||Ft&&!un)&&je(Ce))},focusin(Rn){Ce.ref=Rn.currentTarget,un||(un=!0,(Kt||Ft)&&Re(Ce))},focusout(Rn){Ce.ref=Rn.currentTarget,un&&!Object(Mt.e)(Ce.ref,Rn.relatedTarget)&&(un=!1,(Kt||Ft&&!ln)&&je(Ce))}}}var Rt,St,zt,jt,yn,Dn,_n,gn,ar={name:"CalendarDay",mixins:[Jr,Yr],render(Ce){var Fe=this;const st=function(){return Fe.hasBackgrounds&&Ce("div",{class:"vc-highlights vc-day-layer"},Fe.backgrounds.map(function({key:ln,wrapperClass:un,class:Rn,style:bn}){return Ce("div",{key:ln,class:un},[Ce("div",{class:Rn,style:bn})])}))},kt=function(){return Fe.safeScopedSlot("day-content",{day:Fe.day,attributes:Fe.day.attributes,attributesMap:Fe.day.attributesMap,dayProps:Fe.dayContentProps,dayEvents:Fe.dayContentEvents})||Ce("span",{class:Fe.dayContentClass,style:Fe.dayContentStyle,attrs:{...Fe.dayContentProps},on:Fe.dayContentEvents,ref:"content"},[Fe.day.label])},Ft=function(){return Fe.hasDots&&Ce("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Ce("div",{class:"vc-dots"},Fe.dots.map(function({key:ln,class:un,style:Rn}){return Ce("span",{key:ln,class:un,style:Rn})}))])},Kt=function(){return Fe.hasBars&&Ce("div",{class:"vc-day-layer vc-day-box-center-bottom"},[Ce("div",{class:"vc-bars"},Fe.bars.map(function({key:ln,class:un,style:Rn}){return Ce("span",{key:ln,class:un,style:Rn})}))])};return Ce("div",{class:["vc-day",...this.day.classes,{"vc-day-box-center-center":!this.$scopedSlots["day-content"]},{"is-not-in-month":!this.inMonth}]},[st(),kt(),Ft(),Kt()])},inject:["sharedState"],props:{day:{type:Object,required:!0}},data(){return{glyphs:{},dayContentEvents:{}}},computed:{label(){return this.day.label},startTime(){return this.day.range.start.getTime()},endTime(){return this.day.range.end.getTime()},inMonth(){return this.day.inMonth},isDisabled(){return this.day.isDisabled},backgrounds(){return this.glyphs.backgrounds},hasBackgrounds(){return!!Object(Mt.b)(this.backgrounds)},content(){return this.glyphs.content},dots(){return this.glyphs.dots},hasDots(){return!!Object(Mt.b)(this.dots)},bars(){return this.glyphs.bars},hasBars(){return!!Object(Mt.b)(this.bars)},popovers(){return this.glyphs.popovers},hasPopovers(){return!!Object(Mt.b)(this.popovers)},dayContentClass(){return["vc-day-content vc-focusable",{"is-disabled":this.isDisabled},Object(en.d)(Object(en.p)(this.content),"class")||""]},dayContentStyle(){return Object(en.d)(Object(en.p)(this.content),"style")},dayContentProps(){let Ce;return this.day.isFocusable?Ce="0":this.day.inMonth&&(Ce="-1"),{tabindex:Ce,"aria-label":this.day.ariaLabel,"aria-disabled":this.day.isDisabled?"true":"false",role:"button"}},dayEvent(){return{...this.day,el:this.$refs.content,popovers:this.popovers}}},watch:{theme(){this.refresh()},popovers(){this.refreshPopovers()}},mounted(){this.refreshPopovers()},methods:{getDayEvent(Ce){return{...this.dayEvent,event:Ce}},click(Ce){this.$emit("dayclick",this.getDayEvent(Ce))},mouseenter(Ce){this.$emit("daymouseenter",this.getDayEvent(Ce))},mouseleave(Ce){this.$emit("daymouseleave",this.getDayEvent(Ce))},focusin(Ce){this.$emit("dayfocusin",this.getDayEvent(Ce))},focusout(Ce){this.$emit("dayfocusout",this.getDayEvent(Ce))},keydown(Ce){this.$emit("daykeydown",this.getDayEvent(Ce))},refresh(){var Ce=this;if(!this.day.refresh)return;this.day.refresh=!1;const Fe={backgrounds:[],dots:[],bars:[],popovers:[],content:[]};this.$set(this.day,"attributes",Object.values(this.day.attributesMap||{}).sort(function(st,kt){return st.order-kt.order})),this.day.attributes.forEach(function(st){const{targetDate:kt}=st,{isDate:Ft,isComplex:Kt,startTime:ln,endTime:un}=kt,Rn=Ce.startTime<=ln,bn=Ce.endTime>=un,Wn=Rn&&bn,yr=Rn||bn,wr={isDate:Ft,isComplex:Kt,onStart:Rn,onEnd:bn,onStartAndEnd:Wn,onStartOrEnd:yr};Ce.processHighlight(st,wr,Fe),Ce.processNonHighlight(st,"content",wr,Fe.content),Ce.processNonHighlight(st,"dot",wr,Fe.dots),Ce.processNonHighlight(st,"bar",wr,Fe.bars),Ce.processPopover(st,Fe)}),this.glyphs=Fe},processHighlight({key:Ce,highlight:Fe},{isDate:st,isComplex:kt,onStart:Ft,onEnd:Kt,onStartAndEnd:ln},{backgrounds:un,content:Rn}){if(!Fe)return;const{base:bn,start:Wn,end:yr}=Fe;st||kt||ln?(un.push({key:Ce,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",Wn.class],style:Wn.style}),Rn.push({key:Ce+"-content",class:Wn.contentClass,style:Wn.contentStyle})):Ft?(un.push({key:Ce+"-base",wrapperClass:"vc-day-layer vc-day-box-right-center",class:["vc-highlight vc-highlight-base-start",bn.class],style:bn.style}),un.push({key:Ce,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",Wn.class],style:Wn.style}),Rn.push({key:Ce+"-content",class:Wn.contentClass,style:Wn.contentStyle})):Kt?(un.push({key:Ce+"-base",wrapperClass:"vc-day-layer vc-day-box-left-center",class:["vc-highlight vc-highlight-base-end",bn.class],style:bn.style}),un.push({key:Ce,wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight",yr.class],style:yr.style}),Rn.push({key:Ce+"-content",class:yr.contentClass,style:yr.contentStyle})):(un.push({key:Ce+"-middle",wrapperClass:"vc-day-layer vc-day-box-center-center",class:["vc-highlight vc-highlight-base-middle",bn.class],style:bn.style}),Rn.push({key:Ce+"-content",class:bn.contentClass,style:bn.contentStyle}))},processNonHighlight(Ce,Fe,{isDate:st,onStart:kt,onEnd:Ft},Kt){if(!Ce[Fe])return;const{key:ln}=Ce,un="vc-"+Fe,{base:Rn,start:bn,end:Wn}=Ce[Fe];st||kt?Kt.push({key:ln,class:[un,bn.class],style:bn.style}):Ft?Kt.push({key:ln,class:[un,Wn.class],style:Wn.style}):Kt.push({key:ln,class:[un,Rn.class],style:Rn.style})},processPopover(Ce,{popovers:Fe}){const{key:st,customData:kt,popover:Ft}=Ce;if(!Ft)return;const Kt=Object(en.b)({key:st,customData:kt,attribute:Ce},{...Ft},{visibility:Ft.label?"hover":"click",placement:"bottom",isInteractive:!Ft.label});Fe.splice(0,0,Kt)},refreshPopovers(){let Ce={};Object(Mt.b)(this.popovers)&&(Ce=vt(Object(en.b)({id:this.dayPopoverId,data:this.day},...this.popovers))),this.dayContentEvents=Object(Mt.h)({click:this.click,mouseenter:this.mouseenter,mouseleave:this.mouseleave,focusin:this.focusin,focusout:this.focusout,keydown:this.keydown},Ce),Je({id:this.dayPopoverId,data:this.day})}}},Hn=ar,Cr=(j("1f64"),cn(Hn,Rt,St,!1,null,"4420d078",null)),Pr=Cr.exports,vr={name:"CalendarPane",mixins:[Jr,Yr],render(Ce){var Fe=this;const st=this.safeScopedSlot("header",this.page)||Ce("div",{class:"vc-header align-"+this.titlePosition},[Ce("div",{class:"vc-title",on:this.navPopoverEvents},[this.safeScopedSlot("header-title",this.page,this.page.title)])]),kt=this.weekdayLabels.map(function(Wn,yr){return Ce("div",{key:yr+1,class:"vc-weekday"},[Wn])}),Ft=this.showWeeknumbers_.startsWith("left"),Kt=this.showWeeknumbers_.startsWith("right");Ft?kt.unshift(Ce("div",{class:"vc-weekday"})):Kt&&kt.push(Ce("div",{class:"vc-weekday"}));const ln=function(Wn){return Ce("div",{class:["vc-weeknumber"]},[Ce("span",{class:["vc-weeknumber-content","is-"+Fe.showWeeknumbers_],on:{click:function(yr){Fe.$emit("weeknumberclick",{weeknumber:Wn,days:Fe.page.days.filter(function(wr){return wr[Fe.weeknumberKey]===Wn}),event:yr})}}},[Wn])])},un=[],{daysInWeek:Rn}=this.locale;this.page.days.forEach(function(Wn,yr){const wr=yr%Rn;(Ft&&wr===0||Kt&&wr===Rn)&&un.push(ln(Wn[Fe.weeknumberKey])),un.push(Ce(Pr,{attrs:{day:Wn},on:{...Fe.$listeners},scopedSlots:Fe.$scopedSlots,key:Wn.id,ref:"days",refInFor:!0})),Kt&&wr===Rn-1&&un.push(ln(Wn[Fe.weeknumberKey]))});const bn=Ce("div",{class:{"vc-weeks":!0,"vc-show-weeknumbers":this.showWeeknumbers_,"is-left":Ft,"is-right":Kt}},[kt,un]);return Ce("div",{class:["vc-pane","row-from-end-"+this.rowFromEnd,"column-from-end-"+this.columnFromEnd],ref:"pane"},[st,bn])},inheritAttrs:!1,props:{page:Object,position:Number,row:Number,rowFromEnd:Number,column:Number,columnFromEnd:Number,titlePosition:String,navVisibility:String,showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String]},computed:{weeknumberKey(){return this.showWeeknumbers?"weeknumber":"isoWeeknumber"},showWeeknumbers_(){const Ce=this.showWeeknumbers||this.showIsoWeeknumbers;return Ce==null?"":Object(en.i)(Ce)?Ce?"left":"":Ce.startsWith("right")?this.columnFromEnd>1?"right":Ce:this.column>1?"left":Ce},navVisibility_(){return this.propOrDefault("navVisibility","navVisibility")},navPlacement(){switch(this.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}},navPopoverEvents(){const{sharedState:Ce,navVisibility_:Fe,navPlacement:st,page:kt,position:Ft}=this;return vt({id:Ce.navPopoverId,visibility:Fe,placement:st,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:kt,position:Ft},isInteractive:!0})},weekdayLabels(){var Ce=this;return this.locale.getWeekdayDates().map(function(Fe){return Ce.format(Fe,Ce.masks.weekdays)})}},methods:{refresh(){this.$refs.days.forEach(function(Ce){return Ce.refresh()})}}},Hr=vr,di=(j("fccf"),j("4889"),cn(Hr,zt,jt,!1,null,"74ad501d",null)),ai=di.exports,wi={name:"CustomTransition",render(Ce){return Ce("transition",{props:{name:this.name_,appear:this.appear},on:{beforeEnter:this.beforeEnter,afterEnter:this.afterEnter}},[this.$slots.default])},props:{name:String,appear:Boolean},computed:{name_(){return this.name||"none"}},methods:{beforeEnter(Ce){this.$emit("beforeEnter",Ce),this.$emit("beforeTransition",Ce)},afterEnter(Ce){this.$emit("afterEnter",Ce),this.$emit("afterTransition",Ce)}}},Gr=wi,Br=(j("2285"),cn(Gr,yn,Dn,!1,null,"5be4b00c",null)),pi=Br.exports,hi=j("9349"),li=j("0733"),_s=(j("3ee2"),{name:"Calendar",render(Ce){var Fe=this;const st=this.pages.map(function(ln,un){const Rn=un+1,bn=Math.ceil((un+1)/Fe.columns),Wn=Fe.rows-bn+1,yr=Rn%Fe.columns||Fe.columns,wr=Fe.columns-yr+1;return Ce(ai,{attrs:{...Fe.$attrs,attributes:Fe.store},props:{page:ln,position:Rn,row:bn,rowFromEnd:Wn,column:yr,columnFromEnd:wr,titlePosition:Fe.titlePosition_},on:{...Fe.$listeners,dayfocusin:function(Wr){Fe.lastFocusedDay=Wr,Fe.$emit("dayfocusin",Wr)},dayfocusout:function(Wr){Fe.lastFocusedDay=null,Fe.$emit("dayfocusout",Wr)}},scopedSlots:Fe.$scopedSlots,key:ln.key,ref:"pages",refInFor:!0})}),kt=function(ln){const un=function(){return Fe.move(ln?-Fe.step_:Fe.step_)},Rn=function(Wn){return Object(Mt.l)(Wn,un)},bn=ln?!Fe.canMovePrev:!Fe.canMoveNext;return Ce("div",{class:["vc-arrow","is-"+(ln?"left":"right"),{"is-disabled":bn}],attrs:{role:"button"},on:{click:un,keydown:Rn}},[(ln?Fe.safeScopedSlot("header-left-button",{click:un}):Fe.safeScopedSlot("header-right-button",{click:un}))||Ce(gs,{props:{name:ln?"left-arrow":"right-arrow"}})])},Ft=function(){return Ce(or,{props:{id:Fe.sharedState.navPopoverId,contentClass:"vc-nav-popover-container"},ref:"navPopover",scopedSlots:{default:function({data:ln}){const{position:un,page:Rn}=ln;return Ce(Te,{props:{value:Rn,position:un,validator:function(bn){return Fe.canMove(bn,{position:un})}},on:{input:function(bn){return Fe.move(bn,{position:un})}},scopedSlots:Fe.$scopedSlots})}}})},Kt=function(){return Ce(or,{props:{id:Fe.sharedState.dayPopoverId,contentClass:"vc-day-popover-container"},scopedSlots:{default:function({data:ln,updateLayout:un,hide:Rn}){const bn=Object.values(ln.attributes).filter(function(Wr){return Wr.popover}),Wn=Fe.$locale.masks,yr=Fe.formatDate,wr=yr(ln.date,Wn.dayPopover);return Fe.safeScopedSlot("day-popover",{day:ln,attributes:bn,masks:Wn,format:yr,dayTitle:wr,updateLayout:un,hide:Rn})||Ce("div",[Wn.dayPopover&&Ce("div",{class:["vc-day-popover-header"]},[wr]),bn.map(function(Wr){return Ce(Zi,{key:Wr.key,props:{attribute:Wr}})})])}}})};return Ce("div",{attrs:{"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},class:["vc-container","vc-"+this.$theme.color,{"vc-is-expanded":this.isExpanded,"vc-is-dark":this.$theme.isDark}],on:{keydown:this.handleKeydown,mouseup:function(ln){return ln.preventDefault()}},ref:"container"},[Ft(),Ce("div",{class:["vc-pane-container",{"in-transition":this.inTransition}]},[Ce(pi,{props:{name:this.transitionName},on:{beforeEnter:function(){Fe.inTransition=!0},afterEnter:function(){Fe.inTransition=!1}}},[Ce("div",{class:"vc-pane-layout",style:{gridTemplateColumns:`repeat(${this.columns}, 1fr)`},attrs:{...this.$attrs},key:Object(Mt.b)(this.pages)?this.pages[0].key:""},st)]),Ce("div",{class:["vc-arrows-container title-"+this.titlePosition_]},[kt(!0),kt(!1)]),this.$scopedSlots.footer&&this.$scopedSlots.footer()]),Kt()])},mixins:[ri,Yr],provide(){return{sharedState:this.sharedState}},props:{rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:String,isExpanded:Boolean,fromDate:Date,toDate:Date,fromPage:Object,toPage:Object,minPage:Object,maxPage:Object,transition:String,attributes:[Object,Array],trimWeeks:Boolean,disablePageSwipe:Boolean},data(){return{pages:[],store:null,lastFocusedDay:null,focusableDay:new Date().getDate(),transitionName:"",inTransition:!1,sharedState:{navPopoverId:Object(Mt.c)(),dayPopoverId:Object(Mt.c)(),theme:{},masks:{},locale:{}}}},computed:{titlePosition_(){return this.propOrDefault("titlePosition","titlePosition")},firstPage(){return Object(en.g)(this.pages)},lastPage(){return Object(en.p)(this.pages)},minPage_(){return this.minPage||this.pageForDate(this.minDate)},maxPage_(){return this.maxPage||this.pageForDate(this.maxDate)},count(){return this.rows*this.columns},step_(){return this.step||this.count},canMovePrev(){return this.canMove(-this.step_)},canMoveNext(){return this.canMove(this.step_)}},watch:{$locale(){this.refreshLocale(),this.refreshPages({page:this.firstPage,ignoreCache:!0}),this.initStore()},$theme(){this.refreshTheme(),this.initStore()},fromDate(){this.refreshPages()},fromPage(Ce){const Fe=this.pages&&this.pages[0];Object(Mt.q)(Ce,Fe)||this.refreshPages()},toPage(Ce){const Fe=this.pages&&this.pages[this.pages.length-1];Object(Mt.q)(Ce,Fe)||this.refreshPages()},count(){this.refreshPages()},attributes:{handler(Ce){const{adds:Fe,deletes:st}=this.store.refresh(Ce);this.refreshAttrs(this.pages,Fe,st)},deep:!0},pages(Ce){this.refreshAttrs(Ce,this.store.list,null,!0)},disabledAttribute(){this.refreshDisabledDays()},lastFocusedDay(Ce){Ce&&(this.focusableDay=Ce.day,this.refreshFocusableDays())},inTransition(Ce){Ce?this.$emit("transition-start"):(this.$emit("transition-end"),this.transitionPromise&&(this.transitionPromise.resolve(!0),this.transitionPromise=null))}},created(){this.refreshLocale(),this.refreshTheme(),this.initStore(),this.refreshPages()},mounted(){var Ce=this;this.disablePageSwipe||(this.removeHandlers=Object(li.a)(this.$refs.container,function({toLeft:Fe,toRight:st}){Fe?Ce.moveNext():st&&Ce.movePrev()},this.$defaults.touch))},destroyed(){this.pages=[],this.store.destroy(),this.store=null,this.sharedState=null,this.removeHandlers&&this.removeHandlers()},methods:{refreshLocale(){this.sharedState.locale=this.$locale,this.sharedState.masks=this.$locale.masks},refreshTheme(){this.sharedState.theme=this.$theme},canMove(Ce,Fe={}){var st=this;const kt=this.$locale.toPage(Ce,this.firstPage);let{position:Ft}=Fe;if(Object(en.l)(Ce)&&(Ft=1),!kt)return Promise.reject(new Error("Invalid argument provided: "+Ce));if(!Ft)if(Object(Mt.o)(kt,this.firstPage))Ft=-1;else{if(!Object(Mt.n)(kt,this.lastPage))return Promise.resolve(!0);Ft=1}return Object.assign(Fe,this.getTargetPageRange(kt,{position:Ft,force:!0})),Object(Mt.s)(Fe.fromPage,Fe.toPage).some(function(Kt){return Object(Mt.p)(Kt,st.minPage_,st.maxPage_)})},movePrev(Ce){return this.move(-this.step_,Ce)},moveNext(Ce){return this.move(this.step_,Ce)},move(Ce,Fe={}){const st=this.canMove(Ce,Fe);return Fe.force||st?(this.$refs.navPopover.hide({hideDelay:0}),Fe.fromPage&&!Object(Mt.q)(Fe.fromPage,this.firstPage)?this.refreshPages({...Fe,page:Fe.fromPage,position:1,force:!0}):Promise.resolve(!0)):Promise.reject(new Error("Move target is disabled: "+JSON.stringify(Fe)))},focusDate(Ce,Fe={}){var st=this;return this.move(Ce,Fe).then(function(){const kt=st.$el.querySelector(`.id-${st.$locale.getDayId(Ce)}.in-month .vc-focusable`);return kt?(kt.focus(),Promise.resolve(!0)):Promise.resolve(!1)})},showPageRange(Ce,Fe){let st,kt;if(Object(en.j)(Ce))st=this.pageForDate(Ce);else{if(!Object(en.m)(Ce))return Promise.reject(new Error("Invalid page range provided."));{const{month:ln,year:un}=Ce,{from:Rn,to:bn}=Ce;Object(en.l)(ln)&&Object(en.l)(un)?st=Ce:(Rn||bn)&&(st=Object(en.j)(Rn)?this.pageForDate(Rn):Rn,kt=Object(en.j)(bn)?this.pageForDate(bn):bn)}}const Ft=this.lastPage;let Kt=st;return Object(Mt.n)(kt,Ft)&&(Kt=Object(Mt.a)(kt,-(this.pages.length-1))),Object(Mt.o)(Kt,st)&&(Kt=st),this.refreshPages({...Fe,page:Kt})},getTargetPageRange(Ce,{position:Fe,force:st}={}){let kt=null,Ft=null;if(Object(Mt.r)(Ce)){let Kt=0;Fe=+Fe,isNaN(Fe)||(Kt=Fe>0?1-Fe:-(this.count+Fe)),kt=Object(Mt.a)(Ce,Kt)}else kt=this.getDefaultInitialPage();return Ft=Object(Mt.a)(kt,this.count-1),st||(Object(Mt.o)(kt,this.minPage_)?kt=this.minPage_:Object(Mt.n)(Ft,this.maxPage_)&&(kt=Object(Mt.a)(this.maxPage_,1-this.count)),Ft=Object(Mt.a)(kt,this.count-1)),{fromPage:kt,toPage:Ft}},getDefaultInitialPage(){let Ce=this.fromPage||this.pageForDate(this.fromDate);if(!Object(Mt.r)(Ce)){const Fe=this.toPage||this.pageForDate(this.toPage);Object(Mt.r)(Fe)&&(Ce=Object(Mt.a)(Fe,1-this.count))}return Object(Mt.r)(Ce)||(Ce=this.getPageForAttributes()),Object(Mt.r)(Ce)||(Ce=this.pageForThisMonth()),Ce},refreshPages({page:Ce,position:Fe=1,force:st,transition:kt,ignoreCache:Ft}={}){var Kt=this;return new Promise(function(ln,un){const{fromPage:Rn,toPage:bn}=Kt.getTargetPageRange(Ce,{position:Fe,force:st}),Wn=[];for(let yr=0;yr<Kt.count;yr++)Wn.push(Kt.buildPage(Object(Mt.a)(Rn,yr),Ft));Kt.refreshDisabledDays(Wn),Kt.refreshFocusableDays(Wn),Kt.transitionName=Kt.getPageTransition(Kt.pages[0],Wn[0],kt),Kt.pages=Wn,Kt.$emit("update:from-page",Rn),Kt.$emit("update:to-page",bn),Kt.transitionName&&Kt.transitionName!=="none"?Kt.transitionPromise={resolve:ln,reject:un}:ln(!0)})},refreshDisabledDays(Ce){var Fe=this;this.getPageDays(Ce).forEach(function(st){st.isDisabled=!!Fe.disabledAttribute&&Fe.disabledAttribute.intersectsDay(st)})},refreshFocusableDays(Ce){var Fe=this;this.getPageDays(Ce).forEach(function(st){st.isFocusable=st.inMonth&&st.day===Fe.focusableDay})},getPageDays(Ce=this.pages){return Ce.reduce(function(Fe,st){return Fe.concat(st.days)},[])},getPageTransition(Ce,Fe,st=this.transition){if(st==="none")return st;if(st==="fade"||!st&&this.count>1||!Object(Mt.r)(Ce)||!Object(Mt.r)(Fe))return"fade";const kt=Object(Mt.o)(Fe,Ce);return st==="slide-v"?kt?"slide-down":"slide-up":kt?"slide-right":"slide-left"},getPageForAttributes(){let Ce=null;const Fe=this.store.pinAttr;if(Fe&&Fe.hasDates){let[st]=Fe.dates;st=st.start||st.date,Ce=this.pageForDate(st)}return Ce},buildPage({month:Ce,year:Fe},st){var kt=this;const Ft=`${Fe.toString()}-${Ce.toString()}`;let Kt=this.pages.find(function(ln){return ln.key===Ft});if(!Kt||st){const ln=new Date(Fe,Ce-1,15),un=this.$locale.getMonthComps(Ce,Fe),Rn=this.$locale.getPrevMonthComps(Ce,Fe),bn=this.$locale.getNextMonthComps(Ce,Fe);Kt={key:Ft,month:Ce,year:Fe,weeks:this.trimWeeks?un.weeks:6,title:this.$locale.format(ln,this.$locale.masks.title),shortMonthLabel:this.$locale.format(ln,"MMM"),monthLabel:this.$locale.format(ln,"MMMM"),shortYearLabel:Fe.toString().substring(2),yearLabel:Fe.toString(),monthComps:un,prevMonthComps:Rn,nextMonthComps:bn,canMove:function(Wn){return kt.canMove(Wn)},move:function(Wn){return kt.move(Wn)},moveThisMonth:function(){return kt.moveThisMonth()},movePrevMonth:function(){return kt.move(Rn)},moveNextMonth:function(){return kt.move(bn)},refresh:!0},Kt.days=this.$locale.getCalendarDays(Kt)}return Kt},initStore(){this.store=new hi.a(this.$theme,this.$locale,this.attributes),this.refreshAttrs(this.pages,this.store.list,[],!0)},refreshAttrs(Ce=[],Fe=[],st=[],kt){var Ft=this;Object(Mt.b)(Ce)&&(Ce.forEach(function(Kt){Kt.days.forEach(function(ln){let un={};kt?ln.refresh=!0:Object(en.f)(ln.attributesMap,st)?(un=Object(en.s)(ln.attributesMap,st),ln.refresh=!0):un=ln.attributesMap||{},Fe.forEach(function(Rn){const bn=Rn.intersectsDay(ln);if(bn){const Wn={...Rn,targetDate:bn};un[Rn.key]=Wn,ln.refresh=!0}}),ln.refresh&&(ln.attributesMap=un)})}),this.$nextTick(function(){Ft.$refs.pages.forEach(function(Kt){return Kt.refresh()})}))},handleKeydown(Ce){const Fe=this.lastFocusedDay;Fe!=null&&(Fe.event=Ce,this.handleDayKeydown(Fe))},handleDayKeydown(Ce){const{dateFromTime:Fe,event:st}=Ce,kt=Fe(12);let Ft=null;switch(st.key){case"ArrowLeft":Ft=Object(U.a)(kt,-1);break;case"ArrowRight":Ft=Object(U.a)(kt,1);break;case"ArrowUp":Ft=Object(U.a)(kt,-7);break;case"ArrowDown":Ft=Object(U.a)(kt,7);break;case"Home":Ft=Object(U.a)(kt,1-Ce.weekdayPosition);break;case"End":Ft=Object(U.a)(kt,Ce.weekdayPositionFromEnd);break;case"PageUp":Ft=st.altKey?J(kt,-1):G(kt,-1);break;case"PageDown":Ft=st.altKey?J(kt,1):G(kt,1);break}Ft&&(st.preventDefault(),this.focusDate(Ft).catch(function(){}))}}}),Ds=_s,es=(j("de5e"),cn(Ds,_n,gn,!1,null,null,null)),Vs=es.exports,mi=function(){var Ce=this,Fe=Ce.$createElement,st=Ce._self._c||Fe;return st("div",{staticClass:"vc-time-picker",class:[{"vc-disabled":Ce.isDisabled,"vc-bordered":Ce.showBorder}]},[st("div",[st("svg",{staticClass:"vc-time-icon",attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"}},[st("path",{attrs:{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}})])]),st("div",{staticClass:"vc-date-time"},[Ce.date?st("div",{staticClass:"vc-date"},[st("span",{staticClass:"vc-weekday"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"WWW"))+" ")]),st("span",{staticClass:"vc-month"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"MMM"))+" ")]),st("span",{staticClass:"vc-day"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"D"))+" ")]),st("span",{staticClass:"vc-year"},[Ce._v(" "+Ce._s(Ce.locale.format(Ce.date,"YYYY"))+" ")])]):Ce._e(),st("div",{staticClass:"vc-time"},[st("time-select",{attrs:{options:Ce.hourOptions_},model:{value:Ce.hours,callback:function(kt){Ce.hours=Ce._n(kt)},expression:"hours"}}),st("span",{staticStyle:{margin:"0 4px"}},[Ce._v(":")]),st("time-select",{attrs:{options:Ce.minuteOptions},model:{value:Ce.minutes,callback:function(kt){Ce.minutes=Ce._n(kt)},expression:"minutes"}}),Ce.is24hr?Ce._e():st("div",{staticClass:"vc-am-pm",class:{"vc-disabled":!(Ce.hours>=0)}},[st("button",{class:{active:Ce.isAM,"vc-disabled":Ce.amDisabled},attrs:{type:"button"},on:{click:function(kt){kt.preventDefault(),Ce.isAM=!0}}},[Ce._v(" AM ")]),st("button",{class:{active:!Ce.isAM,"vc-disabled":Ce.pmDisabled},attrs:{type:"button"},on:{click:function(kt){kt.preventDefault(),Ce.isAM=!1}}},[Ce._v(" PM ")])])],1)])])},Pa=[],oa=function(){var Ce=this,Fe=Ce.$createElement,st=Ce._self._c||Fe;return st("div",{staticClass:"vc-select"},[st("select",Ce._b({directives:[{name:"model",rawName:"v-model",value:Ce.model,expression:"model"}],on:{change:function(kt){var Ft=Array.prototype.filter.call(kt.target.options,function(Kt){return Kt.selected}).map(function(Kt){var ln="_value"in Kt?Kt._value:Kt.value;return ln});Ce.model=kt.target.multiple?Ft:Ft[0]}}},"select",Ce.$attrs,!1),Ce._l(Ce.options,function(kt){return st("option",{key:kt.value,attrs:{disabled:kt.disabled},domProps:{value:kt.value}},[Ce._v(" "+Ce._s(kt.label)+" ")])}),0),st("div",{staticClass:"vc-select-arrow"},[st("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}},[st("path",{attrs:{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"}})])])])},Us=[],aa={inheritAttrs:!1,props:{options:Array,value:Number},computed:{model:{get(){return this.value},set(Ce){this.$emit("input",Ce)}}}},eo=aa,Aa=(j("87a9"),cn(eo,oa,Us,!1,null,"7b2eaf0a",null)),Bo=Aa.exports;const ho=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],zo=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];var Ra={name:"TimePicker",components:{TimeSelect:Bo},props:{value:{type:Object,required:!0},locale:{type:Object,required:!0},theme:{type:Object,required:!0},is24hr:{type:Boolean,default:!0},showBorder:Boolean,isDisabled:Boolean,hourOptions:Array,minuteOptions:Array},computed:{date(){let Ce=this.locale.normalizeDate(this.value);return this.value.hours===24&&(Ce=new Date(Ce.getTime()-1)),Ce},hours:{get(){return this.value.hours},set(Ce){this.updateValue(Ce,this.minutes)}},minutes:{get(){return this.value.minutes},set(Ce){this.updateValue(this.hours,Ce)}},isAM:{get(){return this.value.hours<12},set(Ce){let Fe=this.hours;Ce&&Fe>=12?Fe-=12:!Ce&&Fe<12&&(Fe+=12),this.updateValue(Fe,this.minutes)}},amHourOptions(){var Ce=this;return ho.filter(function(Fe){return Ce.hourOptions.some(function(st){return st.value===Fe.value})})},pmHourOptions(){var Ce=this;return zo.filter(function(Fe){return Ce.hourOptions.some(function(st){return st.value===Fe.value})})},hourOptions_(){return this.is24hr?this.hourOptions:this.isAM?this.amHourOptions:this.pmHourOptions},amDisabled(){return!Object(Mt.b)(this.amHourOptions)},pmDisabled(){return!Object(Mt.b)(this.pmHourOptions)}},methods:{updateValue(Ce,Fe){Ce===this.hours&&Fe===this.minutes||this.$emit("input",{...this.value,hours:Ce,minutes:Fe,seconds:0,milliseconds:0})}}},la=Ra,ca=(j("27e3"),cn(la,mi,Pa,!1,null,"f4e11af8",null)),mo=ca.exports;const vs={type:"auto",mask:"iso",timeAdjust:""},bs=[vs,vs],ys={DATE:"date",DATE_TIME:"datetime",TIME:"time"},Li={NONE:0,START:1,END:2,BOTH:3};var _o,us,Ms={name:"DatePicker",render(Ce){var Fe=this;const st=function(){if(!Fe.dateParts)return null;const Kt=Fe.isRange?Fe.dateParts:[Fe.dateParts[0]];return Ce("div",[...Kt.map(function(ln,un){const Rn=Fe.$locale.getHourOptions(Fe.modelConfig_[un].validHours,ln),bn=Fe.$locale.getMinuteOptions(Fe.modelConfig_[un].minuteIncrement,ln);return Ce(mo,{props:{value:ln,locale:Fe.$locale,theme:Fe.$theme,is24hr:Fe.is24hr,minuteIncrement:Fe.minuteIncrement,showBorder:!Fe.isTime,isDisabled:Fe.isDateTime&&!ln.isValid||Fe.isDragging,hourOptions:Rn,minuteOptions:bn},on:{input:function(Wn){return Fe.onTimeInput(Wn,un===0)}}})}),Fe.$scopedSlots.footer&&Fe.$scopedSlots.footer()])},kt=function(){return Ce(Vs,{attrs:{...Fe.$attrs,attributes:Fe.attributes_,theme:Fe.$theme,locale:Fe.$locale},props:{minDate:Fe.minDateExact||Fe.minDate,maxDate:Fe.maxDateExact||Fe.maxDate,disabledDates:Fe.disabledDates,availableDates:Fe.availableDates},on:{...Fe.$listeners,dayclick:Fe.onDayClick,daykeydown:Fe.onDayKeydown,daymouseenter:Fe.onDayMouseEnter},scopedSlots:{...Fe.$scopedSlots,footer:Fe.isDateTime?st:Fe.$scopedSlots.footer},ref:"calendar"})},Ft=function(){return Fe.isTime?Ce("div",{class:["vc-container","vc-"+Fe.$theme.color,{"vc-is-dark":Fe.$theme.isDark}]},[st()]):kt()};return this.$scopedSlots.default&&Ce("span",[this.$scopedSlots.default(this.slotArgs),Ce(or,{props:{id:this.datePickerPopoverId,placement:"bottom-start",contentClass:"vc-container"+(this.isDark?" vc-is-dark":"")},on:{beforeShow:function(Kt){return Fe.$emit("popoverWillShow",Kt)},afterShow:function(Kt){return Fe.$emit("popoverDidShow",Kt)},beforeHide:function(Kt){return Fe.$emit("popoverWillHide",Kt)},afterHide:function(Kt){return Fe.$emit("popoverDidHide",Kt)}},scopedSlots:{default(){return Ft()}},ref:"popover"})])||Ft()},mixins:[ri],props:{mode:{type:String,default:ys.DATE},value:{type:null,required:!0},modelConfig:{type:Object,default:function(){return{}}},is24hr:Boolean,minuteIncrement:Number,isRequired:Boolean,isRange:Boolean,updateOnInput:Boolean,inputDebounce:Number,popover:{type:Object,default:function(){return{}}},dragAttribute:Object,selectAttribute:Object,attributes:Array,validHours:[Object,Array,Function]},data(){return{value_:null,dateParts:null,activeDate:"",dragValue:null,inputValues:["",""],updateTimeout:null,watchValue:!0,datePickerPopoverId:Object(Mt.c)()}},computed:{updateOnInput_(){return this.propOrDefault("updateOnInput","datePicker.updateOnInput")},inputDebounce_(){return this.propOrDefault("inputDebounce","datePicker.inputDebounce")},isDate(){return this.mode.toLowerCase()===ys.DATE},isDateTime(){return this.mode.toLowerCase()===ys.DATE_TIME},isTime(){return this.mode.toLowerCase()===ys.TIME},isDragging(){return!!this.dragValue&&this.isRange},modelConfig_(){return this.normalizeConfig(this.modelConfig,bs)},inputMask(){const Ce=this.$locale.masks;return this.isTime?this.is24hr?Ce.inputTime24hr:Ce.inputTime:this.isDateTime?this.is24hr?Ce.inputDateTime24hr:Ce.inputDateTime:this.$locale.masks.input},inputMaskHasTime(){return/[Hh]/g.test(this.inputMask)},inputMaskHasDate(){return/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(this.inputMask)},inputMaskPatch(){return this.inputMaskHasTime&&this.inputMaskHasDate?xr.a.DATE_TIME:this.inputMaskHasDate?xr.a.DATE:this.inputMaskHasTime?xr.a.TIME:void 0},slotArgs(){var Ce=this;const{isRange:Fe,isDragging:st,updateValue:kt,showPopover:Ft,hidePopover:Kt,togglePopover:ln}=this,un=Fe?{start:this.inputValues[0],end:this.inputValues[1]}:this.inputValues[0],Rn=[!0,!1].map(function(Wn){return{input:Ce.onInputInput(Wn),change:Ce.onInputChange(Wn),keyup:Ce.onInputKeyup,...vt({...Ce.popover_,id:Ce.datePickerPopoverId,callback:function(yr){yr.action==="show"&&yr.completed&&Ce.onInputShow(Wn)}})}}),bn=Fe?{start:Rn[0],end:Rn[1]}:Rn[0];return{inputValue:un,inputEvents:bn,isDragging:st,updateValue:kt,showPopover:Ft,hidePopover:Kt,togglePopover:ln,getPopoverTriggerEvents:vt}},popover_(){return this.propOrDefault("popover","datePicker.popover","merge")},selectAttribute_(){if(!this.hasValue(this.value_))return null;const Ce={key:"select-drag",...this.selectAttribute,dates:this.value_,pinPage:!0},{dot:Fe,bar:st,highlight:kt,content:Ft}=Ce;return Fe||st||kt||Ft||(Ce.highlight=!0),Ce},dragAttribute_(){if(!this.isRange||!this.hasValue(this.dragValue))return null;const Ce={key:"select-drag",...this.dragAttribute,dates:this.dragValue},{dot:Fe,bar:st,highlight:kt,content:Ft}=Ce;return Fe||st||kt||Ft||(Ce.highlight={startEnd:{fillMode:"outline"}}),Ce},attributes_(){const Ce=Object(en.h)(this.attributes)?[...this.attributes]:[];return this.dragAttribute_?Ce.push(this.dragAttribute_):this.selectAttribute_&&Ce.push(this.selectAttribute_),Ce}},watch:{inputMask(){this.formatInput()},value(Ce){this.watchValue&&this.forceUpdateValue(Ce,{config:this.modelConfig_,notify:!1,formatInput:!0,hidePopover:!1})},value_(){this.refreshDateParts()},dragValue(){this.refreshDateParts()},timezone(){this.refreshDateParts(),this.forceUpdateValue(this.value_,{formatInput:!0})}},created(){this.value_=this.normalizeValue(this.value,this.modelConfig_,xr.a.DATE_TIME,Li.BOTH),this.forceUpdateValue(this.value,{config:this.modelConfig_,formatInput:!0,hidePopover:!1}),this.refreshDateParts()},mounted(){Object(Mt.k)(document,"keydown",this.onDocumentKeyDown),Object(Mt.k)(document,"click",this.onDocumentClick)},destroyed(){Object(Mt.j)(document,"keydown",this.onDocumentKeyDown),Object(Mt.j)(document,"click",this.onDocumentClick)},methods:{getDateParts(Ce){return this.$locale.getDateParts(Ce)},getDateFromParts(Ce){return this.$locale.getDateFromParts(Ce)},refreshDateParts(){var Ce=this;const Fe=this.dragValue||this.value_,st=[];this.isRange?(Fe&&Fe.start?st.push(this.getDateParts(Fe.start)):st.push({}),Fe&&Fe.end?st.push(this.getDateParts(Fe.end)):st.push({})):Fe?Fe&&Fe.start?st.push(this.getDateParts(Fe.start)):st.push(this.getDateParts(Fe)):st.push({}),this.$nextTick(function(){return Ce.dateParts=st})},onDocumentKeyDown(Ce){this.dragValue&&Ce.key==="Escape"&&(this.dragValue=null)},onDocumentClick(Ce){document.body.contains(Ce.target)&&!Object(Mt.e)(this.$el,Ce.target)&&(this.dragValue=null,this.formatInput())},onDayClick(Ce){this.handleDayClick(Ce),this.$emit("dayclick",Ce)},onDayKeydown(Ce){switch(Ce.event.key){case" ":case"Enter":this.handleDayClick(Ce),Ce.event.preventDefault();break;case"Escape":this.hidePopover()}this.$emit("daykeydown",Ce)},handleDayClick(Ce){const{keepVisibleOnInput:Fe,visibility:st}=this.popover_,kt={patch:xr.a.DATE,adjustTime:!0,formatInput:!0,hidePopover:this.isDate&&!Fe&&st!=="visible"};this.isRange?(this.isDragging?this.dragTrackingValue.end=Ce.date:this.dragTrackingValue={...Ce.range},kt.isDragging=!this.isDragging,kt.rangePriority=kt.isDragging?Li.NONE:Li.BOTH,kt.hidePopover=kt.hidePopover&&!kt.isDragging,this.updateValue(this.dragTrackingValue,kt)):(kt.clearIfEqual=!this.isRequired,this.updateValue(Ce.date,kt))},onDayMouseEnter(Ce){this.isDragging&&(this.dragTrackingValue.end=Ce.date,this.updateValue(this.dragTrackingValue,{patch:xr.a.DATE,adjustTime:!0,formatInput:!0,hidePopover:!1,rangePriority:Li.NONE}))},onTimeInput(Ce,Fe){var st=this;let kt=null;if(this.isRange){const Ft=Fe?Ce:this.dateParts[0],Kt=Fe?this.dateParts[1]:Ce;kt={start:Ft,end:Kt}}else kt=Ce;this.updateValue(kt,{patch:xr.a.TIME,rangePriority:Fe?Li.START:Li.END}).then(function(){return st.adjustPageRange(Fe)})},onInputInput(Ce){var Fe=this;return function(st){Fe.updateOnInput_&&Fe.onInputUpdate(st.target.value,Ce,{formatInput:!1,hidePopover:!1,debounce:Fe.inputDebounce_})}},onInputChange(Ce){var Fe=this;return function(st){Fe.onInputUpdate(st.target.value,Ce,{formatInput:!0,hidePopover:!1})}},onInputUpdate(Ce,Fe,st){var kt=this;this.inputValues.splice(Fe?0:1,1,Ce);const Ft=this.isRange?{start:this.inputValues[0],end:this.inputValues[1]||this.inputValues[0]}:Ce,Kt={type:"string",mask:this.inputMask};this.updateValue(Ft,{...st,config:Kt,patch:this.inputMaskPatch,rangePriority:Fe?Li.START:Li.END}).then(function(){return kt.adjustPageRange(Fe)})},onInputShow(Ce){this.adjustPageRange(Ce)},onInputKeyup(Ce){Ce.key==="Escape"&&this.updateValue(this.value_,{formatInput:!0,hidePopover:!0})},normalizeConfig(Ce,Fe=this.modelConfig_){var st=this;return Ce=Object(en.h)(Ce)?Ce:[Ce.start||Ce,Ce.end||Ce],Fe.map(function(kt,Ft){return{validHours:st.validHours,minuteIncrement:st.minuteIncrement,...kt,...Ce[Ft]}})},updateValue(Ce,Fe={}){var st=this;return clearTimeout(this.updateTimeout),new Promise(function(kt){const{debounce:Ft,...Kt}=Fe;Ft>0?st.updateTimeout=setTimeout(function(){st.forceUpdateValue(Ce,Kt),kt(st.value_)},Ft):(st.forceUpdateValue(Ce,Kt),kt(st.value_))})},forceUpdateValue(Ce,{config:Fe=this.modelConfig_,patch:st=xr.a.DATE_TIME,clearIfEqual:kt=!1,formatInput:Ft=!0,hidePopover:Kt=!1,isDragging:ln=this.isDragging,rangePriority:un=Li.BOTH}={}){var Rn=this;Fe=this.normalizeConfig(Fe);let bn=this.normalizeValue(Ce,Fe,st,un);!bn&&this.isRequired&&(bn=this.value_),bn=this.adjustTimeForValue(bn,Fe);const Wn=this.valueIsDisabled(bn);if(Wn){if(ln)return;bn=this.value_,Kt=!1}const yr=ln?"dragValue":"value_";let wr=!this.valuesAreEqual(this[yr],bn);if(Wn||wr||!kt||(bn=null,wr=!0),wr){this.$set(this,yr,bn),ln||(this.dragValue=null);const Wr=this.denormalizeValue(bn),Zr=this.isDragging?"drag":"input";this.watchValue=!1,this.$emit(Zr,Wr),this.$nextTick(function(){return Rn.watchValue=!0})}Kt&&this.hidePopover(),Ft&&this.formatInput()},hasValue(Ce){return this.isRange?Object(en.m)(Ce)&&!!Ce.start&&!!Ce.end:!!Ce},normalizeValue(Ce,Fe,st,kt){if(!this.hasValue(Ce))return null;if(this.isRange){const Ft={},Kt=Ce.start>Ce.end?Ce.end:Ce.start;Ft.start=this.normalizeDate(Kt,{...Fe[0],fillDate:this.value_&&this.value_.start||Fe[0].fillDate,patch:st});const ln=Ce.start>Ce.end?Ce.start:Ce.end;return Ft.end=this.normalizeDate(ln,{...Fe[1],fillDate:this.value_&&this.value_.end||Fe[1].fillDate,patch:st}),this.sortRange(Ft,kt)}return this.normalizeDate(Ce,{...Fe[0],fillDate:this.value_||Fe[0].fillDate,patch:st})},adjustTimeForValue(Ce,Fe){return this.hasValue(Ce)?this.isRange?{start:this.$locale.adjustTimeForDate(Ce.start,Fe[0]),end:this.$locale.adjustTimeForDate(Ce.end,Fe[1])}:this.$locale.adjustTimeForDate(Ce,Fe[0]):null},sortRange(Ce,Fe=Li.NONE){const{start:st,end:kt}=Ce;if(st>kt)switch(Fe){case Li.START:return{start:st,end:st};case Li.END:return{start:kt,end:kt};case Li.BOTH:return{start:kt,end:st}}return{start:st,end:kt}},denormalizeValue(Ce,Fe=this.modelConfig_){return this.isRange?this.hasValue(Ce)?{start:this.$locale.denormalizeDate(Ce.start,Fe[0]),end:this.$locale.denormalizeDate(Ce.end,Fe[1])}:null:this.$locale.denormalizeDate(Ce,Fe[0])},valuesAreEqual(Ce,Fe){if(this.isRange){const st=this.hasValue(Ce),kt=this.hasValue(Fe);return!st&&!kt||st===kt&&Object(Mt.d)(Ce.start,Fe.start)&&Object(Mt.d)(Ce.end,Fe.end)}return Object(Mt.d)(Ce,Fe)},valueIsDisabled(Ce){return this.hasValue(Ce)&&this.disabledAttribute&&this.disabledAttribute.intersectsDate(Ce)},formatInput(){var Ce=this;this.$nextTick(function(){const Fe=Ce.normalizeConfig({type:"string",mask:Ce.inputMask}),st=Ce.denormalizeValue(Ce.dragValue||Ce.value_,Fe);Ce.isRange?Ce.inputValues=[st&&st.start,st&&st.end]:Ce.inputValues=[st,""]})},showPopover(Ce={}){Re({ref:this.$el,...this.popover_,...Ce,isInteractive:!0,id:this.datePickerPopoverId})},hidePopover(Ce={}){je({hideDelay:10,...this.popover_,...Ce,id:this.datePickerPopoverId})},togglePopover(Ce){qe({ref:this.$el,...this.popover_,...Ce,isInteractive:!0,id:this.datePickerPopoverId})},adjustPageRange(Ce){var Fe=this;this.$nextTick(function(){const st=Fe.$refs.calendar,kt=Fe.getPageForValue(Ce),Ft=Ce?1:-1;kt&&st&&!Object(Mt.p)(kt,st.firstPage,st.lastPage)&&st.move(kt,{position:Ft,transition:"fade"})})},getPageForValue(Ce){return this.hasValue(this.value_)?this.pageForDate(this.isRange?this.value_[Ce?"start":"end"]:this.value_):null},move(Ce,Fe){return this.$refs.calendar?this.$refs.calendar.move(Ce,Fe):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))},focusDate(Ce,Fe){return this.$refs.calendar?this.$refs.calendar.focusDate(Ce,Fe):Promise.reject(new Error("Navigation disabled while calendar is not yet displayed"))}}},jo=Ms,Da=cn(jo,_o,us,!1,null,null,null),ua=Da.exports},"2b10":function(N,B){function j(U,q,Y){var K=-1,G=U.length;q<0&&(q=-q>G?0:G+q),Y=Y>G?G:Y,Y<0&&(Y+=G),G=q>Y?0:Y-q>>>0,q>>>=0;for(var J=Array(G);++K<G;)J[K]=U[K+q];return J}N.exports=j},"2b3e":function(N,B,j){var U=j("585a"),q=typeof self=="object"&&self&&self.Object===Object&&self,Y=U||q||Function("return this")();N.exports=Y},"2d00":function(N,B,j){var U,q,Y=j("da84"),K=j("342f"),G=Y.process,J=G&&G.versions,Z=J&&J.v8;Z?(U=Z.split("."),q=U[0]<4?1:U[0]+U[1]):K&&(U=K.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=K.match(/Chrome\/(\d+)/),U&&(q=U[1]))),N.exports=q&&+q},"2d7c":function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length,G=0,J=[];++Y<K;){var Z=U[Y];q(Z,Y,U)&&(J[G++]=Z)}return J}N.exports=j},"2dcb":function(N,B,j){var U=j("91e9"),q=U(Object.getPrototypeOf,Object);N.exports=q},"2ec1":function(N,B,j){var U=j("100e"),q=j("9aff");function Y(K){return U(function(G,J){var Z=-1,ee=J.length,te=ee>1?J[ee-1]:void 0,se=ee>2?J[2]:void 0;for(te=K.length>3&&typeof te=="function"?(ee--,te):void 0,se&&q(J[0],J[1],se)&&(te=ee<3?void 0:te,ee=1),G=Object(G);++Z<ee;){var re=J[Z];re&&K(G,re,Z,te)}return G})}N.exports=Y},"2fa3":function(N,B,j){j.d(B,"m",function(){return q}),j.d(B,"f",function(){return Y}),j.d(B,"h",function(){return K}),j.d(B,"r",function(){return G}),j.d(B,"o",function(){return J}),j.d(B,"n",function(){return Z}),j.d(B,"p",function(){return ee}),j.d(B,"q",function(){return te}),j.d(B,"a",function(){return se}),j.d(B,"s",function(){return re}),j.d(B,"d",function(){return ne}),j.d(B,"b",function(){return ce}),j.d(B,"i",function(){return me}),j.d(B,"k",function(){return ue}),j.d(B,"j",function(){return _e}),j.d(B,"e",function(){return fe}),j.d(B,"l",function(){return ge}),j.d(B,"c",function(){return ye}),j.d(B,"g",function(){return xe}),j("ddb0");var U=j("9404");const q=function(le,be,ve="0"){for(le=le!=null?String(le):"",be=be||2;le.length<be;)le=`${ve}${le}`;return le},Y=function(le,be){return Object(U.k)(le)?le(be):le},K=function(...le){const be={};return le.forEach(function(ve){return Object.entries(ve).forEach(function([we,Ae]){be[we]?Object(U.h)(be[we])?be[we].push(Ae):be[we]=[be[we],Ae]:be[we]=Ae})}),be},G=function(le){return!!(le&&le.month&&le.year)},J=function(le,be){return!(!G(le)||!G(be))&&(le.year===be.year?le.month<be.month:le.year<be.year)},Z=function(le,be){return!(!G(le)||!G(be))&&(le.year===be.year?le.month>be.month:le.year>be.year)},ee=function(le,be,ve){return!!le&&!J(le,be)&&!Z(le,ve)},te=function(le,be){return!(!le&&be)&&!(le&&!be)&&(!le&&!be||le.month===be.month&&le.year===be.year)},se=function({month:le,year:be},ve){const we=ve>0?1:-1;for(let Ae=0;Ae<Math.abs(ve);Ae++)le+=we,le>12?(le=1,be++):le<1&&(le=12,be--);return{month:le,year:be}},re=function(le,be){if(!G(le)||!G(be))return[];const ve=[];for(;!Z(le,be);)ve.push(le),le=se(le,1);return ve};function ne(le,be){const ve=Object(U.j)(le),we=Object(U.j)(be);return!ve&&!we||ve===we&&le.getTime()===be.getTime()}const ce=function(le){return Object(U.h)(le)&&le.length},me=function(le,be,ve){const we=[];return ve.forEach(function(Ae){const Se=Ae.name||Ae.toString(),Pe=Ae.mixin,Me=Ae.validate;if(Object.prototype.hasOwnProperty.call(le,Se)){const Be=Me?Me(le[Se]):le[Se];be[Se]=Pe&&Object(U.m)(Be)?{...Pe,...Be}:Be,we.push(Se)}}),{target:be,assigned:we.length?we:null}},ue=function(le,be,ve,we){le&&be&&ve&&le.addEventListener(be,ve,we)},_e=function(le,be,ve,we){le&&be&&le.removeEventListener(be,ve,we)},fe=function(le,be){return!!le&&!!be&&(le===be||le.contains(be))},ge=function(le,be){le.key!==" "&&le.key!=="Enter"||(be(le),le.preventDefault())},ye=function(){function le(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return`${le()+le()}-${le()}-${le()}-${le()}-${le()}${le()}${le()}`};function xe(le){let be,ve=0,we=0;if(le.length===0)return ve;for(we=0;we<le.length;we++)be=le.charCodeAt(we),ve=(ve<<5)-ve+be,ve|=0;return ve}},"2fcc":function(N,B){function j(U){var q=this.__data__,Y=q.delete(U);return this.size=q.size,Y}N.exports=j},3092:function(N,B,j){var U=j("4284"),q=j("badf"),Y=j("361d"),K=j("6747"),G=j("9aff");function J(Z,ee,te){var se=K(Z)?U:Y;return te&&G(Z,ee,te)&&(ee=void 0),se(Z,q(ee,3))}N.exports=J},"30c9":function(N,B,j){var U=j("9520"),q=j("b218");function Y(K){return K!=null&&q(K.length)&&!U(K)}N.exports=Y},"32b3":function(N,B,j){var U=j("872a"),q=j("9638"),Y=Object.prototype,K=Y.hasOwnProperty;function G(J,Z,ee){var te=J[Z];K.call(J,Z)&&q(te,ee)&&(ee!==void 0||Z in J)||U(J,Z,ee)}N.exports=G},"32f4":function(N,B,j){var U=j("2d7c"),q=j("d327"),Y=Object.prototype,K=Y.propertyIsEnumerable,G=Object.getOwnPropertySymbols,J=G?function(Z){return Z==null?[]:(Z=Object(Z),U(G(Z),function(ee){return K.call(Z,ee)}))}:q;N.exports=J},"342f":function(N,B,j){var U=j("d066");N.exports=U("navigator","userAgent")||""},"34ac":function(N,B,j){var U=j("9520"),q=j("1368"),Y=j("1a8c"),K=j("dc57"),G=/[\\^$.*+?()[\]{}|]/g,J=/^\[object .+?Constructor\]$/,Z=Function.prototype,ee=Object.prototype,te=Z.toString,se=ee.hasOwnProperty,re=RegExp("^"+te.call(se).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ne(ce){if(!Y(ce)||q(ce))return!1;var me=U(ce)?re:J;return me.test(K(ce))}N.exports=ne},"34e9":function(N,B,j){(function(U){j("ddb0");var q=j("2af9"),Y=j("ed08");function K(Z,ee){if(K.installed)return;K.installed=!0;const te=Y.setupCalendar(ee);Object.entries(q).forEach(function([se,re]){Z.component(`${te.componentPrefix}${se}`,re)})}j.d(B,"c",function(){return q.Calendar}),j.d(B,"d",function(){return q.CalendarNav}),j.d(B,"f",function(){return q.DatePicker}),j.d(B,"h",function(){return q.Popover}),j.d(B,"a",function(){return Y.Attribute}),j.d(B,"b",function(){return Y.AttributeStore}),j.d(B,"e",function(){return Y.DateInfo}),j.d(B,"g",function(){return Y.Locale}),j.d(B,"i",function(){return Y.addHorizontalSwipeHandler}),j.d(B,"j",function(){return Y.addPages}),j.d(B,"k",function(){return Y.arrayHasItems}),j.d(B,"l",function(){return Y.createGuid}),j.d(B,"m",function(){return Y.datesAreEqual}),j.d(B,"o",function(){return Y.elementContains}),j.d(B,"p",function(){return Y.evalFn}),j.d(B,"q",function(){return Y.hash}),j.d(B,"r",function(){return Y.mergeEvents}),j.d(B,"s",function(){return Y.mixinOptionalProps}),j.d(B,"t",function(){return Y.off}),j.d(B,"u",function(){return Y.on}),j.d(B,"v",function(){return Y.onSpaceOrEnter}),j.d(B,"w",function(){return Y.pad}),j.d(B,"x",function(){return Y.pageIsAfterPage}),j.d(B,"y",function(){return Y.pageIsBeforePage}),j.d(B,"z",function(){return Y.pageIsBetweenPages}),j.d(B,"A",function(){return Y.pageIsEqualToPage}),j.d(B,"B",function(){return Y.pageIsValid}),j.d(B,"C",function(){return Y.pageRangeToArray}),j.d(B,"D",function(){return Y.setupCalendar});const G={install:K,...q,...Y};let J=null;typeof window<"u"?J=window.Vue:typeof U<"u"&&(J=U.Vue),J&&J.use(G),B.n=G}).call(this,j("c8ba"))},"361d":function(N,B,j){var U=j("48a0");function q(Y,K){var G;return U(Y,function(J,Z,ee){return G=K(J,Z,ee),!G}),!!G}N.exports=q},3698:function(N,B){function j(U,q){return U==null?void 0:U[q]}N.exports=j},3729:function(N,B,j){var U=j("9e69"),q=j("00fd"),Y=j("29f3"),K="[object Null]",G="[object Undefined]",J=U?U.toStringTag:void 0;function Z(ee){return ee==null?ee===void 0?G:K:J&&J in Object(ee)?q(ee):Y(ee)}N.exports=Z},"37e8":function(N,B,j){var U=j("83ab"),q=j("9bf2"),Y=j("825a"),K=j("df75");N.exports=U?Object.defineProperties:function(G,J){Y(G);for(var Z,ee=K(J),te=ee.length,se=0;te>se;)q.f(G,Z=ee[se++],J[Z]);return G}},3818:function(N,B,j){var U=j("7e64"),q=j("8057"),Y=j("32b3"),K=j("5b01"),G=j("0f0f"),J=j("e538"),Z=j("4359"),ee=j("54eb"),te=j("1041"),se=j("a994"),re=j("1bac"),ne=j("42a2"),ce=j("c87c"),me=j("c2b6"),ue=j("fa21"),_e=j("6747"),fe=j("0d24"),ge=j("cc45"),ye=j("1a8c"),xe=j("d7ee"),le=j("ec69"),be=j("9934"),ve=1,we=2,Ae=4,Se="[object Arguments]",Pe="[object Array]",Me="[object Boolean]",Be="[object Date]",ze="[object Error]",Ze="[object Function]",ft="[object GeneratorFunction]",Ye="[object Map]",Ve="[object Number]",Dt="[object Object]",Nt="[object RegExp]",Vt="[object Set]",Wt="[object String]",Gt="[object Symbol]",tn="[object WeakMap]",Qt="[object ArrayBuffer]",En="[object DataView]",kn="[object Float32Array]",Gn="[object Float64Array]",An="[object Int8Array]",jn="[object Int16Array]",Mn="[object Int32Array]",Ln="[object Uint8Array]",Et="[object Uint8ClampedArray]",We="[object Uint16Array]",xt="[object Uint32Array]",Ue={};function Oe(ke,$e,Ge,rt,ut,ct){var it,ot=$e&ve,Ot=$e&we,dn=$e&Ae;if(Ge&&(it=ut?Ge(ke,rt,ut,ct):Ge(ke)),it!==void 0)return it;if(!ye(ke))return ke;var Fn=_e(ke);if(Fn){if(it=ce(ke),!ot)return Z(ke,it)}else{var Zt=ne(ke),vn=Zt==Ze||Zt==ft;if(fe(ke))return J(ke,ot);if(Zt==Dt||Zt==Se||vn&&!ut){if(it=Ot||vn?{}:ue(ke),!ot)return Ot?te(ke,G(it,ke)):ee(ke,K(it,ke))}else{if(!Ue[Zt])return ut?ke:{};it=me(ke,Zt,ot)}}ct||(ct=new U);var lt=ct.get(ke);if(lt)return lt;ct.set(ke,it),xe(ke)?ke.forEach(function(qt){it.add(Oe(qt,$e,Ge,qt,ke,ct))}):ge(ke)&&ke.forEach(function(qt,Ht){it.set(Ht,Oe(qt,$e,Ge,Ht,ke,ct))});var pt=dn?Ot?re:se:Ot?be:le,Pt=Fn?void 0:pt(ke);return q(Pt||ke,function(qt,Ht){Pt&&(Ht=qt,qt=ke[Ht]),Y(it,Ht,Oe(qt,$e,Ge,Ht,ke,ct))}),it}Ue[Se]=Ue[Pe]=Ue[Qt]=Ue[En]=Ue[Me]=Ue[Be]=Ue[kn]=Ue[Gn]=Ue[An]=Ue[jn]=Ue[Mn]=Ue[Ye]=Ue[Ve]=Ue[Dt]=Ue[Nt]=Ue[Vt]=Ue[Wt]=Ue[Gt]=Ue[Ln]=Ue[Et]=Ue[We]=Ue[xt]=!0,Ue[ze]=Ue[Ze]=Ue[tn]=!1,N.exports=Oe},3852:function(N,B,j){var U=j("96f3"),q=j("e2c0");function Y(K,G){return K!=null&&q(K,G,U)}N.exports=Y},"39ff":function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"WeakMap");N.exports=Y},"3b4a":function(N,B,j){var U=j("0b07"),q=function(){try{var Y=U(Object,"defineProperty");return Y({},"",{}),Y}catch{}}();N.exports=q},"3bb4":function(N,B,j){var U=j("08cc"),q=j("ec69");function Y(K){for(var G=q(K),J=G.length;J--;){var Z=G[J],ee=K[Z];G[J]=[Z,ee,U(ee)]}return G}N.exports=Y},"3bbe":function(N,B,j){var U=j("861d");N.exports=function(q){if(!U(q)&&q!==null)throw TypeError("Can't set "+String(q)+" as a prototype");return q}},"3c55":function(N,B,j){var U=j("e969"),q=j.n(U);q.a},"3db9":function(N,B,j){var U=j("adc8");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("2b7f9a9d",U,!0,{sourceMap:!1,shadowMode:!1})},"3ee2":function(N,B,j){var U=j("dc8c");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("13d41af5",U,!0,{sourceMap:!1,shadowMode:!1})},"3eea":function(N,B,j){var U=j("7948"),q=j("3818"),Y=j("4bb5"),K=j("e2e4"),G=j("8eeb"),J=j("e0e7"),Z=j("c6cf"),ee=j("1bac"),te=1,se=2,re=4,ne=Z(function(ce,me){var ue={};if(ce==null)return ue;var _e=!1;me=U(me,function(ge){return ge=K(ge,ce),_e||(_e=ge.length>1),ge}),G(ce,ee(ce),ue),_e&&(ue=q(ue,te|se|re,J));for(var fe=me.length;fe--;)Y(ue,me[fe]);return ue});N.exports=ne},"3f84":function(N,B,j){var U=j("85e3"),q=j("100e"),Y=j("e031"),K=j("2411"),G=q(function(J){return J.push(void 0,Y),U(K,void 0,J)});N.exports=G},"3f8c":function(N,B){N.exports={}},"41c3":function(N,B,j){var U=j("1a8c"),q=j("eac5"),Y=j("ec8c"),K=Object.prototype,G=K.hasOwnProperty;function J(Z){if(!U(Z))return Y(Z);var ee=q(Z),te=[];for(var se in Z)(se!="constructor"||!ee&&G.call(Z,se))&&te.push(se);return te}N.exports=J},4245:function(N,B,j){var U=j("1290");function q(Y,K){var G=Y.__data__;return U(K)?G[typeof K=="string"?"string":"hash"]:G.map}N.exports=q},4284:function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length;++Y<K;)if(q(U[Y],Y,U))return!0;return!1}N.exports=j},"428f":function(N,B,j){var U=j("da84");N.exports=U},"42a2":function(N,B,j){var U=j("b5a7"),q=j("79bc"),Y=j("1cec"),K=j("c869"),G=j("39ff"),J=j("3729"),Z=j("dc57"),ee="[object Map]",te="[object Object]",se="[object Promise]",re="[object Set]",ne="[object WeakMap]",ce="[object DataView]",me=Z(U),ue=Z(q),_e=Z(Y),fe=Z(K),ge=Z(G),ye=J;(U&&ye(new U(new ArrayBuffer(1)))!=ce||q&&ye(new q)!=ee||Y&&ye(Y.resolve())!=se||K&&ye(new K)!=re||G&&ye(new G)!=ne)&&(ye=function(xe){var le=J(xe),be=le==te?xe.constructor:void 0,ve=be?Z(be):"";if(ve)switch(ve){case me:return ce;case ue:return ee;case _e:return se;case fe:return re;case ge:return ne}return le}),N.exports=ye},4359:function(N,B){function j(U,q){var Y=-1,K=U.length;for(q||(q=Array(K));++Y<K;)q[Y]=U[Y];return q}N.exports=j},4416:function(N,B){function j(U){var q=U==null?0:U.length;return q?U[q-1]:void 0}N.exports=j},"44ad":function(N,B,j){var U=j("d039"),q=j("c6b6"),Y="".split;N.exports=U(function(){return!Object("z").propertyIsEnumerable(0)})?function(K){return q(K)=="String"?Y.call(K,""):Object(K)}:Object},"44d2":function(N,B,j){var U=j("b622"),q=j("7c73"),Y=j("9bf2"),K=U("unscopables"),G=Array.prototype;G[K]==null&&Y.f(G,K,{configurable:!0,value:q(null)}),N.exports=function(J){G[K][J]=!0}},4889:function(N,B,j){var U=j("df9e"),q=j.n(U);q.a},"48a0":function(N,B,j){var U=j("242e"),q=j("950a"),Y=q(U);N.exports=Y},4930:function(N,B,j){var U=j("2d00"),q=j("d039");N.exports=!!Object.getOwnPropertySymbols&&!q(function(){var Y=Symbol();return!String(Y)||!(Object(Y)instanceof Symbol)||!Symbol.sham&&U&&U<41})},"495a":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-pane[data-v-74ad501d]{min-width:250px}.vc-header[data-v-74ad501d]{display:flex;justify-content:center;align-items:center;padding:10px 18px 0 18px}.vc-header.align-left[data-v-74ad501d]{justify-content:flex-start}.vc-header.align-right[data-v-74ad501d]{justify-content:flex-end}.vc-title[data-v-74ad501d]{font-size:var(--text-lg);color:var(--gray-800);font-weight:var(--font-semibold);line-height:28px;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.vc-title[data-v-74ad501d]:hover{opacity:.75}.vc-weeknumber[data-v-74ad501d]{position:relative}.vc-weeknumber[data-v-74ad501d],.vc-weeknumber-content[data-v-74ad501d]{display:flex;justify-content:center;align-items:center}.vc-weeknumber-content[data-v-74ad501d]{font-size:var(--text-xs);font-weight:var(--font-medium);font-style:italic;width:28px;height:28px;margin-top:2px;color:var(--gray-500);-webkit-user-select:none;user-select:none}.vc-weeknumber-content.is-left-outside[data-v-74ad501d]{position:absolute;left:var(--weeknumber-offset)}.vc-weeknumber-content.is-right-outside[data-v-74ad501d]{position:absolute;right:var(--weeknumber-offset)}.vc-weeks[data-v-74ad501d]{display:grid;grid-template-columns:repeat(7,1fr);position:relative;-webkit-overflow-scrolling:touch;padding:5px;min-width:250px}.vc-weeks.vc-show-weeknumbers[data-v-74ad501d]{grid-template-columns:auto repeat(7,1fr)}.vc-weeks.vc-show-weeknumbers.is-right[data-v-74ad501d]{grid-template-columns:repeat(7,1fr) auto}.vc-weekday[data-v-74ad501d]{text-align:center;color:var(--gray-500);font-size:var(--text-sm);font-weight:var(--font-bold);line-height:14px;padding-top:4px;padding-bottom:8px;cursor:default;-webkit-user-select:none;user-select:none}.vc-is-dark .vc-header[data-v-74ad501d]{color:var(--gray-200)}.vc-is-dark .vc-title[data-v-74ad501d]{color:var(--gray-100)}.vc-is-dark .vc-weekday[data-v-74ad501d]{color:var(--accent-200)}",""]),N.exports=B},"499e":function(N,B,j){function U(ye,xe){for(var le=[],be={},ve=0;ve<xe.length;ve++){var we=xe[ve],Ae=we[0],Se=we[1],Pe=we[2],Me=we[3],Be={id:ye+":"+ve,css:Se,media:Pe,sourceMap:Me};be[Ae]?be[Ae].parts.push(Be):le.push(be[Ae]={id:Ae,parts:[Be]})}return le}j.r(B),j.d(B,"default",function(){return ne});var q=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!q)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var Y={},K=q&&(document.head||document.getElementsByTagName("head")[0]),G=null,J=0,Z=!1,ee=function(){},te=null,se="data-vue-ssr-id",re=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function ne(ye,xe,le,be){Z=le,te=be||{};var ve=U(ye,xe);return ce(ve),function(we){for(var Ae=[],Se=0;Se<ve.length;Se++){var Pe=ve[Se],Me=Y[Pe.id];Me.refs--,Ae.push(Me)}for(we?(ve=U(ye,we),ce(ve)):ve=[],Se=0;Se<Ae.length;Se++)if(Me=Ae[Se],Me.refs===0){for(var Be=0;Be<Me.parts.length;Be++)Me.parts[Be]();delete Y[Me.id]}}}function ce(ye){for(var xe=0;xe<ye.length;xe++){var le=ye[xe],be=Y[le.id];if(be){be.refs++;for(var ve=0;ve<be.parts.length;ve++)be.parts[ve](le.parts[ve]);for(;ve<le.parts.length;ve++)be.parts.push(ue(le.parts[ve]));be.parts.length>le.parts.length&&(be.parts.length=le.parts.length)}else{var we=[];for(ve=0;ve<le.parts.length;ve++)we.push(ue(le.parts[ve]));Y[le.id]={id:le.id,refs:1,parts:we}}}}function me(){var ye=document.createElement("style");return ye.type="text/css",K.appendChild(ye),ye}function ue(ye){var xe,le,be=document.querySelector("style["+se+'~="'+ye.id+'"]');if(be){if(Z)return ee;be.parentNode.removeChild(be)}if(re){var ve=J++;be=G||(G=me()),xe=fe.bind(null,be,ve,!1),le=fe.bind(null,be,ve,!0)}else be=me(),xe=ge.bind(null,be),le=function(){be.parentNode.removeChild(be)};return xe(ye),function(we){if(we){if(we.css===ye.css&&we.media===ye.media&&we.sourceMap===ye.sourceMap)return;xe(ye=we)}else le()}}var _e=function(){var ye=[];return function(xe,le){return ye[xe]=le,ye.filter(Boolean).join(` `)}}();function fe(ye,xe,le,be){var ve=le?"":be.css;if(ye.styleSheet)ye.styleSheet.cssText=_e(xe,ve);else{var we=document.createTextNode(ve),Ae=ye.childNodes;Ae[xe]&&ye.removeChild(Ae[xe]),Ae.length?ye.insertBefore(we,Ae[xe]):ye.appendChild(we)}}function ge(ye,xe){var le=xe.css,be=xe.media,ve=xe.sourceMap;if(be&&ye.setAttribute("media",be),te.ssrId&&ye.setAttribute(se,xe.id),ve&&(le+=` /*# sourceURL=`+ve.sources[0]+" */",le+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(ve))))+" */"),ye.styleSheet)ye.styleSheet.cssText=le;else{for(;ye.firstChild;)ye.removeChild(ye.firstChild);ye.appendChild(document.createTextNode(le))}}},"49f4":function(N,B,j){var U=j("6044");function q(){this.__data__=U?U(null):{},this.size=0}N.exports=q},"4bb5":function(N,B,j){var U=j("e2e4"),q=j("4416"),Y=j("8296"),K=j("f4d6");function G(J,Z){return Z=U(Z,J),J=Y(J,Z),J==null||delete J[K(q(Z))]}N.exports=G},"4cef":function(N,B){var j=/\s/;function U(q){for(var Y=q.length;Y--&&j.test(q.charAt(Y)););return Y}N.exports=U},"4cfe":function(N,B){function j(U){return U===void 0}N.exports=j},"4d64":function(N,B,j){var U=j("fc6a"),q=j("50c4"),Y=j("23cb"),K=function(G){return function(J,Z,ee){var te,se=U(J),re=q(se.length),ne=Y(ee,re);if(G&&Z!=Z){for(;re>ne;)if(te=se[ne++],te!=te)return!0}else for(;re>ne;ne++)if((G||ne in se)&&se[ne]===Z)return G||ne||0;return!G&&-1}};N.exports={includes:K(!0),indexOf:K(!1)}},"4d8c":function(N,B,j){var U=j("5c69");function q(Y){var K=Y==null?0:Y.length;return K?U(Y,1):[]}N.exports=q},"4f50":function(N,B,j){var U=j("b760"),q=j("e538"),Y=j("c8fe"),K=j("4359"),G=j("fa21"),J=j("d370"),Z=j("6747"),ee=j("dcbe"),te=j("0d24"),se=j("9520"),re=j("1a8c"),ne=j("60ed"),ce=j("73ac"),me=j("8adb"),ue=j("8de2");function _e(fe,ge,ye,xe,le,be,ve){var we=me(fe,ye),Ae=me(ge,ye),Se=ve.get(Ae);if(Se)U(fe,ye,Se);else{var Pe=be?be(we,Ae,ye+"",fe,ge,ve):void 0,Me=Pe===void 0;if(Me){var Be=Z(Ae),ze=!Be&&te(Ae),Ze=!Be&&!ze&&ce(Ae);Pe=Ae,Be||ze||Ze?Z(we)?Pe=we:ee(we)?Pe=K(we):ze?(Me=!1,Pe=q(Ae,!0)):Ze?(Me=!1,Pe=Y(Ae,!0)):Pe=[]:ne(Ae)||J(Ae)?(Pe=we,J(we)?Pe=ue(we):re(we)&&!se(we)||(Pe=G(Ae))):Me=!1}Me&&(ve.set(Ae,Pe),le(Pe,Ae,xe,be,ve),ve.delete(Ae)),U(fe,ye,Pe)}}N.exports=_e},"501e":function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Number]";function K(G){return typeof G=="number"||q(G)&&U(G)==Y}N.exports=K},"50c4":function(N,B,j){var U=j("a691"),q=Math.min;N.exports=function(Y){return Y>0?q(U(Y),9007199254740991):0}},"50d8":function(N,B){function j(U,q){for(var Y=-1,K=Array(U);++Y<U;)K[Y]=q(Y);return K}N.exports=j},5135:function(N,B,j){var U=j("7b0b"),q={}.hasOwnProperty;N.exports=Object.hasOwn||function(Y,K){return q.call(U(Y),K)}},"51ec":function(N,B,j){j.d(B,"b",function(){return se}),j.d(B,"a",function(){return re});var U=j("8bbf"),q=j.n(U),Y=j("9404"),K=j("23a5"),G=j("7efe"),J=j("85a9"),Z=j("f15d");const ee={componentPrefix:"v",navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:K,masks:G,screens:J,locales:Z.a,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",keepVisibleOnInput:!1,isInteractive:!0}}};let te=null;const se=function(ne){return te||(te=new q.a({data(){return{defaults:Object(Y.c)(ne,ee)}},computed:{locales(){var ce=this;return Object(Y.r)(this.defaults.locales,function(me){return me.masks=Object(Y.c)(me.masks,ce.defaults.masks),me})}}})),te.defaults},re={beforeCreate(){se()},computed:{$defaults(){return te.defaults},$locales(){return te.locales}},methods:{propOrDefault(ne,ce,me){return this.passedProp(ne,Object(Y.d)(this.$defaults,ce),me)},passedProp(ne,ce,me){if(Object(Y.e)(this.$options.propsData,ne)){const ue=this[ne];return Object(Y.m)(ue)&&me==="merge"?Object(Y.c)(ue,ce):ue}return ce}}}},5319:function(N,B,j){var U=j("d784"),q=j("d039"),Y=j("825a"),K=j("50c4"),G=j("a691"),J=j("1d80"),Z=j("8aa5"),ee=j("0cb2"),te=j("14c3"),se=j("b622"),re=se("replace"),ne=Math.max,ce=Math.min,me=function(ge){return ge===void 0?ge:String(ge)},ue=function(){return"a".replace(/./,"$0")==="$0"}(),_e=function(){return!!/./[re]&&/./[re]("a","$0")===""}(),fe=!q(function(){var ge=/./;return ge.exec=function(){var ye=[];return ye.groups={a:"7"},ye},"".replace(ge,"$<a>")!=="7"});U("replace",function(ge,ye,xe){var le=_e?"$":"$0";return[function(be,ve){var we=J(this),Ae=be==null?void 0:be[re];return Ae!==void 0?Ae.call(be,we,ve):ye.call(String(we),be,ve)},function(be,ve){if(typeof ve=="string"&&ve.indexOf(le)===-1&&ve.indexOf("$<")===-1){var we=xe(ye,this,be,ve);if(we.done)return we.value}var Ae=Y(this),Se=String(be),Pe=typeof ve=="function";Pe||(ve=String(ve));var Me=Ae.global;if(Me){var Be=Ae.unicode;Ae.lastIndex=0}for(var ze=[];;){var Ze=te(Ae,Se);if(Ze===null||(ze.push(Ze),!Me))break;var ft=String(Ze[0]);ft===""&&(Ae.lastIndex=Z(Se,K(Ae.lastIndex),Be))}for(var Ye="",Ve=0,Dt=0;Dt<ze.length;Dt++){Ze=ze[Dt];for(var Nt=String(Ze[0]),Vt=ne(ce(G(Ze.index),Se.length),0),Wt=[],Gt=1;Gt<Ze.length;Gt++)Wt.push(me(Ze[Gt]));var tn=Ze.groups;if(Pe){var Qt=[Nt].concat(Wt,Vt,Se);tn!==void 0&&Qt.push(tn);var En=String(ve.apply(void 0,Qt))}else En=ee(Nt,Se,Vt,Wt,tn,ve);Vt>=Ve&&(Ye+=Se.slice(Ve,Vt)+En,Ve=Vt+Nt.length)}return Ye+Se.slice(Ve)}]},!fe||!ue||_e)},"53b1":function(N,B,j){var U=j("495a");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("2a6e04f4",U,!0,{sourceMap:!1,shadowMode:!1})},"54eb":function(N,B,j){var U=j("8eeb"),q=j("32f4");function Y(K,G){return U(K,q(K),G)}N.exports=Y},"55a3":function(N,B){function j(U){return this.__data__.has(U)}N.exports=j},5692:function(N,B,j){var U=j("c430"),q=j("c6cd");(N.exports=function(Y,K){return q[Y]||(q[Y]=K!==void 0?K:{})})("versions",[]).push({version:"3.15.2",mode:U?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(N,B,j){var U=j("d066"),q=j("241c"),Y=j("7418"),K=j("825a");N.exports=U("Reflect","ownKeys")||function(G){var J=q.f(K(G)),Z=Y.f;return Z?J.concat(Z(G)):J}},"57a5":function(N,B,j){var U=j("91e9"),q=U(Object.keys,Object);N.exports=q},"585a":function(N,B,j){(function(U){var q=typeof U=="object"&&U&&U.Object===Object&&U;N.exports=q}).call(this,j("c8ba"))},"5b01":function(N,B,j){var U=j("8eeb"),q=j("ec69");function Y(K,G){return K&&U(G,q(G),K)}N.exports=Y},"5c69":function(N,B,j){var U=j("087d"),q=j("0621");function Y(K,G,J,Z,ee){var te=-1,se=K.length;for(J||(J=q),ee||(ee=[]);++te<se;){var re=K[te];G>0&&J(re)?G>1?Y(re,G-1,J,Z,ee):U(ee,re):Z||(ee[ee.length]=re)}return ee}N.exports=Y},"5c6c":function(N,B){N.exports=function(j,U){return{enumerable:!(1&j),configurable:!(2&j),writable:!(4&j),value:U}}},"5d89":function(N,B,j){var U=j("f8af");function q(Y,K){var G=K?U(Y.buffer):Y.buffer;return new Y.constructor(G,Y.byteOffset,Y.byteLength)}N.exports=q},"5e2e":function(N,B,j){var U=j("28c9"),q=j("69d5"),Y=j("b4c0"),K=j("fba5"),G=j("67ca");function J(Z){var ee=-1,te=Z==null?0:Z.length;for(this.clear();++ee<te;){var se=Z[ee];this.set(se[0],se[1])}}J.prototype.clear=U,J.prototype.delete=q,J.prototype.get=Y,J.prototype.has=K,J.prototype.set=G,N.exports=J},6044:function(N,B,j){var U=j("0b07"),q=U(Object,"create");N.exports=q},"60ed":function(N,B,j){var U=j("3729"),q=j("2dcb"),Y=j("1310"),K="[object Object]",G=Function.prototype,J=Object.prototype,Z=G.toString,ee=J.hasOwnProperty,te=Z.call(Object);function se(re){if(!Y(re)||U(re)!=K)return!1;var ne=q(re);if(ne===null)return!0;var ce=ee.call(ne,"constructor")&&ne.constructor;return typeof ce=="function"&&ce instanceof ce&&Z.call(ce)==te}N.exports=se},6220:function(N,B,j){var U=j("b1d2"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isDate,G=K?q(K):U;N.exports=G},"62e4":function(N,B){N.exports=function(j){return j.webpackPolyfill||(j.deprecate=function(){},j.paths=[],j.children||(j.children=[]),Object.defineProperty(j,"loaded",{enumerable:!0,get:function(){return j.l}}),Object.defineProperty(j,"id",{enumerable:!0,get:function(){return j.i}}),j.webpackPolyfill=1),j}},"642a":function(N,B,j){var U=j("966f"),q=j("3bb4"),Y=j("20ec");function K(G){var J=q(G);return J.length==1&&J[0][2]?Y(J[0][0],J[0][1]):function(Z){return Z===G||U(Z,G,J)}}N.exports=K},6547:function(N,B,j){var U=j("a691"),q=j("1d80"),Y=function(K){return function(G,J){var Z,ee,te=String(q(G)),se=U(J),re=te.length;return se<0||se>=re?K?"":void 0:(Z=te.charCodeAt(se),Z<55296||Z>56319||se+1===re||(ee=te.charCodeAt(se+1))<56320||ee>57343?K?te.charAt(se):Z:K?te.slice(se,se+2):ee-56320+(Z-55296<<10)+65536)}};N.exports={codeAt:Y(!1),charAt:Y(!0)}},"656b":function(N,B,j){var U=j("e2e4"),q=j("f4d6");function Y(K,G){G=U(G,K);for(var J=0,Z=G.length;K!=null&&J<Z;)K=K[q(G[J++])];return J&&J==Z?K:void 0}N.exports=Y},6679:function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Boolean]";function K(G){return G===!0||G===!1||q(G)&&U(G)==Y}N.exports=K},6747:function(N,B){var j=Array.isArray;N.exports=j},"67ca":function(N,B,j){var U=j("cb5a");function q(Y,K){var G=this.__data__,J=U(G,Y);return J<0?(++this.size,G.push([Y,K])):G[J][1]=K,this}N.exports=q},"69d5":function(N,B,j){var U=j("cb5a"),q=Array.prototype,Y=q.splice;function K(G){var J=this.__data__,Z=U(J,G);if(Z<0)return!1;var ee=J.length-1;return Z==ee?J.pop():Y.call(J,Z,1),--this.size,!0}N.exports=K},"69f3":function(N,B,j){var U,q,Y,K=j("7f9a"),G=j("da84"),J=j("861d"),Z=j("9112"),ee=j("5135"),te=j("c6cd"),se=j("f772"),re=j("d012"),ne="Object already initialized",ce=G.WeakMap,me=function(le){return Y(le)?q(le):U(le,{})},ue=function(le){return function(be){var ve;if(!J(be)||(ve=q(be)).type!==le)throw TypeError("Incompatible receiver, "+le+" required");return ve}};if(K||te.state){var _e=te.state||(te.state=new ce),fe=_e.get,ge=_e.has,ye=_e.set;U=function(le,be){if(ge.call(_e,le))throw new TypeError(ne);return be.facade=le,ye.call(_e,le,be),be},q=function(le){return fe.call(_e,le)||{}},Y=function(le){return ge.call(_e,le)}}else{var xe=se("state");re[xe]=!0,U=function(le,be){if(ee(le,xe))throw new TypeError(ne);return be.facade=le,Z(le,xe,be),be},q=function(le){return ee(le,xe)?le[xe]:{}},Y=function(le){return ee(le,xe)}}N.exports={set:U,get:q,has:Y,enforce:me,getterFor:ue}},"6a43":function(N,B,j){var U=j("a10d");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("79e769b1",U,!0,{sourceMap:!1,shadowMode:!1})},"6eeb":function(N,B,j){var U=j("da84"),q=j("9112"),Y=j("5135"),K=j("ce4e"),G=j("8925"),J=j("69f3"),Z=J.get,ee=J.enforce,te=String(String).split("String");(N.exports=function(se,re,ne,ce){var me,ue=!!ce&&!!ce.unsafe,_e=!!ce&&!!ce.enumerable,fe=!!ce&&!!ce.noTargetGet;typeof ne=="function"&&(typeof re!="string"||Y(ne,"name")||q(ne,"name",re),me=ee(ne),me.source||(me.source=te.join(typeof re=="string"?re:""))),se!==U?(ue?!fe&&se[re]&&(_e=!0):delete se[re],_e?se[re]=ne:q(se,re,ne)):_e?se[re]=ne:K(re,ne)})(Function.prototype,"toString",function(){return typeof this=="function"&&Z(this).source||G(this)})},"6f6c":function(N,B){var j=/\w*$/;function U(q){var Y=new q.constructor(q.source,j.exec(q));return Y.lastIndex=q.lastIndex,Y}N.exports=U},"6fcd":function(N,B,j){var U=j("50d8"),q=j("d370"),Y=j("6747"),K=j("0d24"),G=j("c098"),J=j("73ac"),Z=Object.prototype,ee=Z.hasOwnProperty;function te(se,re){var ne=Y(se),ce=!ne&&q(se),me=!ne&&!ce&&K(se),ue=!ne&&!ce&&!me&&J(se),_e=ne||ce||me||ue,fe=_e?U(se.length,String):[],ge=fe.length;for(var ye in se)!re&&!ee.call(se,ye)||_e&&(ye=="length"||me&&(ye=="offset"||ye=="parent")||ue&&(ye=="buffer"||ye=="byteLength"||ye=="byteOffset")||G(ye,ge))||fe.push(ye);return fe}N.exports=te},"70b8":function(N,B,j){var U=j("fcff");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("407d10db",U,!0,{sourceMap:!1,shadowMode:!1})},"72af":function(N,B,j){var U=j("99cd"),q=U();N.exports=q},"72f0":function(N,B){function j(U){return function(){return U}}N.exports=j},"72f5":function(N,B,j){var U=j("9e2e");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("2997fbdf",U,!0,{sourceMap:!1,shadowMode:!1})},"73ac":function(N,B,j){var U=j("743f"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isTypedArray,G=K?q(K):U;N.exports=G},7418:function(N,B){B.f=Object.getOwnPropertySymbols},"743f":function(N,B,j){var U=j("3729"),q=j("b218"),Y=j("1310"),K="[object Arguments]",G="[object Array]",J="[object Boolean]",Z="[object Date]",ee="[object Error]",te="[object Function]",se="[object Map]",re="[object Number]",ne="[object Object]",ce="[object RegExp]",me="[object Set]",ue="[object String]",_e="[object WeakMap]",fe="[object ArrayBuffer]",ge="[object DataView]",ye="[object Float32Array]",xe="[object Float64Array]",le="[object Int8Array]",be="[object Int16Array]",ve="[object Int32Array]",we="[object Uint8Array]",Ae="[object Uint8ClampedArray]",Se="[object Uint16Array]",Pe="[object Uint32Array]",Me={};function Be(ze){return Y(ze)&&q(ze.length)&&!!Me[U(ze)]}Me[ye]=Me[xe]=Me[le]=Me[be]=Me[ve]=Me[we]=Me[Ae]=Me[Se]=Me[Pe]=!0,Me[K]=Me[G]=Me[fe]=Me[J]=Me[ge]=Me[Z]=Me[ee]=Me[te]=Me[se]=Me[re]=Me[ne]=Me[ce]=Me[me]=Me[ue]=Me[_e]=!1,N.exports=Be},7530:function(N,B,j){var U=j("1a8c"),q=Object.create,Y=function(){function K(){}return function(G){if(!U(G))return{};if(q)return q(G);K.prototype=G;var J=new K;return K.prototype=void 0,J}}();N.exports=Y},"76dd":function(N,B,j){var U=j("ce86");function q(Y){return Y==null?"":U(Y)}N.exports=q},7839:function(N,B){N.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7948:function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length,G=Array(K);++Y<K;)G[Y]=q(U[Y],Y,U);return G}N.exports=j},"79bc":function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"Map");N.exports=Y},"7a48":function(N,B,j){var U=j("6044"),q=Object.prototype,Y=q.hasOwnProperty;function K(G){var J=this.__data__;return U?J[G]!==void 0:Y.call(J,G)}N.exports=K},"7b0b":function(N,B,j){var U=j("1d80");N.exports=function(q){return Object(U(q))}},"7b83":function(N,B,j){var U=j("7c64"),q=j("93ed"),Y=j("2478"),K=j("a524"),G=j("1fc8");function J(Z){var ee=-1,te=Z==null?0:Z.length;for(this.clear();++ee<te;){var se=Z[ee];this.set(se[0],se[1])}}J.prototype.clear=U,J.prototype.delete=q,J.prototype.get=Y,J.prototype.has=K,J.prototype.set=G,N.exports=J},"7b97":function(N,B,j){var U=j("7e64"),q=j("a2be"),Y=j("1c3c"),K=j("b1e5"),G=j("42a2"),J=j("6747"),Z=j("0d24"),ee=j("73ac"),te=1,se="[object Arguments]",re="[object Array]",ne="[object Object]",ce=Object.prototype,me=ce.hasOwnProperty;function ue(_e,fe,ge,ye,xe,le){var be=J(_e),ve=J(fe),we=be?re:G(_e),Ae=ve?re:G(fe);we=we==se?ne:we,Ae=Ae==se?ne:Ae;var Se=we==ne,Pe=Ae==ne,Me=we==Ae;if(Me&&Z(_e)){if(!Z(fe))return!1;be=!0,Se=!1}if(Me&&!Se)return le||(le=new U),be||ee(_e)?q(_e,fe,ge,ye,xe,le):Y(_e,fe,we,ge,ye,xe,le);if(!(ge&te)){var Be=Se&&me.call(_e,"__wrapped__"),ze=Pe&&me.call(fe,"__wrapped__");if(Be||ze){var Ze=Be?_e.value():_e,ft=ze?fe.value():fe;return le||(le=new U),xe(Ze,ft,ge,ye,le)}}return!!Me&&(le||(le=new U),K(_e,fe,ge,ye,xe,le))}N.exports=ue},"7c64":function(N,B,j){var U=j("e24b"),q=j("5e2e"),Y=j("79bc");function K(){this.size=0,this.__data__={hash:new U,map:new(Y||q),string:new U}}N.exports=K},"7c73":function(N,B,j){var U,q=j("825a"),Y=j("37e8"),K=j("7839"),G=j("d012"),J=j("1be4"),Z=j("cc12"),ee=j("f772"),te=">",se="<",re="prototype",ne="script",ce=ee("IE_PROTO"),me=function(){},ue=function(ye){return se+ne+te+ye+se+"/"+ne+te},_e=function(ye){ye.write(ue("")),ye.close();var xe=ye.parentWindow.Object;return ye=null,xe},fe=function(){var ye,xe=Z("iframe"),le="java"+ne+":";return xe.style.display="none",J.appendChild(xe),xe.src=String(le),ye=xe.contentWindow.document,ye.open(),ye.write(ue("document.F=Object")),ye.close(),ye.F},ge=function(){try{U=document.domain&&new ActiveXObject("htmlfile")}catch{}ge=U?_e(U):fe();for(var ye=K.length;ye--;)delete ge[re][K[ye]];return ge()};G[ce]=!0,N.exports=Object.create||function(ye,xe){var le;return ye!==null?(me[re]=q(ye),le=new me,me[re]=null,le[ce]=ye):le=ge(),xe===void 0?le:Y(le,xe)}},"7d1f":function(N,B,j){var U=j("087d"),q=j("6747");function Y(K,G,J){var Z=G(K);return q(K)?Z:U(Z,J(K))}N.exports=Y},"7dd0":function(N,B,j){var U=j("23e7"),q=j("9ed3"),Y=j("e163"),K=j("d2bb"),G=j("d44e"),J=j("9112"),Z=j("6eeb"),ee=j("b622"),te=j("c430"),se=j("3f8c"),re=j("ae93"),ne=re.IteratorPrototype,ce=re.BUGGY_SAFARI_ITERATORS,me=ee("iterator"),ue="keys",_e="values",fe="entries",ge=function(){return this};N.exports=function(ye,xe,le,be,ve,we,Ae){q(le,xe,be);var Se,Pe,Me,Be=function(Nt){if(Nt===ve&&Ve)return Ve;if(!ce&&Nt in ft)return ft[Nt];switch(Nt){case ue:return function(){return new le(this,Nt)};case _e:return function(){return new le(this,Nt)};case fe:return function(){return new le(this,Nt)}}return function(){return new le(this)}},ze=xe+" Iterator",Ze=!1,ft=ye.prototype,Ye=ft[me]||ft["@@iterator"]||ve&&ft[ve],Ve=!ce&&Ye||Be(ve),Dt=xe=="Array"&&ft.entries||Ye;if(Dt&&(Se=Y(Dt.call(new ye)),ne!==Object.prototype&&Se.next&&(te||Y(Se)===ne||(K?K(Se,ne):typeof Se[me]!="function"&&J(Se,me,ge)),G(Se,ze,!0,!0),te&&(se[ze]=ge))),ve==_e&&Ye&&Ye.name!==_e&&(Ze=!0,Ve=function(){return Ye.call(this)}),te&&!Ae||ft[me]===Ve||J(ft,me,Ve),se[xe]=Ve,ve)if(Pe={values:Be(_e),keys:we?Ve:Be(ue),entries:Be(fe)},Ae)for(Me in Pe)(ce||Ze||!(Me in ft))&&Z(ft,Me,Pe[Me]);else U({target:xe,proto:!0,forced:ce||Ze},Pe);return Pe}},"7dfe":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".none-enter-active[data-v-5be4b00c],.none-leave-active[data-v-5be4b00c]{transition-duration:0s}.fade-enter-active[data-v-5be4b00c],.fade-leave-active[data-v-5be4b00c],.slide-down-enter-active[data-v-5be4b00c],.slide-down-leave-active[data-v-5be4b00c],.slide-left-enter-active[data-v-5be4b00c],.slide-left-leave-active[data-v-5be4b00c],.slide-right-enter-active[data-v-5be4b00c],.slide-right-leave-active[data-v-5be4b00c],.slide-up-enter-active[data-v-5be4b00c],.slide-up-leave-active[data-v-5be4b00c]{transition:transform var(--slide-duration) var(--slide-timing),opacity var(--slide-duration) var(--slide-timing);-webkit-backface-visibility:hidden;backface-visibility:hidden}.fade-leave-active[data-v-5be4b00c],.none-leave-active[data-v-5be4b00c],.slide-down-leave-active[data-v-5be4b00c],.slide-left-leave-active[data-v-5be4b00c],.slide-right-leave-active[data-v-5be4b00c],.slide-up-leave-active[data-v-5be4b00c]{position:absolute;width:100%}.fade-enter[data-v-5be4b00c],.fade-leave-to[data-v-5be4b00c],.none-enter[data-v-5be4b00c],.none-leave-to[data-v-5be4b00c],.slide-down-enter[data-v-5be4b00c],.slide-down-leave-to[data-v-5be4b00c],.slide-left-enter[data-v-5be4b00c],.slide-left-leave-to[data-v-5be4b00c],.slide-right-enter[data-v-5be4b00c],.slide-right-leave-to[data-v-5be4b00c],.slide-up-enter[data-v-5be4b00c],.slide-up-leave-to[data-v-5be4b00c]{opacity:0}.slide-left-enter[data-v-5be4b00c],.slide-right-leave-to[data-v-5be4b00c]{transform:translateX(var(--slide-translate))}.slide-left-leave-to[data-v-5be4b00c],.slide-right-enter[data-v-5be4b00c]{transform:translateX(calc(var(--slide-translate)*-1))}.slide-down-leave-to[data-v-5be4b00c],.slide-up-enter[data-v-5be4b00c]{transform:translateY(var(--slide-translate))}.slide-down-enter[data-v-5be4b00c],.slide-up-leave-to[data-v-5be4b00c]{transform:translateY(calc(var(--slide-translate)*-1))}",""]),N.exports=B},"7e64":function(N,B,j){var U=j("5e2e"),q=j("efb6"),Y=j("2fcc"),K=j("802a"),G=j("55a3"),J=j("d02c");function Z(ee){var te=this.__data__=new U(ee);this.size=te.size}Z.prototype.clear=q,Z.prototype.delete=Y,Z.prototype.get=K,Z.prototype.has=G,Z.prototype.set=J,N.exports=Z},"7ed2":function(N,B){var j="__lodash_hash_undefined__";function U(q){return this.__data__.set(q,j),this}N.exports=U},"7efe":function(N){N.exports=JSON.parse('{"title":"MMMM YYYY","weekdays":"W","navMonths":"MMM","input":["L","YYYY-MM-DD","YYYY/MM/DD"],"inputDateTime":["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],"inputDateTime24hr":["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],"inputTime":["h:mm A"],"inputTime24hr":["HH:mm"],"dayPopover":"WWW, MMM D, YYYY","data":["L","YYYY-MM-DD","YYYY/MM/DD"],"iso":"YYYY-MM-DDTHH:mm:ss.SSSZ"}')},"7f9a":function(N,B,j){var U=j("da84"),q=j("8925"),Y=U.WeakMap;N.exports=typeof Y=="function"&&/native code/.test(q(Y))},"802a":function(N,B){function j(U){return this.__data__.get(U)}N.exports=j},8057:function(N,B){function j(U,q){for(var Y=-1,K=U==null?0:U.length;++Y<K&&q(U[Y],Y,U)!==!1;);return U}N.exports=j},"825a":function(N,B,j){var U=j("861d");N.exports=function(q){if(!U(q))throw TypeError(String(q)+" is not an object");return q}},8296:function(N,B,j){var U=j("656b"),q=j("2b10");function Y(K,G){return G.length<2?K:U(K,q(G,0,-1))}N.exports=Y},8384:function(N,B){function j(U,q,Y){return U===U&&(Y!==void 0&&(U=U<=Y?U:Y),q!==void 0&&(U=U>=q?U:q)),U}N.exports=j},"83ab":function(N,B,j){var U=j("d039");N.exports=!U(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"85a9":function(N){N.exports=JSON.parse('{"sm":"640px","md":"768px","lg":"1024px","xl":"1280px"}')},"85e3":function(N,B){function j(U,q,Y){switch(Y.length){case 0:return U.call(q);case 1:return U.call(q,Y[0]);case 2:return U.call(q,Y[0],Y[1]);case 3:return U.call(q,Y[0],Y[1],Y[2])}return U.apply(q,Y)}N.exports=j},8604:function(N,B,j){var U=j("26e8"),q=j("e2c0");function Y(K,G){return K!=null&&q(K,G,U)}N.exports=Y},"861d":function(N,B){N.exports=function(j){return typeof j=="object"?j!==null:typeof j=="function"}},"872a":function(N,B,j){var U=j("3b4a");function q(Y,K,G){K=="__proto__"&&U?U(Y,K,{configurable:!0,enumerable:!0,value:G,writable:!0}):Y[K]=G}N.exports=q},"87a9":function(N,B,j){var U=j("cecd"),q=j.n(U);q.a},8925:function(N,B,j){var U=j("c6cd"),q=Function.toString;typeof U.inspectSource!="function"&&(U.inspectSource=function(Y){return q.call(Y)}),N.exports=U.inspectSource},"89d9":function(N,B,j){var U=j("656b"),q=j("159a"),Y=j("e2e4");function K(G,J,Z){for(var ee=-1,te=J.length,se={};++ee<te;){var re=J[ee],ne=U(G,re);Z(ne,re)&&q(se,Y(re,G),ne)}return se}N.exports=K},"8a64":function(N,B,j){var U=j("ad82");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("5fdd58c2",U,!0,{sourceMap:!1,shadowMode:!1})},"8aa5":function(N,B,j){var U=j("6547").charAt;N.exports=function(q,Y,K){return Y+(K?U(q,Y).length:1)}},"8adb":function(N,B){function j(U,q){if((q!=="constructor"||typeof U[q]!="function")&&q!="__proto__")return U[q]}N.exports=j},"8bbf":function(N,B){N.exports=I},"8c86":function(N,B,j){function U(q,Y){if(Y.length<q)throw new TypeError(q+" argument"+(q>1?"s":"")+" required, but only "+Y.length+" present")}j.d(B,"a",function(){return U})},"8d74":function(N,B,j){var U=j("4cef"),q=/^\s+/;function Y(K){return K&&K.slice(0,U(K)+1).replace(q,"")}N.exports=Y},"8de2":function(N,B,j){var U=j("8eeb"),q=j("9934");function Y(K){return U(K,q(K))}N.exports=Y},"8eeb":function(N,B,j){var U=j("32b3"),q=j("872a");function Y(K,G,J,Z){var ee=!J;J||(J={});for(var te=-1,se=G.length;++te<se;){var re=G[te],ne=Z?Z(J[re],K[re],re,J,K):void 0;ne===void 0&&(ne=K[re]),ee?q(J,re,ne):U(J,re,ne)}return J}N.exports=Y},9010:function(N,B,j){var U=j("70b8"),q=j.n(U);q.a},"90e3":function(N,B){var j=0,U=Math.random();N.exports=function(q){return"Symbol("+String(q===void 0?"":q)+")_"+(++j+U).toString(36)}},9112:function(N,B,j){var U=j("83ab"),q=j("9bf2"),Y=j("5c6c");N.exports=U?function(K,G,J){return q.f(K,G,Y(1,J))}:function(K,G,J){return K[G]=J,K}},"91e9":function(N,B){function j(U,q){return function(Y){return U(q(Y))}}N.exports=j},9263:function(N,B,j){var U=j("ad6d"),q=j("9f7f"),Y=j("5692"),K=j("7c73"),G=j("69f3").get,J=j("fce3"),Z=j("107c"),ee=RegExp.prototype.exec,te=Y("native-string-replace",String.prototype.replace),se=ee,re=function(){var ue=/a/,_e=/b*/g;return ee.call(ue,"a"),ee.call(_e,"a"),ue.lastIndex!==0||_e.lastIndex!==0}(),ne=q.UNSUPPORTED_Y||q.BROKEN_CARET,ce=/()??/.exec("")[1]!==void 0,me=re||ce||ne||J||Z;me&&(se=function(ue){var _e,fe,ge,ye,xe,le,be,ve=this,we=G(ve),Ae=we.raw;if(Ae)return Ae.lastIndex=ve.lastIndex,_e=se.call(Ae,ue),ve.lastIndex=Ae.lastIndex,_e;var Se=we.groups,Pe=ne&&ve.sticky,Me=U.call(ve),Be=ve.source,ze=0,Ze=ue;if(Pe&&(Me=Me.replace("y",""),Me.indexOf("g")===-1&&(Me+="g"),Ze=String(ue).slice(ve.lastIndex),ve.lastIndex>0&&(!ve.multiline||ve.multiline&&ue[ve.lastIndex-1]!==` `)&&(Be="(?: "+Be+")",Ze=" "+Ze,ze++),fe=new RegExp("^(?:"+Be+")",Me)),ce&&(fe=new RegExp("^"+Be+"$(?!\\s)",Me)),re&&(ge=ve.lastIndex),ye=ee.call(Pe?fe:ve,Ze),Pe?ye?(ye.input=ye.input.slice(ze),ye[0]=ye[0].slice(ze),ye.index=ve.lastIndex,ve.lastIndex+=ye[0].length):ve.lastIndex=0:re&&ye&&(ve.lastIndex=ve.global?ye.index+ye[0].length:ge),ce&&ye&&ye.length>1&&te.call(ye[0],fe,function(){for(xe=1;xe<arguments.length-2;xe++)arguments[xe]===void 0&&(ye[xe]=void 0)}),ye&&Se)for(ye.groups=le=K(null),xe=0;xe<Se.length;xe++)be=Se[xe],le[be[0]]=ye[be[1]];return ye}),N.exports=se},9349:function(N,B,j){j.d(B,"a",function(){return Y}),j("ddb0");var U=j("22f3"),q=j("2fa3");class Y{constructor(G,J,Z){this.theme=G,this.locale=J,this.map={},this.refresh(Z,!0)}destroy(){this.theme=null,this.locale=null,this.map={},this.list=[],this.pinAttr=null}refresh(G,J){var Z=this;const ee={},te=[];let se=null;const re=[],ne=J?new Set:new Set(Object.keys(this.map));return Object(q.b)(G)&&G.forEach(function(ce,me){if(!ce||!ce.dates)return;const ue=ce.key?ce.key.toString():me.toString(),_e=ce.order||0,fe=Object(q.g)(JSON.stringify(ce));let ge=Z.map[ue];!J&&ge&&ge.hashcode===fe?ne.delete(ue):(ge=new U.a({key:ue,order:_e,hashcode:fe,...ce},Z.theme,Z.locale),re.push(ge)),ge&&ge.pinPage&&(se=ge),ee[ue]=ge,te.push(ge)}),this.map=ee,this.list=te,this.pinAttr=se,{adds:re,deletes:Array.from(ne)}}}},"93ed":function(N,B,j){var U=j("4245");function q(Y){var K=U(this,Y).delete(Y);return this.size-=K?1:0,K}N.exports=q},9404:function(N,B,j){j.d(B,"j",function(){return Gn}),j.d(B,"m",function(){return An}),j.d(B,"e",function(){return jn}),j.d(B,"f",function(){return Mn}),j.d(B,"v",function(){return Ln});var U=j("6679"),q=j.n(U);j.d(B,"i",function(){return q.a});var Y=j("501e"),K=j.n(Y);j.d(B,"l",function(){return K.a});var G=j("e2a0"),J=j.n(G);j.d(B,"n",function(){return J.a});var Z=j("dcbe"),ee=j.n(Z);j.d(B,"h",function(){return ee.a});var te=j("9520"),se=j.n(te);j.d(B,"k",function(){return se.a});var re=j("4cfe"),ne=j.n(re);j.d(B,"o",function(){return ne.a});var ce=j("6220"),me=j.n(ce),ue=j("f678"),_e=j.n(ue);j.d(B,"a",function(){return _e.a});var fe=j("9b02"),ge=j.n(fe);j.d(B,"d",function(){return ge.a});var ye=j("0f5c"),xe=j.n(ye);j.d(B,"u",function(){return xe.a});var le=j("9e86"),be=j.n(le);j.d(B,"r",function(){return be.a});var ve=j("f542"),we=j.n(ve);j.d(B,"w",function(){return we.a});var Ae=j("95ae"),Se=j.n(Ae);j.d(B,"b",function(){return Se.a});var Pe=j("3f84"),Me=j.n(Pe);j.d(B,"c",function(){return Me.a});var Be=j("2593"),ze=j.n(Be);j.d(B,"t",function(){return ze.a});var Ze=j("3eea"),ft=j.n(Ze);j.d(B,"s",function(){return ft.a});var Ye=j("3852"),Ve=j.n(Ye),Dt=j("dd61"),Nt=j.n(Dt);j.d(B,"q",function(){return Nt.a});var Vt=j("a59b"),Wt=j.n(Vt);j.d(B,"g",function(){return Wt.a});var Gt=j("4416"),tn=j.n(Gt);j.d(B,"p",function(){return tn.a});var Qt=j("3092"),En=j.n(Qt);const kn=function(Et){return Object.prototype.toString.call(Et).slice(8,-1)},Gn=function(Et){return me()(Et)&&!isNaN(Et.getTime())},An=function(Et){return kn(Et)==="Object"},jn=Ve.a,Mn=function(Et,We){return En()(We,function(xt){return Ve()(Et,xt)})},Ln=En.a},"94ca":function(N,B,j){var U=j("d039"),q=/#|\.prototype\./,Y=function(ee,te){var se=G[K(ee)];return se==Z||se!=J&&(typeof te=="function"?U(te):!!te)},K=Y.normalize=function(ee){return String(ee).replace(q,".").toLowerCase()},G=Y.data={},J=Y.NATIVE="N",Z=Y.POLYFILL="P";N.exports=Y},"950a":function(N,B,j){var U=j("30c9");function q(Y,K){return function(G,J){if(G==null)return G;if(!U(G))return Y(G,J);for(var Z=G.length,ee=K?Z:-1,te=Object(G);(K?ee--:++ee<Z)&&J(te[ee],ee,te)!==!1;);return G}}N.exports=q},9520:function(N,B,j){var U=j("3729"),q=j("1a8c"),Y="[object AsyncFunction]",K="[object Function]",G="[object GeneratorFunction]",J="[object Proxy]";function Z(ee){if(!q(ee))return!1;var te=U(ee);return te==K||te==G||te==Y||te==J}N.exports=Z},"95ae":function(N,B,j){var U=j("100e"),q=j("9638"),Y=j("9aff"),K=j("9934"),G=Object.prototype,J=G.hasOwnProperty,Z=U(function(ee,te){ee=Object(ee);var se=-1,re=te.length,ne=re>2?te[2]:void 0;for(ne&&Y(te[0],te[1],ne)&&(re=1);++se<re;)for(var ce=te[se],me=K(ce),ue=-1,_e=me.length;++ue<_e;){var fe=me[ue],ge=ee[fe];(ge===void 0||q(ge,G[fe])&&!J.call(ee,fe))&&(ee[fe]=ce[fe])}return ee});N.exports=Z},9638:function(N,B){function j(U,q){return U===q||U!==U&&q!==q}N.exports=j},"966f":function(N,B,j){var U=j("7e64"),q=j("c05f"),Y=1,K=2;function G(J,Z,ee,te){var se=ee.length,re=se,ne=!te;if(J==null)return!re;for(J=Object(J);se--;){var ce=ee[se];if(ne&&ce[2]?ce[1]!==J[ce[0]]:!(ce[0]in J))return!1}for(;++se<re;){ce=ee[se];var me=ce[0],ue=J[me],_e=ce[1];if(ne&&ce[2]){if(ue===void 0&&!(me in J))return!1}else{var fe=new U;if(te)var ge=te(ue,_e,me,J,Z,fe);if(!(ge===void 0?q(_e,ue,Y|K,te,fe):ge))return!1}}return!0}N.exports=G},"96f3":function(N,B){var j=Object.prototype,U=j.hasOwnProperty;function q(Y,K){return Y!=null&&U.call(Y,K)}N.exports=q},"97d3":function(N,B,j){var U=j("48a0"),q=j("30c9");function Y(K,G){var J=-1,Z=q(K)?Array(K.length):[];return U(K,function(ee,te,se){Z[++J]=G(ee,te,se)}),Z}N.exports=Y},9934:function(N,B,j){var U=j("6fcd"),q=j("41c3"),Y=j("30c9");function K(G){return Y(G)?U(G,!0):q(G)}N.exports=K},"99cd":function(N,B){function j(U){return function(q,Y,K){for(var G=-1,J=Object(q),Z=K(q),ee=Z.length;ee--;){var te=Z[U?ee:++G];if(Y(J[te],te,J)===!1)break}return q}}N.exports=j},"99d3":function(N,B,j){(function(U){var q=j("585a"),Y=B&&!B.nodeType&&B,K=Y&&typeof U=="object"&&U&&!U.nodeType&&U,G=K&&K.exports===Y,J=G&&q.process,Z=function(){try{var ee=K&&K.require&&K.require("util").types;return ee||J&&J.binding&&J.binding("util")}catch{}}();U.exports=Z}).call(this,j("62e4")(N))},"9aff":function(N,B,j){var U=j("9638"),q=j("30c9"),Y=j("c098"),K=j("1a8c");function G(J,Z,ee){if(!K(ee))return!1;var te=typeof Z;return!!(te=="number"?q(ee)&&Y(Z,ee.length):te=="string"&&Z in ee)&&U(ee[Z],J)}N.exports=G},"9b02":function(N,B,j){var U=j("656b");function q(Y,K,G){var J=Y==null?void 0:U(Y,K);return J===void 0?G:J}N.exports=q},"9bf2":function(N,B,j){var U=j("83ab"),q=j("0cfb"),Y=j("825a"),K=j("c04e"),G=Object.defineProperty;B.f=U?G:function(J,Z,ee){if(Y(J),Z=K(Z,!0),Y(ee),q)try{return G(J,Z,ee)}catch{}if("get"in ee||"set"in ee)throw TypeError("Accessors not supported");return"value"in ee&&(J[Z]=ee.value),J}},"9e2e":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-pane-container{width:100%;position:relative}.vc-pane-container.in-transition{overflow:hidden}.vc-pane-layout{display:grid}.vc-arrow{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;pointer-events:auto;color:var(--gray-600);border-width:2px;border-style:solid;border-radius:var(--rounded);border-color:transparent}.vc-arrow:hover{background:var(--gray-200)}.vc-arrow:focus{border-color:var(--gray-300)}.vc-arrow.is-disabled{opacity:.25;pointer-events:none;cursor:not-allowed}.vc-day-popover-container{color:var(--white);background-color:var(--gray-800);border:1px solid;border-color:var(--gray-700);border-radius:var(--rounded);font-size:var(--text-xs);font-weight:var(--font-medium);padding:4px 8px;box-shadow:var(--shadow)}.vc-day-popover-header{font-size:var(--text-xs);color:var(--gray-300);font-weight:var(--font-semibold);text-align:center}.vc-arrows-container{width:100%;position:absolute;top:0;display:flex;justify-content:space-between;padding:8px 10px;pointer-events:none}.vc-arrows-container.title-left{justify-content:flex-end}.vc-arrows-container.title-right{justify-content:flex-start}.vc-is-dark .vc-arrow{color:var(--white)}.vc-is-dark .vc-arrow:hover{background:var(--gray-800)}.vc-is-dark .vc-arrow:focus{border-color:var(--gray-700)}.vc-is-dark .vc-day-popover-container{color:var(--gray-800);background-color:var(--white);border-color:var(--gray-100)}.vc-is-dark .vc-day-popover-header{color:var(--gray-700)}",""]),N.exports=B},"9e69":function(N,B,j){var U=j("2b3e"),q=U.Symbol;N.exports=q},"9e83":function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-nav-popover-container{color:var(--white);font-size:var(--text-sm);font-weight:var(--font-semibold);background-color:var(--gray-800);border:1px solid;border-color:var(--gray-700);border-radius:var(--rounded-lg);padding:4px;box-shadow:var(--shadow)}.vc-is-dark .vc-nav-popover-container{color:var(--gray-800);background-color:var(--white);border-color:var(--gray-100)}",""]),N.exports=B},"9e86":function(N,B,j){var U=j("872a"),q=j("242e"),Y=j("badf");function K(G,J){var Z={};return J=Y(J,3),q(G,function(ee,te,se){U(Z,te,J(ee,te,se))}),Z}N.exports=K},"9ed3":function(N,B,j){var U=j("ae93").IteratorPrototype,q=j("7c73"),Y=j("5c6c"),K=j("d44e"),G=j("3f8c"),J=function(){return this};N.exports=function(Z,ee,te){var se=ee+" Iterator";return Z.prototype=q(U,{next:Y(1,te)}),K(Z,se,!1,!0),G[se]=J,Z}},"9f7f":function(N,B,j){var U=j("d039"),q=function(Y,K){return RegExp(Y,K)};B.UNSUPPORTED_Y=U(function(){var Y=q("a","y");return Y.lastIndex=2,Y.exec("abcd")!=null}),B.BROKEN_CARET=U(function(){var Y=q("^r","gy");return Y.lastIndex=2,Y.exec("str")!=null})},a029:function(N,B,j){var U=j("087d"),q=j("2dcb"),Y=j("32f4"),K=j("d327"),G=Object.getOwnPropertySymbols,J=G?function(Z){for(var ee=[];Z;)U(ee,Y(Z)),Z=q(Z);return ee}:K;N.exports=J},a10d:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-day[data-v-4420d078]{position:relative;min-height:32px;z-index:1}.vc-day.is-not-in-month *[data-v-4420d078]{opacity:0;pointer-events:none}.vc-day-layer[data-v-4420d078]{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none}.vc-day-box-center-center[data-v-4420d078]{display:flex;justify-content:center;align-items:center;transform-origin:50% 50%}.vc-day-box-left-center[data-v-4420d078]{display:flex;justify-content:flex-start;align-items:center;transform-origin:0 50%}.vc-day-box-right-center[data-v-4420d078]{display:flex;justify-content:flex-end;align-items:center;transform-origin:100% 50%}.vc-day-box-center-bottom[data-v-4420d078]{display:flex;justify-content:center;align-items:flex-end}.vc-day-content[data-v-4420d078]{display:flex;justify-content:center;align-items:center;font-size:var(--text-sm);font-weight:var(--font-medium);width:28px;height:28px;line-height:28px;border-radius:var(--rounded-full);-webkit-user-select:none;user-select:none;cursor:pointer}.vc-day-content[data-v-4420d078]:hover{background-color:rgba(204,214,224,.3)}.vc-day-content[data-v-4420d078]:focus{font-weight:var(--font-bold);background-color:rgba(204,214,224,.4)}.vc-day-content.is-disabled[data-v-4420d078]{color:var(--gray-400)}.vc-is-dark .vc-day-content[data-v-4420d078]:hover{background-color:rgba(114,129,151,.3)}.vc-is-dark .vc-day-content[data-v-4420d078]:focus{background-color:rgba(114,129,151,.4)}.vc-is-dark .vc-day-content.is-disabled[data-v-4420d078]{color:var(--gray-600)}.vc-highlights[data-v-4420d078]{overflow:hidden;pointer-events:none;z-index:-1}.vc-highlight[data-v-4420d078]{width:28px;height:28px}.vc-highlight.vc-highlight-base-start[data-v-4420d078]{width:50%!important;border-radius:0!important;border-right-width:0!important}.vc-highlight.vc-highlight-base-end[data-v-4420d078]{width:50%!important;border-radius:0!important;border-left-width:0!important}.vc-highlight.vc-highlight-base-middle[data-v-4420d078]{width:100%;border-radius:0!important;border-left-width:0!important;border-right-width:0!important;margin:0 -1px}.vc-dots[data-v-4420d078]{display:flex;justify-content:center;align-items:center}.vc-dot[data-v-4420d078]{width:5px;height:5px;border-radius:50%;transition:all var(--day-content-transition-time)}.vc-dot[data-v-4420d078]:not(:last-child){margin-right:3px}.vc-bars[data-v-4420d078]{display:flex;justify-content:flex-start;align-items:center;width:75%}.vc-bar[data-v-4420d078]{flex-grow:1;height:3px;transition:all var(--day-content-transition-time)}",""]),N.exports=B},a2be:function(N,B,j){var U=j("d612"),q=j("4284"),Y=j("c584"),K=1,G=2;function J(Z,ee,te,se,re,ne){var ce=te&K,me=Z.length,ue=ee.length;if(me!=ue&&!(ce&&ue>me))return!1;var _e=ne.get(Z),fe=ne.get(ee);if(_e&&fe)return _e==ee&&fe==Z;var ge=-1,ye=!0,xe=te&G?new U:void 0;for(ne.set(Z,ee),ne.set(ee,Z);++ge<me;){var le=Z[ge],be=ee[ge];if(se)var ve=ce?se(be,le,ge,ee,Z,ne):se(le,be,ge,Z,ee,ne);if(ve!==void 0){if(ve)continue;ye=!1;break}if(xe){if(!q(ee,function(we,Ae){if(!Y(xe,Ae)&&(le===we||re(le,we,te,se,ne)))return xe.push(Ae)})){ye=!1;break}}else if(le!==be&&!re(le,be,te,se,ne)){ye=!1;break}}return ne.delete(Z),ne.delete(ee),ye}N.exports=J},a2db:function(N,B,j){var U=j("9e69"),q=U?U.prototype:void 0,Y=q?q.valueOf:void 0;function K(G){return Y?Object(Y.call(G)):{}}N.exports=K},a3fd:function(N,B,j){var U=j("7948");function q(Y,K){return U(K,function(G){return[G,Y[G]]})}N.exports=q},a454:function(N,B,j){var U=j("72f0"),q=j("3b4a"),Y=j("cd9d"),K=q?function(G,J){return q(G,"toString",{configurable:!0,enumerable:!1,value:U(J),writable:!0})}:Y;N.exports=K},a524:function(N,B,j){var U=j("4245");function q(Y){return U(this,Y).has(Y)}N.exports=q},a59b:function(N,B){function j(U){return U&&U.length?U[0]:void 0}N.exports=j},a691:function(N,B){var j=Math.ceil,U=Math.floor;N.exports=function(q){return isNaN(q=+q)?0:(q>0?U:j)(q)}},a994:function(N,B,j){var U=j("7d1f"),q=j("32f4"),Y=j("ec69");function K(G){return U(G,Y,q)}N.exports=K},ac1f:function(N,B,j){var U=j("23e7"),q=j("9263");U({target:"RegExp",proto:!0,forced:/./.exec!==q},{exec:q})},ac41:function(N,B){function j(U){var q=-1,Y=Array(U.size);return U.forEach(function(K){Y[++q]=K}),Y}N.exports=j},ad6d:function(N,B,j){var U=j("825a");N.exports=function(){var q=U(this),Y="";return q.global&&(Y+="g"),q.ignoreCase&&(Y+="i"),q.multiline&&(Y+="m"),q.dotAll&&(Y+="s"),q.unicode&&(Y+="u"),q.sticky&&(Y+="y"),Y}},ad82:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-time-picker[data-v-f4e11af8]{display:flex;align-items:center;padding:8px}.vc-time-picker.vc-invalid[data-v-f4e11af8]{pointer-events:none;opacity:.5}.vc-time-picker.vc-bordered[data-v-f4e11af8]{border-top:1px solid var(--gray-400)}.vc-date-time[data-v-f4e11af8]{margin-left:8px}.vc-disabled[data-v-f4e11af8]{pointer-events:none;opacity:.5}.vc-time-icon[data-v-f4e11af8]{width:16px;height:16px;color:var(--gray-600)}.vc-date[data-v-f4e11af8]{display:flex;align-items:center;font-size:var(--text-sm);font-weight:var(--font-semibold);text-transform:uppercase;padding:0 0 4px 4px;margin-top:-4px}.vc-date .vc-weekday[data-v-f4e11af8]{color:var(--gray-700);letter-spacing:var(--tracking-wide)}.vc-date .vc-month[data-v-f4e11af8]{color:var(--accent-600);margin-left:8px}.vc-date .vc-day[data-v-f4e11af8]{color:var(--accent-600);margin-left:4px}.vc-date .vc-year[data-v-f4e11af8]{color:var(--gray-500);margin-left:8px}.vc-am-pm[data-v-f4e11af8],.vc-time[data-v-f4e11af8]{display:flex;align-items:center}.vc-am-pm[data-v-f4e11af8]{background:var(--gray-200);margin-left:8px;padding:4px;border-radius:var(--rounded);height:30px}.vc-am-pm button[data-v-f4e11af8]{color:var(--gray-900);font-size:var(--text-sm);font-weight:var(--font-medium);padding:0 4px;background:transparent;border:2px solid transparent;border-radius:var(--rounded);line-height:var(--leading-snug)}.vc-am-pm button[data-v-f4e11af8]:hover{color:var(--gray-600)}.vc-am-pm button[data-v-f4e11af8]:focus{border-color:var(--accent-400)}.vc-am-pm button.active[data-v-f4e11af8]{background:var(--accent-600);color:var(--white)}.vc-am-pm button.active[data-v-f4e11af8]:hover{background:var(--accent-500)}.vc-am-pm button.active[data-v-f4e11af8]:focus{border-color:var(--accent-400)}.vc-is-dark .vc-time-picker[data-v-f4e11af8]{border-color:var(--gray-700)}.vc-is-dark .vc-time-icon[data-v-f4e11af8],.vc-is-dark .vc-weekday[data-v-f4e11af8]{color:var(--gray-400)}.vc-is-dark .vc-day[data-v-f4e11af8],.vc-is-dark .vc-month[data-v-f4e11af8]{color:var(--accent-400)}.vc-is-dark .vc-year[data-v-f4e11af8]{color:var(--gray-500)}.vc-is-dark .vc-am-pm[data-v-f4e11af8]{background:var(--gray-700)}.vc-is-dark .vc-am-pm[data-v-f4e11af8]:focus{border-color:var(--accent-500)}.vc-is-dark .vc-am-pm button[data-v-f4e11af8]{color:var(--gray-100)}.vc-is-dark .vc-am-pm button[data-v-f4e11af8]:hover{color:var(--gray-400)}.vc-is-dark .vc-am-pm button[data-v-f4e11af8]:focus{border-color:var(--accent-500)}.vc-is-dark .vc-am-pm button.active[data-v-f4e11af8]{background:var(--accent-500);color:var(--white)}.vc-is-dark .vc-am-pm button.active[data-v-f4e11af8]:hover{background:var(--accent-600)}.vc-is-dark .vc-am-pm button.active[data-v-f4e11af8]:focus{border-color:var(--accent-500)}",""]),N.exports=B},adc8:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-day-popover-row[data-v-eb5afd1a]{--day-content-transition-time:0.13s ease-in;display:flex;align-items:center;transition:all var(--day-content-transition-time)}.vc-day-popover-row[data-v-eb5afd1a]:not(:first-child){margin-top:3px}.vc-day-popover-row-indicator[data-v-eb5afd1a]{display:flex;justify-content:center;align-items:center;flex-grow:0;width:15px;margin-right:3px}.vc-day-popover-row-indicator span[data-v-eb5afd1a]{transition:all var(--day-content-transition-time)}.vc-day-popover-row-content[data-v-eb5afd1a]{display:flex;align-items:center;flex-wrap:none;flex-grow:1;width:max-content}",""]),N.exports=B},ae93:function(N,B,j){var U,q,Y,K=j("d039"),G=j("e163"),J=j("9112"),Z=j("5135"),ee=j("b622"),te=j("c430"),se=ee("iterator"),re=!1,ne=function(){return this};[].keys&&(Y=[].keys(),"next"in Y?(q=G(G(Y)),q!==Object.prototype&&(U=q)):re=!0);var ce=U==null||K(function(){var me={};return U[se].call(me)!==me});ce&&(U={}),te&&!ce||Z(U,se)||J(U,se,ne),N.exports={IteratorPrototype:U,BUGGY_SAFARI_ITERATORS:re}},b047:function(N,B){function j(U){return function(q){return U(q)}}N.exports=j},b1d2:function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Date]";function K(G){return q(G)&&U(G)==Y}N.exports=K},b1e5:function(N,B,j){var U=j("a994"),q=1,Y=Object.prototype,K=Y.hasOwnProperty;function G(J,Z,ee,te,se,re){var ne=ee&q,ce=U(J),me=ce.length,ue=U(Z),_e=ue.length;if(me!=_e&&!ne)return!1;for(var fe=me;fe--;){var ge=ce[fe];if(!(ne?ge in Z:K.call(Z,ge)))return!1}var ye=re.get(J),xe=re.get(Z);if(ye&&xe)return ye==Z&&xe==J;var le=!0;re.set(J,Z),re.set(Z,J);for(var be=ne;++fe<me;){ge=ce[fe];var ve=J[ge],we=Z[ge];if(te)var Ae=ne?te(we,ve,ge,Z,J,re):te(ve,we,ge,J,Z,re);if(!(Ae===void 0?ve===we||se(ve,we,ee,te,re):Ae)){le=!1;break}be||(be=ge=="constructor")}if(le&&!be){var Se=J.constructor,Pe=Z.constructor;Se==Pe||!("constructor"in J)||!("constructor"in Z)||typeof Se=="function"&&Se instanceof Se&&typeof Pe=="function"&&Pe instanceof Pe||(le=!1)}return re.delete(J),re.delete(Z),le}N.exports=G},b218:function(N,B){var j=9007199254740991;function U(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=j}N.exports=U},b4b0:function(N,B,j){var U=j("8d74"),q=j("1a8c"),Y=j("ffd6"),K=NaN,G=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,Z=/^0o[0-7]+$/i,ee=parseInt;function te(se){if(typeof se=="number")return se;if(Y(se))return K;if(q(se)){var re=typeof se.valueOf=="function"?se.valueOf():se;se=q(re)?re+"":re}if(typeof se!="string")return se===0?se:+se;se=U(se);var ne=J.test(se);return ne||Z.test(se)?ee(se.slice(2),ne?2:8):G.test(se)?K:+se}N.exports=te},b4c0:function(N,B,j){var U=j("cb5a");function q(Y){var K=this.__data__,G=U(K,Y);return G<0?void 0:K[G][1]}N.exports=q},b5a7:function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"DataView");N.exports=Y},b622:function(N,B,j){var U=j("da84"),q=j("5692"),Y=j("5135"),K=j("90e3"),G=j("4930"),J=j("fdbf"),Z=q("wks"),ee=U.Symbol,te=J?ee:ee&&ee.withoutSetter||K;N.exports=function(se){return Y(Z,se)&&(G||typeof Z[se]=="string")||(G&&Y(ee,se)?Z[se]=ee[se]:Z[se]=te("Symbol."+se)),Z[se]}},b760:function(N,B,j){var U=j("872a"),q=j("9638");function Y(K,G,J){(J!==void 0&&!q(K[G],J)||J===void 0&&!(G in K))&&U(K,G,J)}N.exports=Y},badf:function(N,B,j){var U=j("642a"),q=j("1838"),Y=j("cd9d"),K=j("6747"),G=j("f9ce");function J(Z){return typeof Z=="function"?Z:Z==null?Y:typeof Z=="object"?K(Z)?q(Z[0],Z[1]):U(Z):G(Z)}N.exports=J},bbc0:function(N,B,j){var U=j("6044"),q="__lodash_hash_undefined__",Y=Object.prototype,K=Y.hasOwnProperty;function G(J){var Z=this.__data__;if(U){var ee=Z[J];return ee===q?void 0:ee}return K.call(Z,J)?Z[J]:void 0}N.exports=G},bdb3:function(N,B,j){var U=j("e052"),q=j.n(U);q.a},c04e:function(N,B,j){var U=j("861d");N.exports=function(q,Y){if(!U(q))return q;var K,G;if(Y&&typeof(K=q.toString)=="function"&&!U(G=K.call(q))||typeof(K=q.valueOf)=="function"&&!U(G=K.call(q))||!Y&&typeof(K=q.toString)=="function"&&!U(G=K.call(q)))return G;throw TypeError("Can't convert object to primitive value")}},c05f:function(N,B,j){var U=j("7b97"),q=j("1310");function Y(K,G,J,Z,ee){return K===G||(K==null||G==null||!q(K)&&!q(G)?K!==K&&G!==G:U(K,G,J,Z,Y,ee))}N.exports=Y},c098:function(N,B){var j=9007199254740991,U=/^(?:0|[1-9]\d*)$/;function q(Y,K){var G=typeof Y;return K=K??j,!!K&&(G=="number"||G!="symbol"&&U.test(Y))&&Y>-1&&Y%1==0&&Y<K}N.exports=q},c1c9:function(N,B,j){var U=j("a454"),q=j("f3c1"),Y=q(U);N.exports=Y},c2b6:function(N,B,j){var U=j("f8af"),q=j("5d89"),Y=j("6f6c"),K=j("a2db"),G=j("c8fe"),J="[object Boolean]",Z="[object Date]",ee="[object Map]",te="[object Number]",se="[object RegExp]",re="[object Set]",ne="[object String]",ce="[object Symbol]",me="[object ArrayBuffer]",ue="[object DataView]",_e="[object Float32Array]",fe="[object Float64Array]",ge="[object Int8Array]",ye="[object Int16Array]",xe="[object Int32Array]",le="[object Uint8Array]",be="[object Uint8ClampedArray]",ve="[object Uint16Array]",we="[object Uint32Array]";function Ae(Se,Pe,Me){var Be=Se.constructor;switch(Pe){case me:return U(Se);case J:case Z:return new Be(+Se);case ue:return q(Se,Me);case _e:case fe:case ge:case ye:case xe:case le:case be:case ve:case we:return G(Se,Me);case ee:return new Be;case te:case ne:return new Be(Se);case se:return Y(Se);case re:return new Be;case ce:return K(Se)}}N.exports=Ae},c3fc:function(N,B,j){var U=j("42a2"),q=j("1310"),Y="[object Set]";function K(G){return q(G)&&U(G)==Y}N.exports=K},c430:function(N,B){N.exports=!1},c584:function(N,B){function j(U,q){return U.has(q)}N.exports=j},c6b6:function(N,B){var j={}.toString;N.exports=function(U){return j.call(U).slice(8,-1)}},c6cd:function(N,B,j){var U=j("da84"),q=j("ce4e"),Y="__core-js_shared__",K=U[Y]||q(Y,{});N.exports=K},c6cf:function(N,B,j){var U=j("4d8c"),q=j("2286"),Y=j("c1c9");function K(G){return Y(q(G,void 0,U),G+"")}N.exports=K},c869:function(N,B,j){var U=j("0b07"),q=j("2b3e"),Y=U(q,"Set");N.exports=Y},c87c:function(N,B){var j=Object.prototype,U=j.hasOwnProperty;function q(Y){var K=Y.length,G=new Y.constructor(K);return K&&typeof Y[0]=="string"&&U.call(Y,"index")&&(G.index=Y.index,G.input=Y.input),G}N.exports=q},c8ba:function(N,B){var j;j=function(){return this}();try{j=j||new Function("return this")()}catch{typeof window=="object"&&(j=window)}N.exports=j},c8fe:function(N,B,j){var U=j("f8af");function q(Y,K){var G=K?U(Y.buffer):Y.buffer;return new Y.constructor(G,Y.byteOffset,Y.length)}N.exports=q},ca84:function(N,B,j){var U=j("5135"),q=j("fc6a"),Y=j("4d64").indexOf,K=j("d012");N.exports=function(G,J){var Z,ee=q(G),te=0,se=[];for(Z in ee)!U(K,Z)&&U(ee,Z)&&se.push(Z);for(;J.length>te;)U(ee,Z=J[te++])&&(~Y(se,Z)||se.push(Z));return se}},cb5a:function(N,B,j){var U=j("9638");function q(Y,K){for(var G=Y.length;G--;)if(U(Y[G][0],K))return G;return-1}N.exports=q},cc12:function(N,B,j){var U=j("da84"),q=j("861d"),Y=U.document,K=q(Y)&&q(Y.createElement);N.exports=function(G){return K?Y.createElement(G):{}}},cc45:function(N,B,j){var U=j("1a2d"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isMap,G=K?q(K):U;N.exports=G},cd9d:function(N,B){function j(U){return U}N.exports=j},ce4e:function(N,B,j){var U=j("da84"),q=j("9112");N.exports=function(Y,K){try{q(U,Y,K)}catch{U[Y]=K}return K}},ce86:function(N,B,j){var U=j("9e69"),q=j("7948"),Y=j("6747"),K=j("ffd6"),G=1/0,J=U?U.prototype:void 0,Z=J?J.toString:void 0;function ee(te){if(typeof te=="string")return te;if(Y(te))return q(te,ee)+"";if(K(te))return Z?Z.call(te):"";var se=te+"";return se=="0"&&1/te==-G?"-0":se}N.exports=ee},cebd:function(N,B){function j(U){var q=-1,Y=Array(U.size);return U.forEach(function(K){Y[++q]=[K,K]}),Y}N.exports=j},cecd:function(N,B,j){var U=j("2202");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("8c0a5c0c",U,!0,{sourceMap:!1,shadowMode:!1})},cfe5:function(N,B,j){j.d(B,"a",function(){return J});var U=j("f7f1"),q=j("2fa3"),Y=j("9404"),K=j("29ae");const G=864e5;class J{constructor(ee,{order:te=0,locale:se,isFullDay:re}={}){if(this.isDateInfo=!0,this.order=te,this.locale=se instanceof K.b?se:new K.b(se),this.firstDayOfWeek=this.locale.firstDayOfWeek,!Object(Y.m)(ee)){const ue=this.locale.normalizeDate(ee);ee=re?{start:ue,end:ue}:{startOn:ue,endOn:ue}}let ne=null,ce=null;if(ee.start?ne=this.locale.normalizeDate(ee.start,{...this.opts,time:"00:00:00"}):ee.startOn&&(ne=this.locale.normalizeDate(ee.startOn,this.opts)),ee.end?ce=this.locale.normalizeDate(ee.end,{...this.opts,time:"23:59:59"}):ee.endOn&&(ce=this.locale.normalizeDate(ee.endOn,this.opts)),ne&&ce&&ne>ce){const ue=ne;ne=ce,ce=ue}else ne&&ee.span>=1&&(ce=Object(U.a)(ne,ee.span-1));this.start=ne,this.startTime=ne?ne.getTime():NaN,this.end=ce,this.endTime=ce?ce.getTime():NaN,this.isDate=this.startTime&&this.startTime===this.endTime,this.isRange=!this.isDate;const me=Object(q.i)(ee,{},J.patternProps);if(me.assigned&&(this.on={and:me.target}),ee.on){const ue=(Object(Y.h)(ee.on)?ee.on:[ee.on]).map(function(_e){if(Object(Y.k)(_e))return _e;const fe=Object(q.i)(_e,{},J.patternProps);return fe.assigned?fe.target:null}).filter(function(_e){return _e});ue.length&&(this.on={...this.on,or:ue})}this.isComplex=!!this.on}get opts(){return{order:this.order,locale:this.locale}}toDateInfo(ee){return ee.isDateInfo?ee:new J(ee,this.opts)}startOfWeek(ee){const te=ee.getDay()+1,se=te>=this.firstDayOfWeek?this.firstDayOfWeek-te:-(7-(this.firstDayOfWeek-te));return Object(U.a)(ee,se)}diffInDays(ee,te){return Math.round((te-ee)/G)}diffInWeeks(ee,te){return this.diffInDays(this.startOfWeek(ee),this.startOfWeek(te))}diffInYears(ee,te){return te.getUTCFullYear()-ee.getUTCFullYear()}diffInMonths(ee,te){return 12*this.diffInYears(ee,te)+(te.getMonth()-ee.getMonth())}static get patterns(){return{dailyInterval:{test:function(ee,te,se){return se.diffInDays(se.start||new Date,ee.date)%te===0}},weeklyInterval:{test:function(ee,te,se){return se.diffInWeeks(se.start||new Date,ee.date)%te===0}},monthlyInterval:{test:function(ee,te,se){return se.diffInMonths(se.start||new Date,ee.date)%te===0}},yearlyInterval:{test:function(){return function(ee,te,se){return se.diffInYears(se.start||new Date,ee.date)%te===0}}},days:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.day)||te.includes(-ee.dayFromEnd)}},weekdays:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.weekday)}},ordinalWeekdays:{validate:function(ee){return Object.keys(ee).reduce(function(te,se){const re=ee[se];return re&&(te[se]=Object(Y.h)(re)?re:[parseInt(re,10)]),te},{})},test:function(ee,te){return Object.keys(te).map(function(se){return parseInt(se,10)}).find(function(se){return te[se].includes(ee.weekday)&&(se===ee.weekdayOrdinal||se===-ee.weekdayOrdinalFromEnd)})}},weekends:{validate:function(ee){return ee},test:function(ee){return ee.weekday===1||ee.weekday===7}},workweek:{validate:function(ee){return ee},test:function(ee){return ee.weekday>=2&&ee.weekday<=6}},weeks:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.week)||te.includes(-ee.weekFromEnd)}},months:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.month)}},years:{validate:function(ee){return Object(Y.h)(ee)?ee:[parseInt(ee,10)]},test:function(ee,te){return te.includes(ee.year)}}}}static get patternProps(){return Object.keys(J.patterns).map(function(ee){return{name:ee,validate:J.patterns[ee].validate}})}static testConfig(ee,te,se){return Object(Y.k)(ee)?ee(te):Object(Y.m)(ee)?Object.keys(ee).every(function(re){return J.patterns[re].test(te,ee[re],se)}):null}iterateDatesInRange({start:ee,end:te},se){if(!ee||!te||!Object(Y.k)(se))return null;ee=this.locale.normalizeDate(ee,{...this.opts,time:"00:00:00"});const re={i:0,date:ee,day:this.locale.getDateParts(ee),finished:!1};let ne=null;for(;!re.finished&&re.date<=te;re.i++)ne=se(re),re.date=Object(U.a)(re.date,1),re.day=this.locale.getDateParts(re.date);return ne}shallowIntersectingRange(ee){return this.rangeShallowIntersectingRange(this,this.toDateInfo(ee))}rangeShallowIntersectingRange(ee,te){if(!this.dateShallowIntersectsDate(ee,te))return null;const se=ee.toRange(),re=te.toRange();let ne=null,ce=null;return se.start?ne=re.start?se.start>re.start?se.start:re.start:se.start:re.start&&(ne=re.start),se.end?ce=re.end?se.end<re.end?se.end:re.end:se.end:re.end&&(ce=re.end),{start:ne,end:ce}}intersectsDate(ee){var te=this;const se=this.toDateInfo(ee);if(!this.shallowIntersectsDate(se))return null;if(!this.on)return this;const re=this.rangeShallowIntersectingRange(this,se);let ne=!1;return this.iterateDatesInRange(re,function(ce){te.matchesDay(ce.day)&&(ne=ne||se.matchesDay(ce.day),ce.finished=ne)}),ne}shallowIntersectsDate(ee){return this.dateShallowIntersectsDate(this,this.toDateInfo(ee))}dateShallowIntersectsDate(ee,te){return ee.isDate?te.isDate?ee.startTime===te.startTime:this.dateShallowIncludesDate(te,ee):te.isDate?this.dateShallowIncludesDate(ee,te):!(ee.start&&te.end&&ee.start>te.end)&&!(ee.end&&te.start&&ee.end<te.start)}includesDate(ee){var te=this;const se=this.toDateInfo(ee);if(!this.shallowIncludesDate(se))return!1;if(!this.on)return!0;const re=this.rangeShallowIntersectingRange(this,se);let ne=!0;return this.iterateDatesInRange(re,function(ce){te.matchesDay(ce.day)&&(ne=ne&&se.matchesDay(ce.day),ce.finished=!ne)}),ne}shallowIncludesDate(ee){return this.dateShallowIncludesDate(this,ee.isDate?ee:new J(ee,this.opts))}dateShallowIncludesDate(ee,te){return ee.isDate?te.isDate?ee.startTime===te.startTime:!(!te.startTime||!te.endTime)&&ee.startTime===te.startTime&&ee.startTime===te.endTime:te.isDate?!(ee.start&&te.start<ee.start)&&!(ee.end&&te.start>ee.end):!(ee.start&&(!te.start||te.start<ee.start))&&!(ee.end&&(!te.end||te.end>ee.end))}intersectsDay(ee){return this.shallowIntersectsDate(ee.range)&&this.matchesDay(ee)?this:null}matchesDay(ee){var te=this;return!this.on||!(this.on.and&&!J.testConfig(this.on.and,ee,this))&&!(this.on.or&&!this.on.or.some(function(se){return J.testConfig(se,ee,te)}))}toRange(){return new J({start:this.start,end:this.end},this.opts)}compare(ee){if(this.order!==ee.order)return this.order-ee.order;if(this.isDate!==ee.isDate)return this.isDate?1:-1;if(this.isDate)return 0;const te=this.start-ee.start;return te!==0?te:this.end-ee.end}}},d012:function(N,B){N.exports={}},d02c:function(N,B,j){var U=j("5e2e"),q=j("79bc"),Y=j("7b83"),K=200;function G(J,Z){var ee=this.__data__;if(ee instanceof U){var te=ee.__data__;if(!q||te.length<K-1)return te.push([J,Z]),this.size=++ee.size,this;ee=this.__data__=new Y(te)}return ee.set(J,Z),this.size=ee.size,this}N.exports=G},d039:function(N,B){N.exports=function(j){try{return!!j()}catch{return!0}}},d066:function(N,B,j){var U=j("428f"),q=j("da84"),Y=function(K){return typeof K=="function"?K:void 0};N.exports=function(K,G){return arguments.length<2?Y(U[K])||Y(q[K]):U[K]&&U[K][G]||q[K]&&q[K][G]}},d1e7:function(N,B,j){var U={}.propertyIsEnumerable,q=Object.getOwnPropertyDescriptor,Y=q&&!U.call({1:2},1);B.f=Y?function(K){var G=q(this,K);return!!G&&G.enumerable}:U},d2bb:function(N,B,j){var U=j("825a"),q=j("3bbe");N.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Y,K=!1,G={};try{Y=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,Y.call(G,[]),K=G instanceof Array}catch{}return function(J,Z){return U(J),q(Z),K?Y.call(J,Z):J.__proto__=Z,J}}():void 0)},d327:function(N,B){function j(){return[]}N.exports=j},d370:function(N,B,j){var U=j("253c"),q=j("1310"),Y=Object.prototype,K=Y.hasOwnProperty,G=Y.propertyIsEnumerable,J=U(function(){return arguments}())?U:function(Z){return q(Z)&&K.call(Z,"callee")&&!G.call(Z,"callee")};N.exports=J},d438:function(N,B,j){var U=j("3db9"),q=j.n(U);q.a},d44e:function(N,B,j){var U=j("9bf2").f,q=j("5135"),Y=j("b622"),K=Y("toStringTag");N.exports=function(G,J,Z){G&&!q(G=Z?G:G.prototype,K)&&U(G,K,{configurable:!0,value:J})}},d612:function(N,B,j){var U=j("7b83"),q=j("7ed2"),Y=j("dc0f");function K(G){var J=-1,Z=G==null?0:G.length;for(this.__data__=new U;++J<Z;)this.add(G[J])}K.prototype.add=K.prototype.push=q,K.prototype.has=Y,N.exports=K},d784:function(N,B,j){j("ac1f");var U=j("6eeb"),q=j("9263"),Y=j("d039"),K=j("b622"),G=j("9112"),J=K("species"),Z=RegExp.prototype;N.exports=function(ee,te,se,re){var ne=K(ee),ce=!Y(function(){var fe={};return fe[ne]=function(){return 7},""[ee](fe)!=7}),me=ce&&!Y(function(){var fe=!1,ge=/a/;return ee==="split"&&(ge={},ge.constructor={},ge.constructor[J]=function(){return ge},ge.flags="",ge[ne]=/./[ne]),ge.exec=function(){return fe=!0,null},ge[ne](""),!fe});if(!ce||!me||se){var ue=/./[ne],_e=te(ne,""[ee],function(fe,ge,ye,xe,le){var be=ge.exec;return be===q||be===Z.exec?ce&&!le?{done:!0,value:ue.call(ge,ye,xe)}:{done:!0,value:fe.call(ye,ge,xe)}:{done:!1}});U(String.prototype,ee,_e[0]),U(Z,ne,_e[1])}re&&G(Z[ne],"sham",!0)}},d7ee:function(N,B,j){var U=j("c3fc"),q=j("b047"),Y=j("99d3"),K=Y&&Y.isSet,G=K?q(K):U;N.exports=G},da03:function(N,B,j){var U=j("2b3e"),q=U["__core-js_shared__"];N.exports=q},da84:function(N,B,j){(function(U){var q=function(Y){return Y&&Y.Math==Math&&Y};N.exports=q(typeof globalThis=="object"&&globalThis)||q(typeof window=="object"&&window)||q(typeof self=="object"&&self)||q(typeof U=="object"&&U)||function(){return this}()||Function("return this")()}).call(this,j("c8ba"))},dc0f:function(N,B){function j(U){return this.__data__.has(U)}N.exports=j},dc57:function(N,B){var j=Function.prototype,U=j.toString;function q(Y){if(Y!=null){try{return U.call(Y)}catch{}try{return Y+""}catch{}}return""}N.exports=q},dc8c:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-container{--white:#fff;--black:#000;--gray-100:#f7fafc;--gray-200:#edf2f7;--gray-300:#e2e8f0;--gray-400:#cbd5e0;--gray-500:#a0aec0;--gray-600:#718096;--gray-700:#4a5568;--gray-800:#2d3748;--gray-900:#1a202c;--red-100:#fff5f5;--red-200:#fed7d7;--red-300:#feb2b2;--red-400:#fc8181;--red-500:#f56565;--red-600:#e53e3e;--red-700:#c53030;--red-800:#9b2c2c;--red-900:#742a2a;--orange-100:#fffaf0;--orange-200:#feebc8;--orange-300:#fbd38d;--orange-400:#f6ad55;--orange-500:#ed8936;--orange-600:#dd6b20;--orange-700:#c05621;--orange-800:#9c4221;--orange-900:#7b341e;--yellow-100:ivory;--yellow-200:#fefcbf;--yellow-300:#faf089;--yellow-400:#f6e05e;--yellow-500:#ecc94b;--yellow-600:#d69e2e;--yellow-700:#b7791f;--yellow-800:#975a16;--yellow-900:#744210;--green-100:#f0fff4;--green-200:#c6f6d5;--green-300:#9ae6b4;--green-400:#68d391;--green-500:#48bb78;--green-600:#38a169;--green-700:#2f855a;--green-800:#276749;--green-900:#22543d;--teal-100:#e6fffa;--teal-200:#b2f5ea;--teal-300:#81e6d9;--teal-400:#4fd1c5;--teal-500:#38b2ac;--teal-600:#319795;--teal-700:#2c7a7b;--teal-800:#285e61;--teal-900:#234e52;--blue-100:#ebf8ff;--blue-200:#bee3f8;--blue-300:#90cdf4;--blue-400:#63b3ed;--blue-500:#4299e1;--blue-600:#3182ce;--blue-700:#2b6cb0;--blue-800:#2c5282;--blue-900:#2a4365;--indigo-100:#ebf4ff;--indigo-200:#c3dafe;--indigo-300:#a3bffa;--indigo-400:#7f9cf5;--indigo-500:#667eea;--indigo-600:#5a67d8;--indigo-700:#4c51bf;--indigo-800:#434190;--indigo-900:#3c366b;--purple-100:#faf5ff;--purple-200:#e9d8fd;--purple-300:#d6bcfa;--purple-400:#b794f4;--purple-500:#9f7aea;--purple-600:#805ad5;--purple-700:#6b46c1;--purple-800:#553c9a;--purple-900:#44337a;--pink-100:#fff5f7;--pink-200:#fed7e2;--pink-300:#fbb6ce;--pink-400:#f687b3;--pink-500:#ed64a6;--pink-600:#d53f8c;--pink-700:#b83280;--pink-800:#97266d;--pink-900:#702459}.vc-container.vc-red{--accent-100:var(--red-100);--accent-200:var(--red-200);--accent-300:var(--red-300);--accent-400:var(--red-400);--accent-500:var(--red-500);--accent-600:var(--red-600);--accent-700:var(--red-700);--accent-800:var(--red-800);--accent-900:var(--red-900)}.vc-container.vc-orange{--accent-100:var(--orange-100);--accent-200:var(--orange-200);--accent-300:var(--orange-300);--accent-400:var(--orange-400);--accent-500:var(--orange-500);--accent-600:var(--orange-600);--accent-700:var(--orange-700);--accent-800:var(--orange-800);--accent-900:var(--orange-900)}.vc-container.vc-yellow{--accent-100:var(--yellow-100);--accent-200:var(--yellow-200);--accent-300:var(--yellow-300);--accent-400:var(--yellow-400);--accent-500:var(--yellow-500);--accent-600:var(--yellow-600);--accent-700:var(--yellow-700);--accent-800:var(--yellow-800);--accent-900:var(--yellow-900)}.vc-container.vc-green{--accent-100:var(--green-100);--accent-200:var(--green-200);--accent-300:var(--green-300);--accent-400:var(--green-400);--accent-500:var(--green-500);--accent-600:var(--green-600);--accent-700:var(--green-700);--accent-800:var(--green-800);--accent-900:var(--green-900)}.vc-container.vc-teal{--accent-100:var(--teal-100);--accent-200:var(--teal-200);--accent-300:var(--teal-300);--accent-400:var(--teal-400);--accent-500:var(--teal-500);--accent-600:var(--teal-600);--accent-700:var(--teal-700);--accent-800:var(--teal-800);--accent-900:var(--teal-900)}.vc-container.vc-blue{--accent-100:var(--blue-100);--accent-200:var(--blue-200);--accent-300:var(--blue-300);--accent-400:var(--blue-400);--accent-500:var(--blue-500);--accent-600:var(--blue-600);--accent-700:var(--blue-700);--accent-800:var(--blue-800);--accent-900:var(--blue-900)}.vc-container.vc-indigo{--accent-100:var(--indigo-100);--accent-200:var(--indigo-200);--accent-300:var(--indigo-300);--accent-400:var(--indigo-400);--accent-500:var(--indigo-500);--accent-600:var(--indigo-600);--accent-700:var(--indigo-700);--accent-800:var(--indigo-800);--accent-900:var(--indigo-900)}.vc-container.vc-purple{--accent-100:var(--purple-100);--accent-200:var(--purple-200);--accent-300:var(--purple-300);--accent-400:var(--purple-400);--accent-500:var(--purple-500);--accent-600:var(--purple-600);--accent-700:var(--purple-700);--accent-800:var(--purple-800);--accent-900:var(--purple-900)}.vc-container.vc-pink{--accent-100:var(--pink-100);--accent-200:var(--pink-200);--accent-300:var(--pink-300);--accent-400:var(--pink-400);--accent-500:var(--pink-500);--accent-600:var(--pink-600);--accent-700:var(--pink-700);--accent-800:var(--pink-800);--accent-900:var(--pink-900)}.vc-container{--font-normal:400;--font-medium:500;--font-semibold:600;--font-bold:700;--text-xs:12px;--text-sm:14px;--text-base:16px;--text-lg:18px;--leading-snug:1.375;--rounded:0.25rem;--rounded-lg:0.5rem;--rounded-full:9999px;--shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);--shadow-lg:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);--shadow-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--slide-translate:22px;--slide-duration:0.15s;--slide-timing:ease;--day-content-transition-time:0.13s ease-in;--weeknumber-offset:-34px;position:relative;display:inline-flex;width:max-content;height:max-content;font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--gray-900);background-color:var(--white);border:1px solid;border-color:var(--gray-400);border-radius:var(--rounded-lg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}.vc-container,.vc-container *{box-sizing:border-box}.vc-container:focus,.vc-container :focus{outline:none}.vc-container [role=button],.vc-container button{cursor:pointer}.vc-container.vc-is-expanded{min-width:100%}.vc-container .vc-container{border:none}.vc-container.vc-is-dark{color:var(--gray-100);background-color:var(--gray-900);border-color:var(--gray-700)}",""]),N.exports=B},dcbe:function(N,B,j){var U=j("30c9"),q=j("1310");function Y(K){return q(K)&&U(K)}N.exports=Y},dd61:function(N,B,j){var U=j("7948"),q=j("badf"),Y=j("97d3"),K=j("6747");function G(J,Z){var ee=K(J)?U:Y;return ee(J,q(Z,3))}N.exports=G},ddb0:function(N,B,j){var U=j("da84"),q=j("fdbc"),Y=j("e260"),K=j("9112"),G=j("b622"),J=G("iterator"),Z=G("toStringTag"),ee=Y.values;for(var te in q){var se=U[te],re=se&&se.prototype;if(re){if(re[J]!==ee)try{K(re,J,ee)}catch{re[J]=ee}if(re[Z]||K(re,Z,te),q[te]){for(var ne in Y)if(re[ne]!==Y[ne])try{K(re,ne,Y[ne])}catch{re[ne]=Y[ne]}}}}},de5e:function(N,B,j){var U=j("72f5"),q=j.n(U);q.a},df75:function(N,B,j){var U=j("ca84"),q=j("7839");N.exports=Object.keys||function(Y){return U(Y,q)}},df9e:function(N,B,j){var U=j("9e83");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("29f48e5f",U,!0,{sourceMap:!1,shadowMode:!1})},e031:function(N,B,j){var U=j("f909"),q=j("1a8c");function Y(K,G,J,Z,ee,te){return q(K)&&q(G)&&(te.set(G,K),U(K,G,void 0,Y,te),te.delete(G)),K}N.exports=Y},e052:function(N,B,j){var U=j("0fb2");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("54fe3190",U,!0,{sourceMap:!1,shadowMode:!1})},e0e7:function(N,B,j){var U=j("60ed");function q(Y){return U(Y)?void 0:Y}N.exports=q},e163:function(N,B,j){var U=j("5135"),q=j("7b0b"),Y=j("f772"),K=j("e177"),G=Y("IE_PROTO"),J=Object.prototype;N.exports=K?Object.getPrototypeOf:function(Z){return Z=q(Z),U(Z,G)?Z[G]:typeof Z.constructor=="function"&&Z instanceof Z.constructor?Z.constructor.prototype:Z instanceof Object?J:null}},e177:function(N,B,j){var U=j("d039");N.exports=!U(function(){function q(){}return q.prototype.constructor=null,Object.getPrototypeOf(new q)!==q.prototype})},e24b:function(N,B,j){var U=j("49f4"),q=j("1efc"),Y=j("bbc0"),K=j("7a48"),G=j("2524");function J(Z){var ee=-1,te=Z==null?0:Z.length;for(this.clear();++ee<te;){var se=Z[ee];this.set(se[0],se[1])}}J.prototype.clear=U,J.prototype.delete=q,J.prototype.get=Y,J.prototype.has=K,J.prototype.set=G,N.exports=J},e260:function(N,B,j){var U=j("fc6a"),q=j("44d2"),Y=j("3f8c"),K=j("69f3"),G=j("7dd0"),J="Array Iterator",Z=K.set,ee=K.getterFor(J);N.exports=G(Array,"Array",function(te,se){Z(this,{type:J,target:U(te),index:0,kind:se})},function(){var te=ee(this),se=te.target,re=te.kind,ne=te.index++;return!se||ne>=se.length?(te.target=void 0,{value:void 0,done:!0}):re=="keys"?{value:ne,done:!1}:re=="values"?{value:se[ne],done:!1}:{value:[ne,se[ne]],done:!1}},"values"),Y.Arguments=Y.Array,q("keys"),q("values"),q("entries")},e2a0:function(N,B,j){var U=j("3729"),q=j("6747"),Y=j("1310"),K="[object String]";function G(J){return typeof J=="string"||!q(J)&&Y(J)&&U(J)==K}N.exports=G},e2c0:function(N,B,j){var U=j("e2e4"),q=j("d370"),Y=j("6747"),K=j("c098"),G=j("b218"),J=j("f4d6");function Z(ee,te,se){te=U(te,ee);for(var re=-1,ne=te.length,ce=!1;++re<ne;){var me=J(te[re]);if(!(ce=ee!=null&&se(ee,me)))break;ee=ee[me]}return ce||++re!=ne?ce:(ne=ee==null?0:ee.length,!!ne&&G(ne)&&K(me,ne)&&(Y(ee)||q(ee)))}N.exports=Z},e2e4:function(N,B,j){var U=j("6747"),q=j("f608"),Y=j("18d8"),K=j("76dd");function G(J,Z){return U(J)?J:q(J,Z)?[J]:Y(K(J))}N.exports=G},e380:function(N,B,j){var U=j("7b83"),q="Expected a function";function Y(K,G){if(typeof K!="function"||G!=null&&typeof G!="function")throw new TypeError(q);var J=function(){var Z=arguments,ee=G?G.apply(this,Z):Z[0],te=J.cache;if(te.has(ee))return te.get(ee);var se=K.apply(this,Z);return J.cache=te.set(ee,se)||te,se};return J.cache=new(Y.Cache||U),J}Y.Cache=U,N.exports=Y},e3f8:function(N,B,j){var U=j("656b");function q(Y){return function(K){return U(K,Y)}}N.exports=q},e538:function(N,B,j){(function(U){var q=j("2b3e"),Y=B&&!B.nodeType&&B,K=Y&&typeof U=="object"&&U&&!U.nodeType&&U,G=K&&K.exports===Y,J=G?q.Buffer:void 0,Z=J?J.allocUnsafe:void 0;function ee(te,se){if(se)return te.slice();var re=te.length,ne=Z?Z(re):new te.constructor(re);return te.copy(ne),ne}U.exports=ee}).call(this,j("62e4")(N))},e893:function(N,B,j){var U=j("5135"),q=j("56ef"),Y=j("06cf"),K=j("9bf2");N.exports=function(G,J){for(var Z=q(J),ee=K.f,te=Y.f,se=0;se<Z.length;se++){var re=Z[se];U(G,re)||ee(G,re,te(J,re))}}},e969:function(N,B,j){var U=j("0da5");typeof U=="string"&&(U=[[N.i,U,""]]),U.locals&&(N.exports=U.locals);var q=j("499e").default;q("61c2bd5e",U,!0,{sourceMap:!1,shadowMode:!1})},eac5:function(N,B){var j=Object.prototype;function U(q){var Y=q&&q.constructor,K=typeof Y=="function"&&Y.prototype||j;return q===K}N.exports=U},ec47:function(N,B,j){var U=j("a3fd"),q=j("42a2"),Y=j("edfa"),K=j("cebd"),G="[object Map]",J="[object Set]";function Z(ee){return function(te){var se=q(te);return se==G?Y(te):se==J?K(te):U(te,ee(te))}}N.exports=Z},ec69:function(N,B,j){var U=j("6fcd"),q=j("03dd"),Y=j("30c9");function K(G){return Y(G)?U(G):q(G)}N.exports=K},ec8c:function(N,B){function j(U){var q=[];if(U!=null)for(var Y in Object(U))q.push(Y);return q}N.exports=j},ed08:function(N,B,j){j.r(B),j.d(B,"Locale",function(){return U.b}),j.d(B,"DateInfo",function(){return q.a}),j.d(B,"Attribute",function(){return Y.a}),j.d(B,"AttributeStore",function(){return K.a}),j.d(B,"setupCalendar",function(){return Z}),j.d(B,"pad",function(){return ee.m}),j.d(B,"evalFn",function(){return ee.f}),j.d(B,"mergeEvents",function(){return ee.h}),j.d(B,"pageIsValid",function(){return ee.r}),j.d(B,"pageIsBeforePage",function(){return ee.o}),j.d(B,"pageIsAfterPage",function(){return ee.n}),j.d(B,"pageIsBetweenPages",function(){return ee.p}),j.d(B,"pageIsEqualToPage",function(){return ee.q}),j.d(B,"addPages",function(){return ee.a}),j.d(B,"pageRangeToArray",function(){return ee.s}),j.d(B,"datesAreEqual",function(){return ee.d}),j.d(B,"arrayHasItems",function(){return ee.b}),j.d(B,"mixinOptionalProps",function(){return ee.i}),j.d(B,"on",function(){return ee.k}),j.d(B,"off",function(){return ee.j}),j.d(B,"elementContains",function(){return ee.e}),j.d(B,"onSpaceOrEnter",function(){return ee.l}),j.d(B,"createGuid",function(){return ee.c}),j.d(B,"hash",function(){return ee.g}),j.d(B,"addHorizontalSwipeHandler",function(){return te.a});var U=j("29ae"),q=j("cfe5"),Y=j("22f3"),K=j("9349"),G=j("51ec"),J=j("1315"),Z=function(se){const re=Object(G.b)(se);return Object(J.a)(re.screens,!0),re},ee=j("2fa3"),te=j("0733")},edfa:function(N,B){function j(U){var q=-1,Y=Array(U.size);return U.forEach(function(K,G){Y[++q]=[G,K]}),Y}N.exports=j},ef5d:function(N,B){function j(U){return function(q){return q==null?void 0:q[U]}}N.exports=j},efb6:function(N,B,j){var U=j("5e2e");function q(){this.__data__=new U,this.size=0}N.exports=q},f15d:function(N,B,j){j("ddb0");var U=j("9404");const q={ar:{dow:7,L:"D/M/YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};q.en=q["en-US"],q.es=q["es-ES"],q.no=q.nb,q.zh=q["zh-CN"],Object(U.w)(q).forEach(function([Y,{dow:K,L:G}]){q[Y]={id:Y,firstDayOfWeek:K,masks:{L:G}}}),B.a=q},f3c1:function(N,B){var j=800,U=16,q=Date.now;function Y(K){var G=0,J=0;return function(){var Z=q(),ee=U-(Z-J);if(J=Z,ee>0){if(++G>=j)return arguments[0]}else G=0;return K.apply(void 0,arguments)}}N.exports=Y},f4d6:function(N,B,j){var U=j("ffd6"),q=1/0;function Y(K){if(typeof K=="string"||U(K))return K;var G=K+"";return G=="0"&&1/K==-q?"-0":G}N.exports=Y},f542:function(N,B,j){var U=j("ec47"),q=j("ec69"),Y=U(q);N.exports=Y},f608:function(N,B,j){var U=j("6747"),q=j("ffd6"),Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/;function G(J,Z){if(U(J))return!1;var ee=typeof J;return!(ee!="number"&&ee!="symbol"&&ee!="boolean"&&J!=null&&!q(J))||K.test(J)||!Y.test(J)||Z!=null&&J in Object(Z)}N.exports=G},f678:function(N,B,j){var U=j("8384"),q=j("b4b0");function Y(K,G,J){return J===void 0&&(J=G,G=void 0),J!==void 0&&(J=q(J),J=J===J?J:0),G!==void 0&&(G=q(G),G=G===G?G:0),U(q(K),G,J)}N.exports=Y},f772:function(N,B,j){var U=j("5692"),q=j("90e3"),Y=U("keys");N.exports=function(K){return Y[K]||(Y[K]=q(K))}},f7f1:function(N,B,j){j.d(B,"a",function(){return K});var U=j("fe1f"),q=j("fd3a"),Y=j("8c86");function K(G,J){Object(Y.a)(2,arguments);var Z=Object(q.a)(G),ee=Object(U.a)(J);return isNaN(ee)?new Date(NaN):(ee&&Z.setDate(Z.getDate()+ee),Z)}},f8af:function(N,B,j){var U=j("2474");function q(Y){var K=new Y.constructor(Y.byteLength);return new U(K).set(new U(Y)),K}N.exports=q},f909:function(N,B,j){var U=j("7e64"),q=j("b760"),Y=j("72af"),K=j("4f50"),G=j("1a8c"),J=j("9934"),Z=j("8adb");function ee(te,se,re,ne,ce){te!==se&&Y(se,function(me,ue){if(ce||(ce=new U),G(me))K(te,se,ue,re,ee,ne,ce);else{var _e=ne?ne(Z(te,ue),me,ue+"",te,se,ce):void 0;_e===void 0&&(_e=me),q(te,ue,_e)}},J)}N.exports=ee},f9ce:function(N,B,j){var U=j("ef5d"),q=j("e3f8"),Y=j("f608"),K=j("f4d6");function G(J){return Y(J)?U(K(J)):q(J)}N.exports=G},fa21:function(N,B,j){var U=j("7530"),q=j("2dcb"),Y=j("eac5");function K(G){return typeof G.constructor!="function"||Y(G)?{}:U(q(G))}N.exports=K},fb15:function(N,B,j){if(j.r(B),j.d(B,"Calendar",function(){return Y.c}),j.d(B,"CalendarNav",function(){return Y.d}),j.d(B,"DatePicker",function(){return Y.f}),j.d(B,"Popover",function(){return Y.h}),j.d(B,"Locale",function(){return Y.g}),j.d(B,"DateInfo",function(){return Y.e}),j.d(B,"Attribute",function(){return Y.a}),j.d(B,"AttributeStore",function(){return Y.b}),j.d(B,"setupCalendar",function(){return Y.D}),j.d(B,"pad",function(){return Y.w}),j.d(B,"evalFn",function(){return Y.p}),j.d(B,"mergeEvents",function(){return Y.r}),j.d(B,"pageIsValid",function(){return Y.B}),j.d(B,"pageIsBeforePage",function(){return Y.y}),j.d(B,"pageIsAfterPage",function(){return Y.x}),j.d(B,"pageIsBetweenPages",function(){return Y.z}),j.d(B,"pageIsEqualToPage",function(){return Y.A}),j.d(B,"addPages",function(){return Y.j}),j.d(B,"pageRangeToArray",function(){return Y.C}),j.d(B,"datesAreEqual",function(){return Y.m}),j.d(B,"arrayHasItems",function(){return Y.k}),j.d(B,"mixinOptionalProps",function(){return Y.s}),j.d(B,"on",function(){return Y.u}),j.d(B,"off",function(){return Y.t}),j.d(B,"elementContains",function(){return Y.o}),j.d(B,"onSpaceOrEnter",function(){return Y.v}),j.d(B,"createGuid",function(){return Y.l}),j.d(B,"hash",function(){return Y.q}),j.d(B,"addHorizontalSwipeHandler",function(){return Y.i}),typeof window<"u"){var U=window.document.currentScript,q=U&&U.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);q&&(j.p=q[1])}var Y=j("34e9");B.default=Y.n},fba5:function(N,B,j){var U=j("cb5a");function q(Y){return U(this.__data__,Y)>-1}N.exports=q},fc6a:function(N,B,j){var U=j("44ad"),q=j("1d80");N.exports=function(Y){return U(q(Y))}},fccf:function(N,B,j){var U=j("53b1"),q=j.n(U);q.a},fce3:function(N,B,j){var U=j("d039");N.exports=U(function(){var q=RegExp(".","string".charAt(0));return!(q.dotAll&&q.exec(` `)&&q.flags==="s")})},fcff:function(N,B,j){var U=j("24fb");B=U(!1),B.push([N.i,".vc-svg-icon[data-v-63f7b5ec]{display:inline-block;stroke:currentColor;stroke-width:0}.vc-svg-icon path[data-v-63f7b5ec]{fill:currentColor}",""]),N.exports=B},fd3a:function(N,B,j){j.d(B,"a",function(){return q});var U=j("8c86");function q(Y){Object(U.a)(1,arguments);var K=Object.prototype.toString.call(Y);return Y instanceof Date||typeof Y=="object"&&K==="[object Date]"?new Date(Y.getTime()):typeof Y=="number"||K==="[object Number]"?new Date(Y):(typeof Y!="string"&&K!=="[object String]"||typeof console>"u"||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}},fdbc:function(N,B){N.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(N,B,j){var U=j("4930");N.exports=U&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},fe1f:function(N,B,j){function U(q){if(q===null||q===!0||q===!1)return NaN;var Y=Number(q);return isNaN(Y)?Y:Y<0?Math.ceil(Y):Math.floor(Y)}j.d(B,"a",function(){return U})},ffd6:function(N,B,j){var U=j("3729"),q=j("1310"),Y="[object Symbol]";function K(G){return typeof G=="symbol"||q(G)&&U(G)==Y}N.exports=K}})})})(vCalendar_umd_min);var vCalendar_umd_minExports=vCalendar_umd_min.exports;const VCalendar=getDefaultExportFromCjs$1(vCalendar_umd_minExports);//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(M){hookCallback=M}function isArray(M){return M instanceof Array||Object.prototype.toString.call(M)==="[object Array]"}function isObject(M){return M!=null&&Object.prototype.toString.call(M)==="[object Object]"}function hasOwnProp(M,$){return Object.prototype.hasOwnProperty.call(M,$)}function isObjectEmpty(M){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(M).length===0;var $;for($ in M)if(hasOwnProp(M,$))return!1;return!0}function isUndefined(M){return M===void 0}function isNumber(M){return typeof M=="number"||Object.prototype.toString.call(M)==="[object Number]"}function isDate(M){return M instanceof Date||Object.prototype.toString.call(M)==="[object Date]"}function map(M,$){var I=[],N,B=M.length;for(N=0;N<B;++N)I.push($(M[N],N));return I}function extend(M,$){for(var I in $)hasOwnProp($,I)&&(M[I]=$[I]);return hasOwnProp($,"toString")&&(M.toString=$.toString),hasOwnProp($,"valueOf")&&(M.valueOf=$.valueOf),M}function createUTC(M,$,I,N){return createLocalOrUTC(M,$,I,N,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(M){return M._pf==null&&(M._pf=defaultParsingFlags()),M._pf}var some;Array.prototype.some?some=Array.prototype.some:some=function(M){var $=Object(this),I=$.length>>>0,N;for(N=0;N<I;N++)if(N in $&&M.call(this,$[N],N,$))return!0;return!1};function isValid(M){if(M._isValid==null){var $=getParsingFlags(M),I=some.call($.parsedDateParts,function(B){return B!=null}),N=!isNaN(M._d.getTime())&&$.overflow<0&&!$.empty&&!$.invalidEra&&!$.invalidMonth&&!$.invalidWeekday&&!$.weekdayMismatch&&!$.nullInput&&!$.invalidFormat&&!$.userInvalidated&&(!$.meridiem||$.meridiem&&I);if(M._strict&&(N=N&&$.charsLeftOver===0&&$.unusedTokens.length===0&&$.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(M))M._isValid=N;else return N}return M._isValid}function createInvalid(M){var $=createUTC(NaN);return M!=null?extend(getParsingFlags($),M):getParsingFlags($).userInvalidated=!0,$}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(M,$){var I,N,B,j=momentProperties.length;if(isUndefined($._isAMomentObject)||(M._isAMomentObject=$._isAMomentObject),isUndefined($._i)||(M._i=$._i),isUndefined($._f)||(M._f=$._f),isUndefined($._l)||(M._l=$._l),isUndefined($._strict)||(M._strict=$._strict),isUndefined($._tzm)||(M._tzm=$._tzm),isUndefined($._isUTC)||(M._isUTC=$._isUTC),isUndefined($._offset)||(M._offset=$._offset),isUndefined($._pf)||(M._pf=getParsingFlags($)),isUndefined($._locale)||(M._locale=$._locale),j>0)for(I=0;I<j;I++)N=momentProperties[I],B=$[N],isUndefined(B)||(M[N]=B);return M}function Moment(M){copyConfig(this,M),this._d=new Date(M._d!=null?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(M){return M instanceof Moment||M!=null&&M._isAMomentObject!=null}function warn(M){hooks.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+M)}function deprecate(M,$){var I=!0;return extend(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,M),I){var N=[],B,j,U,q=arguments.length;for(j=0;j<q;j++){if(B="",typeof arguments[j]=="object"){B+=` [`+j+"] ";for(U in arguments[0])hasOwnProp(arguments[0],U)&&(B+=U+": "+arguments[0][U]+", ");B=B.slice(0,-2)}else B=arguments[j];N.push(B)}warn(M+` Arguments: `+Array.prototype.slice.call(N).join("")+` `+new Error().stack),I=!1}return $.apply(this,arguments)},$)}var deprecations={};function deprecateSimple(M,$){hooks.deprecationHandler!=null&&hooks.deprecationHandler(M,$),deprecations[M]||(warn($),deprecations[M]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction(M){return typeof Function<"u"&&M instanceof Function||Object.prototype.toString.call(M)==="[object Function]"}function set(M){var $,I;for(I in M)hasOwnProp(M,I)&&($=M[I],isFunction($)?this[I]=$:this["_"+I]=$);this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(M,$){var I=extend({},M),N;for(N in $)hasOwnProp($,N)&&(isObject(M[N])&&isObject($[N])?(I[N]={},extend(I[N],M[N]),extend(I[N],$[N])):$[N]!=null?I[N]=$[N]:delete I[N]);for(N in M)hasOwnProp(M,N)&&!hasOwnProp($,N)&&isObject(M[N])&&(I[N]=extend({},I[N]));return I}function Locale(M){M!=null&&this.set(M)}var keys;Object.keys?keys=Object.keys:keys=function(M){var $,I=[];for($ in M)hasOwnProp(M,$)&&I.push($);return I};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(M,$,I){var N=this._calendar[M]||this._calendar.sameElse;return isFunction(N)?N.call($,I):N}function zeroFill(M,$,I){var N=""+Math.abs(M),B=$-N.length,j=M>=0;return(j?I?"+":"":"-")+Math.pow(10,Math.max(0,B)).toString().substr(1)+N}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(M,$,I,N){var B=N;typeof N=="string"&&(B=function(){return this[N]()}),M&&(formatTokenFunctions[M]=B),$&&(formatTokenFunctions[$[0]]=function(){return zeroFill(B.apply(this,arguments),$[1],$[2])}),I&&(formatTokenFunctions[I]=function(){return this.localeData().ordinal(B.apply(this,arguments),M)})}function removeFormattingTokens(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function makeFormatFunction(M){var $=M.match(formattingTokens),I,N;for(I=0,N=$.length;I<N;I++)formatTokenFunctions[$[I]]?$[I]=formatTokenFunctions[$[I]]:$[I]=removeFormattingTokens($[I]);return function(B){var j="",U;for(U=0;U<N;U++)j+=isFunction($[U])?$[U].call(B,M):$[U];return j}}function formatMoment(M,$){return M.isValid()?($=expandFormat($,M.localeData()),formatFunctions[$]=formatFunctions[$]||makeFormatFunction($),formatFunctions[$](M)):M.localeData().invalidDate()}function expandFormat(M,$){var I=5;function N(B){return $.longDateFormat(B)||B}for(localFormattingTokens.lastIndex=0;I>=0&&localFormattingTokens.test(M);)M=M.replace(localFormattingTokens,N),localFormattingTokens.lastIndex=0,I-=1;return M}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(M){var $=this._longDateFormat[M],I=this._longDateFormat[M.toUpperCase()];return $||!I?$:(this._longDateFormat[M]=I.match(formattingTokens).map(function(N){return N==="MMMM"||N==="MM"||N==="DD"||N==="dddd"?N.slice(1):N}).join(""),this._longDateFormat[M])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(M){return this._ordinal.replace("%d",M)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(M,$,I,N){var B=this._relativeTime[I];return isFunction(B)?B(M,$,I,N):B.replace(/%d/i,M)}function pastFuture(M,$){var I=this._relativeTime[M>0?"future":"past"];return isFunction(I)?I($):I.replace(/%s/i,$)}var aliases={};function addUnitAlias(M,$){var I=M.toLowerCase();aliases[I]=aliases[I+"s"]=aliases[$]=M}function normalizeUnits(M){return typeof M=="string"?aliases[M]||aliases[M.toLowerCase()]:void 0}function normalizeObjectUnits(M){var $={},I,N;for(N in M)hasOwnProp(M,N)&&(I=normalizeUnits(N),I&&($[I]=M[N]));return $}var priorities={};function addUnitPriority(M,$){priorities[M]=$}function getPrioritizedUnits(M){var $=[],I;for(I in M)hasOwnProp(M,I)&&$.push({unit:I,priority:priorities[I]});return $.sort(function(N,B){return N.priority-B.priority}),$}function isLeapYear(M){return M%4===0&&M%100!==0||M%400===0}function absFloor(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function toInt(M){var $=+M,I=0;return $!==0&&isFinite($)&&(I=absFloor($)),I}function makeGetSet(M,$){return function(I){return I!=null?(set$1(this,M,I),hooks.updateOffset(this,$),this):get(this,M)}}function get(M,$){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+$]():NaN}function set$1(M,$,I){M.isValid()&&!isNaN(I)&&($==="FullYear"&&isLeapYear(M.year())&&M.month()===1&&M.date()===29?(I=toInt(I),M._d["set"+(M._isUTC?"UTC":"")+$](I,M.month(),daysInMonth(I,M.month()))):M._d["set"+(M._isUTC?"UTC":"")+$](I))}function stringGet(M){return M=normalizeUnits(M),isFunction(this[M])?this[M]():this}function stringSet(M,$){if(typeof M=="object"){M=normalizeObjectUnits(M);var I=getPrioritizedUnits(M),N,B=I.length;for(N=0;N<B;N++)this[I[N].unit](M[I[N].unit])}else if(M=normalizeUnits(M),isFunction(this[M]))return this[M]($);return this}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,regexes;regexes={};function addRegexToken(M,$,I){regexes[M]=isFunction($)?$:function(N,B){return N&&I?I:$}}function getParseRegexForToken(M,$){return hasOwnProp(regexes,M)?regexes[M]($._strict,$._locale):new RegExp(unescapeFormat(M))}function unescapeFormat(M){return regexEscape(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function($,I,N,B,j){return I||N||B||j}))}function regexEscape(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(M,$){var I,N=$,B;for(typeof M=="string"&&(M=[M]),isNumber($)&&(N=function(j,U){U[$]=toInt(j)}),B=M.length,I=0;I<B;I++)tokens[M[I]]=N}function addWeekParseToken(M,$){addParseToken(M,function(I,N,B,j){B._w=B._w||{},$(I,B._w,B,j)})}function addTimeToArrayFromToken(M,$,I){$!=null&&hasOwnProp(tokens,M)&&tokens[M]($,I._a,I,M)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function mod(M,$){return(M%$+$)%$}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(M){var $;for($=0;$<this.length;++$)if(this[$]===M)return $;return-1};function daysInMonth(M,$){if(isNaN(M)||isNaN($))return NaN;var I=mod($,12);return M+=($-I)/12,I===1?isLeapYear(M)?29:28:31-I%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(M){return this.localeData().monthsShort(this,M)});addFormatToken("MMMM",0,0,function(M){return this.localeData().months(this,M)});addUnitAlias("month","M");addUnitPriority("month",8);addRegexToken("M",match1to2);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(M,$){return $.monthsShortRegex(M)});addRegexToken("MMMM",function(M,$){return $.monthsRegex(M)});addParseToken(["M","MM"],function(M,$){$[MONTH]=toInt(M)-1});addParseToken(["MMM","MMMM"],function(M,$,I,N){var B=I._locale.monthsParse(M,N,I._strict);B!=null?$[MONTH]=B:getParsingFlags(I).invalidMonth=M});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(M,$){return M?isArray(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test($)?"format":"standalone"][M.month()]:isArray(this._months)?this._months:this._months.standalone}function localeMonthsShort(M,$){return M?isArray(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[MONTHS_IN_FORMAT.test($)?"format":"standalone"][M.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(M,$,I){var N,B,j,U=M.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],N=0;N<12;++N)j=createUTC([2e3,N]),this._shortMonthsParse[N]=this.monthsShort(j,"").toLocaleLowerCase(),this._longMonthsParse[N]=this.months(j,"").toLocaleLowerCase();return I?$==="MMM"?(B=indexOf.call(this._shortMonthsParse,U),B!==-1?B:null):(B=indexOf.call(this._longMonthsParse,U),B!==-1?B:null):$==="MMM"?(B=indexOf.call(this._shortMonthsParse,U),B!==-1?B:(B=indexOf.call(this._longMonthsParse,U),B!==-1?B:null)):(B=indexOf.call(this._longMonthsParse,U),B!==-1?B:(B=indexOf.call(this._shortMonthsParse,U),B!==-1?B:null))}function localeMonthsParse(M,$,I){var N,B,j;if(this._monthsParseExact)return handleStrictParse.call(this,M,$,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),N=0;N<12;N++){if(B=createUTC([2e3,N]),I&&!this._longMonthsParse[N]&&(this._longMonthsParse[N]=new RegExp("^"+this.months(B,"").replace(".","")+"$","i"),this._shortMonthsParse[N]=new RegExp("^"+this.monthsShort(B,"").replace(".","")+"$","i")),!I&&!this._monthsParse[N]&&(j="^"+this.months(B,"")+"|^"+this.monthsShort(B,""),this._monthsParse[N]=new RegExp(j.replace(".",""),"i")),I&&$==="MMMM"&&this._longMonthsParse[N].test(M))return N;if(I&&$==="MMM"&&this._shortMonthsParse[N].test(M))return N;if(!I&&this._monthsParse[N].test(M))return N}}function setMonth(M,$){var I;if(!M.isValid())return M;if(typeof $=="string"){if(/^\d+$/.test($))$=toInt($);else if($=M.localeData().monthsParse($),!isNumber($))return M}return I=Math.min(M.date(),daysInMonth(M.year(),$)),M._d["set"+(M._isUTC?"UTC":"")+"Month"]($,I),M}function getSetMonth(M){return M!=null?(setMonth(this,M),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(M){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(M){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),M?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function M(U,q){return q.length-U.length}var $=[],I=[],N=[],B,j;for(B=0;B<12;B++)j=createUTC([2e3,B]),$.push(this.monthsShort(j,"")),I.push(this.months(j,"")),N.push(this.months(j,"")),N.push(this.monthsShort(j,""));for($.sort(M),I.sort(M),N.sort(M),B=0;B<12;B++)$[B]=regexEscape($[B]),I[B]=regexEscape(I[B]);for(B=0;B<24;B++)N[B]=regexEscape(N[B]);this._monthsRegex=new RegExp("^("+N.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+$.join("|")+")","i")}addFormatToken("Y",0,0,function(){var M=this.year();return M<=9999?zeroFill(M,4):"+"+M});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,!0],0,"year");addUnitAlias("year","y");addUnitPriority("year",1);addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(M,$){$[YEAR]=M.length===2?hooks.parseTwoDigitYear(M):toInt(M)});addParseToken("YY",function(M,$){$[YEAR]=hooks.parseTwoDigitYear(M)});addParseToken("Y",function(M,$){$[YEAR]=parseInt(M,10)});function daysInYear(M){return isLeapYear(M)?366:365}hooks.parseTwoDigitYear=function(M){return toInt(M)+(toInt(M)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(M,$,I,N,B,j,U){var q;return M<100&&M>=0?(q=new Date(M+400,$,I,N,B,j,U),isFinite(q.getFullYear())&&q.setFullYear(M)):q=new Date(M,$,I,N,B,j,U),q}function createUTCDate(M){var $,I;return M<100&&M>=0?(I=Array.prototype.slice.call(arguments),I[0]=M+400,$=new Date(Date.UTC.apply(null,I)),isFinite($.getUTCFullYear())&&$.setUTCFullYear(M)):$=new Date(Date.UTC.apply(null,arguments)),$}function firstWeekOffset(M,$,I){var N=7+$-I,B=(7+createUTCDate(M,0,N).getUTCDay()-$)%7;return-B+N-1}function dayOfYearFromWeeks(M,$,I,N,B){var j=(7+I-N)%7,U=firstWeekOffset(M,N,B),q=1+7*($-1)+j+U,Y,K;return q<=0?(Y=M-1,K=daysInYear(Y)+q):q>daysInYear(M)?(Y=M+1,K=q-daysInYear(M)):(Y=M,K=q),{year:Y,dayOfYear:K}}function weekOfYear(M,$,I){var N=firstWeekOffset(M.year(),$,I),B=Math.floor((M.dayOfYear()-N-1)/7)+1,j,U;return B<1?(U=M.year()-1,j=B+weeksInYear(U,$,I)):B>weeksInYear(M.year(),$,I)?(j=B-weeksInYear(M.year(),$,I),U=M.year()+1):(U=M.year(),j=B),{week:j,year:U}}function weeksInYear(M,$,I){var N=firstWeekOffset(M,$,I),B=firstWeekOffset(M+1,$,I);return(daysInYear(M)-N+B)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(M,$,I,N){$[N.substr(0,1)]=toInt(M)});function localeWeek(M){return weekOfYear(M,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(M){var $=this.localeData().week(this);return M==null?$:this.add((M-$)*7,"d")}function getSetISOWeek(M){var $=weekOfYear(this,1,4).week;return M==null?$:this.add((M-$)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(M){return this.localeData().weekdaysMin(this,M)});addFormatToken("ddd",0,0,function(M){return this.localeData().weekdaysShort(this,M)});addFormatToken("dddd",0,0,function(M){return this.localeData().weekdays(this,M)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(M,$){return $.weekdaysMinRegex(M)});addRegexToken("ddd",function(M,$){return $.weekdaysShortRegex(M)});addRegexToken("dddd",function(M,$){return $.weekdaysRegex(M)});addWeekParseToken(["dd","ddd","dddd"],function(M,$,I,N){var B=I._locale.weekdaysParse(M,N,I._strict);B!=null?$.d=B:getParsingFlags(I).invalidWeekday=M});addWeekParseToken(["d","e","E"],function(M,$,I,N){$[N]=toInt(M)});function parseWeekday(M,$){return typeof M!="string"?M:isNaN(M)?(M=$.weekdaysParse(M),typeof M=="number"?M:null):parseInt(M,10)}function parseIsoWeekday(M,$){return typeof M=="string"?$.weekdaysParse(M)%7||7:isNaN(M)?null:M}function shiftWeekdays(M,$){return M.slice($,7).concat(M.slice(0,$))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(M,$){var I=isArray(this._weekdays)?this._weekdays:this._weekdays[M&&M!==!0&&this._weekdays.isFormat.test($)?"format":"standalone"];return M===!0?shiftWeekdays(I,this._week.dow):M?I[M.day()]:I}function localeWeekdaysShort(M){return M===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function localeWeekdaysMin(M){return M===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function handleStrictParse$1(M,$,I){var N,B,j,U=M.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],N=0;N<7;++N)j=createUTC([2e3,1]).day(N),this._minWeekdaysParse[N]=this.weekdaysMin(j,"").toLocaleLowerCase(),this._shortWeekdaysParse[N]=this.weekdaysShort(j,"").toLocaleLowerCase(),this._weekdaysParse[N]=this.weekdays(j,"").toLocaleLowerCase();return I?$==="dddd"?(B=indexOf.call(this._weekdaysParse,U),B!==-1?B:null):$==="ddd"?(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1?B:null):(B=indexOf.call(this._minWeekdaysParse,U),B!==-1?B:null):$==="dddd"?(B=indexOf.call(this._weekdaysParse,U),B!==-1||(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1)?B:(B=indexOf.call(this._minWeekdaysParse,U),B!==-1?B:null)):$==="ddd"?(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1||(B=indexOf.call(this._weekdaysParse,U),B!==-1)?B:(B=indexOf.call(this._minWeekdaysParse,U),B!==-1?B:null)):(B=indexOf.call(this._minWeekdaysParse,U),B!==-1||(B=indexOf.call(this._weekdaysParse,U),B!==-1)?B:(B=indexOf.call(this._shortWeekdaysParse,U),B!==-1?B:null))}function localeWeekdaysParse(M,$,I){var N,B,j;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,M,$,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),N=0;N<7;N++){if(B=createUTC([2e3,1]).day(N),I&&!this._fullWeekdaysParse[N]&&(this._fullWeekdaysParse[N]=new RegExp("^"+this.weekdays(B,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[N]=new RegExp("^"+this.weekdaysShort(B,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[N]=new RegExp("^"+this.weekdaysMin(B,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[N]||(j="^"+this.weekdays(B,"")+"|^"+this.weekdaysShort(B,"")+"|^"+this.weekdaysMin(B,""),this._weekdaysParse[N]=new RegExp(j.replace(".",""),"i")),I&&$==="dddd"&&this._fullWeekdaysParse[N].test(M))return N;if(I&&$==="ddd"&&this._shortWeekdaysParse[N].test(M))return N;if(I&&$==="dd"&&this._minWeekdaysParse[N].test(M))return N;if(!I&&this._weekdaysParse[N].test(M))return N}}function getSetDayOfWeek(M){if(!this.isValid())return M!=null?this:NaN;var $=this._isUTC?this._d.getUTCDay():this._d.getDay();return M!=null?(M=parseWeekday(M,this.localeData()),this.add(M-$,"d")):$}function getSetLocaleDayOfWeek(M){if(!this.isValid())return M!=null?this:NaN;var $=(this.day()+7-this.localeData()._week.dow)%7;return M==null?$:this.add(M-$,"d")}function getSetISODayOfWeek(M){if(!this.isValid())return M!=null?this:NaN;if(M!=null){var $=parseIsoWeekday(M,this.localeData());return this.day(this.day()%7?$:$-7)}else return this.day()||7}function weekdaysRegex(M){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(M){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(M){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function M(G,J){return J.length-G.length}var $=[],I=[],N=[],B=[],j,U,q,Y,K;for(j=0;j<7;j++)U=createUTC([2e3,1]).day(j),q=regexEscape(this.weekdaysMin(U,"")),Y=regexEscape(this.weekdaysShort(U,"")),K=regexEscape(this.weekdays(U,"")),$.push(q),I.push(Y),N.push(K),B.push(q),B.push(Y),B.push(K);$.sort(M),I.sort(M),N.sort(M),B.sort(M),this._weekdaysRegex=new RegExp("^("+B.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+$.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(M,$){addFormatToken(M,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),$)})}meridiem("a",!0);meridiem("A",!1);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(M,$){return $._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("k",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(M,$,I){var N=toInt(M);$[HOUR]=N===24?0:N});addParseToken(["a","A"],function(M,$,I){I._isPm=I._locale.isPM(M),I._meridiem=M});addParseToken(["h","hh"],function(M,$,I){$[HOUR]=toInt(M),getParsingFlags(I).bigHour=!0});addParseToken("hmm",function(M,$,I){var N=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N)),getParsingFlags(I).bigHour=!0});addParseToken("hmmss",function(M,$,I){var N=M.length-4,B=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N,2)),$[SECOND]=toInt(M.substr(B)),getParsingFlags(I).bigHour=!0});addParseToken("Hmm",function(M,$,I){var N=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N))});addParseToken("Hmmss",function(M,$,I){var N=M.length-4,B=M.length-2;$[HOUR]=toInt(M.substr(0,N)),$[MINUTE]=toInt(M.substr(N,2)),$[SECOND]=toInt(M.substr(B))});function localeIsPM(M){return(M+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(M,$,I){return M>11?I?"pm":"PM":I?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(M,$){var I,N=Math.min(M.length,$.length);for(I=0;I<N;I+=1)if(M[I]!==$[I])return I;return N}function normalizeLocale(M){return M&&M.toLowerCase().replace("_","-")}function chooseLocale(M){for(var $=0,I,N,B,j;$<M.length;){for(j=normalizeLocale(M[$]).split("-"),I=j.length,N=normalizeLocale(M[$+1]),N=N?N.split("-"):null;I>0;){if(B=loadLocale(j.slice(0,I).join("-")),B)return B;if(N&&N.length>=I&&commonPrefix(j,N)>=I-1)break;I--}$++}return globalLocale}function isLocaleNameSane(M){return M.match("^[^/\\\\]*$")!=null}function loadLocale(M){var $=null,I;if(locales[M]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(M))try{$=globalLocale._abbr,I=require,I("./locale/"+M),getSetGlobalLocale($)}catch{locales[M]=null}return locales[M]}function getSetGlobalLocale(M,$){var I;return M&&(isUndefined($)?I=getLocale(M):I=defineLocale(M,$),I?globalLocale=I:typeof console<"u"&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(M,$){if($!==null){var I,N=baseConfig;if($.abbr=M,locales[M]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),N=locales[M]._config;else if($.parentLocale!=null)if(locales[$.parentLocale]!=null)N=locales[$.parentLocale]._config;else if(I=loadLocale($.parentLocale),I!=null)N=I._config;else return localeFamilies[$.parentLocale]||(localeFamilies[$.parentLocale]=[]),localeFamilies[$.parentLocale].push({name:M,config:$}),null;return locales[M]=new Locale(mergeConfigs(N,$)),localeFamilies[M]&&localeFamilies[M].forEach(function(B){defineLocale(B.name,B.config)}),getSetGlobalLocale(M),locales[M]}else return delete locales[M],null}function updateLocale(M,$){if($!=null){var I,N,B=baseConfig;locales[M]!=null&&locales[M].parentLocale!=null?locales[M].set(mergeConfigs(locales[M]._config,$)):(N=loadLocale(M),N!=null&&(B=N._config),$=mergeConfigs(B,$),N==null&&($.abbr=M),I=new Locale($),I.parentLocale=locales[M],locales[M]=I),getSetGlobalLocale(M)}else locales[M]!=null&&(locales[M].parentLocale!=null?(locales[M]=locales[M].parentLocale,M===getSetGlobalLocale()&&getSetGlobalLocale(M)):locales[M]!=null&&delete locales[M]);return locales[M]}function getLocale(M){var $;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return globalLocale;if(!isArray(M)){if($=loadLocale(M),$)return $;M=[M]}return chooseLocale(M)}function listLocales(){return keys(locales)}function checkOverflow(M){var $,I=M._a;return I&&getParsingFlags(M).overflow===-2&&($=I[MONTH]<0||I[MONTH]>11?MONTH:I[DATE]<1||I[DATE]>daysInMonth(I[YEAR],I[MONTH])?DATE:I[HOUR]<0||I[HOUR]>24||I[HOUR]===24&&(I[MINUTE]!==0||I[SECOND]!==0||I[MILLISECOND]!==0)?HOUR:I[MINUTE]<0||I[MINUTE]>59?MINUTE:I[SECOND]<0||I[SECOND]>59?SECOND:I[MILLISECOND]<0||I[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(M)._overflowDayOfYear&&($<YEAR||$>DATE)&&($=DATE),getParsingFlags(M)._overflowWeeks&&$===-1&&($=WEEK),getParsingFlags(M)._overflowWeekday&&$===-1&&($=WEEKDAY),getParsingFlags(M).overflow=$),M}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(M){var $,I,N=M._i,B=extendedIsoRegex.exec(N)||basicIsoRegex.exec(N),j,U,q,Y,K=isoDates.length,G=isoTimes.length;if(B){for(getParsingFlags(M).iso=!0,$=0,I=K;$<I;$++)if(isoDates[$][1].exec(B[1])){U=isoDates[$][0],j=isoDates[$][2]!==!1;break}if(U==null){M._isValid=!1;return}if(B[3]){for($=0,I=G;$<I;$++)if(isoTimes[$][1].exec(B[3])){q=(B[2]||" ")+isoTimes[$][0];break}if(q==null){M._isValid=!1;return}}if(!j&&q!=null){M._isValid=!1;return}if(B[4])if(tzRegex.exec(B[4]))Y="Z";else{M._isValid=!1;return}M._f=U+(q||"")+(Y||""),configFromStringAndFormat(M)}else M._isValid=!1}function extractFromRFC2822Strings(M,$,I,N,B,j){var U=[untruncateYear(M),defaultLocaleMonthsShort.indexOf($),parseInt(I,10),parseInt(N,10),parseInt(B,10)];return j&&U.push(parseInt(j,10)),U}function untruncateYear(M){var $=parseInt(M,10);return $<=49?2e3+$:$<=999?1900+$:$}function preprocessRFC2822(M){return M.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(M,$,I){if(M){var N=defaultLocaleWeekdaysShort.indexOf(M),B=new Date($[0],$[1],$[2]).getDay();if(N!==B)return getParsingFlags(I).weekdayMismatch=!0,I._isValid=!1,!1}return!0}function calculateOffset(M,$,I){if(M)return obsOffsets[M];if($)return 0;var N=parseInt(I,10),B=N%100,j=(N-B)/100;return j*60+B}function configFromRFC2822(M){var $=rfc2822.exec(preprocessRFC2822(M._i)),I;if($){if(I=extractFromRFC2822Strings($[4],$[3],$[2],$[5],$[6],$[7]),!checkWeekday($[1],I,M))return;M._a=I,M._tzm=calculateOffset($[8],$[9],$[10]),M._d=createUTCDate.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),getParsingFlags(M).rfc2822=!0}else M._isValid=!1}function configFromString(M){var $=aspNetJsonRegex.exec(M._i);if($!==null){M._d=new Date(+$[1]);return}if(configFromISO(M),M._isValid===!1)delete M._isValid;else return;if(configFromRFC2822(M),M._isValid===!1)delete M._isValid;else return;M._strict?M._isValid=!1:hooks.createFromInputFallback(M)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))});function defaults(M,$,I){return M??$??I}function currentDateArray(M){var $=new Date(hooks.now());return M._useUTC?[$.getUTCFullYear(),$.getUTCMonth(),$.getUTCDate()]:[$.getFullYear(),$.getMonth(),$.getDate()]}function configFromArray(M){var $,I,N=[],B,j,U;if(!M._d){for(B=currentDateArray(M),M._w&&M._a[DATE]==null&&M._a[MONTH]==null&&dayOfYearFromWeekInfo(M),M._dayOfYear!=null&&(U=defaults(M._a[YEAR],B[YEAR]),(M._dayOfYear>daysInYear(U)||M._dayOfYear===0)&&(getParsingFlags(M)._overflowDayOfYear=!0),I=createUTCDate(U,0,M._dayOfYear),M._a[MONTH]=I.getUTCMonth(),M._a[DATE]=I.getUTCDate()),$=0;$<3&&M._a[$]==null;++$)M._a[$]=N[$]=B[$];for(;$<7;$++)M._a[$]=N[$]=M._a[$]==null?$===2?1:0:M._a[$];M._a[HOUR]===24&&M._a[MINUTE]===0&&M._a[SECOND]===0&&M._a[MILLISECOND]===0&&(M._nextDay=!0,M._a[HOUR]=0),M._d=(M._useUTC?createUTCDate:createDate).apply(null,N),j=M._useUTC?M._d.getUTCDay():M._d.getDay(),M._tzm!=null&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[HOUR]=24),M._w&&typeof M._w.d<"u"&&M._w.d!==j&&(getParsingFlags(M).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(M){var $,I,N,B,j,U,q,Y,K;$=M._w,$.GG!=null||$.W!=null||$.E!=null?(j=1,U=4,I=defaults($.GG,M._a[YEAR],weekOfYear(createLocal(),1,4).year),N=defaults($.W,1),B=defaults($.E,1),(B<1||B>7)&&(Y=!0)):(j=M._locale._week.dow,U=M._locale._week.doy,K=weekOfYear(createLocal(),j,U),I=defaults($.gg,M._a[YEAR],K.year),N=defaults($.w,K.week),$.d!=null?(B=$.d,(B<0||B>6)&&(Y=!0)):$.e!=null?(B=$.e+j,($.e<0||$.e>6)&&(Y=!0)):B=j),N<1||N>weeksInYear(I,j,U)?getParsingFlags(M)._overflowWeeks=!0:Y!=null?getParsingFlags(M)._overflowWeekday=!0:(q=dayOfYearFromWeeks(I,N,B,j,U),M._a[YEAR]=q.year,M._dayOfYear=q.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(M){if(M._f===hooks.ISO_8601){configFromISO(M);return}if(M._f===hooks.RFC_2822){configFromRFC2822(M);return}M._a=[],getParsingFlags(M).empty=!0;var $=""+M._i,I,N,B,j,U,q=$.length,Y=0,K,G;for(B=expandFormat(M._f,M._locale).match(formattingTokens)||[],G=B.length,I=0;I<G;I++)j=B[I],N=($.match(getParseRegexForToken(j,M))||[])[0],N&&(U=$.substr(0,$.indexOf(N)),U.length>0&&getParsingFlags(M).unusedInput.push(U),$=$.slice($.indexOf(N)+N.length),Y+=N.length),formatTokenFunctions[j]?(N?getParsingFlags(M).empty=!1:getParsingFlags(M).unusedTokens.push(j),addTimeToArrayFromToken(j,N,M)):M._strict&&!N&&getParsingFlags(M).unusedTokens.push(j);getParsingFlags(M).charsLeftOver=q-Y,$.length>0&&getParsingFlags(M).unusedInput.push($),M._a[HOUR]<=12&&getParsingFlags(M).bigHour===!0&&M._a[HOUR]>0&&(getParsingFlags(M).bigHour=void 0),getParsingFlags(M).parsedDateParts=M._a.slice(0),getParsingFlags(M).meridiem=M._meridiem,M._a[HOUR]=meridiemFixWrap(M._locale,M._a[HOUR],M._meridiem),K=getParsingFlags(M).era,K!==null&&(M._a[YEAR]=M._locale.erasConvertYear(K,M._a[YEAR])),configFromArray(M),checkOverflow(M)}function meridiemFixWrap(M,$,I){var N;return I==null?$:M.meridiemHour!=null?M.meridiemHour($,I):(M.isPM!=null&&(N=M.isPM(I),N&&$<12&&($+=12),!N&&$===12&&($=0)),$)}function configFromStringAndArray(M){var $,I,N,B,j,U,q=!1,Y=M._f.length;if(Y===0){getParsingFlags(M).invalidFormat=!0,M._d=new Date(NaN);return}for(B=0;B<Y;B++)j=0,U=!1,$=copyConfig({},M),M._useUTC!=null&&($._useUTC=M._useUTC),$._f=M._f[B],configFromStringAndFormat($),isValid($)&&(U=!0),j+=getParsingFlags($).charsLeftOver,j+=getParsingFlags($).unusedTokens.length*10,getParsingFlags($).score=j,q?j<N&&(N=j,I=$):(N==null||j<N||U)&&(N=j,I=$,U&&(q=!0));extend(M,I||$)}function configFromObject(M){if(!M._d){var $=normalizeObjectUnits(M._i),I=$.day===void 0?$.date:$.day;M._a=map([$.year,$.month,I,$.hour,$.minute,$.second,$.millisecond],function(N){return N&&parseInt(N,10)}),configFromArray(M)}}function createFromConfig(M){var $=new Moment(checkOverflow(prepareConfig(M)));return $._nextDay&&($.add(1,"d"),$._nextDay=void 0),$}function prepareConfig(M){var $=M._i,I=M._f;return M._locale=M._locale||getLocale(M._l),$===null||I===void 0&&$===""?createInvalid({nullInput:!0}):(typeof $=="string"&&(M._i=$=M._locale.preparse($)),isMoment($)?new Moment(checkOverflow($)):(isDate($)?M._d=$:isArray(I)?configFromStringAndArray(M):I?configFromStringAndFormat(M):configFromInput(M),isValid(M)||(M._d=null),M))}function configFromInput(M){var $=M._i;isUndefined($)?M._d=new Date(hooks.now()):isDate($)?M._d=new Date($.valueOf()):typeof $=="string"?configFromString(M):isArray($)?(M._a=map($.slice(0),function(I){return parseInt(I,10)}),configFromArray(M)):isObject($)?configFromObject(M):isNumber($)?M._d=new Date($):hooks.createFromInputFallback(M)}function createLocalOrUTC(M,$,I,N,B){var j={};return($===!0||$===!1)&&(N=$,$=void 0),(I===!0||I===!1)&&(N=I,I=void 0),(isObject(M)&&isObjectEmpty(M)||isArray(M)&&M.length===0)&&(M=void 0),j._isAMomentObject=!0,j._useUTC=j._isUTC=B,j._l=I,j._i=M,j._f=$,j._strict=N,createFromConfig(j)}function createLocal(M,$,I,N){return createLocalOrUTC(M,$,I,N,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=createLocal.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=createLocal.apply(null,arguments);return this.isValid()&&M.isValid()?M>this?this:M:createInvalid()});function pickBy(M,$){var I,N;if($.length===1&&isArray($[0])&&($=$[0]),!$.length)return createLocal();for(I=$[0],N=1;N<$.length;++N)(!$[N].isValid()||$[N][M](I))&&(I=$[N]);return I}function min(){var M=[].slice.call(arguments,0);return pickBy("isBefore",M)}function max(){var M=[].slice.call(arguments,0);return pickBy("isAfter",M)}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(M){var $,I=!1,N,B=ordering.length;for($ in M)if(hasOwnProp(M,$)&&!(indexOf.call(ordering,$)!==-1&&(M[$]==null||!isNaN(M[$]))))return!1;for(N=0;N<B;++N)if(M[ordering[N]]){if(I)return!1;parseFloat(M[ordering[N]])!==toInt(M[ordering[N]])&&(I=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(M){var $=normalizeObjectUnits(M),I=$.year||0,N=$.quarter||0,B=$.month||0,j=$.week||$.isoWeek||0,U=$.day||0,q=$.hour||0,Y=$.minute||0,K=$.second||0,G=$.millisecond||0;this._isValid=isDurationValid($),this._milliseconds=+G+K*1e3+Y*6e4+q*1e3*60*60,this._days=+U+j*7,this._months=+B+N*3+I*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(M){return M instanceof Duration}function absRound(M){return M<0?Math.round(-1*M)*-1:Math.round(M)}function compareArrays(M,$,I){var N=Math.min(M.length,$.length),B=Math.abs(M.length-$.length),j=0,U;for(U=0;U<N;U++)(I&&M[U]!==$[U]||!I&&toInt(M[U])!==toInt($[U]))&&j++;return j+B}function offset(M,$){addFormatToken(M,0,0,function(){var I=this.utcOffset(),N="+";return I<0&&(I=-I,N="-"),N+zeroFill(~~(I/60),2)+$+zeroFill(~~I%60,2)})}offset("Z",":");offset("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(M,$,I){I._useUTC=!0,I._tzm=offsetFromString(matchShortOffset,M)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(M,$){var I=($||"").match(M),N,B,j;return I===null?null:(N=I[I.length-1]||[],B=(N+"").match(chunkOffset)||["-",0,0],j=+(B[1]*60)+toInt(B[2]),j===0?0:B[0]==="+"?j:-j)}function cloneWithOffset(M,$){var I,N;return $._isUTC?(I=$.clone(),N=(isMoment(M)||isDate(M)?M.valueOf():createLocal(M).valueOf())-I.valueOf(),I._d.setTime(I._d.valueOf()+N),hooks.updateOffset(I,!1),I):createLocal(M).local()}function getDateOffset(M){return-Math.round(M._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(M,$,I){var N=this._offset||0,B;if(!this.isValid())return M!=null?this:NaN;if(M!=null){if(typeof M=="string"){if(M=offsetFromString(matchShortOffset,M),M===null)return this}else Math.abs(M)<16&&!I&&(M=M*60);return!this._isUTC&&$&&(B=getDateOffset(this)),this._offset=M,this._isUTC=!0,B!=null&&this.add(B,"m"),N!==M&&(!$||this._changeInProgress?addSubtract(this,createDuration(M-N,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?N:getDateOffset(this)}function getSetZone(M,$){return M!=null?(typeof M!="string"&&(M=-M),this.utcOffset(M,$),this):-this.utcOffset()}function setOffsetToUTC(M){return this.utcOffset(0,M)}function setOffsetToLocal(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var M=offsetFromString(matchOffset,this._i);M!=null?this.utcOffset(M):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(M){return this.isValid()?(M=M?createLocal(M).utcOffset():0,(this.utcOffset()-M)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var M={},$;return copyConfig(M,this),M=prepareConfig(M),M._a?($=M._isUTC?createUTC(M._a):createLocal(M._a),this._isDSTShifted=this.isValid()&&compareArrays(M._a,$.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(M,$){var I=M,N=null,B,j,U;return isDuration(M)?I={ms:M._milliseconds,d:M._days,M:M._months}:isNumber(M)||!isNaN(+M)?(I={},$?I[$]=+M:I.milliseconds=+M):(N=aspNetRegex.exec(M))?(B=N[1]==="-"?-1:1,I={y:0,d:toInt(N[DATE])*B,h:toInt(N[HOUR])*B,m:toInt(N[MINUTE])*B,s:toInt(N[SECOND])*B,ms:toInt(absRound(N[MILLISECOND]*1e3))*B}):(N=isoRegex.exec(M))?(B=N[1]==="-"?-1:1,I={y:parseIso(N[2],B),M:parseIso(N[3],B),w:parseIso(N[4],B),d:parseIso(N[5],B),h:parseIso(N[6],B),m:parseIso(N[7],B),s:parseIso(N[8],B)}):I==null?I={}:typeof I=="object"&&("from"in I||"to"in I)&&(U=momentsDifference(createLocal(I.from),createLocal(I.to)),I={},I.ms=U.milliseconds,I.M=U.months),j=new Duration(I),isDuration(M)&&hasOwnProp(M,"_locale")&&(j._locale=M._locale),isDuration(M)&&hasOwnProp(M,"_isValid")&&(j._isValid=M._isValid),j}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(M,$){var I=M&&parseFloat(M.replace(",","."));return(isNaN(I)?0:I)*$}function positiveMomentsDifference(M,$){var I={};return I.months=$.month()-M.month()+($.year()-M.year())*12,M.clone().add(I.months,"M").isAfter($)&&--I.months,I.milliseconds=+$-+M.clone().add(I.months,"M"),I}function momentsDifference(M,$){var I;return M.isValid()&&$.isValid()?($=cloneWithOffset($,M),M.isBefore($)?I=positiveMomentsDifference(M,$):(I=positiveMomentsDifference($,M),I.milliseconds=-I.milliseconds,I.months=-I.months),I):{milliseconds:0,months:0}}function createAdder(M,$){return function(I,N){var B,j;return N!==null&&!isNaN(+N)&&(deprecateSimple($,"moment()."+$+"(period, number) is deprecated. Please use moment()."+$+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),j=I,I=N,N=j),B=createDuration(I,N),addSubtract(this,B,M),this}}function addSubtract(M,$,I,N){var B=$._milliseconds,j=absRound($._days),U=absRound($._months);M.isValid()&&(N=N??!0,U&&setMonth(M,get(M,"Month")+U*I),j&&set$1(M,"Date",get(M,"Date")+j*I),B&&M._d.setTime(M._d.valueOf()+B*I),N&&hooks.updateOffset(M,j||U))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(M){return typeof M=="string"||M instanceof String}function isMomentInput(M){return isMoment(M)||isDate(M)||isString(M)||isNumber(M)||isNumberOrStringArray(M)||isMomentInputObject(M)||M===null||M===void 0}function isMomentInputObject(M){var $=isObject(M)&&!isObjectEmpty(M),I=!1,N=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],B,j,U=N.length;for(B=0;B<U;B+=1)j=N[B],I=I||hasOwnProp(M,j);return $&&I}function isNumberOrStringArray(M){var $=isArray(M),I=!1;return $&&(I=M.filter(function(N){return!isNumber(N)&&isString(M)}).length===0),$&&I}function isCalendarSpec(M){var $=isObject(M)&&!isObjectEmpty(M),I=!1,N=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],B,j;for(B=0;B<N.length;B+=1)j=N[B],I=I||hasOwnProp(M,j);return $&&I}function getCalendarFormat(M,$){var I=M.diff($,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"}function calendar$1(M,$){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(M=arguments[0],$=void 0):isCalendarSpec(arguments[0])&&($=arguments[0],M=void 0):(M=void 0,$=void 0));var I=M||createLocal(),N=cloneWithOffset(I,this).startOf("day"),B=hooks.calendarFormat(this,N)||"sameElse",j=$&&(isFunction($[B])?$[B].call(this,I):$[B]);return this.format(j||this.localeData().calendar(B,this,createLocal(I)))}function clone$1(){return new Moment(this)}function isAfter(M,$){var I=isMoment(M)?M:createLocal(M);return this.isValid()&&I.isValid()?($=normalizeUnits($)||"millisecond",$==="millisecond"?this.valueOf()>I.valueOf():I.valueOf()<this.clone().startOf($).valueOf()):!1}function isBefore(M,$){var I=isMoment(M)?M:createLocal(M);return this.isValid()&&I.isValid()?($=normalizeUnits($)||"millisecond",$==="millisecond"?this.valueOf()<I.valueOf():this.clone().endOf($).valueOf()<I.valueOf()):!1}function isBetween(M,$,I,N){var B=isMoment(M)?M:createLocal(M),j=isMoment($)?$:createLocal($);return this.isValid()&&B.isValid()&&j.isValid()?(N=N||"()",(N[0]==="("?this.isAfter(B,I):!this.isBefore(B,I))&&(N[1]===")"?this.isBefore(j,I):!this.isAfter(j,I))):!1}function isSame(M,$){var I=isMoment(M)?M:createLocal(M),N;return this.isValid()&&I.isValid()?($=normalizeUnits($)||"millisecond",$==="millisecond"?this.valueOf()===I.valueOf():(N=I.valueOf(),this.clone().startOf($).valueOf()<=N&&N<=this.clone().endOf($).valueOf())):!1}function isSameOrAfter(M,$){return this.isSame(M,$)||this.isAfter(M,$)}function isSameOrBefore(M,$){return this.isSame(M,$)||this.isBefore(M,$)}function diff(M,$,I){var N,B,j;if(!this.isValid())return NaN;if(N=cloneWithOffset(M,this),!N.isValid())return NaN;switch(B=(N.utcOffset()-this.utcOffset())*6e4,$=normalizeUnits($),$){case"year":j=monthDiff(this,N)/12;break;case"month":j=monthDiff(this,N);break;case"quarter":j=monthDiff(this,N)/3;break;case"second":j=(this-N)/1e3;break;case"minute":j=(this-N)/6e4;break;case"hour":j=(this-N)/36e5;break;case"day":j=(this-N-B)/864e5;break;case"week":j=(this-N-B)/6048e5;break;default:j=this-N}return I?j:absFloor(j)}function monthDiff(M,$){if(M.date()<$.date())return-monthDiff($,M);var I=($.year()-M.year())*12+($.month()-M.month()),N=M.clone().add(I,"months"),B,j;return $-N<0?(B=M.clone().add(I-1,"months"),j=($-N)/(N-B)):(B=M.clone().add(I+1,"months"),j=($-N)/(B-N)),-(I+j)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(M){if(!this.isValid())return null;var $=M!==!0,I=$?this.clone().utc():this;return I.year()<0||I.year()>9999?formatMoment(I,$?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?$?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(I,"Z")):formatMoment(I,$?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M="moment",$="",I,N,B,j;return this.isLocal()||(M=this.utcOffset()===0?"moment.utc":"moment.parseZone",$="Z"),I="["+M+'("]',N=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",B="-MM-DD[T]HH:mm:ss.SSS",j=$+'[")]',this.format(I+N+B+j)}function format(M){M||(M=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var $=formatMoment(this,M);return this.localeData().postformat($)}function from(M,$){return this.isValid()&&(isMoment(M)&&M.isValid()||createLocal(M).isValid())?createDuration({to:this,from:M}).locale(this.locale()).humanize(!$):this.localeData().invalidDate()}function fromNow(M){return this.from(createLocal(),M)}function to(M,$){return this.isValid()&&(isMoment(M)&&M.isValid()||createLocal(M).isValid())?createDuration({from:this,to:M}).locale(this.locale()).humanize(!$):this.localeData().invalidDate()}function toNow(M){return this.to(createLocal(),M)}function locale(M){var $;return M===void 0?this._locale._abbr:($=getLocale(M),$!=null&&(this._locale=$),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(M){return M===void 0?this.localeData():this.locale(M)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(M,$){return(M%$+$)%$}function localStartOfDate(M,$,I){return M<100&&M>=0?new Date(M+400,$,I)-MS_PER_400_YEARS:new Date(M,$,I).valueOf()}function utcStartOfDate(M,$,I){return M<100&&M>=0?Date.UTC(M+400,$,I)-MS_PER_400_YEARS:Date.UTC(M,$,I)}function startOf(M){var $,I;if(M=normalizeUnits(M),M===void 0||M==="millisecond"||!this.isValid())return this;switch(I=this._isUTC?utcStartOfDate:localStartOfDate,M){case"year":$=I(this.year(),0,1);break;case"quarter":$=I(this.year(),this.month()-this.month()%3,1);break;case"month":$=I(this.year(),this.month(),1);break;case"week":$=I(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":$=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":$=I(this.year(),this.month(),this.date());break;case"hour":$=this._d.valueOf(),$-=mod$1($+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":$=this._d.valueOf(),$-=mod$1($,MS_PER_MINUTE);break;case"second":$=this._d.valueOf(),$-=mod$1($,MS_PER_SECOND);break}return this._d.setTime($),hooks.updateOffset(this,!0),this}function endOf(M){var $,I;if(M=normalizeUnits(M),M===void 0||M==="millisecond"||!this.isValid())return this;switch(I=this._isUTC?utcStartOfDate:localStartOfDate,M){case"year":$=I(this.year()+1,0,1)-1;break;case"quarter":$=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":$=I(this.year(),this.month()+1,1)-1;break;case"week":$=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":$=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":$=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":$=this._d.valueOf(),$+=MS_PER_HOUR-mod$1($+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":$=this._d.valueOf(),$+=MS_PER_MINUTE-mod$1($,MS_PER_MINUTE)-1;break;case"second":$=this._d.valueOf(),$+=MS_PER_SECOND-mod$1($,MS_PER_SECOND)-1;break}return this._d.setTime($),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]}function toObject(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(M,$,I,N){var B=I._locale.erasParse(M,N,I._strict);B?getParsingFlags(I).era=B:getParsingFlags(I).invalidEra=M});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(M,$,I,N){var B;I._locale._eraYearOrdinalRegex&&(B=M.match(I._locale._eraYearOrdinalRegex)),I._locale.eraYearOrdinalParse?$[YEAR]=I._locale.eraYearOrdinalParse(M,B):$[YEAR]=parseInt(M,10)});function localeEras(M,$){var I,N,B,j=this._eras||getLocale("en")._eras;for(I=0,N=j.length;I<N;++I){switch(typeof j[I].since){case"string":B=hooks(j[I].since).startOf("day"),j[I].since=B.valueOf();break}switch(typeof j[I].until){case"undefined":j[I].until=1/0;break;case"string":B=hooks(j[I].until).startOf("day").valueOf(),j[I].until=B.valueOf();break}}return j}function localeErasParse(M,$,I){var N,B,j=this.eras(),U,q,Y;for(M=M.toUpperCase(),N=0,B=j.length;N<B;++N)if(U=j[N].name.toUpperCase(),q=j[N].abbr.toUpperCase(),Y=j[N].narrow.toUpperCase(),I)switch($){case"N":case"NN":case"NNN":if(q===M)return j[N];break;case"NNNN":if(U===M)return j[N];break;case"NNNNN":if(Y===M)return j[N];break}else if([U,q,Y].indexOf(M)>=0)return j[N]}function localeErasConvertYear(M,$){var I=M.since<=M.until?1:-1;return $===void 0?hooks(M.since).year():hooks(M.since).year()+($-M.offset)*I}function getEraName(){var M,$,I,N=this.localeData().eras();for(M=0,$=N.length;M<$;++M)if(I=this.clone().startOf("day").valueOf(),N[M].since<=I&&I<=N[M].until||N[M].until<=I&&I<=N[M].since)return N[M].name;return""}function getEraNarrow(){var M,$,I,N=this.localeData().eras();for(M=0,$=N.length;M<$;++M)if(I=this.clone().startOf("day").valueOf(),N[M].since<=I&&I<=N[M].until||N[M].until<=I&&I<=N[M].since)return N[M].narrow;return""}function getEraAbbr(){var M,$,I,N=this.localeData().eras();for(M=0,$=N.length;M<$;++M)if(I=this.clone().startOf("day").valueOf(),N[M].since<=I&&I<=N[M].until||N[M].until<=I&&I<=N[M].since)return N[M].abbr;return""}function getEraYear(){var M,$,I,N,B=this.localeData().eras();for(M=0,$=B.length;M<$;++M)if(I=B[M].since<=B[M].until?1:-1,N=this.clone().startOf("day").valueOf(),B[M].since<=N&&N<=B[M].until||B[M].until<=N&&N<=B[M].since)return(this.year()-hooks(B[M].since).year())*I+B[M].offset;return this.year()}function erasNameRegex(M){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),M?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(M){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),M?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(M){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),M?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(M,$){return $.erasAbbrRegex(M)}function matchEraName(M,$){return $.erasNameRegex(M)}function matchEraNarrow(M,$){return $.erasNarrowRegex(M)}function matchEraYearOrdinal(M,$){return $._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var M=[],$=[],I=[],N=[],B,j,U=this.eras();for(B=0,j=U.length;B<j;++B)$.push(regexEscape(U[B].name)),M.push(regexEscape(U[B].abbr)),I.push(regexEscape(U[B].narrow)),N.push(regexEscape(U[B].name)),N.push(regexEscape(U[B].abbr)),N.push(regexEscape(U[B].narrow));this._erasRegex=new RegExp("^("+N.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+$.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+M.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+I.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(M,$){addFormatToken(0,[M,M.length],0,$)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addUnitAlias("weekYear","gg");addUnitAlias("isoWeekYear","GG");addUnitPriority("weekYear",1);addUnitPriority("isoWeekYear",1);addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(M,$,I,N){$[N.substr(0,2)]=toInt(M)});addWeekParseToken(["gg","GG"],function(M,$,I,N){$[N]=hooks.parseTwoDigitYear(M)});function getSetWeekYear(M){return getSetWeekYearHelper.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(M){return getSetWeekYearHelper.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var M=this.localeData()._week;return weeksInYear(this.year(),M.dow,M.doy)}function getWeeksInWeekYear(){var M=this.localeData()._week;return weeksInYear(this.weekYear(),M.dow,M.doy)}function getSetWeekYearHelper(M,$,I,N,B){var j;return M==null?weekOfYear(this,N,B).year:(j=weeksInYear(M,N,B),$>j&&($=j),setWeekAll.call(this,M,$,I,N,B))}function setWeekAll(M,$,I,N,B){var j=dayOfYearFromWeeks(M,$,I,N,B),U=createUTCDate(j.year,0,j.dayOfYear);return this.year(U.getUTCFullYear()),this.month(U.getUTCMonth()),this.date(U.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(M,$){$[MONTH]=(toInt(M)-1)*3});function getSetQuarter(M){return M==null?Math.ceil((this.month()+1)/3):this.month((M-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(M,$){return M?$._dayOfMonthOrdinalParse||$._ordinalParse:$._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(M,$){$[DATE]=toInt(M.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(M,$,I){I._dayOfYear=toInt(M)});function getSetDayOfYear(M){var $=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return M==null?$:this.add(M-$,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(M,$){$[MILLISECOND]=toInt(("0."+M)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone$1;proto.diff=diff;proto.endOf=endOf;proto.format=format;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto.toJSON=toJSON;proto.toString=toString;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.eraName=getEraName;proto.eraNarrow=getEraNarrow;proto.eraAbbr=getEraAbbr;proto.eraYear=getEraYear;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.weeksInWeekYear=getWeeksInWeekYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(M){return createLocal(M*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(M){return M}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set;proto$1.eras=localeEras;proto$1.erasParse=localeErasParse;proto$1.erasConvertYear=localeErasConvertYear;proto$1.erasAbbrRegex=erasAbbrRegex;proto$1.erasNameRegex=erasNameRegex;proto$1.erasNarrowRegex=erasNarrowRegex;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1(M,$,I,N){var B=getLocale(),j=createUTC().set(N,$);return B[I](j,M)}function listMonthsImpl(M,$,I){if(isNumber(M)&&($=M,M=void 0),M=M||"",$!=null)return get$1(M,$,I,"month");var N,B=[];for(N=0;N<12;N++)B[N]=get$1(M,N,I,"month");return B}function listWeekdaysImpl(M,$,I,N){typeof M=="boolean"?(isNumber($)&&(I=$,$=void 0),$=$||""):($=M,I=$,M=!1,isNumber($)&&(I=$,$=void 0),$=$||"");var B=getLocale(),j=M?B._week.dow:0,U,q=[];if(I!=null)return get$1($,(I+j)%7,N,"day");for(U=0;U<7;U++)q[U]=get$1($,(U+j)%7,N,"day");return q}function listMonths(M,$){return listMonthsImpl(M,$,"months")}function listMonthsShort(M,$){return listMonthsImpl(M,$,"monthsShort")}function listWeekdays(M,$,I){return listWeekdaysImpl(M,$,I,"weekdays")}function listWeekdaysShort(M,$,I){return listWeekdaysImpl(M,$,I,"weekdaysShort")}function listWeekdaysMin(M,$,I){return listWeekdaysImpl(M,$,I,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(M){var $=M%10,I=toInt(M%100/10)===1?"th":$===1?"st":$===2?"nd":$===3?"rd":"th";return M+I}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var M=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),M.milliseconds=mathAbs(M.milliseconds),M.seconds=mathAbs(M.seconds),M.minutes=mathAbs(M.minutes),M.hours=mathAbs(M.hours),M.months=mathAbs(M.months),M.years=mathAbs(M.years),this}function addSubtract$1(M,$,I,N){var B=createDuration($,I);return M._milliseconds+=N*B._milliseconds,M._days+=N*B._days,M._months+=N*B._months,M._bubble()}function add$1(M,$){return addSubtract$1(this,M,$,1)}function subtract$1(M,$){return addSubtract$1(this,M,$,-1)}function absCeil(M){return M<0?Math.floor(M):Math.ceil(M)}function bubble(){var M=this._milliseconds,$=this._days,I=this._months,N=this._data,B,j,U,q,Y;return M>=0&&$>=0&&I>=0||M<=0&&$<=0&&I<=0||(M+=absCeil(monthsToDays(I)+$)*864e5,$=0,I=0),N.milliseconds=M%1e3,B=absFloor(M/1e3),N.seconds=B%60,j=absFloor(B/60),N.minutes=j%60,U=absFloor(j/60),N.hours=U%24,$+=absFloor(U/24),Y=absFloor(daysToMonths($)),I+=Y,$-=absCeil(monthsToDays(Y)),q=absFloor(I/12),I%=12,N.days=$,N.months=I,N.years=q,this}function daysToMonths(M){return M*4800/146097}function monthsToDays(M){return M*146097/4800}function as(M){if(!this.isValid())return NaN;var $,I,N=this._milliseconds;if(M=normalizeUnits(M),M==="month"||M==="quarter"||M==="year")switch($=this._days+N/864e5,I=this._months+daysToMonths($),M){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch($=this._days+Math.round(monthsToDays(this._months)),M){case"week":return $/7+N/6048e5;case"day":return $+N/864e5;case"hour":return $*24+N/36e5;case"minute":return $*1440+N/6e4;case"second":return $*86400+N/1e3;case"millisecond":return Math.floor($*864e5)+N;default:throw new Error("Unknown unit "+M)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(M){return function(){return this.as(M)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1$1(){return createDuration(this)}function get$2(M){return M=normalizeUnits(M),this.isValid()?this[M+"s"]():NaN}function makeGetter(M){return function(){return this.isValid()?this._data[M]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(M,$,I,N,B){return B.relativeTime($||1,!!I,M,N)}function relativeTime$1(M,$,I,N){var B=createDuration(M).abs(),j=round(B.as("s")),U=round(B.as("m")),q=round(B.as("h")),Y=round(B.as("d")),K=round(B.as("M")),G=round(B.as("w")),J=round(B.as("y")),Z=j<=I.ss&&["s",j]||j<I.s&&["ss",j]||U<=1&&["m"]||U<I.m&&["mm",U]||q<=1&&["h"]||q<I.h&&["hh",q]||Y<=1&&["d"]||Y<I.d&&["dd",Y];return I.w!=null&&(Z=Z||G<=1&&["w"]||G<I.w&&["ww",G]),Z=Z||K<=1&&["M"]||K<I.M&&["MM",K]||J<=1&&["y"]||["yy",J],Z[2]=$,Z[3]=+M>0,Z[4]=N,substituteTimeAgo.apply(null,Z)}function getSetRelativeTimeRounding(M){return M===void 0?round:typeof M=="function"?(round=M,!0):!1}function getSetRelativeTimeThreshold(M,$){return thresholds[M]===void 0?!1:$===void 0?thresholds[M]:(thresholds[M]=$,M==="s"&&(thresholds.ss=$-1),!0)}function humanize(M,$){if(!this.isValid())return this.localeData().invalidDate();var I=!1,N=thresholds,B,j;return typeof M=="object"&&($=M,M=!1),typeof M=="boolean"&&(I=M),typeof $=="object"&&(N=Object.assign({},thresholds,$),$.s!=null&&$.ss==null&&(N.ss=$.s-1)),B=this.localeData(),j=relativeTime$1(this,!I,N,B),I&&(j=B.pastFuture(+this,j)),B.postformat(j)}var abs$1=Math.abs;function sign(M){return(M>0)-(M<0)||+M}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var M=abs$1(this._milliseconds)/1e3,$=abs$1(this._days),I=abs$1(this._months),N,B,j,U,q=this.asSeconds(),Y,K,G,J;return q?(N=absFloor(M/60),B=absFloor(N/60),M%=60,N%=60,j=absFloor(I/12),I%=12,U=M?M.toFixed(3).replace(/\.?0+$/,""):"",Y=q<0?"-":"",K=sign(this._months)!==sign(q)?"-":"",G=sign(this._days)!==sign(q)?"-":"",J=sign(this._milliseconds)!==sign(q)?"-":"",Y+"P"+(j?K+j+"Y":"")+(I?K+I+"M":"")+($?G+$+"D":"")+(B||N||M?"T":"")+(B?J+B+"H":"")+(N?J+N+"M":"")+(M?J+U+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(M,$,I){I._d=new Date(parseFloat(M)*1e3)});addParseToken("x",function(M,$,I){I._d=new Date(toInt(M))});//! moment.js hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};class ToastBus{constructor($){this.instance=$}success($,I){this.instance.$events.$emit("toast.success",$,I)}info($,I){this.instance.$events.$emit("toast.info",$,I)}error($,I){this.instance.$events.$emit("toast.error",$,I)}intercept(){this.instance.$axios.interceptors.response.use($=>{const I=$==null?void 0:$.data;return I&&(I instanceof Blob?I.text().then(B=>JSON.parse(B)):new Promise(B=>B(I))).then(B=>{(B._toasts??[]).forEach(U=>this.instance.$toast[U.type](U.message,{duration:U.duration}))}),$})}}Object.defineProperties(Vue$3.prototype,{$toast:{get(){return new ToastBus(this)}}});class Portal{constructor($,I,N={}){this.portals=$,this.id=`${I}-${uniqid$1()}`,this.data=N}destroy(){this.portals.destroy(this.id)}}class Portals{constructor($){this.portals=$.$root.portals}all(){return this.portals}create($,I={}){let N=new Portal(this,$,I);return this.portals.push(N),N}destroy($){const I=_.findIndex(this.portals,N=>N.id===$);this.portals.splice(I,1)}}Object.defineProperties(Vue$3.prototype,{$portals:{get(){return new Portals(this)}}});class Stacks{constructor($){this.portals=$.$root.portals}count(){return this.stacks().length}add($){return $.$portals.create("stack",{type:"stack",depth:this.count()+1,vm:$})}stacks(){return this.portals.filter($=>{var I;return((I=$.data)==null?void 0:I.type)==="stack"})}}Object.defineProperties(Vue$3.prototype,{$stacks:{get(){return new Stacks(this)}}});var nprogress={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(M,$){(function(I,N){M.exports=N()})(commonjsGlobal,function(){var I={};I.version="0.2.0";var N=I.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};I.configure=function(te){var se,re;for(se in te)re=te[se],re!==void 0&&te.hasOwnProperty(se)&&(N[se]=re);return this},I.status=null,I.set=function(te){var se=I.isStarted();te=B(te,N.minimum,1),I.status=te===1?null:te;var re=I.render(!se),ne=re.querySelector(N.barSelector),ce=N.speed,me=N.easing;return re.offsetWidth,q(function(ue){N.positionUsing===""&&(N.positionUsing=I.getPositioningCSS()),Y(ne,U(te,ce,me)),te===1?(Y(re,{transition:"none",opacity:1}),re.offsetWidth,setTimeout(function(){Y(re,{transition:"all "+ce+"ms linear",opacity:0}),setTimeout(function(){I.remove(),ue()},ce)},ce)):setTimeout(ue,ce)}),this},I.isStarted=function(){return typeof I.status=="number"},I.start=function(){I.status||I.set(0);var te=function(){setTimeout(function(){I.status&&(I.trickle(),te())},N.trickleSpeed)};return N.trickle&&te(),this},I.done=function(te){return!te&&!I.status?this:I.inc(.3+.5*Math.random()).set(1)},I.inc=function(te){var se=I.status;return se?(typeof te!="number"&&(te=(1-se)*B(Math.random()*se,.1,.95)),se=B(se+te,0,.994),I.set(se)):I.start()},I.trickle=function(){return I.inc(Math.random()*N.trickleRate)},function(){var te=0,se=0;I.promise=function(re){return!re||re.state()==="resolved"?this:(se===0&&I.start(),te++,se++,re.always(function(){se--,se===0?(te=0,I.done()):I.set((te-se)/te)}),this)}}(),I.render=function(te){if(I.isRendered())return document.getElementById("nprogress");G(document.documentElement,"nprogress-busy");var se=document.createElement("div");se.id="nprogress",se.innerHTML=N.template;var re=se.querySelector(N.barSelector),ne=te?"-100":j(I.status||0),ce=document.querySelector(N.parent),me;return Y(re,{transition:"all 0 linear",transform:"translate3d("+ne+"%,0,0)"}),N.showSpinner||(me=se.querySelector(N.spinnerSelector),me&&ee(me)),ce!=document.body&&G(ce,"nprogress-custom-parent"),ce.appendChild(se),se},I.remove=function(){J(document.documentElement,"nprogress-busy"),J(document.querySelector(N.parent),"nprogress-custom-parent");var te=document.getElementById("nprogress");te&&ee(te)},I.isRendered=function(){return!!document.getElementById("nprogress")},I.getPositioningCSS=function(){var te=document.body.style,se="WebkitTransform"in te?"Webkit":"MozTransform"in te?"Moz":"msTransform"in te?"ms":"OTransform"in te?"O":"";return se+"Perspective"in te?"translate3d":se+"Transform"in te?"translate":"margin"};function B(te,se,re){return te<se?se:te>re?re:te}function j(te){return(-1+te)*100}function U(te,se,re){var ne;return N.positionUsing==="translate3d"?ne={transform:"translate3d("+j(te)+"%,0,0)"}:N.positionUsing==="translate"?ne={transform:"translate("+j(te)+"%,0)"}:ne={"margin-left":j(te)+"%"},ne.transition="all "+se+"ms "+re,ne}var q=function(){var te=[];function se(){var re=te.shift();re&&re(se)}return function(re){te.push(re),te.length==1&&se()}}(),Y=function(){var te=["Webkit","O","Moz","ms"],se={};function re(ue){return ue.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_e,fe){return fe.toUpperCase()})}function ne(ue){var _e=document.body.style;if(ue in _e)return ue;for(var fe=te.length,ge=ue.charAt(0).toUpperCase()+ue.slice(1),ye;fe--;)if(ye=te[fe]+ge,ye in _e)return ye;return ue}function ce(ue){return ue=re(ue),se[ue]||(se[ue]=ne(ue))}function me(ue,_e,fe){_e=ce(_e),ue.style[_e]=fe}return function(ue,_e){var fe=arguments,ge,ye;if(fe.length==2)for(ge in _e)ye=_e[ge],ye!==void 0&&_e.hasOwnProperty(ge)&&me(ue,ge,ye);else me(ue,fe[1],fe[2])}}();function K(te,se){var re=typeof te=="string"?te:Z(te);return re.indexOf(" "+se+" ")>=0}function G(te,se){var re=Z(te),ne=re+se;K(re,se)||(te.className=ne.substring(1))}function J(te,se){var re=Z(te),ne;K(te,se)&&(ne=re.replace(" "+se+" "," "),te.className=ne.substring(1,ne.length-1))}function Z(te){return(" "+(te.className||"")+" ").replace(/\s+/gi," ")}function ee(te){te&&te.parentNode&&te.parentNode.removeChild(te)}return I})})(nprogress);var nprogressExports=nprogress.exports;const progress=getDefaultExportFromCjs$1(nprogressExports),vm$1=new Vue$3({data:{progressing:!1,names:[],timer:null},watch:{names(M){M.length>0&&!this.progressing&&this.start(),M.length===0&&this.progressing&&this.stop()}},methods:{start(){this.progressing=!0,this.timer=setTimeout(()=>progress.start(),500)},stop(){this.timer&&clearTimeout(this.timer),progress.done(),this.progressing=!1},add(M){this.names.indexOf(M)==-1&&this.names.push(M)},remove(M){const $=this.names.indexOf(M);this.names.splice($,1)}}});class ProgressBar{loading($,I){I?this.start($):this.complete($)}start($){vm$1.add($)}complete($){vm$1.remove($)}names(){return vm$1.names}count(){return vm$1.names.length}isComplete(){return this.count()===0}}Object.defineProperties(Vue$3.prototype,{$progress:{get(){return new ProgressBar}}});const vm=new Vue$3({data:{names:[]},watch:{names(M){M.length&&this.enableWarning(),M.length===0&&this.disableWarning()}},methods:{add(M){this.names.indexOf(M)==-1&&this.names.push(M)},remove(M){this.names=this.names.filter($=>$!==M)},enableWarning(){Statamic.$preferences.get("confirm_dirty_navigation",!0)&&(window.onbeforeunload=()=>"")},disableWarning(){window.onbeforeunload=null}}});class DirtyState{state($,I){I?this.add($):this.remove($)}add($){vm.add($)}remove($){vm.remove($)}names(){return vm.names}count(){return vm.names.length}has($){return vm.names.includes($)}disableWarning(){vm.disableWarning()}}Object.defineProperties(Vue$3.prototype,{$dirty:{get(){return new DirtyState}}});class Config{constructor($){this.instance=$}all(){return this.instance.$store.state.statamic.config}get($,I){return data_get(this.all(),$,I)}set($,I){this.instance.$store.commit("statamic/configValue",{key:$,value:I})}}Object.defineProperties(Vue$3.prototype,{$config:{get(){return new Config(this)}}});class Preference{constructor($){this.instance=$,this.url=cp_url("preferences/js")}all(){return this.instance.$store.state.statamic.config.user.preferences}get($,I){return data_get(this.all(),$,I)}set($,I){return this.commitOnSuccessAndReturnPromise(this.instance.$axios.post(this.url,{key:$,value:I}))}append($,I){return this.commitOnSuccessAndReturnPromise(this.instance.$axios.post(this.url,{key:$,value:I,append:!0}))}remove($,I=null,N=!0){return this.commitOnSuccessAndReturnPromise(this.instance.$axios.delete(`${this.url}/${$}`,{data:{value:I,cleanup:N}}))}removeValue($,I){return this.remove($,I)}commitOnSuccessAndReturnPromise($){return $.then(I=>{this.instance.$store.commit("statamic/preferences",I.data)}),$}defaults(){return Statamic.$config.get("defaultPreferences")}getDefault($,I){return data_get(this.defaults(),$,I)}hasDefault($){return this.getDefault($)!==null}}Object.defineProperties(Vue$3.prototype,{$preferences:{get(){return new Preference(this)}}});class Permission{constructor($){this.instance=$}all(){return this.instance.$store.state.statamic.config.user.permissions}has($){return this.all().includes($)||this.all().includes("super")}}Object.defineProperties(Vue$3.prototype,{$permissions:{get(){return new Permission(this)}}});const _sfc_main$U={mixins:[mixin_1],props:{endpoint:String,placeholder:String},data(){return{results:[],query:"",current:-1,searching:!1,focused:!1}},computed:{hasResults(){return this.results.length>0},favorites(){return this.$preferences.get("favorites",[])},hasFavorites(){return this.favorites.length>0},isEmpty(){return!this.query&&!this.searching},isDirty(){return!!this.query&&!this.searching}},methods:{update:_.debounce(function(){if(!this.query){this.results=[],this.searching=!1;return}let M={params:{q:this.query}};this.$axios.get(this.endpoint,M).then($=>{this.results=$.data,this.current=-1,this.searching=!1})},300),reset(){this.results=[],this.query="",this.focused=!1,this.searching=!1},setActive(M){this.current=M},focus(){this.$refs.input.focus(),this.focused=!0},hit(M){const $=this.hasResults?this.results[this.current]:this.favorites[this.current];if(!$)return;const I=this.hasResults?$.url:`${this.$config.get("cpRoot")}/${$.url}`;M.metaKey?window.open(I):window.location=I},moveUp(){this.current>0&&this.current--},moveDown(){this.hasResults?this.current<this.results.length-1&&this.current++:this.current<this.favorites.length-1&&this.current++},getResultIcon(M){return M.reference.startsWith("asset::")?"assets":M.reference.startsWith("user::")?"user":"content-writing"},removeFavorite(M){this.$preferences.remove("favorites",M).then($=>{this.$toast.success(__("Favorite removed"))})}},watch:{query(M){this.searching=!0,this.update()},searching(M){}},created(){this.$events.$on("favorites.added",this.focus)},mounted(){this.$keys.bind("/",M=>{M.preventDefault(),this.focus()})}};var _sfc_render$U=function M(){var $=this,I=$._self._c;return I("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:$.reset,expression:"reset"}],staticClass:"global-search",class:{dirty:$.isDirty}},[I("div",{staticClass:"state-container w-4 h-4 text-gray-500 flex items-center",on:{click:$.focus}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/magnifying-glass"}})],1),I("label",{staticClass:"sr-only",attrs:{for:"global-search"},domProps:{textContent:$._s($.__("Global Search"))}}),I("input",{directives:[{name:"model",rawName:"v-model",value:$.query,expression:"query"}],ref:"input",staticClass:"search-input",attrs:{type:"text",autocomplete:"off",name:"search",id:"global-search",placeholder:$.placeholder,tabindex:"-1"},domProps:{value:$.query},on:{keydown:[function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"up",38,N.key,["Up","ArrowUp"])?null:(N.preventDefault(),$.moveUp.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"down",40,N.key,["Down","ArrowDown"])?null:(N.preventDefault(),$.moveDown.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.hit.apply(null,arguments))},function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:(N.preventDefault(),$.reset.apply(null,arguments))}],focus:function(N){$.focused=!0},input:function(N){N.target.composing||($.query=N.target.value)}}}),$.isDirty||$.searching?$._e():I("span",{staticClass:"rounded px-1 pb-px text-2xs border dark:border-dark-300 text-gray-600 dark:text-dark-200"},[$._v("/")]),$.searching?I("loading-graphic",{staticClass:"global-search-loading-indicator",attrs:{size:14,inline:!0,text:""}}):$._e(),I("div",{directives:[{name:"show",rawName:"v-show",value:$.focused&&($.hasResults||$.hasFavorites),expression:"focused && (hasResults || hasFavorites)"}],staticClass:"global-search-results"},[$._l($.results,function(N,B){return $.hasResults?I("div",{staticClass:"global-search-result-item break-overflowing-words p-2 flex items-start",class:{active:$.current==B},on:{click:$.hit,mousemove:function(j){return $.setActive(B)}}},[I("svg-icon",{staticClass:"icon",attrs:{name:`light/${$.getResultIcon(N)}`}}),I("div",{staticClass:"flex-1 rtl:mr-2 ltr:ml-2 title",domProps:{innerHTML:$._s(N.title)}}),I("span",{staticClass:"global-search-result-badge",domProps:{textContent:$._s(N.badge)}})],1):$._e()}),!$.hasResults&&$.hasFavorites?I("div",[I("div",{staticClass:"px-3 py-2 text-gray dark:text-dark-200 uppercase text-3xs"},[$._v($._s($.__("Your Favorites")))]),$._l($.favorites,function(N,B){return I("div",{staticClass:"global-search-result-item flex items-center",class:{active:$.current==B},on:{mousemove:function(j){return $.setActive(B)}}},[I("div",{staticClass:"flex items-center flex-1 p-2",on:{click:$.hit}},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/pin"}}),I("div",{staticClass:"rtl:mr-2 ltr:ml-2 title",domProps:{textContent:$._s(N.name)}})],1),I("div",{staticClass:"p-2 text-gray-600 hover:text-gray-800",on:{click:function(j){return $.removeFavorite(N)}}},[$._v("×")])])}),I("div",{staticClass:"text-gray text-xs px-3 py-2 border-t dark:border-dark-900 dark:text-dark-200 text-center"},[I("b",{staticClass:"tracking-widest uppercase text-3xs"},[$._v($._s($.__("Pro Tip"))+":")]),I("span",{domProps:{innerHTML:$._s($.__("messages.global_search_open_using_slash"))}})])],2):$._e()],2)],1)},_sfc_staticRenderFns$U=[],__component__$U=normalizeComponent$2(_sfc_main$U,_sfc_render$U,_sfc_staticRenderFns$U,!1,null,null,null,null);const GlobalSearch=__component__$U.exports,_sfc_main$T={computed:{sites(){return Statamic.$config.get("sites")},active(){return Statamic.$config.get("selectedSite")},activeName(){return _.findWhere(this.sites,{handle:this.active}).name}},methods:{selected(M){M.handle!==this.active&&(window.location=cp_url(`select-site/${M.handle}`))}}};var _sfc_render$T=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"site-selector flex items-center rtl:ml-4 ltr:mr-4 h-full border-l border-r dark:border-dark-900"},[I("v-select",{attrs:{options:$.sites,label:"name","get-option-key":N=>N.handle,value:$.activeName,clearable:!1,searchable:!1},on:{input:$.selected},scopedSlots:$._u([{key:"selected-option",fn:function(N){return[I("div",{staticClass:"flex items-center px-2 text-sm text-gray dark:text-dark-100 hover:text-gray-800 dark:hover:text-dark-175 anti"},[I("svg-icon",{staticClass:"rtl:ml-2 ltr:mr-2 h-4 w-4",attrs:{name:"light/sites"}}),I("div",{staticClass:"whitespace-nowrap"},[$._v($._s($.__(N.name)))])],1)]}},{key:"option",fn:function({name:N,handle:B}){return[I("div",{class:{"text-gray-500":B===$.active}},[$._v($._s($.__(N)))])]}}])})],1)},_sfc_staticRenderFns$T=[],__component__$T=normalizeComponent$2(_sfc_main$T,_sfc_render$T,_sfc_staticRenderFns$T,!1,null,null,null,null);const GlobalSiteSelector=__component__$T.exports,_sfc_main$S={props:{initial:{type:String,default:"auto"}},data(){return{preference:this.initial,theme:null}},computed:{icon(){return this.preference==="auto"?"regular/system":this.preference==="dark"?"regular/dark-mode":"regular/light-mode"}},watch:{preference:{immediate:!0,handler(M){this.theme=M==="dark"||M==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}},theme:{immediate:!0,handler(M){document.documentElement.classList.toggle("dark",M==="dark"),Statamic.darkMode=M==="dark"}}},created(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",M=>{this.preference==="auto"&&(this.theme=M.matches?"dark":"light")})},methods:{prefer(M){this.preference=M,M==="auto"?(this.$preferences.remove("theme"),localStorage.removeItem("statamic.theme")):(this.$preferences.set("theme",M),localStorage.setItem("statamic.theme",M))}}};var _sfc_render$S=function M(){var $=this,I=$._self._c;return I("dropdown-list",{scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Theme"),expression:"__('Theme') "}],staticClass:"global-header-icon-button hidden md:block"},[I("svg-icon",{attrs:{name:$.icon}})],1)]},proxy:!0}])},[I("dropdown-item",{staticClass:"flex items-center space-x-2 rtl:space-x-reverse",on:{click:function(N){return $.prefer("light")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"regular/light-mode"}}),I("span",[$._v($._s($.__("Light")))])],1),I("dropdown-item",{staticClass:"flex items-center space-x-2 rtl:space-x-reverse",on:{click:function(N){return $.prefer("dark")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"regular/dark-mode"}}),I("span",[$._v($._s($.__("Dark")))])],1),I("dropdown-item",{staticClass:"flex items-center space-x-2 rtl:space-x-reverse",on:{click:function(N){return $.prefer("auto")}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"regular/system"}}),I("span",[$._v($._s($.__("System")))])],1)],1)},_sfc_staticRenderFns$S=[],__component__$S=normalizeComponent$2(_sfc_main$S,_sfc_render$S,_sfc_staticRenderFns$S,!1,null,null,null,null);const DarkModeToggle=__component__$S.exports,Login={props:{showEmailLogin:{default:!1},hasError:{default:!1}},data(){return{busy:!1}},mounted(){this.hasError&&this.$el.parentElement.parentElement.classList.add("animation-shake")}},_sfc_main$R={props:["username"],data(){return{show:!0,errors:[],password:null}},mounted(){this.$http.get(cp_url("auth/token")).success(M=>{Vue$3.http.headers.common["X-CSRF-TOKEN"]=M}),this.$refs.password.focus()},computed:{hasErrors(){return!_.isEmpty(this.errors)}},methods:{submit(){this.errors=[];let M={username:this.username,password:this.password};this.$axios.post(cp_url("auth/login"),M).then($=>{this.errors=[],this.$toast.success(__("Logged in")),this.show=!1,this.$emit("closed")}).catch($=>{this.errors=$})}}};var _sfc_render$R=function M(){var $=this,I=$._self._c;return I("div",[I("modal",{staticClass:"modal-login",attrs:{show:$.show,shake:$.hasErrors}},[I("template",{slot:"header"},[$._v(" "+$._s($.__("Log in to continue"))+" ")]),I("template",{slot:"body"},[I("div",{staticClass:"mb-4"},[I("label",{class:{"text-red-500":$.errors.password.length}},[$._v($._s($.__("Password for :username",{username:this.username}))+" "),I("i",{staticClass:"required"},[$._v("*")])]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.password,expression:"password"}],ref:"password",staticClass:"input-text",attrs:{type:"password",name:"password"},domProps:{value:$.password},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.submit.apply(null,arguments))},input:function(N){N.target.composing||($.password=N.target.value)}}}),$.errors.username.length?I("small",{staticClass:"block text-red-500 mt-2"},[$._v($._s($.errors.username[0]))]):$._e(),$.errors.password.length?I("small",{staticClass:"block text-red-500 mt-2"},[$._v($._s($.errors.password[0]))]):$._e()])]),I("template",{slot:"footer"},[I("button",{staticClass:"btn-primary",on:{click:function(N){return N.preventDefault(),$.submit.apply(null,arguments)}}},[$._v($._s($.__("Submit")))])])],2)],1)},_sfc_staticRenderFns$R=[],__component__$R=normalizeComponent$2(_sfc_main$R,_sfc_render$R,_sfc_staticRenderFns$R,!1,null,null,null,null);const LoginModal=__component__$R.exports,_sfc_main$Q={props:["actions","collectionHandle","collectionCreateLabel","collectionHasRoutes","fieldset","values","extraValues","meta","localizations","revisions","breadcrumbs","site","canManagePublishState","createAnotherUrl","listingUrl","previewTargets"],methods:{saved(M){window.location=M.data.data.edit_url+"?created=true"}}};var _sfc_render$Q=function M(){var $=this,I=$._self._c;return I("entry-publish-form",{attrs:{"is-creating":!0,"publish-container":"base","initial-actions":$.actions,method:"post","initial-title":$.collectionCreateLabel,"collection-handle":$.collectionHandle,"collection-has-routes":$.collectionHasRoutes,"initial-fieldset":$.fieldset,"initial-values":$.values,"initial-extra-values":$.extraValues,"initial-meta":$.meta,"initial-localizations":$.localizations,"initial-has-origin":!1,"initial-is-root":!0,"initial-origin-values":{},"revisions-enabled":$.revisions,breadcrumbs:$.breadcrumbs,"initial-site":$.site,"can-manage-publish-state":$.canManagePublishState,"create-another-url":$.createAnotherUrl,"initial-listing-url":$.listingUrl,"preview-targets":$.previewTargets},on:{saved:$.saved}})},_sfc_staticRenderFns$Q=[],__component__$Q=normalizeComponent$2(_sfc_main$Q,_sfc_render$Q,_sfc_staticRenderFns$Q,!1,null,null,null,null);const BaseEntryCreateForm=__component__$Q.exports,_sfc_main$P={props:["actions","taxonomyHandle","taxonomyCreateLabel","breadcrumbs","fieldset","values","meta","published","localizations","site","createAnotherUrl","listingUrl","previewTargets"],methods:{saved(M){window.location=M.data.data.edit_url+"?created=true"}}};var _sfc_render$P=function M(){var $=this,I=$._self._c;return I("term-publish-form",{attrs:{"is-creating":!0,"publish-container":"base","initial-actions":$.actions,method:"post","initial-title":$.taxonomyCreateLabel,"taxonomy-handle":$.taxonomyHandle,breadcrumbs:$.breadcrumbs,"initial-fieldset":$.fieldset,"initial-values":$.values,"initial-meta":$.meta,"initial-published":$.published,"initial-localizations":$.localizations,"initial-has-origin":!1,"initial-is-root":!0,"initial-origin-values":{},"initial-site":$.site,"create-another-url":$.createAnotherUrl,"listing-url":$.listingUrl,"preview-targets":$.previewTargets},on:{saved:$.saved}})},_sfc_staticRenderFns$P=[],__component__$P=normalizeComponent$2(_sfc_main$P,_sfc_render$P,_sfc_staticRenderFns$P,!1,null,null,null,null);const BaseTermCreateForm=__component__$P.exports,_sfc_main$O={props:{url:String,blueprints:Array,text:{type:String,default:()=>__("Create Term")}},methods:{create(){this.blueprints.length===1&&this.select()},select(M){let $=this.url;M&&($=$+=`?blueprint=${M}`),window.location=$}}};var _sfc_render$O=function M(){var $=this,I=$._self._c;return I("dropdown-list",{staticClass:"inline-block",attrs:{disabled:$.blueprints.length===1},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn-primary flex items-center",on:{click:$.create}},[I("span",{domProps:{textContent:$._s($.text)}}),$.blueprints.length>1?I("svg-icon",{staticClass:"rtl:mr-2 ltr:ml-2 -mr-2 w-2",attrs:{name:"micro/chevron-down-xs"}}):$._e()],1)]},proxy:!0}])},[I("div",{staticClass:"max-h-[75vh] overflow-y-auto"},$._l($.blueprints,function(N){return I("div",{key:N.handle},[I("dropdown-item",{attrs:{text:N.title},on:{click:function(B){return $.select(N.handle)}}})],1)}),0)])},_sfc_staticRenderFns$O=[],__component__$O=normalizeComponent$2(_sfc_main$O,_sfc_render$O,_sfc_staticRenderFns$O,!1,null,null,null,null);const CreateTermButton=__component__$O.exports,Importer={props:["importer"],data:function(){return{exporting:!1,exported:!1,exportFailed:!1,exportError:null,importing:!1,imported:!1,summary:null,showAllPages:!1,showCollections:[],showTaxonomies:[],showGlobals:[]}},computed:{totalPages:function(){return Object.keys(this.summary.pages).length}},mounted(){this.summary=Statamic.ImportSummary},methods:{import:function(){this.importing=!0,this.$http.post(cp_url("import/import"),{summary:this.summary}).success(function(M){this.importing=!1,this.imported=!0,console.log(M)})},hasDuplicates(M){return!!this.duplicateCount(M)},duplicateCount:function(M){let $=0;return _.each(M,I=>{I.exists&&$++}),$},uncheckDuplicates:function(M){_.each(M,$=>{$.exists&&($._checked=!1)})},size:function(M){return _.size(M)},showCollection:function(M){this.showCollections.push(M),_.uniq(this.showCollections)},hideCollection:function(M){this.showCollections=_.reject(this.showCollections,function($){return $===M})},shouldShowCollection:function(M){return _.contains(this.showCollections,M)},showTaxonomy:function(M){this.showTaxonomies.push(M),_.uniq(this.showTaxonomies)},hideTaxonomy:function(M){this.showTaxonomies=_.reject(this.showTaxonomies,function($){return $===M})},shouldShowTaxonomy:function(M){return _.contains(this.showTaxonomies,M)},showGlobal:function(M){this.showGlobals.push(M),_.uniq(this.showGlobals)},hideGlobal:function(M){this.showGlobals=_.reject(this.showGlobals,function($){return $===M})},shouldShowGlobal:function(M){return _.contains(this.showGlobals,M)}}},_sfc_main$N={props:{resource:{type:Object},resourceTitle:{type:String},route:{type:String},redirect:{type:String},reload:{type:Boolean}},data(){return{deleting:!1,redirectFromServer:null}},computed:{title(){return data_get(this.resource,"title",this.resourceTitle)},modalTitle(){return __("Delete :resource",{resource:__(this.title)})},deleteUrl(){let M=data_get(this.resource,"delete_url",this.route);return M||console.error("ResourceDeleter cannot find delete url"),M},redirectUrl(){return this.redirect||this.redirectFromServer}},methods:{confirm(){this.deleting=!0},confirmed(){this.$axios.delete(this.deleteUrl).then(M=>{this.redirectFromServer=data_get(M,"data.redirect"),this.success()}).catch(()=>{this.$toast.error(__("Something went wrong"))})},success(){if(this.redirectUrl){location.href=this.redirectUrl;return}if(this.reload){location.reload();return}this.$toast.success(__("Deleted")),this.$emit("deleted")},cancel(){this.deleting=!1}}};var _sfc_render$N=function M(){var $=this,I=$._self._c;return $.deleting?I("confirmation-modal",{attrs:{title:$.modalTitle,buttonText:$.__("Delete"),danger:!0,disabled:Object.keys($.resource.imported_by).length>0},on:{confirm:$.confirmed,cancel:$.cancel}},[I("template",{slot:"body"},[Object.keys($.resource.imported_by).length>0?[I("p",{staticClass:"mb-2"},[$._v($._s($.__("Before you can delete this fieldset, you need to remove references to it in blueprints and fieldsets:")))]),$._l($.resource.imported_by,function(N,B){return I("div",[I("h3",{staticClass:"little-heading rtl:pr-0 ltr:pl-0 mb-2"},[$._v($._s(B))]),I("ul",{staticClass:"list-disc rtl:pr-4 ltr:pl-4"},$._l(N,function(j){return I("li",{key:j.handle,staticClass:"font-mono text-sm mb-1.5",domProps:{textContent:$._s(j.title)}})}),0)])})]:[I("p",[$._v($._s($.__("Are you sure you want to delete this item?")))])]],2)],2):$._e()},_sfc_staticRenderFns$N=[],__component__$N=normalizeComponent$2(_sfc_main$N,_sfc_render$N,_sfc_staticRenderFns$N,!1,null,null,null,null);const FieldsetDeleter=__component__$N.exports,_sfc_main$M={props:{resource:{type:Object},resourceTitle:{type:String},route:{type:String},redirect:{type:String},reload:{type:Boolean}},data(){return{resetting:!1,redirectFromServer:null}},computed:{title(){return data_get(this.resource,"title",this.resourceTitle)},modalTitle(){return __("Reset :resource",{resource:this.title})},modalBody(){return __("Are you sure you want to reset this item?")},resetUrl(){let M=data_get(this.resource,"reset_url",this.route);return M||console.error("FieldsetResetter cannot find reset url"),M},redirectUrl(){return this.redirect||this.redirectFromServer}},methods:{confirm(){this.resetting=!0},confirmed(){this.$axios.delete(this.resetUrl).then(M=>{this.redirectFromServer=data_get(M,"data.redirect"),this.success()}).catch(()=>{this.$toast.error(__("Something went wrong"))})},success(){if(this.redirectUrl){location.href=this.redirectUrl;return}if(this.reload){location.reload();return}this.$toast.success(__("Reset")),this.$emit("reset")},cancel(){this.resetting=!1}}};var _sfc_render$M=function M(){var $=this,I=$._self._c;return $.resetting?I("confirmation-modal",{attrs:{title:$.modalTitle,bodyText:$.modalBody,buttonText:$.__("Reset"),danger:!0},on:{confirm:$.confirmed,cancel:$.cancel}}):$._e()},_sfc_staticRenderFns$M=[],__component__$M=normalizeComponent$2(_sfc_main$M,_sfc_render$M,_sfc_staticRenderFns$M,!1,null,null,null,null);const FieldsetResetter=__component__$M.exports,_sfc_main$L={mixins:[Listing],components:{FieldsetDeleter,FieldsetResetter},props:["initialRows"],data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle",width:"25%"},{label:__("Fields"),field:"fields",width:"15%"}]}}};var _sfc_render$L=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.columns,columns:$.columns,rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.edit_url}},[$._v($._s($.__(B.title)))])]}},{key:"cell-handle",fn:function({value:B}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(B))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),B.is_resettable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Reset")},on:{click:function(U){$.$refs[`resetter_${B.id}`].confirm()}}},[I("fieldset-resetter",{ref:`resetter_${B.id}`,attrs:{resource:B,reload:!0}})],1):$._e(),B.is_deletable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("fieldset-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)])}}])})},_sfc_staticRenderFns$L=[],__component__$L=normalizeComponent$2(_sfc_main$L,_sfc_render$L,_sfc_staticRenderFns$L,!1,null,null,null,null);const FieldsetListing=__component__$L.exports,_sfc_main$K={props:{route:{type:String}},data(){return{title:null,handle:null,slug:this.$slug.async().separatedBy("_")}},watch:{title(M){this.slug.create(M).then($=>this.handle=$)}},computed:{canSubmit(){return!!(this.title&&this.handle&&!this.slug.busy)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$K=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white dark:bg-dark-600 dark:shadow-dark"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Fieldset")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.fields_fieldsets_description"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.fieldsets_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("div",{staticClass:"relative"},[$.slug.busy?I("loading-graphic",{staticClass:"absolute top-3 right-3",attrs:{inline:"",text:""}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}})],1),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.fieldsets_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Fieldset"))+" ")])])])},_sfc_staticRenderFns$K=[],__component__$K=normalizeComponent$2(_sfc_main$K,_sfc_render$K,_sfc_staticRenderFns$K,!1,null,null,null,null);const FieldsetCreateForm=__component__$K.exports,_sfc_main$J={mixins:[SuggestsConditionalFields],components:{Fields},props:["action","initialFieldset","breadcrumbUrl"],data(){return{method:"patch",initialTitle:this.initialFieldset.title,fieldset:clone(this.initialFieldset),errors:{},editingField:null}},computed:{fields:{get(){return this.fieldset.fields},set(M){this.fieldset.fields=M}},fieldsForConditionSuggestions(){return this.fields}},mounted(){this.makeSortable()},methods:{save(){this.$axios[this.method](this.action,this.fieldset).then(M=>{this.$toast.success(__("Saved")),this.errors={}}).catch(M=>{this.$toast.error(M.response.data.message),this.errors=M.response.data.errors})},fieldCreated(M){this.fields.push(M)},fieldUpdated(M,$){this.fields.splice(M,1,$)},deleteField(M){this.fields.splice(M,1)},fieldLinked(M){this.fields.push(M),this.$toast.success(__("Field added")),M.type==="reference"&&this.$nextTick(()=>this.editingField=M._id)},makeSortable(){new draggable_bundleExports.Sortable(this.$el.querySelector(".blueprint-section-draggable-zone"),{draggable:".blueprint-section-field",handle:".blueprint-drag-handle",mirror:{constrainDimensions:!0,appendTo:"body"},plugins:[draggable_bundleExports.Plugins.SwapAnimation]}).on("sortable:stop",M=>{this.fieldset.fields.splice(M.newIndex,0,this.fieldset.fields.splice(M.oldIndex,1)[0])})}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$J=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Fieldsets")}}),I("div",{staticClass:"flex items-center justify-between"},[I("h1",[$._v($._s($.__($.initialTitle)))]),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})])],1),I("div",{staticClass:"publish-form card p-0 @container mb-8"},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group w-full"},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"block"},[$._v($._s($.__("Title")))]),I("small",{staticClass:"help-block -mt-2"},[$._v($._s($.__("messages.fieldsets_title_instructions")))]),$.errors.title?I("div",$._l($.errors.title,function(N,B){return I("small",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e()]),I("div",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.fieldset.title,expression:"fieldset.title"}],staticClass:"input-text",attrs:{type:"text",name:"title",autofocus:"autofocus"},domProps:{value:$.fieldset.title},on:{input:function(N){N.target.composing||$.$set($.fieldset,"title",N.target.value)}}})])])])]),I("div",{staticClass:"content mt-10 mb-4"},[I("h2",{domProps:{textContent:$._s($.__("Fields"))}})]),I("div",{staticClass:"card @container",class:{"pt-2":!$.fields.length}},[I("fields",{attrs:{fields:$.fields,"editing-field":$.editingField,"exclude-fieldset":$.fieldset.handle,"suggestable-condition-fields":$.suggestableConditionFields(this)},on:{"field-created":$.fieldCreated,"field-updated":$.fieldUpdated,"field-linked":$.fieldLinked,"field-deleted":$.deleteField,"field-editing":function(N){$.editingField=N},"editor-closed":function(N){$.editingField=null}}})],1)])},_sfc_staticRenderFns$J=[],__component__$J=normalizeComponent$2(_sfc_main$J,_sfc_render$J,_sfc_staticRenderFns$J,!1,null,null,null,null);const FieldsetEditForm=__component__$J.exports,_sfc_main$I={mixins:[Listing],props:["initialRows","reorderable"],data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle"},{label:__("Fields"),field:"fields"}]}},watch:{initialRows(M){this.rows=M}}};var _sfc_render$I=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.columns,columns:$.columns,rows:$.rows,sort:!1},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{reorderable:$.reorderable},on:{reordered:function(B){return $.$emit("reordered",B)}},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("div",{staticClass:"flex items-center"},[I("div",{staticClass:"little-dot rtl:ml-2 ltr:mr-2",class:[B.hidden?"hollow":"bg-green-600"]}),I("a",{attrs:{href:B.edit_url}},[$._v($._s($.__(B.title)))])])]}},{key:"cell-handle",fn:function({value:B}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(B))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1)],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$I=[],__component__$I=normalizeComponent$2(_sfc_main$I,_sfc_render$I,_sfc_staticRenderFns$I,!1,null,null,null,null);const BlueprintListing=__component__$I.exports,_sfc_main$H={mixins:[SuggestsConditionalFields,CanDefineLocalizable],components:{Tabs},props:{action:String,initialBlueprint:Object,showTitle:Boolean,useTabs:{type:Boolean,default:!0},isFormBlueprint:{type:Boolean,default:!1}},data(){return{blueprint:this.initializeBlueprint(),errors:{}}},computed:{tabs(){return this.blueprint.tabs}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()}),this.isFormBlueprint&&Statamic.$config.set("isFormBlueprint",!0)},watch:{blueprint:{deep:!0,handler(){this.$dirty.add("blueprints")}}},methods:{initializeBlueprint(){let M=clone(this.initialBlueprint);return this.showTitle||delete M.title,M},tabsUpdated(M){this.blueprint.tabs=M},save(){this.$axios.patch(this.action,this.blueprint).then(M=>this.saved(M)).catch(M=>{this.$toast.error(M.response.data.message),this.errors=M.response.data.errors})},saved(M){this.$toast.success(__("Saved")),this.errors={},this.$dirty.remove("blueprints")}}};var _sfc_render$H=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"blueprint-builder"},[I("header",{staticClass:"mb-6"},[I("div",{staticClass:"flex items-center justify-between"},[I("h1",{domProps:{textContent:$._s($.__("Edit Blueprint"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}})])]),$.showTitle?I("div",{staticClass:"publish-form card p-0 @container mb-8"},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group config-field"},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"block"},[$._v($._s($.__("Title")))]),I("p",{staticClass:"help-block"},[$._v($._s($.__("messages.blueprints_title_instructions")))]),$.errors.title?I("div",$._l($.errors.title,function(N,B){return I("p",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e()]),I("div",[I("input",{directives:[{name:"model",rawName:"v-model",value:$.blueprint.title,expression:"blueprint.title"}],staticClass:"input-text",attrs:{type:"text",name:"title",autofocus:"autofocus"},domProps:{value:$.blueprint.title},on:{input:function(N){N.target.composing||$.$set($.blueprint,"title",N.target.value)}}})])]),I("div",{staticClass:"form-group config-field"},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"block"},[$._v($._s($.__("Hidden")))]),I("p",{staticClass:"help-block"},[$._v($._s($.__("messages.blueprints_hidden_instructions")))]),$.errors.hidden?I("div",$._l($.errors.hidden,function(N,B){return I("p",{key:B,staticClass:"help-block text-red-500",domProps:{textContent:$._s(N)}})}),0):$._e()]),I("div",[I("toggle-input",{attrs:{name:"hidden"},model:{value:$.blueprint.hidden,callback:function(N){$.$set($.blueprint,"hidden",N)},expression:"blueprint.hidden"}})],1)])])]):$._e(),I("tabs",{attrs:{"single-tab":!$.useTabs,"initial-tabs":$.tabs,errors:$.errors.tabs,"can-define-localizable":$.canDefineLocalizable},on:{updated:$.tabsUpdated}})],1)},_sfc_staticRenderFns$H=[],__component__$H=normalizeComponent$2(_sfc_main$H,_sfc_render$H,_sfc_staticRenderFns$H,!1,null,null,null,null);const BlueprintBuilder=__component__$H.exports,_sfc_main$G={props:{route:{type:String}},data(){return{title:null,handle:null,slug:this.$slug.async().separatedBy("_")}},watch:{title(M){this.slug.create(M).then($=>this.handle=$)}},computed:{canSubmit(){return!!(this.title&&this.handle&&!this.slug.busy)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$G=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white dark:bg-dark-600 dark:shadow-dark"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Form")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.form_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.form_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("div",{staticClass:"relative"},[$.slug.busy?I("loading-graphic",{staticClass:"absolute top-3 right-3",attrs:{inline:"",text:""}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}})],1),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.form_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Form"))+" ")])])])},_sfc_staticRenderFns$G=[],__component__$G=normalizeComponent$2(_sfc_main$G,_sfc_render$G,_sfc_staticRenderFns$G,!1,null,null,null,null);const FormCreateForm=__component__$G.exports,_sfc_main$F={mixins:[Listing],props:["initialColumns"],data(){return{columns:this.initialColumns,requestUrl:cp_url("forms")}}};var _sfc_render$F=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{"visible-columns":$.columns,columns:$.columns,rows:$.items},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("data-list-bulk-actions",{staticClass:"rounded",attrs:{url:$.actionUrl},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("data-list-table",{attrs:{"allow-bulk-actions":!0},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.show_url}},[$._v($._s(B.title))])]}},{key:"actions",fn:function({row:B,index:j}){return[B.can_edit||B.can_edit_blueprint||B.actions.length?I("dropdown-list",[B.can_edit?I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}):$._e(),B.can_edit_blueprint?I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:B.blueprint_url}}):$._e(),B.actions.length?I("div",{staticClass:"divider"}):$._e(),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1):$._e()]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$F=[],__component__$F=normalizeComponent$2(_sfc_main$F,_sfc_render$F,_sfc_staticRenderFns$F,!1,null,null,null,null);const FormListing=__component__$F.exports,_sfc_main$E={mixins:[Listing],props:{form:String},data(){return{listingKey:"submissions",preferencesPrefix:`forms.${this.form}`,requestUrl:cp_url(`forms/${this.form}/submissions`)}},computed:{actionContext(){return{form:this.form}}}};var _sfc_render$E=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$.initializing?$._e():I("data-list",{attrs:{columns:$.columns,rows:$.items,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},on:{"visible-columns-updated":function(N){$.visibleColumns=N}},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card p-0 relative"},[I("div",{staticClass:"flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b dark:border-dark-900"},[I("data-list-filter-presets",{ref:"presets",attrs:{"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"has-active-filters":$.hasActiveFilters,"preferences-prefix":$.preferencesPrefix,"search-query":$.searchQuery},on:{selected:$.selectPreset,reset:$.filtersReset}}),I("data-list-search",{ref:"search",staticClass:"h-8 mt-2 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("div",{staticClass:"flex space-x-2 rtl:space-x-reverse mt-2"},[I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Reset"))},on:{click:function(B){return $.$refs.presets.refreshPreset()}}}),I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save"))},on:{click:function(B){return $.$refs.presets.savePreset()}}}),I("data-list-column-picker",{attrs:{"preferences-key":$.preferencesKey("columns")}})],1)],1),I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery,"is-searching":!0,"saves-presets":!0,"preferences-prefix":$.preferencesPrefix},on:{changed:$.filterChanged,saved:function(B){return $.$refs.presets.setPreset(B)},deleted:function(B){return $.$refs.presets.refreshPresets()}}}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{attrs:{url:$.actionUrl,context:$.actionContext},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[$.items.length?I("data-list-table",{attrs:{"allow-bulk-actions":!0,"allow-column-picker":!0,"column-preferences-key":$.preferencesKey("columns")},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-datestamp",fn:function({row:B,value:j}){return[I("a",{staticClass:"text-blue",attrs:{href:B.url}},[$._v($._s(j))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.url}}),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)}):$._e()],1)],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}])})],1)},_sfc_staticRenderFns$E=[],__component__$E=normalizeComponent$2(_sfc_main$E,_sfc_render$E,_sfc_staticRenderFns$E,!1,null,null,null,null);const FormSubmissionListing=__component__$E.exports,_sfc_main$D={mixins:[Listing],props:["globals"],data(){return{rows:this.globals,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle"}]}}};var _sfc_render$D=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{rows:$.rows,columns:$.columns},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{attrs:{href:B.edit_url}},[$._v($._s($.__(B.title)))])]}},{key:"cell-handle",fn:function({value:B}){return[I("span",{staticClass:"font-mono text-2xs"},[$._v($._s(B))])]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),B.deleteable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$D=[],__component__$D=normalizeComponent$2(_sfc_main$D,_sfc_render$D,_sfc_staticRenderFns$D,!1,null,null,null,null);const GlobalListing=__component__$D.exports,_sfc_main$C={props:{blueprint:Object,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$C=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",reference:"collection",blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}}),I("div",{staticClass:"py-4 border-t dark:border-dark-950 flex justify-between"},[I("a",{staticClass:"btn",attrs:{href:$.url},domProps:{textContent:$._s($.__("Cancel"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1)}}],null,!1,1611210066)}):$._e()},_sfc_staticRenderFns$C=[],__component__$C=normalizeComponent$2(_sfc_main$C,_sfc_render$C,_sfc_staticRenderFns$C,!1,null,null,null,null);const GlobalEditForm=__component__$C.exports,_sfc_main$B={props:{sites:{type:Array,required:!0},value:{type:String,required:!0}},computed:{site(){return _.findWhere(this.sites,{handle:this.value})}}};var _sfc_render$B=function M(){var $=this,I=$._self._c;return I("v-select",{staticClass:"text-sm",attrs:{value:$.site,clearable:!1,searchable:!1,"get-option-label":N=>$.__(N.name),options:$.sites},on:{input:function(N){return $.$emit("input",N)}}})},_sfc_staticRenderFns$B=[],__component__$B=normalizeComponent$2(_sfc_main$B,_sfc_render$B,_sfc_staticRenderFns$B,!1,null,null,null,null);const SiteSelector=__component__$B.exports,_sfc_main$A={mixins:[HasHiddenFields],components:{SiteSelector},props:{publishContainer:String,initialReference:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialTitle:String,initialHandle:String,initialBlueprintHandle:String,initialLocalizations:Array,initialLocalizedFields:Array,initialHasOrigin:Boolean,initialOriginValues:Object,initialOriginMeta:Object,initialSite:String,globalsUrl:String,initialActions:Object,method:String,isCreating:Boolean,initialReadOnly:Boolean,initialIsRoot:Boolean,canEdit:Boolean,canConfigure:Boolean,configureUrl:String,canEditBlueprint:Boolean},data(){return{actions:this.initialActions,saving:!1,localizing:!1,fieldset:this.initialFieldset,title:this.initialTitle,values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),localizations:_.clone(this.initialLocalizations),localizedFields:this.initialLocalizedFields,hasOrigin:this.initialHasOrigin,originValues:this.initialOriginValues||{},originMeta:this.initialOriginMeta||{},site:this.initialSite,error:null,errors:{},isRoot:this.initialIsRoot}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},somethingIsLoading(){return!this.$progress.isComplete()},canSave(){return this.canEdit&&this.isDirty&&!this.somethingIsLoading},isBase(){return this.publishContainer==="base"},isDirty(){return this.$dirty.has(this.publishContainer)},activeLocalization(){return _.findWhere(this.localizations,{active:!0})},originLocalization(){return _.findWhere(this.localizations,{origin:!0})}},watch:{saving(M){this.$progress.loading(`${this.publishContainer}-global-publish-form`,M)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.canSave&&(this.saving=!0,this.clearErrors(),this.runBeforeSaveHook())},runBeforeSaveHook(){Statamic.$hooks.run("global-set.saving",{globalSet:this.initialHandle,values:this.values,container:this.$refs.container,storeName:this.publishContainer}).then(this.performSaveRequest).catch(M=>{this.saving=!1,this.$toast.error(M||"Something went wrong")})},performSaveRequest(){const M={...this.visibleValues,blueprint:this.fieldset.handle,_localized:this.localizedFields};this.$axios[this.method](this.actions.save,M).then($=>{if(this.saving=!1,!$.data.saved)return this.$toast.error("Couldn't save global set");this.isCreating||this.$toast.success(__("Saved")),this.$refs.container.saved(),this.runAfterSaveHook($)}).catch($=>this.handleAxiosError($))},runAfterSaveHook(M){Statamic.$hooks.run("global-set.saved",{globalSet:this.initialHandle,reference:this.initialReference,response:M}).then(()=>{this.$nextTick(()=>this.$emit("saved",M))}).catch($=>{})},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))},localizationSelected(M){M.active||this.isDirty&&!confirm(__("Are you sure? Unsaved changes will be lost."))||(this.localizing=M.handle,this.publishContainer==="base"&&window.history.replaceState({},"",M.url),this.$axios.get(M.url).then($=>{const I=$.data;this.values=I.values,this.originValues=I.originValues,this.meta=I.meta,this.localizations=I.localizations,this.localizedFields=I.localizedFields,this.hasOrigin=I.hasOrigin,this.actions=I.actions,this.fieldset=I.blueprint,this.isRoot=I.isRoot,this.site=M.handle,this.localizing=!1,this.$nextTick(()=>this.$refs.container.clearDirtyState())}))},localizationStatusText(M){return M.exists?"This global set exists in this site.":"This global set does not exist for this site."},setFieldValue(M,$){this.hasOrigin&&this.desyncField(M),this.$refs.container.setFieldValue(M,$)},syncField(M){confirm(__("Are you sure? This field's value will be replaced by the value in the original entry."))&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},created(){window.history.replaceState({},document.title,document.location.href.replace("created=true",""))}};var _sfc_render$A=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.globalsUrl,title:$.__("Globals")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),$.canEdit?$._e():I("div",{staticClass:"pt-px text-2xs text-gray-600 dark:text-dark-200 rtl:mr-4 ltr:ml-4 flex"},[I("svg-icon",{staticClass:"w-4 rtl:ml-1 ltr:mr-1 -mt-1",attrs:{name:"light/lock"}}),$._v(" "+$._s($.__("Read Only"))+" ")],1),$.canConfigure||$.canEditBlueprint?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[$.canConfigure?I("dropdown-item",{attrs:{redirect:$.configureUrl},domProps:{textContent:$._s($.__("Configure"))}}):$._e(),$.canEditBlueprint?I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}}):$._e()],1):$._e(),$.localizations.length>1?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.localizations,value:$.site},on:{input:$.localizationSelected}}):$._e(),$.canEdit?I("button",{staticClass:"btn-primary min-w-100",class:{"opacity-25":!$.canSave},attrs:{disabled:!$.canSave},domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}):$._e(),$._t("action-buttons-right")],2)],1),$.fieldset.empty?I("div",{staticClass:"text-center mt-10 border-2 dark:border-dark-300 border-dashed rounded-lg px-8 py-32"},[I("div",{staticClass:"max-w-md mx-auto opacity-50"},[I("h1",{staticClass:"my-6",domProps:{textContent:$._s($.__("This Global Set has no fields."))}}),I("p",{domProps:{textContent:$._s($.__("messages.global_set_no_fields_description"))}})])]):$._e(),$.fieldset&&!$.fieldset.empty?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors,site:$.site,"localized-fields":$.localizedFields,"is-root":$.isRoot},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,components:B,setFieldMeta:j}){return I("div",{},[$._l(B,function(U){return I(U.name,$._b({key:U.name,tag:"component",attrs:{container:N}},"component",U.props,!1))}),I("publish-tabs",{attrs:{"read-only":!$.canEdit,syncable:$.hasOrigin,"enable-sidebar":!1},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}}})],2)}}],null,!1,1376230189)}):$._e()],1)},_sfc_staticRenderFns$A=[],__component__$A=normalizeComponent$2(_sfc_main$A,_sfc_render$A,_sfc_staticRenderFns$A,!1,null,null,null,null);const GlobalPublishForm=__component__$A.exports,_sfc_main$z={props:{route:{type:String}},data(){return{title:null,handle:null,slug:this.$slug.async().separatedBy("_")}},watch:{title(M){this.slug.create(M).then($=>this.handle=$)}},computed:{canSubmit(){return!!(this.title&&this.handle&&!this.slug.busy)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$z=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white dark:bg-dark-600 dark:shadow-dark"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Global Set")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.globals_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.globals_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("div",{staticClass:"relative"},[$.slug.busy?I("loading-graphic",{staticClass:"absolute top-3 right-3",attrs:{inline:"",text:""}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}})],1),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.globals_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Global Set"))+" ")])])])},_sfc_staticRenderFns$z=[],__component__$z=normalizeComponent$2(_sfc_main$z,_sfc_render$z,_sfc_staticRenderFns$z,!1,null,null,null,null);const GlobalCreateForm=__component__$z.exports,_sfc_main$y={mixins:[Listing],props:{listingKey:String,group:String,allowFilterPresets:{default:!0}},data(){return{preferencesPrefix:"users",requestUrl:cp_url("users"),pushQuery:!0}},computed:{additionalParameters(){return{group:this.group}}}};var _sfc_render$y=function M(){var $=this,I=$._self._c;return I("div",[$.initializing?I("div",{staticClass:"card loading"},[I("loading-graphic")],1):$._e(),$.initializing?$._e():I("data-list",{ref:"dataList",attrs:{rows:$.items,columns:$.columns,sort:!1,"sort-column":$.sortColumn,"sort-direction":$.sortDirection},scopedSlots:$._u([{key:"default",fn:function({hasSelections:N}){return I("div",{},[I("div",{staticClass:"card overflow-hidden p-0 relative"},[I("div",{staticClass:"flex flex-wrap items-center justify-between px-2 pb-2 text-sm border-b dark:border-dark-900"},[I("data-list-filter-presets",{directives:[{name:"show",rawName:"v-show",value:$.allowFilterPresets,expression:"allowFilterPresets"}],ref:"presets",attrs:{"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"has-active-filters":$.hasActiveFilters,"preferences-prefix":$.preferencesPrefix,"search-query":$.searchQuery},on:{selected:$.selectPreset,reset:$.filtersReset}}),I("data-list-search",{ref:"search",staticClass:"h-8 mt-2 min-w-[240px] w-full",attrs:{placeholder:$.searchPlaceholder},model:{value:$.searchQuery,callback:function(B){$.searchQuery=B},expression:"searchQuery"}}),I("div",{staticClass:"flex space-x-2 rtl:space-x-reverse mt-2"},[I("button",{directives:[{name:"show",rawName:"v-show",value:$.isDirty,expression:"isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Reset"))},on:{click:function(B){return $.$refs.presets.refreshPreset()}}}),I("button",{directives:[{name:"show",rawName:"v-show",value:$.allowFilterPresets&&$.isDirty,expression:"allowFilterPresets && isDirty"}],staticClass:"btn btn-sm rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save"))},on:{click:function(B){return $.$refs.presets.savePreset()}}}),I("data-list-column-picker",{attrs:{"preferences-key":$.preferencesKey("columns")}})],1)],1),I("data-list-filters",{ref:"filters",attrs:{filters:$.filters,"active-preset":$.activePreset,"active-preset-payload":$.activePresetPayload,"active-filters":$.activeFilters,"active-filter-badges":$.activeFilterBadges,"active-count":$.activeFilterCount,"search-query":$.searchQuery,"is-searching":!0,"saves-presets":!0,"preferences-prefix":$.preferencesPrefix},on:{changed:$.filterChanged,saved:function(B){return $.$refs.presets.setPreset(B)},deleted:function(B){return $.$refs.presets.refreshPresets()}}}),I("div",{directives:[{name:"show",rawName:"v-show",value:$.items.length===0,expression:"items.length === 0"}],staticClass:"p-6 text-center text-gray-500",domProps:{textContent:$._s($.__("No results"))}}),I("data-list-bulk-actions",{staticClass:"rounded",attrs:{url:$.actionUrl},on:{started:$.actionStarted,completed:$.actionCompleted}}),I("div",{staticClass:"overflow-x-auto overflow-y-hidden"},[I("data-list-table",{directives:[{name:"show",rawName:"v-show",value:$.items.length,expression:"items.length"}],attrs:{"allow-bulk-actions":!0,"allow-column-picker":!0,"column-preferences-key":$.preferencesKey("columns")},on:{sorted:$.sorted},scopedSlots:$._u([{key:"cell-email",fn:function({row:B,value:j}){return[I("a",{staticClass:"flex items-center",attrs:{href:B.edit_url}},[I("avatar",{staticClass:"w-8 h-8 rounded-full rtl:ml-2 ltr:mr-2",attrs:{user:B}}),$._v(" "+$._s(j)+" ")],1)]}},{key:"cell-roles",fn:function({row:B,value:j}){return[I("div",{staticClass:"role-index-field"},[B.super?I("div",{staticClass:"role-index-field-item rtl:ml-1 ltr:mr-1 mb-1.5"},[$._v($._s($.__("Super Admin")))]):$._e(),!j||j.length===0?I("div"):$._e(),$._l(j||[],function(U,q){return I("div",{staticClass:"role-index-field-item rtl:ml-1 ltr:mr-1 mb-1.5"},[$._v($._s($.__(U.title)))])})],2)]}},{key:"cell-groups",fn:function({row:B,value:j}){return[I("div",{staticClass:"groups-index-field"},$._l(j||[],function(U){return I("div",{staticClass:"groups-index-field-item rtl:ml-1 ltr:mr-1 mb-1.5"},[$._v($._s($.__(U.title)))])}),0)]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",{attrs:{placement:"right-start"}},[B.editable?I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}):I("dropdown-item",{attrs:{text:$.__("View"),redirect:B.edit_url}}),I("data-list-inline-actions",{attrs:{item:B.id,url:$.actionUrl,actions:B.actions},on:{started:$.actionStarted,completed:$.actionCompleted}})],1)]}}],null,!0)})],1)],1),I("data-list-pagination",{staticClass:"mt-6",attrs:{"resource-meta":$.meta,"per-page":$.perPage,"show-totals":!0},on:{"page-selected":$.selectPage,"per-page-changed":$.changePerPage}})],1)}}],null,!1,2425660367)})],1)},_sfc_staticRenderFns$y=[],__component__$y=normalizeComponent$2(_sfc_main$y,_sfc_render$y,_sfc_staticRenderFns$y,!1,null,null,null,null);const UserListing=__component__$y.exports;var isEmail$1={exports:{}},assertString={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=N;function I(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(U){return typeof U}:I=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},I(B)}function N(B){var j=typeof B=="string"||B instanceof String;if(!j){var U=I(B);throw B===null?U="null":U==="object"&&(U=B.constructor.name),new TypeError("Expected a string but received a ".concat(U))}}M.exports=$.default,M.exports.default=$.default})(assertString,assertString.exports);var assertStringExports=assertString.exports,merge={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=I;function I(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1?arguments[1]:void 0;for(var j in B)typeof N[j]>"u"&&(N[j]=B[j]);return N}M.exports=$.default,M.exports.default=$.default})(merge,merge.exports);var mergeExports=merge.exports,isByteLength={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=j;var I=N(assertStringExports);function N(U){return U&&U.__esModule?U:{default:U}}function B(U){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(Y){return typeof Y}:B=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},B(U)}function j(U,q){(0,I.default)(U);var Y,K;B(q)==="object"?(Y=q.min||0,K=q.max):(Y=arguments[1],K=arguments[2]);var G=encodeURI(U).split(/%..|./).length-1;return G>=Y&&(typeof K>"u"||G<=K)}M.exports=$.default,M.exports.default=$.default})(isByteLength,isByteLength.exports);var isByteLengthExports=isByteLength.exports,isFQDN={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=U;var I=B(assertStringExports),N=B(mergeExports);function B(q){return q&&q.__esModule?q:{default:q}}var j={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function U(q,Y){(0,I.default)(q),Y=(0,N.default)(Y,j),Y.allow_trailing_dot&&q[q.length-1]==="."&&(q=q.substring(0,q.length-1)),Y.allow_wildcard===!0&&q.indexOf("*.")===0&&(q=q.substring(2));var K=q.split("."),G=K[K.length-1];return Y.require_tld&&(K.length<2||!Y.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(G)||/\s/.test(G))||!Y.allow_numeric_tld&&/^\d+$/.test(G)?!1:K.every(function(J){return!(J.length>63&&!Y.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(J)||/[\uff01-\uff5e]/.test(J)||/^-|-$/.test(J)||!Y.allow_underscores&&/_/.test(J))})}M.exports=$.default,M.exports.default=$.default})(isFQDN,isFQDN.exports);var isFQDNExports=isFQDN.exports,isIP={exports:{}};(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=K;var I=N(assertStringExports);function N(G){return G&&G.__esModule?G:{default:G}}var B="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",j="(".concat(B,"[.]){3}").concat(B),U=new RegExp("^".concat(j,"$")),q="(?:[0-9a-fA-F]{1,4})",Y=new RegExp("^("+"(?:".concat(q,":){7}(?:").concat(q,"|:)|")+"(?:".concat(q,":){6}(?:").concat(j,"|:").concat(q,"|:)|")+"(?:".concat(q,":){5}(?::").concat(j,"|(:").concat(q,"){1,2}|:)|")+"(?:".concat(q,":){4}(?:(:").concat(q,"){0,1}:").concat(j,"|(:").concat(q,"){1,3}|:)|")+"(?:".concat(q,":){3}(?:(:").concat(q,"){0,2}:").concat(j,"|(:").concat(q,"){1,4}|:)|")+"(?:".concat(q,":){2}(?:(:").concat(q,"){0,3}:").concat(j,"|(:").concat(q,"){1,5}|:)|")+"(?:".concat(q,":){1}(?:(:").concat(q,"){0,4}:").concat(j,"|(:").concat(q,"){1,6}|:)|")+"(?::((?::".concat(q,"){0,5}:").concat(j,"|(?::").concat(q,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function K(G){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,I.default)(G),J=String(J),J?J==="4"?U.test(G):J==="6"?Y.test(G):!1:K(G,4)||K(G,6)}M.exports=$.default,M.exports.default=$.default})(isIP,isIP.exports);var isIPExports=isIP.exports;(function(M,$){Object.defineProperty($,"__esModule",{value:!0}),$.default=ne;var I=q(assertStringExports),N=q(mergeExports),B=q(isByteLengthExports),j=q(isFQDNExports),U=q(isIPExports);function q(ce){return ce&&ce.__esModule?ce:{default:ce}}var Y={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},K=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,G=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,J=/^[a-z\d]+$/,Z=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,ee=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,te=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,se=254;function re(ce){var me=ce.replace(/^"(.+)"$/,"$1");if(!me.trim())return!1;var ue=/[\.";<>]/.test(me);if(ue){if(me===ce)return!1;var _e=me.split('"').length===me.split('\\"').length;if(!_e)return!1}return!0}function ne(ce,me){if((0,I.default)(ce),me=(0,N.default)(me,Y),me.require_display_name||me.allow_display_name){var ue=ce.match(K);if(ue){var _e=ue[1];if(ce=ce.replace(_e,"").replace(/(^<|>$)/g,""),_e.endsWith(" ")&&(_e=_e.slice(0,-1)),!re(_e))return!1}else if(me.require_display_name)return!1}if(!me.ignore_max_length&&ce.length>se)return!1;var fe=ce.split("@"),ge=fe.pop(),ye=ge.toLowerCase();if(me.host_blacklist.includes(ye)||me.host_whitelist.length>0&&!me.host_whitelist.includes(ye))return!1;var xe=fe.join("@");if(me.domain_specific_validation&&(ye==="gmail.com"||ye==="googlemail.com")){xe=xe.toLowerCase();var le=xe.split("+")[0];if(!(0,B.default)(le.replace(/\./g,""),{min:6,max:30}))return!1;for(var be=le.split("."),ve=0;ve<be.length;ve++)if(!J.test(be[ve]))return!1}if(me.ignore_max_length===!1&&(!(0,B.default)(xe,{max:64})||!(0,B.default)(ge,{max:254})))return!1;if(!(0,j.default)(ge,{require_tld:me.require_tld,ignore_max_length:me.ignore_max_length})){if(!me.allow_ip_domain)return!1;if(!(0,U.default)(ge)){if(!ge.startsWith("[")||!ge.endsWith("]"))return!1;var we=ge.slice(1,-1);if(we.length===0||!(0,U.default)(we))return!1}}if(xe[0]==='"')return xe=xe.slice(1,xe.length-1),me.allow_utf8_local_part?te.test(xe):Z.test(xe);for(var Ae=me.allow_utf8_local_part?ee:G,Se=xe.split("."),Pe=0;Pe<Se.length;Pe++)if(!Ae.test(Se[Pe]))return!1;return!(me.blacklisted_chars&&xe.search(new RegExp("[".concat(me.blacklisted_chars,"]+"),"g"))!==-1)}M.exports=$.default,M.exports.default=$.default})(isEmail$1,isEmail$1.exports);var isEmailExports=isEmail$1.exports;const isEmail=getDefaultExportFromCjs$1(isEmailExports),HasWizardSteps={data(){return{currentStep:0}},computed:{onFirstStep(){return this.currentStep===0},onLastStep(){return this.currentStep===this.steps.length-1},canContinue(){return this.canGoToStep(this.currentStep+1)}},methods:{goToStep(M){this.canGoToStep(M)&&(this.currentStep=M)},next(){this.onLastStep||this.goToStep(this.currentStep+1)},previous(){this.onFirstStep||this.goToStep(this.currentStep-1)}}},Wizard_vue_vue_type_style_index_0_scoped_df525213_lang="",_sfc_main$x={mixins:[HasWizardSteps],props:{route:{type:String},usersCreateUrl:{type:String},usersIndexUrl:{type:String},canCreateSupers:{type:Boolean},canAssignRoles:{type:Boolean},canAssignGroups:{type:Boolean},activationExpiry:{type:Number},separateNameFields:{type:Boolean},canSendInvitation:{type:Boolean},blueprint:{type:Object},initialValues:{type:Object},fields:{type:Array},meta:{type:Object}},data(){return{user:{super:this.canCreateSupers,roles:[],groups:[]},invitation:{send:this.canSendInvitation,subject:__("messages.user_wizard_invitation_subject",{site:window.location.hostname}),message:__n("messages.user_wizard_invitation_body",this.activationExpiry,{site:window.location.hostname,expiry:this.activationExpiry})},userExists:!1,completed:!1,activationUrl:null,editUrl:null,errors:{},error:null,storeName:"userwizard",values:this.initialValues}},computed:{steps(){let M=[__("User Information")];return this.canAssignPermissions&&M.push(__("Roles & Groups")),this.canSendInvitation&&M.push(__("Customize Invitation")),M},canAssignPermissions(){return this.canAssignRoles||this.canAssignGroups},onUserInfoStep(){return this.onFirstStep},onPermissionStep(){return this.canAssignPermissions?this.currentStep===1:!1},onInvitationStep(){return this.canAssignPermissions?this.currentStep===2:this.currentStep===1},finishButtonText(){return this.invitation.send?__("Create and Send Email"):__("Create User")},direction(){return this.$config.get("direction","ltr")}},methods:{canGoToStep(M){return this.completed?!1:M===0?!0:this.valid},checkIfUserExists(M){this.$axios.post(cp_url("user-exists"),{email:M}).then($=>{this.userExists=$.data.exists}).catch($=>{this.$toast.error($.response.data.message)})},nextStep(){if(this.onUserInfoStep)return this.submit(!0).then(this.next).catch(()=>{});this.next()},submit(M){let $={...this.user,...this.values,invitation:this.invitation};return M===!0&&($._validate_only=!0),this.clearErrors(),this.$axios.post(this.route,$).then(I=>{this.valid=!0,!$._validate_only&&(this.invitation.send?window.location=I.data.redirect:(this.completed=!0,this.editUrl=I.data.redirect,this.activationUrl=I.data.activationUrl))}).catch(I=>{throw this.handleAxiosError(I),I})},handleAxiosError(M){if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.valid=!1,this.$toast.error($)}else this.$toast.error(__(M.response.data.message))},clearErrors(){this.error=null,this.errors={}}},watch:{"values.email":function(M){M&&isEmail(M)&&this.checkIfUserExists(M)},userExists(M){let $=this.errors.email||[];const I=__("statamic::validation.unique");M?$.push(I):$=$.filter(N=>N!==N),this.errors={...this.errors,email:uniq($)}},errors:function(M){this.onUserInfoStep&&this.$store.commit(`publish/${this.storeName}/setErrors`,M)}},mounted(){this.$keys.bindGlobal(["command+return"],M=>{this.next()}),this.$keys.bindGlobal(["command+delete"],M=>{this.previous()})}};var _sfc_render$x=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-xl mx-auto card"},[$.steps.length>1?I("div",{staticClass:"max-w-lg mx-auto pt-16 relative"},[I("div",{staticClass:"wizard-steps"},$._l($.steps,function(N,B){return I("a",{staticClass:"step",class:{complete:$.currentStep>=B},on:{click:function(j){return $.goToStep(B)}}},[I("div",{staticClass:"ball"},[$._v($._s(B+1))]),I("div",{staticClass:"label"},[$._v($._s(N))])])}),0)]):$._e(),!$.completed&&$.onUserInfoStep?I("div",[I("div",{staticClass:"max-w-md mx-auto px-4 py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create User")))]),I("p",{staticClass:"text-gray dark:text-dark-150",domProps:{textContent:$._s($.__("messages.user_wizard_intro"))}})]),I("publish-container",{staticClass:"max-w-md mx-auto -mt-6 py-0 px-4 pb-20",attrs:{name:$.storeName,blueprint:$.blueprint,values:$.values,meta:$.meta,"track-dirty-state":!1},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("div",{staticClass:"-mx-6"},[I("publish-fields",{attrs:{fields:$.fields},on:{updated:N,"meta-updated":B}})],1)])}}],null,!1,2953505525)})],1):$._e(),!$.completed&&$.onPermissionStep?I("div",{staticClass:"max-w-md mx-auto px-4 pb-4"},[I("div",{staticClass:"py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Roles & Groups")))]),I("p",{staticClass:"text-gray dark:text-dark-150",domProps:{textContent:$._s($.__("messages.user_wizard_roles_groups_intro"))}})]),$.canCreateSupers?I("div",{staticClass:"pb-10"},[I("div",{staticClass:"flex items-center"},[I("toggle-input",{attrs:{id:"super"},model:{value:$.user.super,callback:function(N){$.$set($.user,"super",N)},expression:"user.super"}}),I("label",{staticClass:"font-bold rtl:mr-2 ltr:ml-2",attrs:{for:"super"}},[$._v($._s($.__("Super Admin")))])],1),I("div",{staticClass:"text-2xs text-gray-600 dark:text-dark-150 mt-2 flex items-center space-x-1 rtl:space-x-reverse"},[I("svg-icon",{staticClass:"h-4 w-4 flex items-center mb-px",attrs:{name:"info-circle"}}),I("span",[$._v($._s($.__("messages.user_wizard_super_admin_instructions")))])],1)]):$._e(),!$.user.super&&$.canAssignRoles?I("div",{staticClass:"pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"role"}},[$._v($._s($.__("Roles")))]),I("publish-field-meta",{attrs:{config:{handle:"user.roles",type:"user_roles"},"initial-value":$.user.roles},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j,updateMeta:U}){return I("div",{},[j?$._e():I("relationship-fieldtype",{attrs:{handle:"user.roles",config:{type:"user_roles",mode:"select"},value:B,meta:N},on:{input:function(q){$.user.roles=q},"meta-updated":U}})],1)}}],null,!1,3782001503)})],1):$._e(),!$.user.super&&$.canAssignGroups?I("div",{staticClass:"pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"group"}},[$._v($._s($.__("Groups")))]),I("publish-field-meta",{attrs:{config:{handle:"user.groups",type:"user_groups"},"initial-value":$.user.groups},scopedSlots:$._u([{key:"default",fn:function({meta:N,value:B,loading:j,updateMeta:U}){return I("div",{},[j?$._e():I("relationship-fieldtype",{attrs:{handle:"user.groups",config:{type:"user_groups",mode:"select"},value:B,meta:N},on:{input:function(q){$.user.groups=q},"meta-updated":U}})],1)}}],null,!1,1143109428)})],1):$._e()]):$._e(),!$.completed&&$.onInvitationStep?I("div",[I("div",{staticClass:"max-w-md mx-auto px-4 py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Invitation")))]),I("p",{staticClass:"text-gray dark:text-dark-150",domProps:{textContent:$._s($.__("messages.user_wizard_invitation_intro"))}})]),I("div",{staticClass:"max-w-md mx-auto px-4 mb-6 flex items-center"},[I("toggle-input",{attrs:{id:"send_email_invitation"},model:{value:$.invitation.send,callback:function(N){$.$set($.invitation,"send",N)},expression:"invitation.send"}}),I("label",{staticClass:"font-bold rtl:mr-2 ltr:ml-2",attrs:{for:"send_email_invitation"}},[$._v($._s($.__("Send Email Invitation")))])],1),$.invitation.send?I("div",{staticClass:"max-w-lg mx-auto bg-gray-100 dark:bg-dark-650 py-10 mb-20 border dark:border-dark-900 rounded-lg"},[I("div",{staticClass:"max-w-md mx-auto px-4 pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"invitation_subject"}},[$._v($._s($.__("Email Subject")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.invitation.subject,expression:"invitation.subject"}],staticClass:"input-text bg-white dark:bg-dark-700",attrs:{type:"text",id:"invitation_subject"},domProps:{value:$.invitation.subject},on:{input:function(N){N.target.composing||$.$set($.invitation,"subject",N.target.value)}}})]),I("div",{staticClass:"max-w-md mx-auto px-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"invitation_message"}},[$._v($._s($.__("Email Content")))]),I("textarea",{directives:[{name:"model",rawName:"v-model",value:$.invitation.message,expression:"invitation.message"},{name:"elastic",rawName:"v-elastic"}],staticClass:"input-text min-h-40 p-4 bg-white dark:bg-dark-700",attrs:{id:"invitation_message"},domProps:{value:$.invitation.message},on:{input:function(N){N.target.composing||$.$set($.invitation,"message",N.target.value)}}})])]):I("div",{staticClass:"max-w-md mx-auto px-4 pb-20"},[I("p",{staticClass:"mb-2",domProps:{innerHTML:$._s($.__("messages.user_wizard_invitation_share_before",{email:$.values.email}))}})])]):$._e(),$.completed?I("div",[I("div",{staticClass:"max-w-md mx-auto px-4 py-16 text-center"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("User created")))]),I("p",{staticClass:"text-gray",domProps:{innerHTML:$._s($.__("messages.user_wizard_account_created"))}})]),I("div",{staticClass:"max-w-md mx-auto px-4 pb-10"},[I("p",{staticClass:"mb-2",domProps:{innerHTML:$._s($.__("messages.user_wizard_invitation_share",{email:$.values.email}))}})]),I("div",{staticClass:"max-w-md mx-auto px-4 pb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"activation_url"}},[$._v($._s($.__("Activation URL")))]),I("input",{staticClass:"input-text",attrs:{type:"text",readonly:"",onclick:"this.select()",id:"activation_url"},domProps:{value:$.activationUrl}})]),I("div",{staticClass:"max-w-md mx-auto px-4 pb-20"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"email"}},[$._v($._s($.__("Email Address")))]),I("input",{staticClass:"input-text",attrs:{type:"text",readonly:"",onclick:"this.select()",id:"email"},domProps:{value:$.values.email}})])]):$._e(),I("div",{staticClass:"border-t dark:border-dark-900 p-4"},[I("div",{staticClass:"max-w-md mx-auto flex items-center justify-center"},[!$.completed&&!$.onFirstStep?I("button",{staticClass:"btn mx-4 w-32",attrs:{tabindex:"3"},on:{click:$.previous}},[I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"←":"→")}}),$._v(" "+$._s($.__("Previous"))+" ")]):$._e(),$.onUserInfoStep?I("button",{staticClass:"btn mx-4 w-32",attrs:{tabindex:"4"},on:{click:$.nextStep}},[$._v(" "+$._s($.__("Next"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]):$._e(),!$.onUserInfoStep&&!$.completed&&!$.onLastStep?I("button",{staticClass:"btn mx-4 w-32",attrs:{tabindex:"4",disabled:!$.canContinue},on:{click:$.nextStep}},[$._v(" "+$._s($.__("Next"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]):$._e(),!$.completed&&$.onLastStep?I("button",{staticClass:"btn-primary mx-4",attrs:{tabindex:"4"},on:{click:$.submit}},[$._v(" "+$._s($.finishButtonText)+" ")]):$._e(),$.completed?I("a",{staticClass:"btn mx-4",attrs:{href:$.usersIndexUrl}},[$._v(" "+$._s($.__("Back to Users"))+" ")]):$._e(),$.completed?I("a",{staticClass:"btn-primary mx-4",attrs:{href:$.usersCreateUrl}},[$._v(" "+$._s($.__("Create Another"))+" ")]):$._e()])])])},_sfc_staticRenderFns$x=[],__component__$x=normalizeComponent$2(_sfc_main$x,_sfc_render$x,_sfc_staticRenderFns$x,!1,null,"df525213",null,null);const UserWizard=__component__$x.exports,_sfc_main$w={mixins:[Listing],props:["initialRows","initialColumns"],data(){return{rows:this.initialRows,columns:this.initialColumns}}};var _sfc_render$w=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{rows:$.rows,columns:$.columns},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:N,index:B}){return[I("a",{attrs:{href:N.edit_url}},[$._v($._s($.__(N.title)))])]}},{key:"cell-handle",fn:function({value:N}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(N))])]}},{key:"actions",fn:function({row:N,index:B}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:N.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(j){$.$refs[`deleter_${N.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${N.id}`,attrs:{resource:N},on:{deleted:function(j){return $.removeRow(N)}}})],1)],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$w=[],__component__$w=normalizeComponent$2(_sfc_main$w,_sfc_render$w,_sfc_staticRenderFns$w,!1,null,null,null,null);const RoleListing=__component__$w.exports,checked=function(M){return M.reduce(($,I)=>I.checked?[...$,I.value,...checked(I.children)]:$,[])},_sfc_main$v={props:{initialTitle:String,initialHandle:String,initialPermissions:Array,initialSuper:Boolean,canAssignSuper:Boolean,action:String,method:String,breadcrumbUrl:String,indexUrl:String},data(){return{error:null,errors:{},title:this.initialTitle,handle:this.initialHandle,permissions:this.initialPermissions,isSuper:this.initialSuper}},watch:{title:function(M){this.handle=snake_case(M)}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length},payload(){return{title:this.title,handle:this.handle,super:this.isSuper,permissions:this.checkedPermissions}},checkedPermissions(){return this.permissions.reduce((M,$)=>[...M,...checked($.permissions)],[])}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.$axios[this.method](this.action,this.payload).then(M=>{window.location=M.data.redirect}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Unable to save role"))})}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$v=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Roles & Permissions")}}),I("div",{staticClass:"flex items-center justify-between"},[I("h1",{domProps:{textContent:$._s($.__($.initialTitle)||$.__("Create Role"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.save}},[$._v($._s($.__("Save")))])])],1),I("div",{staticClass:"card p-0 mb-6 configure-tab publish-fields @container"},[I("form-group",{staticClass:"border-b dark:border-dark-900",attrs:{handle:"title",display:$.__("Title"),errors:$.errors.title,instructions:$.__("messages.role_title_instructions"),focus:!0},model:{value:$.title,callback:function(N){$.title=N},expression:"title"}}),I("form-group",{staticClass:"border-b dark:border-dark-900",attrs:{fieldtype:"slug",handle:"handle",display:$.__("Handle"),instructions:$.__("messages.role_handle_instructions"),errors:$.errors.title},model:{value:$.handle,callback:function(N){$.handle=N},expression:"handle"}}),$.initialHandle&&$.handle!=$.initialHandle?I("div",{staticClass:"text-xs text-red-500 p-6 pt-0"},[$._v(" "+$._s($.__("messages.role_change_handle_warning"))+" ")]):$._e(),$.canAssignSuper?I("form-group",{staticClass:"toggle-fieldtype",attrs:{fieldtype:"toggle",handle:"super",display:$.__("permissions.super"),instructions:$.__("permissions.super_desc")},model:{value:$.isSuper,callback:function(N){$.isSuper=N},expression:"isSuper"}}):$._e()],1),$.isSuper?$._e():I("div",$._l($.permissions,function(N){return I("div",{key:N.handle,staticClass:"mt-6 content"},[I("h2",{staticClass:"mt-10 text-base mb-2"},[$._v($._s(N.label))]),I("role-permission-tree",{staticClass:"card p-0",attrs:{depth:1,"initial-permissions":N.permissions}})],1)}),0)])},_sfc_staticRenderFns$v=[],__component__$v=normalizeComponent$2(_sfc_main$v,_sfc_render$v,_sfc_staticRenderFns$v,!1,null,null,null,null);const RolePublishForm=__component__$v.exports,_sfc_main$u={mixins:[Listing],props:{initialRows:Array},data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title"},{label:__("Handle"),field:"handle"},{label:__("Users"),field:"users"},{label:__("Roles"),field:"roles"}]}}};var _sfc_render$u=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{rows:$.rows,columns:$.columns},scopedSlots:$._u([{key:"default",fn:function({}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{scopedSlots:$._u([{key:"cell-title",fn:function({row:N,index:B}){return[I("a",{attrs:{href:N.show_url}},[$._v($._s($.__(N.title)))])]}},{key:"cell-handle",fn:function({value:N}){return[I("span",{staticClass:"font-mono text-xs"},[$._v($._s(N))])]}},{key:"actions",fn:function({row:N,index:B}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:N.edit_url}}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(j){$.$refs[`deleter_${N.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${N.id}`,attrs:{resource:N},on:{deleted:function(j){return $.removeRow(N)}}})],1)],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$u=[],__component__$u=normalizeComponent$2(_sfc_main$u,_sfc_render$u,_sfc_staticRenderFns$u,!1,null,null,null,null);const UserGroupListing=__component__$u.exports,_sfc_main$t={mixins:[HasHiddenFields],props:{publishContainer:String,initialFieldset:Object,initialValues:Object,initialMeta:Object,initialReference:String,initialTitle:String,actions:Object,method:String,canEditBlueprint:Boolean,isCreating:Boolean},data(){return{fieldset:_.clone(this.initialFieldset),values:_.clone(this.initialValues),meta:_.clone(this.initialMeta),error:null,errors:{},title:this.initialTitle}},computed:{hasErrors(){return this.error||Object.keys(this.errors).length}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.clearErrors(),this.$axios[this.method](this.actions.save,this.visibleValues).then(M=>{this.title=M.data.title,this.$refs.container.saved(),this.isCreating&&(window.location=M.data.redirect),this.$toast.success(__("Saved")),this.$nextTick(()=>this.$emit("saved",M))}).catch(M=>{if(M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))})}},mounted(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})}};var _sfc_render$t=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-3"},[I("breadcrumb",{attrs:{url:$.cp_url("user-groups"),title:$.__("User Groups")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),$.canEditBlueprint?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[I("dropdown-item",{attrs:{text:$.__("Edit Blueprint"),redirect:$.actions.editBlueprint}})],1):$._e(),I("button",{staticClass:"btn-primary",domProps:{textContent:$._s($.__("Save"))},on:{click:function(N){return N.preventDefault(),$.save.apply(null,arguments)}}}),$._t("action-buttons-right")],2)],1),$.fieldset?I("publish-container",{ref:"container",attrs:{name:$.publishContainer,blueprint:$.fieldset,values:$.values,reference:$.initialReference,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({container:N,setFieldValue:B,setFieldMeta:j}){return I("div",{},[I("publish-tabs",{attrs:{"enable-sidebar":!1},on:{updated:B,"meta-updated":j,focus:function(U){return N.$emit("focus",U)},blur:function(U){return N.$emit("blur",U)}}})],1)}}],null,!1,1371828665)}):$._e()],1)},_sfc_staticRenderFns$t=[],__component__$t=normalizeComponent$2(_sfc_main$t,_sfc_render$t,_sfc_staticRenderFns$t,!1,null,null,null,null);const UserGroupPublishForm=__component__$t.exports,_sfc_main$s={props:{route:{type:String}},data(){return{title:null,handle:null,slug:this.$slug.async().separatedBy("_")}},watch:{title(M){this.slug.create(M).then($=>this.handle=$)}},computed:{canSubmit(){return!!(this.title&&this.handle&&!this.slug.busy)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$s=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white dark:bg-dark-600 dark:shadow-dark"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Collection")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.collection_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.collection_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("div",{staticClass:"relative"},[$.slug.busy?I("loading-graphic",{staticClass:"absolute top-3 right-3",attrs:{inline:"",text:""}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}})],1),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.collection_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Collection"))+" ")])])])},_sfc_staticRenderFns$s=[],__component__$s=normalizeComponent$2(_sfc_main$s,_sfc_render$s,_sfc_staticRenderFns$s,!1,null,null,null,null);const CollectionCreateForm=__component__$s.exports,_sfc_main$r={props:{route:{type:String},title:{type:String},handle:{type:String}},data(){return{index:this.handle+"/index",show:this.handle+"/show",selected:{blueprint:!0,index:!0,show:!0}}},computed:{canSubmit(){return!_.isEmpty(this.files)},files(){var M={};return this.selected.index&&(M.index=this.index),this.selected.show&&(M.show=this.show),M}},methods:{submit(){this.$axios.post(this.route,this.files).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$r=function M(){var $=this,I=$._self._c;return I("div",{},[I("div",{staticClass:"card p-6"},[I("header",{staticClass:"mb-6"},[I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.collection_scaffold_instructions"))}})]),I("table",{staticClass:"data-table border rounded"},[I("tbody",[I("tr",[I("td",{staticClass:"checkbox-column border-r",on:{click:function(N){$.selected.index=!$.selected.index}}},[I("div",{staticClass:"flex items-center h-full"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.selected.index,expression:"selected.index"}],staticClass:"rtl:ml-4 ltr:mr-4",attrs:{type:"checkbox",id:"field_index"},domProps:{checked:Array.isArray($.selected.index)?$._i($.selected.index,null)>-1:$.selected.index},on:{change:function(N){var B=$.selected.index,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&$.$set($.selected,"index",B.concat([q])):Y>-1&&$.$set($.selected,"index",B.slice(0,Y).concat(B.slice(Y+1)))}else $.$set($.selected,"index",U)}}})])]),I("td",{staticClass:"border-r"},[I("label",{attrs:{for:"field_index"},domProps:{textContent:$._s($.__("Index Template"))}})]),I("td",{class:{"opacity-25":!$.selected.index}},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.index,expression:"index"}],staticClass:"input-text font-mono",attrs:{type:"text",dir:"ltr"},domProps:{value:$.index},on:{input:function(N){N.target.composing||($.index=N.target.value)}}})])]),I("tr",[I("td",{staticClass:"checkbox-column border-r",on:{click:function(N){$.selected.show=!$.selected.show}}},[I("div",{staticClass:"flex items-center h-full"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.selected.show,expression:"selected.show"}],staticClass:"rtl:ml-4 ltr:mr-4",attrs:{type:"checkbox",id:"field_template"},domProps:{checked:Array.isArray($.selected.show)?$._i($.selected.show,null)>-1:$.selected.show},on:{change:function(N){var B=$.selected.show,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&$.$set($.selected,"show",B.concat([q])):Y>-1&&$.$set($.selected,"show",B.slice(0,Y).concat(B.slice(Y+1)))}else $.$set($.selected,"show",U)}}})])]),I("td",{staticClass:"border-r"},[I("label",{attrs:{for:"field_template"},domProps:{textContent:$._s($.__("Show Template"))}})]),I("td",{class:{"opacity-25":!$.selected.show}},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.show,expression:"show"}],staticClass:"input-text font-mono",attrs:{type:"text",dir:"ltr"},domProps:{value:$.show},on:{input:function(N){N.target.composing||($.show=N.target.value)}}})])])])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Views"))+" ")])])])},_sfc_staticRenderFns$r=[],__component__$r=normalizeComponent$2(_sfc_main$r,_sfc_render$r,_sfc_staticRenderFns$r,!1,null,null,null,null);const CollectionScaffolder=__component__$r.exports,_sfc_main$q={props:{blueprint:Object,editTitle:String,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})},computed:{site(){return this.$config.get("selectedSite")}}};var _sfc_render$q=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",reference:"collection",blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors,site:$.site},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.url,title:$.values.title}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.editTitle??"Configure Collection"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1),I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}})],1)}}],null,!1,799660290)}):$._e()},_sfc_staticRenderFns$q=[],__component__$q=normalizeComponent$2(_sfc_main$q,_sfc_render$q,_sfc_staticRenderFns$q,!1,null,null,null,null);const CollectionEditForm=__component__$q.exports,_sfc_main$p={props:{children:Number},data(){return{shouldDeleteChildren:!1}}};var _sfc_render$p=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"delete-entry-confirmation"}},[I("div",{staticClass:"confirmation-modal flex flex-col h-full"},[I("div",{staticClass:"text-lg font-medium p-4 pb-0"},[$._v(" "+$._s($.__("Delete Entry"))+" ")]),I("div",{staticClass:"flex-1 px-4 py-6 text-gray dark:text-dark-150"},[I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Are you sure you want to delete this entry?"))}}),$.children?I("label",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.shouldDeleteChildren,expression:"shouldDeleteChildren"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray($.shouldDeleteChildren)?$._i($.shouldDeleteChildren,null)>-1:$.shouldDeleteChildren},on:{change:function(N){var B=$.shouldDeleteChildren,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.shouldDeleteChildren=B.concat([q])):Y>-1&&($.shouldDeleteChildren=B.slice(0,Y).concat(B.slice(Y+1)))}else $.shouldDeleteChildren=U}}}),$._v(" "+$._s($.__n("Delete child entry|Delete :count child entries",$.children))+" ")]):$._e()]),I("div",{staticClass:"p-4 bg-gray-200 dark:bg-dark-550 border-t dark:border-dark-900 flex items-center justify-end text-sm"},[I("button",{staticClass:"text-gray dark:text-dark-150 hover:text-gray-900 dark:hover:text-dark-100",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return $.$emit("cancel")}}}),I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-danger",domProps:{textContent:$._s($.__("Delete"))},on:{click:function(N){return $.$emit("confirm",$.shouldDeleteChildren)}}})])])])},_sfc_staticRenderFns$p=[],__component__$p=normalizeComponent$2(_sfc_main$p,_sfc_render$p,_sfc_staticRenderFns$p,!1,null,null,null,null);const DeleteEntryConfirmation=__component__$p.exports,_sfc_main$o={props:{entries:{type:Number,required:!0}},data(){return{behavior:null,error:!1}},computed:{instructions(){let M=docs_url("/tips/localizing-entries#deleting");return`${__("messages.choose_entry_localization_deletion_behavior")} <a href="${M}" target="_blank">${__("Learn more")}</a>`}},methods:{confirm(){if(!this.behavior){this.error=!0;return}this.$emit("confirm",this.behavior)}}};var _sfc_render$o=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"delete-entry-confirmation"}},[I("div",{staticClass:"confirmation-modal flex flex-col h-full"},[I("div",{staticClass:"text-lg font-medium p-4 pb-0"},[$._v(" "+$._s($.__("Delete"))+" ")]),I("div",{staticClass:"flex-1 px-4 py-6 text-gray dark:text-dark-150"},[I("div",{staticClass:"publish-fields"},[I("div",{staticClass:"form-group",class:{"has-error":this.error}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"publish-field-label",attrs:{for:"field_behavior"}},[I("span",{domProps:{textContent:$._s($.__("Localizations"))}}),I("i",{staticClass:"required rtl:mr-1 ltr:ml-1"},[$._v("*")])]),I("div",{staticClass:"help-block -mt-2"},[I("p",{domProps:{innerHTML:$._s($.instructions)}})])]),I("div",{staticClass:"button-group-fieldtype-wrapper"},[I("div",{staticClass:"btn-group"},[I("button",{staticClass:"btn px-4",class:{active:$.behavior==="delete"},on:{click:function(N){$.behavior="delete"}}},[I("span",{domProps:{textContent:$._s($.__("Delete"))}})]),I("button",{staticClass:"btn px-4",class:{active:$.behavior==="copy"},on:{click:function(N){$.behavior="copy"}}},[I("span",{domProps:{textContent:$._s($.__("Detach"))}})])])]),$.error?I("small",{staticClass:"help-block text-red-500 mt-2 mb-0",domProps:{textContent:$._s($.__("statamic::validation.required"))}}):$._e()])])]),I("div",{staticClass:"p-4 bg-gray-200 dark:bg-dark-550 border-t dark:border-dark-900 flex items-center justify-end text-sm"},[I("button",{staticClass:"text-gray dark:text-dark-150 hover:text-gray-900 dark:hover:text-dark-100",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return $.$emit("cancel")}}}),I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-danger",domProps:{textContent:$._s($.__("Confirm"))},on:{click:$.confirm}})])])])},_sfc_staticRenderFns$o=[],__component__$o=normalizeComponent$2(_sfc_main$o,_sfc_render$o,_sfc_staticRenderFns$o,!1,null,null,null,null);const DeleteLocalizationConfirmation=__component__$o.exports,_sfc_main$n={mixins:[HasActions],components:{PageTree,DeleteEntryConfirmation,DeleteLocalizationConfirmation,SiteSelector},props:{title:{type:String,required:!0},handle:{type:String,required:!0},canCreate:{type:Boolean,required:!0},createUrls:{type:Object,required:!0},createLabel:{type:String,required:!0},blueprints:{type:Array,required:!0},breadcrumbUrl:{type:String,required:!0},structured:{type:Boolean,default:!1},sortColumn:{type:String,required:!0},sortDirection:{type:String,required:!0},columns:{type:Array,required:!0},filters:{type:Array,required:!0},actionUrl:{type:String,required:!0},reorderUrl:{type:String,required:!0},initialSite:{type:String,required:!0},sites:{type:Array},totalSitesCount:{type:Number},canChangeLocalizationDeleteBehavior:{type:Boolean},structurePagesUrl:{type:String},structureSubmitUrl:{type:String},structureMaxDepth:{type:Number,default:1/0},structureExpectsRoot:{type:Boolean},structureShowSlugs:{type:Boolean}},data(){return{mounted:!1,view:null,deletedEntries:[],showEntryDeletionConfirmation:!1,entryBeingDeleted:null,entryDeletionConfirmCallback:null,deleteLocalizationBehavior:null,showLocalizationDeleteBehaviorConfirmation:!1,localizationDeleteBehaviorConfirmCallback:null,site:this.initialSite,reordering:!1,preferencesPrefix:`collections.${this.handle}`}},computed:{treeIsDirty(){return this.$dirty.has("page-tree")},canUseStructureTree(){return this.structured&&this.structureMaxDepth!==1},reorderable(){return this.structured&&this.structureMaxDepth===1},numberOfChildrenToBeDeleted(){let M=0;const $=I=>{I.children.forEach(N=>{M++,$(N)})};return $(this.entryBeingDeleted),M},createUrl(){return this.createUrls[this.site||this.initialSite]}},watch:{view(M){this.site=this.site||this.initialSite,this.$config.set("wrapperClass",M==="tree"?void 0:"max-w-full"),localStorage.setItem("statamic.collection-view."+this.handle,M)}},mounted(){this.view=this.initialView(),this.mounted=!0},methods:{cancelTreeProgress(){this.$refs.tree.cancel(),this.deletedEntries=[]},saveTree(){if(this.deletedEntries.length===0){this.performTreeSaving();return}if(!this.canChangeLocalizationDeleteBehavior){this.deleteLocalizationBehavior="copy",this.$nextTick(()=>this.performTreeSaving());return}this.showLocalizationDeleteBehaviorConfirmation=!0,this.localizationDeleteBehaviorConfirmCallback=M=>{this.deleteLocalizationBehavior=M,this.showLocalizationDeleteBehaviorConfirmation=!1,this.$nextTick(()=>this.performTreeSaving())}},performTreeSaving(){this.$refs.tree.save().then(()=>this.deletedEntries=[]).catch(()=>{})},markTreeDirty(){this.$dirty.add("page-tree")},markTreeClean(){this.$dirty.remove("page-tree")},initialView(){if(!this.canUseStructureTree)return"list";const M=this.canUseStructureTree?"tree":"list";return localStorage.getItem("statamic.collection-view."+this.handle)||M},deleteTreeBranch(M,$,I){this.showEntryDeletionConfirmation=!0,this.entryBeingDeleted=M,this.entryDeletionConfirmCallback=N=>{this.deletedEntries.push(M.id),N?this.markEntriesForDeletion(M):I(),$(),this.showEntryDeletionConfirmation=!1,this.entryBeingDeleted=!1}},markEntriesForDeletion(M){const $=I=>{I.children.forEach(N=>{this.deletedEntries.push(N.id),$(N)})};$(M)},isRedirectBranch(M){return M.redirect!=null},createEntry(M,$){let I=`${this.createUrl}?blueprint=${M}`;$&&(I+="&parent="+$),window.location=I},editPage(M,$,I,N){const B=M.edit_url;N.metaKey?window.open(B):window.location=B},afterActionSuccessfullyCompleted(M){M.redirect||window.location.reload()}}};var _sfc_render$n=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Collections")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),this.$scopedSlots.twirldown?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[$._t("twirldown",null,{actionCompleted:$.actionCompleted})],2):$._e(),$.canUseStructureTree&&!$.treeIsDirty?I("div",{staticClass:"btn-group rtl:ml-4 ltr:mr-4"},[I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Tree"),expression:"__('Tree')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="tree"},on:{click:function(N){$.view="tree"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"light/structures"}})],1),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("List"),expression:"__('List')"}],staticClass:"btn flex items-center px-4",class:{active:$.view==="list"},on:{click:function(N){$.view="list"}}},[I("svg-icon",{staticClass:"h-4 w-4",attrs:{name:"assets-mode-table"}})],1)]):$._e(),$.view==="tree"?[$.treeIsDirty?I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Discard changes"))},on:{click:$.cancelTreeProgress}}):$._e(),$.sites.length>1?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.sites,value:$.site},on:{input:function(N){$.site=N.handle}}}):$._e(),I("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.deletedEntries.length?$.__n("An entry will be deleted|:count entries will be deleted",$.deletedEntries.length):null,expression:"deletedEntries.length ? __n('An entry will be deleted|:count entries will be deleted', deletedEntries.length) : null"}],staticClass:"btn rtl:ml-4 ltr:mr-4",class:{disabled:!$.treeIsDirty,"btn-danger":$.deletedEntries.length},attrs:{disabled:!$.treeIsDirty},domProps:{textContent:$._s($.__("Save Changes"))},on:{click:$.saveTree}})]:$._e(),$.view==="list"&&$.reorderable?[$.sites.length>1&&$.reordering&&$.site?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.sites,value:$.site},on:{input:function(N){$.site=N.handle}}}):$._e(),$.reordering?$._e():I("button",{staticClass:"btn rtl:ml-4 ltr:mr-4",domProps:{textContent:$._s($.__("Reorder"))},on:{click:function(N){$.reordering=!0}}}),$.reordering?[I("button",{staticClass:"btn rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){$.reordering=!1}}}),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Save Order"))},on:{click:$.$refs.list.saveOrder}})]:$._e()]:$._e(),!$.reordering&&$.canCreate?I("create-entry-button",{attrs:{"button-class":"btn-primary",url:$.createUrl,blueprints:$.blueprints,text:$.createLabel}}):$._e()],2)],1),$.view==="list"?I("entry-list",{ref:"list",attrs:{collection:$.handle,"initial-sort-column":$.sortColumn,"initial-sort-direction":$.sortDirection,"initial-columns":$.columns,filters:$.filters,"action-url":$.actionUrl,reordering:$.reordering,"reorder-url":$.reorderUrl,site:$.site},on:{reordered:function(N){$.reordering=!1},"site-changed":function(N){$.site=N}}}):$._e(),$.canUseStructureTree&&$.view==="tree"?I("page-tree",{ref:"tree",attrs:{collections:[$.handle],blueprints:$.blueprints,"create-url":$.createUrl,"pages-url":$.structurePagesUrl,"submit-url":$.structureSubmitUrl,"submit-parameters":{deletedEntries:$.deletedEntries,deleteLocalizationBehavior:$.deleteLocalizationBehavior},"max-depth":$.structureMaxDepth,"expects-root":$.structureExpectsRoot,"show-slugs":$.structureShowSlugs,site:$.site,"preferences-prefix":$.preferencesPrefix},on:{"edit-page":$.editPage,changed:$.markTreeDirty,saved:$.markTreeClean,canceled:$.markTreeClean},scopedSlots:$._u([{key:"branch-icon",fn:function({branch:N}){return[$.isRedirectBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Redirect"),expression:"__('Redirect')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/external-link"}}):$._e()]}},{key:"branch-options",fn:function({branch:N,removeBranch:B,orphanChildren:j,depth:U}){return[U<$.structureMaxDepth?[$.blueprints.length>1?I("h6",{staticClass:"px-2",domProps:{textContent:$._s($.__("Create Child Entry"))}}):$._e(),$.blueprints.length>1?I("li",{staticClass:"divider"}):$._e(),$._l($.blueprints,function(q){return I("dropdown-item",{key:q.handle,domProps:{textContent:$._s($.blueprints.length>1?$.__(q.title):$.__("Create Child Entry"))},on:{click:function(Y){return $.createEntry(q.handle,N.id)}}})})]:$._e(),N.can_delete?[I("li",{staticClass:"divider"}),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(q){return $.deleteTreeBranch(N,B,j)}}})]:$._e()]}}],null,!1,2247965176)}):$._e(),$.showEntryDeletionConfirmation?I("delete-entry-confirmation",{attrs:{children:$.numberOfChildrenToBeDeleted},on:{confirm:$.entryDeletionConfirmCallback,cancel:function(N){$.showEntryDeletionConfirmation=!1,$.entryBeingDeleted=null}}}):$._e(),$.showLocalizationDeleteBehaviorConfirmation?I("delete-localization-confirmation",{attrs:{entries:$.deletedEntries.length},on:{confirm:$.localizationDeleteBehaviorConfirmCallback,cancel:function(N){$.showLocalizationDeleteBehaviorConfirmation=!1}}}):$._e()],1)},_sfc_staticRenderFns$n=[],__component__$n=normalizeComponent$2(_sfc_main$n,_sfc_render$n,_sfc_staticRenderFns$n,!1,null,null,null,null);const CollectionView=__component__$n.exports,_sfc_main$m={components:{BlueprintListing},props:{initialRows:Array,reorderUrl:String},data(){return{rows:this.initialRows,hasBeenReordered:!1}},methods:{reordered(M){this.rows=M,this.hasBeenReordered=!0},saveOrder(){let M=this.rows.map($=>$.handle);this.$axios.post(this.reorderUrl,{order:M}).then($=>this.$toast.success(__("Blueprints successfully reordered"))).catch($=>this.$toast.error(__("Something went wrong")))}}},_sfc_render$m=null,_sfc_staticRenderFns$m=null;var __component__$m=normalizeComponent$2(_sfc_main$m,_sfc_render$m,_sfc_staticRenderFns$m,!1,null,null,null,null);const CollectionBlueprintListing=__component__$m.exports,_sfc_main$l={props:{warnAt:Number,lifetime:Number,email:String,oauthProvider:String,auth:Object},data(){return{isShowingLogin:!1,count:this.lifetime,remaining:this.lifetime,errors:{},password:null,pinging:!1,lastCount:Vue$3.moment(),isPageHidden:!1}},computed:{isWarning(){return this.count<=this.warnAt},warningText(){return this.remaining===0?__("messages.session_expiry_logged_out_for_inactivity"):__("messages.session_expiry_logging_out_in_seconds",{seconds:this.remaining})},isUsingOauth(){return this.oauthProvider!=null}},created(){this.startCountdown(),document.addEventListener("visibilitychange",()=>this.isPageHidden=document.hidden,!1)},watch:{count(M){this.isShowingLogin=this.auth.enabled&&this.remaining<=0;const $=M<=this.warnAt,N=Vue$3.moment().diff(this.lastCount,"seconds")>10;($||N)&&this.ping().catch(B=>{}),this.lastCount=Vue$3.moment()},isShowingLogin(M,$){M&&!$&&this.updateCsrfToken()}},methods:{startCountdown(){setInterval(()=>{this.count--},1e3)},restartCountdown(){this.count=this.remaining=this.lifetime,this.startCountdown()},ping(){return this.pinging||this.isPageHidden?Promise.resolve():(this.pinging=!0,this.$axios.get(cp_url("session-timeout")).then(M=>{this.count=this.remaining=M.data}).catch(M=>{throw M.response.status===401&&(this.remaining=0,this.auth.enabled||(window.location=this.auth.redirect_to||"/")),M}).finally(M=>{this.pinging=!1}))},updateCsrfToken(){return this.$axios.get(cp_url("auth/token")).then(M=>{const $=M.data;this.$axios.defaults.headers.common["X-CSRF-TOKEN"]=$,this.$config.set("csrfToken",$)})},submit(){this.updateCsrfToken().then(()=>{this.login()})},login(){this.$axios.post(cp_url("auth/login"),{email:this.email,password:this.password}).then(M=>{this.errors={},this.password=null,this.isShowingLogin=!1,this.$toast.success(__("Logged in")),this.restartCountdown(),this.updateCsrfToken()}).catch(M=>{M.response.status===422?(this.errors=M.response.data.errors,this.$toast.error(M.response.data.message)):this.$toast.error(__("Something went wrong"))})},extend(){this.$axios.get(cp_url("auth/extend")).then(M=>{this.remaining=this.lifetime})}}};var _sfc_render$l=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"session-expiry"},[$.isWarning?I("button",{staticClass:"session-expiry-stripe",domProps:{textContent:$._s($.warningText)},on:{click:$.extend}}):$._e(),$.isShowingLogin?I("modal",{attrs:{name:"session-timeout-login",height:"auto",width:"500px",adaptive:!0}},[I("div",{staticClass:"-max-h-screen-px"},[I("div",{staticClass:"text-lg font-semibold px-5 py-3 bg-gray-200 dark:bg-dark-550 rounded-t-lg flex items-center justify-between border-b dark:border-dark-900"},[$._v(" "+$._s($.__("Resume Your Session"))+" ")]),$.isUsingOauth?I("div",{staticClass:"p-5"},[I("a",{staticClass:"btn-primary",attrs:{href:$.oauthProvider.loginUrl,target:"_blank"}},[$._v(" "+$._s($.__("Log in with :provider",{provider:$.oauthProvider.label}))+" ")]),I("div",{staticClass:"text-2xs text-gray mt-4"},[$._v(" "+$._s($.__("messages.session_expiry_new_window"))+" ")])]):$._e(),$.isUsingOauth?$._e():I("div",{staticClass:"publish-fields p-2"},[I("div",{staticClass:"form-group w-full"},[I("label",{domProps:{textContent:$._s($.__("messages.session_expiry_enter_password"))}}),$.errors.email?I("small",{staticClass:"help-block text-red-500",domProps:{textContent:$._s($.errors.email[0])}}):$._e(),$.errors.password?I("small",{staticClass:"help-block text-red-500",domProps:{textContent:$._s($.errors.password[0])}}):$._e(),I("div",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.password,expression:"password"}],ref:"password",staticClass:"input-text",attrs:{type:"password",tabindex:"1",autofocus:""},domProps:{value:$.password},on:{keydown:function(N){return!N.type.indexOf("key")&&$._k(N.keyCode,"enter",13,N.key,"Enter")?null:(N.preventDefault(),$.submit.apply(null,arguments))},input:function(N){N.target.composing||($.password=N.target.value)}}}),I("button",{staticClass:"btn-primary rtl:mr-2 ltr:ml-2",domProps:{textContent:$._s($.__("Log in"))},on:{click:$.submit}})])])])])]):$._e()],1)},_sfc_staticRenderFns$l=[],__component__$l=normalizeComponent$2(_sfc_main$l,_sfc_render$l,_sfc_staticRenderFns$l,!1,null,null,null,null);const SessionExpiry=__component__$l.exports,_sfc_main$k={mixins:[Listing],props:["initialRows"],data(){return{rows:this.initialRows,columns:[{label:__("Title"),field:"title",visible:!0}]}}};var _sfc_render$k=function M(){var $=this,I=$._self._c;return I("data-list",{attrs:{columns:$.columns,rows:$.rows},scopedSlots:$._u([{key:"default",fn:function({filteredRows:N}){return I("div",{staticClass:"card p-0"},[I("data-list-table",{attrs:{rows:N},scopedSlots:$._u([{key:"cell-title",fn:function({row:B}){return[I("a",{staticClass:"flex items-center",attrs:{href:B.available_in_selected_site?B.show_url:B.edit_url},domProps:{textContent:$._s($.__(B.title))}})]}},{key:"actions",fn:function({row:B,index:j}){return[I("dropdown-list",[I("dropdown-item",{attrs:{text:$.__("Edit"),redirect:B.edit_url}}),B.deleteable?I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Delete")},on:{click:function(U){$.$refs[`deleter_${B.id}`].confirm()}}},[I("resource-deleter",{ref:`deleter_${B.id}`,attrs:{resource:B},on:{deleted:function(U){return $.removeRow(B)}}})],1):$._e()],1)]}}],null,!0)})],1)}}])})},_sfc_staticRenderFns$k=[],__component__$k=normalizeComponent$2(_sfc_main$k,_sfc_render$k,_sfc_staticRenderFns$k,!1,null,null,null,null);const NavigationListing=__component__$k.exports,_sfc_main$j={props:{route:{type:String}},data(){return{title:null,handle:null,slug:this.$slug.async().separatedBy("_")}},watch:{title(M){this.slug.create(M).then($=>this.handle=$)}},computed:{canSubmit(){return!!(this.title&&this.handle&&!this.slug.busy)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$j=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white dark:bg-dark-600 dark:shadow-dark"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Navigation")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.navigation_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.navigation_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("div",{staticClass:"relative"},[$.slug.busy?I("loading-graphic",{staticClass:"absolute top-3 right-3",attrs:{inline:"",text:""}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}})],1),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.navigation_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Navigation"))+" ")])])])},_sfc_staticRenderFns$j=[],__component__$j=normalizeComponent$2(_sfc_main$j,_sfc_render$j,_sfc_staticRenderFns$j,!1,null,null,null,null);const NavigationCreateForm=__component__$j.exports,_sfc_main$i={props:{blueprint:Object,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$i=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",blueprint:$.blueprint,values:$.values,reference:"collection",meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}}),I("div",{staticClass:"py-4 border-t dark:border-dark-950 flex justify-between"},[I("a",{staticClass:"btn",attrs:{href:$.url},domProps:{textContent:$._s($.__("Cancel"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1)}}],null,!1,1611210066)}):$._e()},_sfc_staticRenderFns$i=[],__component__$i=normalizeComponent$2(_sfc_main$i,_sfc_render$i,_sfc_staticRenderFns$i,!1,null,null,null,null);const NavigationEditForm=__component__$i.exports,_sfc_main$h={props:{blueprint:{required:!0,type:Object},meta:{required:!0,type:Object},values:{required:!0,type:Object},title:{required:!0,type:String},name:{type:String,default:"base"},breadcrumbs:Array,action:String,readOnly:{type:Boolean,default:!1},reloadOnSave:{type:Boolean,default:!1},saveAsOptions:{type:Array,default:()=>[]}},data(){return{saving:!1,currentValues:this.values,error:null,errors:{},hasSidebar:this.blueprint.tabs.map(M=>M.handle).includes("sidebar")}},computed:{hasSaveAsOptions(){return this.saveAsOptions.length},isDirty(){return this.$dirty.has(this.name)}},methods:{clearErrors(){this.error=null,this.errors={}},save(){this.saveAs(this.action)},saveAs(M){this.saving=!0,this.clearErrors(),this.$axios.patch(M,this.currentValues).then(()=>{this.$refs.container.saved(),location.reload()}).catch($=>this.handleAxiosError($))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else{const $=data_get(M,"response.data.message");this.$toast.error($||M),console.log(M)}}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},watch:{saving(M){this.$progress.loading("preferences-edit-form",M)}}};var _sfc_render$h=function M(){var $=this,I=$._self._c;return I("publish-container",{ref:"container",attrs:{name:$.name,blueprint:$.blueprint,reference:"collection",meta:$.meta,errors:$.errors},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return[I("div",[$.breadcrumbs?I("breadcrumbs",{attrs:{crumbs:$.breadcrumbs}}):$._e(),I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.title))]),I("div",{staticClass:"rtl:mr-4 ltr:ml-4 rtl:text-right ltr:text-left",class:{"btn-group":$.hasSaveAsOptions}},[I("button",{staticClass:"btn-primary rtl:pr-4 ltr:pl-4",class:{disabled:!$.isDirty},attrs:{disabled:!$.isDirty},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}}),$.hasSaveAsOptions?I("dropdown-list",{staticClass:"rtl:mr-0 ltr:ml-0",scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn-primary rtl:rounded-r-none ltr:rounded-l-none flex items-center"},[I("svg-icon",{staticClass:"w-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!0)},[I("h6",{staticClass:"p-2"},[$._v($._s($.__("Save to"))+"...")]),$._l($.saveAsOptions,function(j){return I("dropdown-item",{key:j.url,on:{click:function(U){return $.saveAs(j.url)}}},[I("div",{staticClass:"flex items-start rtl:pl-4 ltr:pr-4"},[I("svg-icon",{staticClass:"text-gray shrink-0 rtl:ml-2 ltr:mr-2 w-4 group-hover:text-white",attrs:{name:j.icon}}),I("span",{staticClass:"whitespace-normal"},[$._v($._s(j.label))])],1)])})],2):$._e()],1)]),I("publish-tabs",{attrs:{"enable-sidebar":$.hasSidebar,"read-only":$.readOnly},on:{updated:N,"meta-updated":B}})],1)]}}]),model:{value:$.currentValues,callback:function(N){$.currentValues=N},expression:"currentValues"}})},_sfc_staticRenderFns$h=[],__component__$h=normalizeComponent$2(_sfc_main$h,_sfc_render$h,_sfc_staticRenderFns$h,!1,null,null,null,null);const PreferencesEditForm=__component__$h.exports,_sfc_main$g={mixins:[HasHiddenFields],props:{id:String,entry:String,site:String,publishInfo:Object,blueprint:Object,handle:String,editEntryUrl:String,creating:Boolean,readOnly:Boolean},data(){return{type:this.entry?"entry":"url",values:null,meta:null,originValues:null,originMeta:null,extraValues:null,localizedFields:null,syncableFields:null,loading:!0,error:null,errors:{},validating:!1,saveKeyBinding:null,publishContainer:"tree-page"}},computed:{headerText(){return this.entry?__("Link to Entry"):__("Nav Item")},adjustedBlueprint(){function M(j){return _.chain(j.tabs[0].sections).map(U=>U.fields).flatten(!0).value()}function $(j,U){return!M(j).some(q=>q.handle===U)}function I(j,U){return!$(j,U)}function N(j){for(let U=0;U<B.tabs[0].sections.length;U++){const q=B.tabs[0].sections[U];for(let Y=0;Y<q.fields.length;Y++)if(q.fields[Y].handle===j)return{section:U,field:Y}}return{section:null,field:null}}const B=clone(this.blueprint);if(this.type=="url"&&$(B,"url")&&B.tabs[0].sections[0].fields.unshift({handle:"url",type:"text",display:__("URL"),instructions:__("Enter any internal or external URL.")}),this.type=="entry"&&I(B,"url")){const{section:j,field:U}=N("url");B.tabs[0].sections[j].fields.splice(U,1)}return $(B,"title")&&B.tabs[0].sections[0].fields.unshift({handle:"title",type:"text",display:__("Title")}),B}},watch:{localizedFields(M){this.loading||this.$emit("localized-fields-updated",M)}},methods:{submit(){this.validating=!0;const M=cp_url(`navigation/${this.handle}/pages`);this.$axios.post(M,{type:this.type,values:this.visibleValues}).then($=>{this.$emit("submitted",this.visibleValues)}).catch($=>{if(this.validating=!1,$.response&&$.response.status===422){const{message:I,errors:N}=$.response.data;this.error=I,this.errors=N,this.$toast.error(I)}else $.response?this.$toast.error($.response.data.message):this.$toast.error($||"Something went wrong")})},shouldClose(){return!(this.$dirty.has(this.publishContainer)&&!confirm(__("Are you sure? Unsaved changes will be lost.")))},confirmClose(M){this.shouldClose()&&M()},syncField(M){confirm("Are you sure? This field's value will be replaced by the value in the original entry.")&&(this.localizedFields=this.localizedFields.filter($=>$!==M),this.$refs.container.setFieldValue(M,this.originValues[M]),this.meta[M]=this.originMeta[M])},desyncField(M){this.localizedFields.includes(M)||this.localizedFields.push(M),this.$refs.container.dirty()},setFieldValue(M,$){this.desyncField(M),this.$refs.container.setFieldValue(M,$)},getPageValues(){const M=!!this.publishInfo,$=M&&this.publishInfo.hasOwnProperty("values");if(M&&$){this.updatePublishInfo(this.publishInfo),this.loading=!1;return}const I=this.creating||M&&!$;let N=I?cp_url(`navigation/${this.handle}/pages/create`):cp_url(`navigation/${this.handle}/pages/${this.id}/edit`);N+=`?site=${this.site}`,I&&this.type=="entry"&&(N+=`&entry=${this.entry}`),this.$axios.get(N).then(B=>{this.updatePublishInfo(B.data),this.emitPublishInfoUpdated(M&&this.publishInfo.new),this.loading=!1})},updatePublishInfo(M){this.values=M.values,this.originValues=M.originValues,this.meta=M.meta,this.originMeta=M.originMeta,this.extraValues=M.extraValues,this.localizedFields=M.localizedFields,this.syncableFields=M.syncableFields},emitPublishInfoUpdated(M){this.$emit("publish-info-updated",{values:this.values,originValues:this.originValues,meta:this.meta,originMeta:this.originMeta,extraValues:this.extraValues,localizedFields:this.localizedFields,syncableFields:this.syncableFields,entry:this.entry,new:M})}},created(){this.saveKeyBinding=this.$keys.bindGlobal(["mod+enter","mod+s"],M=>{M.preventDefault(),this.submit()}),this.getPageValues()},destroyed(){this.saveKeyBinding.destroy()}};var _sfc_render$g=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"page-tree-linker","before-close":$.shouldClose},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-gray-100 dark:bg-dark-700 h-full flex flex-col"},[I("header",{staticClass:"bg-white dark:bg-dark-550 rtl:pr-6 ltr:pl-6 rtl:pl-3 ltr:pr-3 py-2 mb-4 border-b dark:border-dark-950 shadow-md text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.headerText)+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:function(B){return $.confirmClose(N)}}})]),$.loading?I("div",{staticClass:"flex-1 overflow-auto relative"},[I("div",{staticClass:"absolute inset-0 z-10 bg-white dark:bg-dark-700 bg-opacity-75 flex items-center justify-center text-center"},[I("loading-graphic")],1)]):$._e(),$.loading?$._e():I("div",{staticClass:"flex-1 overflow-auto px-1"},[I("publish-container",{ref:"container",staticClass:"px-2",attrs:{name:$.publishContainer,blueprint:$.adjustedBlueprint,values:$.values,"extra-values":$.extraValues,meta:$.meta,errors:$.errors,"localized-fields":$.localizedFields,site:$.site},on:{updated:function(B){$.values=B}},scopedSlots:$._u([{key:"default",fn:function({container:B,setFieldMeta:j}){return I("div",{},[$.validating?I("div",{staticClass:"absolute inset-0 z-10 bg-white dark:bg-dark-500 bg-opacity-75 flex items-center justify-center"},[I("loading-graphic",{attrs:{text:""}})],1):$._e(),I("publish-sections",{attrs:{sections:$.adjustedBlueprint.tabs[0].sections,syncable:$.type=="entry","syncable-fields":$.syncableFields,"read-only":$.readOnly},on:{updated:$.setFieldValue,"meta-updated":j,synced:$.syncField,desynced:$.desyncField,focus:function(U){return B.$emit("focus",U)},blur:function(U){return B.$emit("blur",U)}}})],1)}}],null,!0)})],1),!$.loading&&(!$.readOnly||$.type==="entry")?I("div",{staticClass:"bg-gray-200 dark:bg-dark-500 p-4 border-t dark:border-dark-900 flex items-center justify-between flex-row-reverse"},[$.readOnly?$._e():I("div",[I("button",{staticClass:"btn rtl:ml-2 ltr:mr-2",on:{click:function(B){return $.confirmClose(N)}}},[$._v($._s($.__("Cancel")))]),I("button",{staticClass:"btn-primary",on:{click:$.submit}},[$._v($._s($.__("Submit")))])]),$.type==="entry"?I("div",[I("a",{staticClass:"text-xs flex items-center justify-center text-blue hover:text-blue underline rtl:ml-4 ltr:mr-4",attrs:{href:$.editEntryUrl,target:"_blank"}},[I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/external-link"}}),$._v(" "+$._s($.__("Edit Entry"))+" ")],1)]):$._e()]):$._e()])}}])})},_sfc_staticRenderFns$g=[],__component__$g=normalizeComponent$2(_sfc_main$g,_sfc_render$g,_sfc_staticRenderFns$g,!1,null,null,null,null);const PageEditor=__component__$g.exports,_sfc_main$f={props:{site:String,collections:Array,canSelectAcrossSites:Boolean,maxItems:{type:Number,required:!1}},data(){return{config:{type:"entries",collections:this.collections,select_across_sites:this.canSelectAcrossSites},columns:[{label:__("Title"),field:"title"},{label:__("Slug"),field:"slug"}]}},computed:{itemDataUrl(){return cp_url("fieldtypes/relationship/data")+"?"+qs.stringify({config:this.configParameter})},selectionsUrl(){return cp_url("fieldtypes/relationship")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},filtersUrl(){return cp_url("fieldtypes/relationship/filters")+"?"+qs.stringify({config:this.configParameter,collections:this.collections})},configParameter(){return utf8btoa(JSON.stringify(this.config))}},methods:{linkExistingItem(){this.$refs.input.$refs.existing.click()},itemDataUpdated(M){M.length&&this.$emit("selected",M)}}};var _sfc_render$f=function M(){var $=this,I=$._self._c;return I("relationship-input",{ref:"input",staticClass:"hidden",attrs:{name:"entries",value:[],config:$.config,site:$.site,"item-data-url":$.itemDataUrl,"selections-url":$.selectionsUrl,"filters-url":$.filtersUrl,search:!0,columns:$.columns,"can-create":!1,"can-reorder":!1,"max-items":$.maxItems},on:{"item-data-updated":$.itemDataUpdated}})},_sfc_staticRenderFns$f=[],__component__$f=normalizeComponent$2(_sfc_main$f,_sfc_render$f,_sfc_staticRenderFns$f,!1,null,null,null,null);const PageSelector=__component__$f.exports,_sfc_main$e={props:{children:Number},data(){return{shouldDeleteChildren:!1}}};var _sfc_render$e=function M(){var $=this,I=$._self._c;return I("modal",{attrs:{name:"remove-page-confirmation"}},[I("div",{staticClass:"confirmation-modal flex flex-col h-full"},[I("div",{staticClass:"text-lg font-medium p-4 pb-0"},[$._v(" "+$._s($.__("Remove Page"))+" ")]),I("div",{staticClass:"flex-1 px-4 py-6 text-gray dark:text-dark-150"},[I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Are you sure you want to remove this page?"))}}),I("p",{staticClass:"mb-4",domProps:{textContent:$._s($.__("Only the references will be removed. Entries will not be deleted."))}}),$.children?I("label",{staticClass:"flex items-center"},[I("input",{directives:[{name:"model",rawName:"v-model",value:$.shouldDeleteChildren,expression:"shouldDeleteChildren"}],staticClass:"rtl:ml-2 ltr:mr-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray($.shouldDeleteChildren)?$._i($.shouldDeleteChildren,null)>-1:$.shouldDeleteChildren},on:{change:function(N){var B=$.shouldDeleteChildren,j=N.target,U=!!j.checked;if(Array.isArray(B)){var q=null,Y=$._i(B,q);j.checked?Y<0&&($.shouldDeleteChildren=B.concat([q])):Y>-1&&($.shouldDeleteChildren=B.slice(0,Y).concat(B.slice(Y+1)))}else $.shouldDeleteChildren=U}}}),$._v(" "+$._s($.__n("Remove child page|Remove :count child pages",$.children))+" ")]):$._e()]),I("div",{staticClass:"p-4 bg-gray-200 dark:bg-dark-550 border-t dark:border-dark-900 flex items-center justify-end text-sm"},[I("button",{staticClass:"text-gray dark:text-dark-150 hover:text-gray-900 dark:hover:text-dark-100",domProps:{textContent:$._s($.__("Cancel"))},on:{click:function(N){return $.$emit("cancel")}}}),I("button",{staticClass:"rtl:mr-4 ltr:ml-4 btn-danger",domProps:{textContent:$._s($.__("Remove"))},on:{click:function(N){return $.$emit("confirm",$.shouldDeleteChildren)}}})])])])},_sfc_staticRenderFns$e=[],__component__$e=normalizeComponent$2(_sfc_main$e,_sfc_render$e,_sfc_staticRenderFns$e,!1,null,null,null,null);const RemovePageConfirmation=__component__$e.exports,_sfc_main$d={components:{PageTree,PageEditor,PageSelector,RemovePageConfirmation,SiteSelector},props:{title:{type:String,required:!0},handle:{type:String,required:!0},collections:{type:Array,required:!0},breadcrumbUrl:{type:String,required:!0},editUrl:{type:String,required:!0},pagesUrl:{type:String,required:!0},submitUrl:{type:String,required:!0},maxDepth:{type:Number,default:1/0},expectsRoot:{type:Boolean,required:!0},site:{type:String,required:!0},sites:{type:Array,required:!0},blueprint:{type:Object,required:!0},canEdit:{type:Boolean,required:!0},canSelectAcrossSites:{type:Boolean,required:!0}},data(){return{mounted:!1,changed:!1,creatingPage:!1,editingPage:!1,targetParent:null,showPageDeletionConfirmation:!1,pageBeingDeleted:null,pageDeletionConfirmCallback:null,removePageOnCancel:!1,preferencesPrefix:`navs.${this.handle}`,publishInfo:{}}},computed:{isDirty(){return this.$dirty.has("page-tree")},numberOfChildrenToBeDeleted(){let M=0;const $=I=>{I.children.forEach(N=>{M++,$(N)})};return $(this.pageBeingDeleted),M},hasCollections(){return this.collections.length>0},submissionData(){return _.mapObject(this.publishInfo,M=>_.pick(M,["entry","values","localizedFields","new"]))},direction(){return this.$config.get("direction","ltr")},fields(){return this.blueprint.tabs.reduce((M,$)=>$.sections.reduce((I,N)=>I.concat(N.fields),[]),[])},maxPagesSelection(){if(this.fields.filter(M=>{var $;return($=M.validate)==null?void 0:$.includes("required")}).length>0)return 1}},watch:{changed(M){this.$dirty.state("page-tree",M)}},mounted(){this.mounted=!0},methods:{addLink(){this.hasCollections||this.linkPage()},linkPage(M){this.targetParent=M,this.openPageCreator()},linkEntries(M){this.targetParent=M,this.$refs.selector.linkExistingItem()},entriesSelected(M){M=M.map($=>({...$,id:uniqid$1(),entry:$.id,entry_title:$.title,title:null})),M.forEach($=>{this.publishInfo={...this.publishInfo,[$.id]:{entry:$.entry,new:!0}}}),this.$refs.tree.addPages(M,this.targetParent),this.maxPagesSelection===1&&(this.removePageOnCancel=!0,this.editPage(M[0],this.$refs.tree.$refs.tree,this.$refs.tree.$refs.tree.store))},isEntryBranch(M){return!!M.entry},isLinkBranch(M){return!this.isEntryBranch(M)&&M.url},isTextBranch(M){return!this.isEntryBranch(M)&&!this.isLinkBranch(M)},editPage(M,$,I){this.editingPage={page:M,vm:$,store:I}},updatePage(M){this.editingPage.page.url=M.url,this.editingPage.page.title=M.title,this.editingPage.page.values=M,this.$refs.tree.pageUpdated(this.editingPage.store),this.publishInfo[this.editingPage.page.id].values=M,this.editingPage=!1},closePageEditor(){this.removePageOnCancel&&(this.$refs.tree.$refs[`branch-${this.editingPage.page.id}`].remove(),this.removePageOnCancel=!1),this.editingPage=!1},openPageCreator(){this.creatingPage={info:null}},closePageCreator(){this.creatingPage=!1},pageCreated(M){const $={id:uniqid$1(),title:M.title,url:M.url,children:[]};this.$set(this.publishInfo,$.id,{...this.creatingPage.info,values:M,entry:null,new:!0}),this.$refs.tree.addPages([$],this.targetParent),this.closePageCreator()},deleteTreeBranch(M,$,I){this.showPageDeletionConfirmation=!0,this.pageBeingDeleted=M,this.pageDeletionConfirmCallback=N=>{N||I(),$(),this.showPageDeletionConfirmation=!1,this.pageBeingDeleted=M}},siteSelected(M){window.location=M.url},updatePublishInfo(M){this.publishInfo={...this.publishInfo,[this.editingPage.page.id]:M}},updatePendingCreatedPagePublishInfo(M){this.creatingPage.info=M},updateLocalizedFields(M){this.publishInfo[this.editingPage.page.id].localizedFields=M},updatePendingCreatedPageLocalizedFields(M){this.creatingPage.info.localizedFields=M},treeSaved(M){if(!M.data.saved)return this.$toast.error("Couldn't save tree");this.replaceGeneratedIds(M.data.generatedIds),this.changed=!1},replaceGeneratedIds(M){for(let[$,I]of Object.entries(M)){this.$set(this.publishInfo,I,{...this.publishInfo[$],new:!1}),this.$delete(this.publishInfo,$);let N=this.$refs.tree.getNodeByBranchId($);N.id=I,this.$refs.tree.pageUpdated(N._vm.store)}}}};var _sfc_render$d=function M(){var $=this,I=$._self._c;return I("div",[$.mounted?I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.breadcrumbUrl,title:$.__("Navigation")}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__($.title))}}),$.canEdit?I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[$._t("twirldown")],2):$._e(),$.isDirty?I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Discard changes"))},on:{click:$.$refs.tree.cancel}}):$._e(),$.sites.length>1?I("site-selector",{staticClass:"rtl:ml-4 ltr:mr-4",attrs:{sites:$.sites,value:$.site},on:{input:$.siteSelected}}):$._e(),$.canEdit?I("dropdown-list",{attrs:{disabled:!$.hasCollections},scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn",class:{"flex items-center rtl:pl-4 ltr:pr-4":$.hasCollections},on:{click:$.addLink}},[$._v(" "+$._s($.__("Add Nav Item"))+" "),$.hasCollections?I("svg-icon",{staticClass:"w-2 rtl:mr-4 ltr:ml-4",attrs:{name:"micro/chevron-down-xs"}}):$._e()],1)]},proxy:!0}],null,!1,1142844671)},[I("dropdown-item",{attrs:{text:$.__("Add Nav Item")},on:{click:function(N){return $.linkPage()}}}),I("dropdown-item",{attrs:{text:$.__("Link to Entry")},on:{click:function(N){return $.linkEntries()}}})],1):$._e(),$.canEdit?I("button",{staticClass:"btn-primary rtl:mr-4 ltr:ml-4",class:{disabled:!$.changed},attrs:{disabled:!$.changed},domProps:{textContent:$._s($.__("Save Changes"))},on:{click:$.$refs.tree.save}}):$._e()],1)],1):$._e(),I("page-tree",{ref:"tree",attrs:{"pages-url":$.pagesUrl,"submit-url":$.submitUrl,"submit-parameters":{data:$.submissionData},"max-depth":$.maxDepth,"expects-root":$.expectsRoot,site:$.site,"preferences-prefix":$.preferencesPrefix,editable:$.canEdit},on:{"edit-page":$.editPage,changed:function(N){$.changed=!0,$.targetParent=null},saved:$.treeSaved,canceled:function(N){$.changed=!1}},scopedSlots:$._u([{key:"empty",fn:function(){return[I("div",{staticClass:"card p-4 content w-full"},[I("div",{staticClass:"flex flex-wrap w-full"},[I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 dark:hover:bg-dark-550 rounded-md group",attrs:{href:$.editUrl}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800 dark:text-dark-175",attrs:{name:"light/hammer-wrench"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue dark:text-blue-600"},[$._v($._s($.__("Configure Navigation"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_configure_settings_intro")))])])],1),I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 dark:hover:bg-dark-550 rounded-md group",on:{click:function(N){return $.linkPage()}}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800 dark:text-dark-175",attrs:{name:"paperclip"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue dark:text-blue-600"},[$._v($._s($.__("Link to URL"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_link_to_url_instructions")))])])],1),$.hasCollections?I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 dark:hover:bg-dark-550 rounded-md group",on:{click:function(N){return $.linkEntries()}}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800 dark:text-dark-175",attrs:{name:"light/hierarchy-files"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue dark:text-blue-600"},[$._v($._s($.__("Link to Entry"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_link_to_entry_instructions")))])])],1):$._e(),I("a",{staticClass:"w-full lg:w-1/2 p-4 flex items-start hover:bg-gray-200 dark:hover:bg-dark-550 rounded-md group",attrs:{href:$.docs_url("navigation")}},[I("svg-icon",{staticClass:"h-8 w-8 rtl:ml-4 ltr:mr-4 text-gray-800 dark:text-dark-175",attrs:{name:"light/book-pages"}}),I("div",{staticClass:"flex-1 mb-4 md:mb-0 rtl:md:ml-6 ltr:md:mr-6"},[I("h3",{staticClass:"mb-2 text-blue dark:text-blue-600"},[$._v($._s($.__("Read the Documentation"))+" "),I("span",{domProps:{innerHTML:$._s($.direction==="ltr"?"→":"←")}})]),I("p",[$._v($._s($.__("messages.navigation_documentation_instructions")))])])],1)])])]},proxy:!0},{key:"branch-icon",fn:function({branch:N}){return[$.isEntryBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Entry link"),expression:"__('Entry link')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/hyperlink"}}):$._e(),$.isLinkBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("External link"),expression:"__('External link')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/external-link"}}):$._e(),$.isTextBranch(N)?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Text"),expression:"__('Text')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/file-text"}}):$._e()]}},$.canEdit?{key:"branch-options",fn:function({branch:N,removeBranch:B,orphanChildren:j,vm:U,depth:q}){return[$.isEntryBranch(N)?I("dropdown-item",{attrs:{text:$.__("Edit Entry"),redirect:N.edit_url}}):$._e(),q<$.maxDepth?I("dropdown-item",{attrs:{text:$.__("Add child nav item")},on:{click:function(Y){return $.linkPage(U)}}}):$._e(),q<$.maxDepth&&$.hasCollections?I("dropdown-item",{attrs:{text:$.__("Add child link to entry")},on:{click:function(Y){return $.linkEntries(U)}}}):$._e(),I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Remove")},on:{click:function(Y){return $.deleteTreeBranch(N,B,j)}}})]}}:null],null,!0)}),$.hasCollections&&$.$refs.tree?I("page-selector",{ref:"selector",attrs:{site:$.site,collections:$.collections,"max-items":$.maxPagesSelection,"can-select-across-sites":$.canSelectAcrossSites},on:{selected:$.entriesSelected}}):$._e(),$.editingPage?I("page-editor",{attrs:{site:$.site,id:$.editingPage.page.id,entry:$.editingPage.page.entry,editEntryUrl:$.editingPage.page.entry?$.editingPage.page.edit_url:null,"publish-info":$.publishInfo[$.editingPage.page.id],blueprint:$.blueprint,handle:$.handle,"read-only":!$.canEdit},on:{"publish-info-updated":$.updatePublishInfo,"localized-fields-updated":$.updateLocalizedFields,closed:$.closePageEditor,submitted:$.updatePage}}):$._e(),$.creatingPage?I("page-editor",{attrs:{creating:"",site:$.site,blueprint:$.blueprint,handle:$.handle,"read-only":!$.canEdit},on:{"publish-info-updated":$.updatePendingCreatedPagePublishInfo,"localized-fields-updated":$.updatePendingCreatedPageLocalizedFields,closed:$.closePageCreator,submitted:$.pageCreated}}):$._e(),$.showPageDeletionConfirmation?I("remove-page-confirmation",{attrs:{children:$.numberOfChildrenToBeDeleted},on:{confirm:$.pageDeletionConfirmCallback,cancel:function(N){$.showPageDeletionConfirmation=!1,$.pageBeingDeleted=null}}}):$._e()],1)},_sfc_staticRenderFns$d=[],__component__$d=normalizeComponent$2(_sfc_main$d,_sfc_render$d,_sfc_staticRenderFns$d,!1,null,null,null,null);const NavigationView=__component__$d.exports,_sfc_main$c={props:{route:{type:String}},data(){return{title:null,handle:null,slug:this.$slug.async().separatedBy("_")}},watch:{title(M){this.slug.create(M).then($=>this.handle=$)}},computed:{canSubmit(){return!!(this.title&&this.handle&&!this.slug.busy)}},methods:{submit(){this.$axios.post(this.route,{title:this.title,handle:this.handle}).then(M=>{window.location=M.data.redirect}).catch(M=>{this.$toast.error(M.response.data.message)})}},mounted(){this.$keys.bindGlobal(["return"],M=>{this.canSubmit&&this.submit()})}};var _sfc_render$c=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"max-w-lg mt-4 mx-auto"},[I("div",{staticClass:"rounded p-6 lg:px-20 lg:py-10 shadow bg-white dark:bg-dark-600 dark:shadow-dark"},[I("header",{staticClass:"text-center mb-16"},[I("h1",{staticClass:"mb-6"},[$._v($._s($.__("Create Taxonomy")))]),I("p",{staticClass:"text-gray",domProps:{textContent:$._s($.__("messages.taxonomy_configure_intro"))}})]),I("div",{staticClass:"mb-10"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Title")))]),I("input",{directives:[{name:"model",rawName:"v-model",value:$.title,expression:"title"}],staticClass:"input-text",attrs:{type:"text",autofocus:"",tabindex:"1"},domProps:{value:$.title},on:{input:function(N){N.target.composing||($.title=N.target.value)}}}),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.taxonomy_configure_title_instructions"))+" ")])]),I("div",{staticClass:"mb-4"},[I("label",{staticClass:"font-bold text-base mb-1",attrs:{for:"name"}},[$._v($._s($.__("Handle")))]),I("div",{staticClass:"relative"},[$.slug.busy?I("loading-graphic",{staticClass:"absolute top-3 right-3",attrs:{inline:"",text:""}}):$._e(),I("input",{directives:[{name:"model",rawName:"v-model",value:$.handle,expression:"handle"}],staticClass:"input-text",attrs:{type:"text",tabindex:"2"},domProps:{value:$.handle},on:{input:function(N){N.target.composing||($.handle=N.target.value)}}})],1),I("div",{staticClass:"text-2xs text-gray-600 mt-2 flex items-center"},[$._v(" "+$._s($.__("messages.taxonomy_configure_handle_instructions"))+" ")])])]),I("div",{staticClass:"flex justify-center mt-8"},[I("button",{staticClass:"btn-primary mx-auto btn-lg",attrs:{tabindex:"4",disabled:!$.canSubmit},on:{click:$.submit}},[$._v(" "+$._s($.__("Create Taxonomy"))+" ")])])])},_sfc_staticRenderFns$c=[],__component__$c=normalizeComponent$2(_sfc_main$c,_sfc_render$c,_sfc_staticRenderFns$c,!1,null,null,null,null);const TaxonomyCreateForm=__component__$c.exports,_sfc_main$b={props:{blueprint:Object,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["command+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$b=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"taxonomy",reference:"taxonomy",blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("header",{staticClass:"mb-6"},[I("breadcrumb",{attrs:{url:$.url,title:$.values.title}}),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.__("Configure Taxonomy"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1),I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}})],1)}}],null,!1,2309978015)}):$._e()},_sfc_staticRenderFns$b=[],__component__$b=normalizeComponent$2(_sfc_main$b,_sfc_render$b,_sfc_staticRenderFns$b,!1,null,null,null,null);const TaxonomyEditForm=__component__$b.exports,_sfc_main$a={components:{BlueprintListing},props:{initialRows:Array,reorderUrl:String},data(){return{rows:this.initialRows,hasBeenReordered:!1}},methods:{reordered(M){this.rows=M,this.hasBeenReordered=!0},saveOrder(){let M=this.rows.map($=>$.handle);this.$axios.post(this.reorderUrl,{order:M}).then($=>this.$toast.success(__("Blueprints successfully reordered"))).catch($=>this.$toast.error(__("Something went wrong")))}}},_sfc_render$a=null,_sfc_staticRenderFns$a=null;var __component__$a=normalizeComponent$2(_sfc_main$a,_sfc_render$a,_sfc_staticRenderFns$a,!1,null,null,null,null);const TaxonomyBlueprintListing=__component__$a.exports,_sfc_main$9={props:{blueprint:Object,initialValues:Object,meta:Object,initialTitle:String,url:String,listingUrl:String},data(){return{title:this.initialTitle,values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.post(this.url,this.values).then(M=>{this.$refs.container.saved(),this.$nextTick(()=>window.location=M.data.redirect)}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}}};var _sfc_render$9=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",blueprint:$.blueprint,values:$.values,reference:"collection",meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N}){return I("div",{},[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[I("small",{staticClass:"subhead block"},[I("a",{attrs:{href:$.listingUrl},domProps:{textContent:$._s($.__("Assets"))}})]),$._v(" "+$._s($.title)+" ")]),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])]),I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N}})],1)}}],null,!1,971208353)}):$._e()},_sfc_staticRenderFns$9=[],__component__$9=normalizeComponent$2(_sfc_main$9,_sfc_render$9,_sfc_staticRenderFns$9,!1,null,null,null,null);const AssetContainerCreateForm=__component__$9.exports,_sfc_main$8={props:{blueprint:Object,initialValues:Object,meta:Object,initialTitle:String,url:String,listingUrl:String},data(){return{title:this.initialTitle,values:this.initialValues,error:null,errors:{}}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{window.location=M.data.redirect}).catch(M=>this.handleAxiosError(M))},handleAxiosError(M){if(this.saving=!1,M.response){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Unable to save changes"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render$8=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"collection",blueprint:$.blueprint,values:$.values,reference:"collection",meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N}){return I("div",{},[I("configure-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N}}),I("div",{staticClass:"py-4 border-t dark:border-dark-950 flex justify-between"},[I("a",{staticClass:"btn",attrs:{href:$.url},domProps:{textContent:$._s($.__("Cancel"))}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])],1)}}],null,!1,2282769965)}):$._e()},_sfc_staticRenderFns$8=[],__component__$8=normalizeComponent$2(_sfc_main$8,_sfc_render$8,_sfc_staticRenderFns$8,!1,null,null,null,null);const AssetContainerEditForm=__component__$8.exports,_sfc_main$7={props:{item:Object,parentSection:Object,depth:Number,root:Boolean,vm:Object,isOpen:Boolean,isChild:Boolean,hasChildren:Boolean,disableSections:Boolean,topLevel:Boolean},data(){return{editing:!1}},computed:{isSection(){return this.disableSections?!1:this.depth===1},title(){return this.item.title||this.item.entry_title||this.item.url},icon(){return data_get$1(this.item,"config.icon")||data_get$1(this.item,"original.icon")||"entries"},isAlreadySvg(){return this.icon.startsWith("<svg")},isRenamedSection(){return this.isSection&&this.item.text!==data_get$1(this.item,"config.display_original")},isHidden(){return data_get$1(this.item,"manipulations.action")==="@hide"},isInHiddenSection(){return data_get$1(this.parentSection,"manipulations.action")==="@hide"},isPinnedAlias(){return data_get$1(this.item,"manipulations.action")==="@alias"&&this.topLevel},isAlias(){return data_get$1(this.item,"manipulations.action")==="@alias"},isMoved(){return data_get$1(this.item,"manipulations.action")==="@move"},isModified(){return data_get$1(this.item,"manipulations.action")==="@modify"},isCustom(){return data_get$1(this.item,"manipulations.action")==="@create"}},methods:{remove(){const M=this.item._vm.store;M.deleteNode(this.item),this.$emit("removed",M)}}};var _sfc_render$7=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"flex"},[I("div",{staticClass:"page-move w-6"}),I("div",{staticClass:"flex items-center flex-1 p-2 rtl:mr-2 ltr:ml-2 text-xs leading-normal"},[I("div",{staticClass:"flex items-center flex-1",class:{"opacity-50":$.isHidden||$.isInHiddenSection}},[!$.isSection&&!$.isChild?[$.isAlreadySvg?I("i",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",domProps:{innerHTML:$._s($.icon)}}):I("svg-icon",{staticClass:"w-4 h-4 rtl:ml-2 ltr:mr-2",attrs:{name:"light/"+$.icon}})]:$._e(),I("a",{class:{"text-sm font-medium":$.isSection},domProps:{textContent:$._s($.__($.item.text))},on:{click:function(N){return $.$emit("edit",N)}}}),$.hasChildren&&!$.isSection?I("button",{staticClass:"p-2 text-gray-600 dark:text-dark-200 hover:text-gray-700 dark:hover:dark-text-150 transition duration-100 outline-none flex",class:{"-rotate-90":!$.isOpen},on:{click:function(N){return $.$emit("toggle-open")}}},[I("svg-icon",{staticClass:"h-1.5",attrs:{name:"micro/chevron-down-xs"}})],1):$._e(),$.item.collection?I("div",{staticClass:"rtl:mr-4 ltr:ml-4 flex items-center"},[I("svg-icon",{staticClass:"w-4 h-4",attrs:{name:"light/content-writing"}}),I("div",{staticClass:"rtl:mr-1 ltr:ml-1"},[I("a",{attrs:{href:$.item.collection.create_url},domProps:{textContent:$._s($.__("Add"))}}),I("span",{staticClass:"text-gray"},[$._v("/")]),I("a",{attrs:{href:$.item.collection.edit_url},domProps:{textContent:$._s($.__("Edit"))}})])],1):$._e()],2),I("div",{staticClass:"rtl:pl-2 ltr:pr-2 flex items-center"},[$._t("branch-icon",null,{branch:$.item}),$.isRenamedSection?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Renamed Section"),expression:"__('Renamed Section')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/content-writing"}}):$.isHidden?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.isSection?$.__("Hidden Section"):$.__("Hidden Item"),expression:"isSection ? __('Hidden Section') : __('Hidden Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/hidden"}}):$.isPinnedAlias?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Pinned Item"),expression:"__('Pinned Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/pin"}}):$.isAlias?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Alias Item"),expression:"__('Alias Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/duplicate-ids"}}):$.isMoved?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Moved Item"),expression:"__('Moved Item')"}],staticClass:"inline-block w-4 text-gray-500",attrs:{name:"regular/flip-vertical"}}):$.isModified?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.__("Modified Item"),expression:"__('Modified Item')"}],staticClass:"inline-block w-4 h-4 text-gray-500",attrs:{name:"light/content-writing"}}):$.isCustom?I("svg-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:$.isSection?$.__("Custom Section"):$.__("Custom Item"),expression:"isSection ? __('Custom Section') : __('Custom Item')"}],staticClass:"inline-block w-4 text-gray-500",attrs:{name:"light/user-edit"}}):$._e(),I("dropdown-list",{staticClass:"rtl:mr-4 ltr:ml-4"},[$._t("branch-options",null,{item:$.item,depth:$.depth,removeBranch:$.remove})],2)],2)])])},_sfc_staticRenderFns$7=[],__component__$7=normalizeComponent$2(_sfc_main$7,_sfc_render$7,_sfc_staticRenderFns$7,!1,null,null,null,null);const TreeBranch=__component__$7.exports,_sfc_main$6={props:{creating:!1,item:{},isChild:!1},data(){return{config:clone(data_get$1(this.item,"config",this.createNewItem())),saveKeyBinding:null,validateDisplay:!1,validateUrl:!1}},created(){this.saveKeyBinding=this.$keys.bindGlobal(["enter","mod+enter","mod+s"],M=>{M.preventDefault(),this.save()})},destroyed(){this.saveKeyBinding.destroy()},methods:{createNewItem(){return{display:"",url:"",icon:null}},save(){if(this.validateDisplay=!1,this.validateUrl=!1,this.config.display||(this.validateDisplay=!0),this.config.url||(this.validateUrl=!0),this.validateDisplay||this.validateUrl)return;let M=clone(this.config);this.isChild?M.icon=null:M.icon||(M.icon=data_get$1(this.item,"original.icon")),this.$emit("updated",this.config,this.item)}}};var _sfc_render$6=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"nav-item-editor"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white dark:bg-dark-800 h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 dark:bg-dark-600 px-6 py-2 border-b border-gray-300 dark:border-dark-900 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.creating?$.__("Add Nav Item"):$.__("Edit Nav Item"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto"},[I("div",{staticClass:"px-2"},[I("div",{staticClass:"publish-fields @container"},[I("div",{staticClass:"form-group publish-field w-full",class:{"has-error":$.validateDisplay}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"text-sm font-medium mb-2"},[$._v($._s($.__("Display"))+" "),I("span",{staticClass:"text-red-500"},[$._v("*")])]),I("text-input",{attrs:{focus:!0},model:{value:$.config.display,callback:function(B){$.$set($.config,"display",B)},expression:"config.display"}}),$.validateDisplay?I("div",{staticClass:"help-block text-red-500 mt-2"},[I("p",[$._v($._s($.__("statamic::validation.required")))])]):$._e()],1)]),I("div",{staticClass:"form-group publish-field w-full",class:{"has-error":$.validateUrl}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"text-sm font-medium mb-2"},[$._v($._s($.__("URL"))+" "),I("span",{staticClass:"text-red-500"},[$._v("*")])]),I("div",{staticClass:"help-block -mt-2"},[I("p",{domProps:{textContent:$._s($.__("Enter any internal or external URL."))}})]),I("text-input",{model:{value:$.config.url,callback:function(B){$.$set($.config,"url",B)},expression:"config.url"}}),$.validateUrl?I("div",{staticClass:"help-block text-red-500 mt-2"},[I("p",[$._v($._s($.__("statamic::validation.required")))])]):$._e()],1)]),$.isChild?$._e():I("div",{staticClass:"form-group publish-field w-full"},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"text-sm font-medium mb-2"},[$._v($._s($.__("Icon")))]),I("publish-field-meta",{attrs:{config:{handle:"icon",type:"icon",folder:"light"},"initial-value":$.config.icon},scopedSlots:$._u([{key:"default",fn:function({meta:B,value:j,loading:U}){return[U?$._e():I("icon-fieldtype",{attrs:{handle:"icon",meta:B,value:j},on:{input:function(q){$.config.icon=q}}})]}}],null,!0)})],1)])])]),I("div",{staticClass:"p-6"},[I("button",{staticClass:"btn-primary w-full",class:{"opacity-50":!1},attrs:{disabled:!1},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}})])])])}}])})},_sfc_staticRenderFns$6=[],__component__$6=normalizeComponent$2(_sfc_main$6,_sfc_render$6,_sfc_staticRenderFns$6,!1,null,null,null,null);const ItemEditor=__component__$6.exports,_sfc_main$5={props:{creating:!1,sectionItem:{}},data(){return{section:data_get$1(this.sectionItem,"text")||"",saveKeyBinding:null,validate:!1}},created(){this.saveKeyBinding=this.$keys.bindGlobal(["enter","mod+enter","mod+s"],M=>{M.preventDefault(),this.save()})},destroyed(){this.saveKeyBinding.destroy()},methods:{save(){if(this.validate=!1,!this.section){this.validate=!0;return}this.$emit("updated",this.section,this.sectionItem)}}};var _sfc_render$5=function M(){var $=this,I=$._self._c;return I("stack",{attrs:{narrow:"",name:"nav-item-editor"},on:{closed:function(N){return $.$emit("closed")}},scopedSlots:$._u([{key:"default",fn:function({close:N}){return I("div",{staticClass:"bg-white dark:bg-dark-800 h-full flex flex-col"},[I("div",{staticClass:"bg-gray-200 dark:bg-dark-600 px-6 py-2 border-b border-gray-300 dark:border-dark-900 text-lg font-medium flex items-center justify-between"},[$._v(" "+$._s($.creating?$.__("Add Section"):$.__("Edit Section"))+" "),I("button",{staticClass:"btn-close",attrs:{type:"button"},domProps:{innerHTML:$._s("×")},on:{click:N}})]),I("div",{staticClass:"flex-1 overflow-auto"},[I("div",{staticClass:"px-2"},[I("div",{staticClass:"publish-fields @container"},[I("div",{staticClass:"form-group publish-field w-full",class:{"has-error":$.validate}},[I("div",{staticClass:"field-inner"},[I("label",{staticClass:"text-sm font-medium mb-2"},[$._v($._s($.__("Display"))+" "),I("span",{staticClass:"text-red-500"},[$._v("*")])]),I("text-input",{attrs:{focus:!0},model:{value:$.section,callback:function(B){$.section=B},expression:"section"}}),$.validate?I("div",{staticClass:"help-block text-red-500 mt-2"},[I("p",[$._v($._s($.__("statamic::validation.required")))])]):$._e()],1)])])]),I("div",{staticClass:"p-6"},[I("button",{staticClass:"btn-primary w-full",class:{"opacity-50":!1},attrs:{disabled:!1},domProps:{textContent:$._s($.__("Save"))},on:{click:$.save}})])])])}}])})},_sfc_staticRenderFns$5=[],__component__$5=normalizeComponent$2(_sfc_main$5,_sfc_render$5,_sfc_staticRenderFns$5,!1,null,null,null,null);const SectionEditor=__component__$5.exports,_sfc_main$4={components:{DraggableTree:vueDraggableNestedTreeExports.DraggableTree,TreeBranch,ItemEditor,SectionEditor},props:{title:{type:String,require:!0},nav:{type:Array,required:!0},indexUrl:{type:String},updateUrl:{type:String,require:!0},destroyUrl:{type:String,require:!0},saveAsOptions:{type:Array,default:()=>[]}},data(){return{initialNav:clone(this.nav),loading:!1,topLevelTreeData:[],mainTreeData:[],originalSectionItems:{},changed:!1,targetDataArray:null,creatingItem:!1,creatingItemIsChild:!1,editingItem:!1,creatingSection:!1,editingSection:!1,confirmingReset:!1,confirmingRemoval:!1,draggingNode:!1,draggingNodeParent:!1}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.save()})},mounted(){this.setInitialNav(this.nav)},computed:{isDirty(){return this.changed},hasSaveAsOptions(){return this.saveAsOptions.length},showTopLevelSectionPlaceholder(){return this.topLevelTreeData.length?this.draggingNode&&this.topLevelTreeData.length===1&&this.topLevelTreeData[0]._id===this.draggingNode._id:!0},direction(){return this.$config.get("direction","ltr")}},methods:{setInitialNav(M){let $=clone(M);this.setOriginalSectionItems($);let I=$.shift();this.topLevelTreeData=_.chain(I.items).map(N=>this.normalizeNavConfig(N,!1)).values().value(),this.mainTreeData=_.chain($).mapObject(N=>this.normalizeNavConfig(N)).values().value()},setOriginalSectionItems(M){M.forEach($=>this.originalSectionItems[$.display_original]=$.items_original||[])},discardChanges(){this.setInitialNav(this.initialNav),this.changed=!1},normalizeNavConfig(M,$=!0){let I={text:M.display,config:M,original:M.original,manipulations:$?M:M.manipulations||{},isSection:$,open:$},N=M.items||M.children;return N&&(I.children=N.map(B=>({text:B.display,children:B.children.map(j=>this.normalizeNavConfig(j,!1)),open:!1,config:B,original:B.original,manipulations:B.manipulations||{},isSection:!1}))),I},treeDrag(M){this.draggingNode=M,this.draggingNodeParent=M.parent;let $=1;this.traverseTree(M,(B,{depth:j})=>{$=Math.max($,j)}),this.$set(this.$refs.topLevelTree.rootData,"droppable",!this.isSectionNode(M)),this.$set(this.$refs.mainTree.rootData,"droppable",this.isSectionNode(M));const I=2-$,N=3-$;this.traverseTree(this.topLevelTreeData,(B,{depth:j})=>{B!==M&&this.$set(B,"droppable",j<=I&&!this.isSectionNode(M))}),this.traverseTree(this.mainTreeData,(B,{depth:j})=>{B!==M&&this.$set(B,"droppable",j<=N&&!this.isSectionNode(M))})},treeDrop(M){this.updateItemAction(M),data_get$1(this.draggingNodeParent,"isRoot")!==!0&&this.updateItemAction(this.draggingNodeParent),this.$nextTick(()=>{this.draggingNode=!1,this.draggingNodeParent=!1})},isSectionNode(M){return data_get$1(M,"isSection",!1)},isParentItemNode(M){return!this.isSectionNode(M)&&!this.isChildItemNode(M)},isChildItemNode(M){return data_get$1(M,"parent.isRoot")?!1:!this.isSectionNode(M.parent)},isCustomSectionNode(M){return this.isSectionNode(M)&&data_get$1(M,"manipulations.action")==="@create"},getParentSectionNode(M){return!this.isSectionNode(M)&&M!==void 0?this.getParentSectionNode(M.parent):M},traverseTree(M,$,I=[]){(Array.isArray(M)?M:[M]).every((B,j)=>{const U=[...I,j],q=U.join("."),Y=U.length;return $(B,{path:q,depth:Y,index:j})===!1?!1:(B.children.length&&this.traverseTree(B.children,$,U),!0)})},addItem(M,$){this.targetDataArray=M,this.creatingItem=!0,this.creatingItemIsChild=$&&this.isParentItemNode($)},addSection(){this.creatingSection=!0},itemAdded(M){let $=this.normalizeNavConfig(M,!1);$.manipulations={action:"@create",display:M.display,url:M.url,icon:M.icon},this.targetDataArray.push($),this.resetItemEditor(),this.changed=!0},sectionAdded(M){let $=this.normalizeNavConfig({action:"@create",display:M,display_original:!1});this.mainTreeData.push($),this.resetSectionEditor(),this.changed=!0},editItem(M,$){this.isSectionNode(M)&&!$?this.editingSection=M:this.editingItem=M},itemUpdated(M,$){$.text=M.display,$.config.icon=M.icon,this.updateItemManipulation($,"display",M.display),this.updateItemManipulation($,"url",M.url),this.updateItemManipulation($,"icon",M.icon),this.updateItemAction($),this.resetItemEditor(),this.changed=!0},sectionUpdated(M,$){$.text=M,this.resetSectionEditor(),this.changed=!0},updateItemManipulation(M,$,I){data_get$1(M.manipulations,"action")==="@create"||I!==data_get$1(M.original,$)?M.manipulations[$]=I:Vue$3.delete(M.manipulations,$)},updateItemAction(M){if(this.isSectionNode(M))return;let $=this.detectItemAction(M);$?M.manipulations.action=$:Vue$3.delete(M.manipulations,"action"),this.isChildItemNode(M)&&this.updateItemAction(M.parent)},detectItemAction(M){let $=data_get$1(M.manipulations,"action");switch(!0){case $==="@create":return"@create";case $==="@alias":return"@alias";case $==="@hide":return"@hide";case this.itemHasMoved(M):return"@move";case this.itemHasBeenModified(M):return"@modify"}return null},itemHasMoved(M){return this.itemIsWithinOriginalParentItem(M)?!1:this.itemHasMovedWithinSection(M)||this.itemHasMovedToAnotherSection(M)},itemIsWithinOriginalParentItem(M){let $=data_get$1(M.parent,"original",{children:[]}).children.map(I=>I.id);return this.isChildItemNode(M)&&$.includes(M.config.id)},itemHasMovedWithinSection(M){let $=data_get$1(M.parent,"original",{children:[]}).children.map(B=>B.id);if(this.isChildItemNode(M)&&!$.includes(M.config.id))return!0;let I=data_get$1(this.getParentSectionNode(M),"config.display_original","Top Level"),N=this.originalSectionItems[I];return N===void 0?!1:!this.isChildItemNode(M)&&!N.includes(M.config.id)},itemHasMovedToAnotherSection(M){let $=data_get$1(this.getParentSectionNode(M),"config.display_original","Top Level"),I=data_get$1(M.original,"section")||data_get$1(M.parent,"original.section");return $!==I},itemHasBeenModified(M){return this.itemHasModifiedProperties(M)||this.itemHasModifiedChildren(M)},itemHasModifiedProperties(M){return _.chain(M.manipulations).omit(["action","reorder","children"]).keys().value().length>0},itemHasModifiedChildren(M){return M.children.filter($=>_.chain($.manipulations).keys().value().length>0).length>0},expandAll(){this.traverseTree(this.topLevelTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!0)}),this.traverseTree(this.mainTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!0)})},collapseAll(){this.traverseTree(this.topLevelTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!1)}),this.traverseTree(this.mainTreeData,M=>{this.isSectionNode(M)||this.$set(M,"open",!1)})},resetItemEditor(){this.editingItem=!1,this.creatingItem=!1,this.creatingItemIsChild=!1,this.targetDataArray=!1},resetSectionEditor(){this.editingSection=!1,this.creatingSection=!1},pinItem(M){this.aliasItem(M,this.topLevelTreeData)},aliasItem(M,$){let I=data_get$1(M.manipulations,"action"),N=this.normalizeNavConfig(clone(M.config),!1);I==="@create"?N.manipulations=clone(M.manipulations):N.manipulations={action:"@alias"},N.children=[],N.original&&(N.original.children=[]),($||M.parent.children).push(N),this.changed=!0},itemIsVisible(M){return data_get$1(M.manipulations,"action")!=="@hide"},isHideable(M){let $=data_get$1(M.manipulations,"action");return this.isSectionNode(M)&&$==="@create"?!1:!["@alias","@create"].includes($)},removeItem(M,$=!1){if(this.isCustomSectionNode(M)&&M.children.length&&!$)return this.confirmingRemoval=M;M._vm.store.deleteNode(M),this.changed=!0,this.confirmingRemoval=!1},hideItem(M){Vue$3.set(M.manipulations,"action","@hide"),this.updateItemAction(M),this.changed=!0},showItem(M){Vue$3.delete(M.manipulations,"action"),this.updateItemAction(M),this.changed=!0},reset(){this.$axios.delete(this.destroyUrl).then(()=>window.location.reload()).catch(()=>this.$toast.error(__("Something went wrong")))},save(){this.changed&&this.saveAs(this.updateUrl)},saveAs(M){let $=this.preparePreferencesSubmission();this.$axios.patch(M,{tree:$}).then(()=>location.reload()).catch(()=>this.$toast.error(__("Something went wrong")))},preparePreferencesSubmission(){let M=[];return M.push({display:"Top Level",display_original:"Top Level",action:!1,items:this.prepareItemsForSubmission(this.topLevelTreeData)}),this.mainTreeData.forEach($=>{M.push({display:$.text,display_original:$.config.display_original||$.text,action:$.manipulations.action||!1,items:this.prepareItemsForSubmission($.children)})}),M},prepareItemsForSubmission(M){let $=[];return M.forEach(I=>{$.push({id:this.prepareItemIdForSubmission(I),manipulations:I.manipulations,children:I.children?this.prepareItemsForSubmission(I.children):[]})}),$},prepareItemIdForSubmission(M){return data_get$1(M,"original.id",M.text.toLowerCase().replaceAll(" ","_"))}}};var _sfc_render$4=function M(){var $=this,I=$._self._c;return I("div",[I("header",{staticClass:"mb-6"},[$.indexUrl?I("breadcrumb",{attrs:{url:$.indexUrl,title:$.__("CP Nav Preferences")}}):$._e(),I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1"},[$._v($._s($.__($.title)))]),I("dropdown-list",{staticClass:"rtl:ml-2 ltr:mr-2"},[I("dropdown-item",{staticClass:"warning",attrs:{text:$.__("Reset Nav Customizations")},on:{click:function(N){$.confirmingReset=!0}}})],1),$.isDirty?I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Discard changes"))},on:{click:$.discardChanges}}):$._e(),I("dropdown-list",{scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn flex items-center rtl:pl-4 ltr:pr-4"},[$._v(" "+$._s($.__("Add Item"))+" "),I("svg-icon",{staticClass:"w-2 rtl:mr-4 ltr:ml-4",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}])},[I("dropdown-item",{attrs:{text:$.__("Add Nav Item")},on:{click:function(N){return $.addItem($.topLevelTreeData)}}}),I("dropdown-item",{attrs:{text:$.__("Add Section")},on:{click:$.addSection}})],1),I("div",{staticClass:"rtl:mr-4 ltr:ml-4 rtl:text-right ltr:text-left",class:{"btn-group":$.hasSaveAsOptions}},[I("button",{staticClass:"btn-primary rtl:pr-4 ltr:pl-4",class:{disabled:!$.changed},attrs:{disabled:!$.changed},domProps:{textContent:$._s($.__("Save Changes"))},on:{click:$.save}}),$.hasSaveAsOptions?I("dropdown-list",{staticClass:"rtl:mr-0 ltr:ml-0",scopedSlots:$._u([{key:"trigger",fn:function(){return[I("button",{staticClass:"btn-primary rtl:rounded-r-none ltr:rounded-l-none flex items-center"},[I("svg-icon",{staticClass:"w-2",attrs:{name:"micro/chevron-down-xs"}})],1)]},proxy:!0}],null,!1,459937082)},[I("h6",{staticClass:"p-2"},[$._v($._s($.__("Save to"))+"...")]),$._l($.saveAsOptions,function(N){return I("dropdown-item",{key:N.url,staticClass:"group",on:{click:function(B){return $.saveAs(N.url)}}},[I("div",{staticClass:"flex items-start rtl:pl-4 ltr:pr-4"},[I("svg-icon",{staticClass:"text-gray shrink-0 rtl:ml-2 ltr:mr-2 w-4 group-hover:text-white",attrs:{name:N.icon}}),I("span",{staticClass:"whitespace-normal"},[$._v($._s($.__(N.label)))])],1)])})],2):$._e()],1)],1)],1),I("div",{staticClass:"mb-2 flex justify-end"},[I("a",{staticClass:"text-2xs text-blue rtl:ml-4 ltr:mr-4 underline",domProps:{textContent:$._s($.__("Expand All"))},on:{click:$.expandAll}}),I("a",{staticClass:"text-2xs text-blue rtl:ml-2 ltr:mr-2 underline",domProps:{textContent:$._s($.__("Collapse All"))},on:{click:$.collapseAll}})]),$.loading?$._e():I("div",{staticClass:"page-tree page-tree-with-sections w-full"},[I("draggable-tree",{ref:"topLevelTree",staticClass:"mb-8",class:{"section-placeholder-inner":$.showTopLevelSectionPlaceholder},attrs:{draggable:"","cross-tree":"",data:$.topLevelTreeData,space:1,indent:24,dir:$.direction},on:{change:function(N){$.changed=!0},drag:$.treeDrag,drop:$.treeDrop},scopedSlots:$._u([{key:"default",fn:function({data:N,store:B,vm:j}){return I("tree-branch",{attrs:{item:N,depth:j.level,vm:j,"is-open":N.open,"is-child":$.isChildItemNode(N),"has-children":N.children.length>0,"disable-sections":!0,"top-level":!0},on:{edit:function(U){return $.editItem(N,!0)},"toggle-open":function(U){return B.toggleOpen(N)}},scopedSlots:$._u([{key:"branch-options",fn:function({item:U}){return[j.level<2?I("dropdown-item",{attrs:{text:$.__("Add Item")},on:{click:function(q){return $.addItem(U.children,U)}}}):$._e(),I("dropdown-item",{attrs:{text:$.__("Edit")},on:{click:function(q){$.editingItem=U}}}),I("dropdown-item",{attrs:{text:$.__("Duplicate")},on:{click:function(q){return $.aliasItem(U)}}}),I("li",{staticClass:"divider"}),$.itemIsVisible(U)?I("dropdown-item",{staticClass:"warning",attrs:{text:$.isHideable(U)?$.__("Hide"):$.__("Remove")},on:{click:function(q){$.isHideable(U)?$.hideItem(U):$.removeItem(U,j)}}}):I("dropdown-item",{attrs:{text:$.__("Show")},on:{click:function(q){return $.showItem(U)}}})]}}],null,!1,689153891)})}}],null,!1,3523172620)}),I("draggable-tree",{ref:"mainTree",staticClass:"page-tree-with-sections",attrs:{draggable:"","cross-tree":"",data:$.mainTreeData,space:1,indent:24,dir:$.direction},on:{change:function(N){$.changed=!0},drag:$.treeDrag,drop:$.treeDrop},scopedSlots:$._u([{key:"default",fn:function({data:N,store:B,vm:j}){return I("tree-branch",{attrs:{item:N,"parent-section":$.getParentSectionNode(N),depth:j.level,vm:j,"is-open":N.open,"is-child":$.isChildItemNode(N),"has-children":N.children.length>0},on:{edit:function(U){return $.editItem(N)},"toggle-open":function(U){return B.toggleOpen(N)}},scopedSlots:$._u([{key:"branch-options",fn:function({item:U}){return[j.level<3?I("dropdown-item",{attrs:{text:$.__("Add Item")},on:{click:function(q){return $.addItem(U.children,U)}}}):$._e(),I("dropdown-item",{attrs:{text:$.__("Edit")},on:{click:function(q){return $.editItem(U)}}}),$.isSectionNode(U)?$._e():I("dropdown-item",{attrs:{text:$.__("Pin to Top Level")},on:{click:function(q){return $.pinItem(U)}}}),$.isSectionNode(U)?$._e():I("dropdown-item",{attrs:{text:$.__("Duplicate")},on:{click:function(q){return $.aliasItem(U)}}}),I("li",{staticClass:"divider"}),$.itemIsVisible(U)?I("dropdown-item",{staticClass:"warning",attrs:{text:$.isHideable(U)?$.__("Hide"):$.__("Remove")},on:{click:function(q){$.isHideable(U)?$.hideItem(U):$.removeItem(U)}}}):I("dropdown-item",{attrs:{text:$.__("Show")},on:{click:function(q){return $.showItem(U)}}})]}}],null,!1,711384004)})}}],null,!1,2653529751)})],1),$.creatingItem?I("item-editor",{attrs:{creating:!0,"is-child":$.creatingItemIsChild},on:{closed:$.resetItemEditor,updated:$.itemAdded}}):$._e(),$.editingItem?I("item-editor",{attrs:{item:$.editingItem,"is-child":$.isChildItemNode($.editingItem)},on:{closed:$.resetItemEditor,updated:$.itemUpdated}}):$._e(),$.creatingSection?I("section-editor",{attrs:{creating:!0},on:{closed:$.resetSectionEditor,updated:$.sectionAdded}}):$._e(),$.editingSection?I("section-editor",{attrs:{"section-item":$.editingSection},on:{closed:$.resetSectionEditor,updated:$.sectionUpdated}}):$._e(),$.confirmingReset?I("confirmation-modal",{attrs:{title:$.__("Reset"),bodyText:$.__("Are you sure you want to reset nav customizations?"),buttonText:$.__("Reset"),danger:!0},on:{confirm:$.reset,cancel:function(N){$.confirmingReset=!1}}}):$._e(),$.confirmingRemoval?I("confirmation-modal",{attrs:{title:$.__("Remove"),bodyText:$.__("Are you sure you want to remove this section and all of its children?"),buttonText:$.__("Remove"),danger:!0},on:{confirm:function(N){return $.removeItem($.confirmingRemoval,!0)},cancel:function(N){$.confirmingReset=!1}}}):$._e()],1)},_sfc_staticRenderFns$4=[],__component__$4=normalizeComponent$2(_sfc_main$4,_sfc_render$4,_sfc_staticRenderFns$4,!1,null,null,null,null);const NavBuilder=__component__$4.exports,_sfc_main$3={props:{release:{type:Object,required:!0},package:{type:String,required:!0},packageName:{type:String,required:!0},showActions:{type:Boolean}},data(){return{confirmationPrompt:null}},computed:{body(){return markdown(this.release.body).replaceAll("[new]",'<span class="label" style="background: #5bc0de;">NEW</span>').replaceAll("[fix]",'<span class="label" style="background: #5cb85c;">FIX</span>').replaceAll("[break]",'<span class="label" style="background: #d9534f;">BREAK</span>').replaceAll("[na]",'<span class="label" style="background: #e8e8e8;">N/A</span>')},installButtonText(){return this.release.type==="current"?__("Current Version"):this.release.latest?__("Update to Latest"):this.release.type==="upgrade"?__("Update to :version",{version:this.release.version}):__("Downgrade to :version",{version:this.release.version})},confirmationText(){return this.release.latest?`${__("messages.updater_update_to_latest_command")}:`:`${__("messages.updater_require_version_command")}:`},command(){return this.release.latest?`composer update ${this.package}`:`composer require "${this.package} ${this.release.version}"`},link(){return __("Learn more about :link",{link:`<a href="https://statamic.dev/updating" target="_blank">${__("Updates")}</a>`})+"."}}};var _sfc_render$3=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"card update-release mb-10"},[I("div",{staticClass:"flex justify-between mb-6"},[I("div",[I("h1",[$._v($._s($.release.version))]),I("h5",{staticClass:"date",domProps:{textContent:$._s($.__("Released on :date",{date:$.release.date}))}})]),$.showActions?I("div",[I("button",{staticClass:"btn",attrs:{disabled:$.release.type==="current"},domProps:{textContent:$._s($.installButtonText)},on:{click:function(N){$.confirmationPrompt=$.release}}})]):$._e()]),I("div",{staticClass:"card-body"},[I("div",{domProps:{innerHTML:$._s($.body)}})]),$.confirmationPrompt?I("confirmation-modal",{attrs:{buttonText:$.__("OK"),cancellable:!1},on:{confirm:function(N){$.confirmationPrompt=null}}},[I("div",{staticClass:"prose"},[I("p",{domProps:{textContent:$._s($.confirmationText)}}),I("code-block",{attrs:{copyable:"",text:$.command}}),I("p",{domProps:{innerHTML:$._s($.link)}})],1)]):$._e()],1)},_sfc_staticRenderFns$3=[],__component__$3=normalizeComponent$2(_sfc_main$3,_sfc_render$3,_sfc_staticRenderFns$3,!1,null,null,null,null);const Release=__component__$3.exports,_sfc_main$2={components:{Release},props:["slug","package","name"],data(){return{gettingChangelog:!0,changelog:[],currentVersion:null,modalOpen:!1,latestRelease:null,showingUnlicensedReleases:!1}},computed:{toEleven(){return{timeout:Statamic.$config.get("ajaxTimeout")}},showActions(){return!this.gettingChangelog},onLatestVersion(){return this.currentVersion&&this.currentVersion==this.latestVersion},licensedReleases(){return this.changelog.filter(M=>M.licensed)},unlicensedReleases(){return this.changelog.filter(M=>!M.licensed)},hasUnlicensedReleases(){return this.unlicensedReleases.length>0},latestVersion(){return this.latestRelease&&this.latestRelease.version},link(){return __("Learn more about :link",{link:`<a href="https://statamic.dev/updating" target="_blank">${__("Updates")}</a>`})+"."}},created(){this.getChangelog()},methods:{getChangelog(){this.gettingChangelog=!0,this.$axios.get(cp_url(`/updater/${this.slug}/changelog`)).then(M=>{this.gettingChangelog=!1,this.changelog=M.data.changelog,this.currentVersion=M.data.currentVersion,this.latestRelease=M.data.changelog[0]})}}};var _sfc_render$2=function M(){var $=this,I=$._self._c;return I("div",[I("div",{staticClass:"flex items-center mb-6"},[I("h1",{staticClass:"flex-1"},[I("span",{domProps:{textContent:$._s($.name)}}),$.currentVersion?I("span",{staticClass:"font-normal text-gray-700 rtl:mr-2 ltr:ml-2"},[$._v($._s($.currentVersion))]):$._e()]),$.onLatestVersion?$._e():I("button",{staticClass:"btn-primary rtl:mr-4 ltr:ml-4",on:{click:function(N){$.modalOpen=!0}}},[$._v($._s($.__("Update")))]),$.onLatestVersion?I("div",{domProps:{textContent:$._s($.__("Up to date"))}}):$._e()]),$.gettingChangelog?I("div",{staticClass:"card p-6 text-center"},[I("loading-graphic")],1):$._e(),!$.showingUnlicensedReleases&&$.hasUnlicensedReleases?I("div",{staticClass:"bg-yellow border-yellow-dark border-dashed p-4 text-xs border mb-6 rounded cursor-pointer flex items-center justify-between",on:{click:function(N){$.showingUnlicensedReleases=!0}}},[I("div",[I("h4",{domProps:{textContent:$._s($.__("messages.addon_has_more_releases_beyond_license_heading"))}}),I("p",{domProps:{textContent:$._s($.__("messages.addon_has_more_releases_beyond_license_body"))}})]),I("button",{staticClass:"btn btn-xs",domProps:{textContent:$._s($.__("View additional releases"))}})]):$._e(),$.showingUnlicensedReleases?$._l($.unlicensedReleases,function(N){return I("release",{key:N.version,attrs:{release:N,"package-name":$.name,package:$.package,"show-actions":$.showActions}})}):$._e(),$._l($.licensedReleases,function(N){return I("release",{key:N.version,attrs:{release:N,"package-name":$.name,package:$.package,"show-actions":$.showActions}})}),$.modalOpen?I("confirmation-modal",{attrs:{cancellable:!1,"button-text":$.__("OK")},on:{confirm:function(N){$.modalOpen=!1}}},[I("div",{staticClass:"prose"},[I("p",{domProps:{textContent:$._s(`${$.__("messages.updater_update_to_latest_command")}:`)}}),I("code-block",{attrs:{copyable:"",text:`composer update ${$.package}`}}),I("p",{domProps:{innerHTML:$._s($.link)}})],1)]):$._e()],2)},_sfc_staticRenderFns$2=[],__component__$2=normalizeComponent$2(_sfc_main$2,_sfc_render$2,_sfc_staticRenderFns$2,!1,null,null,null,null);const Updater=__component__$2.exports,_sfc_main$1={computed:{portals(){return this.$portals.all()},hasStacks(){return this.$stacks.count()>0}},watch:{hasStacks(M){M?this.initStacks():this.destroyStacks()}},methods:{initStacks(){this.$events.$on("stacks.hit-area-clicked",M=>{for(let $=this.$stacks.count();$>M;$--)if(!this.$stacks.stacks()[$-1].data.vm.runCloseCallback())return}),disableBodyScroll(this.$el,{allowTouchMove:M=>{for(;M&&M!==document.body;){if(M.classList.contains("overflow-scroll"))return!0;M=M.parentElement}}})},destroyStacks(){this.$events.$off("stacks.hit-area-clicked"),enableBodyScroll(this.$el)}}};var _sfc_render$1=function M(){var $=this,I=$._self._c;return I("div",{staticClass:"portal-targets",class:{"stacks-on-stacks":$.hasStacks}},$._l($.portals,function(N,B){return I("portal-target",{key:N.id,attrs:{name:N.id}})}),1)},_sfc_staticRenderFns$1=[],__component__$1=normalizeComponent$2(_sfc_main$1,_sfc_render$1,_sfc_staticRenderFns$1,!1,null,null,null,null);const PortalTargets=__component__$1.exports,_sfc_main={props:{blueprint:Object,initialValues:Object,meta:Object,url:String},data(){return{values:this.initialValues,error:null,errors:{}}},computed:{pageTitle(){return this.$config.get("multisiteEnabled")?__("Configure Sites"):__("Configure Site")},initialSiteHandles(){return this.$config.get("multisiteEnabled")?this.initialValues.sites.map(M=>M.handle):[this.initialValues.handle]},currentSiteHandles(){return this.$config.get("multisiteEnabled")?this.values.sites.map(M=>M.handle):[this.values.handle]},initialHandleChanged(){return this.initialSiteHandles.filter(M=>!this.currentSiteHandles.includes(M)).length>0},initialHandleChangedWarning(){return __("Warning! Changing a site handle may break existing site content!")}},methods:{clearErrors(){this.error=null,this.errors={}},submit(){this.initialHandleChanged&&!confirm(this.initialHandleChangedWarning)||(this.saving=!0,this.clearErrors(),this.$axios.patch(this.url,this.values).then(M=>{this.saving=!1,this.$toast.success(__("Saved")),this.$refs.container.saved()}).catch(M=>this.handleAxiosError(M)))},handleAxiosError(M){if(this.saving=!1,M.response&&M.response.status===422){const{message:$,errors:I}=M.response.data;this.error=$,this.errors=I,this.$toast.error($)}else this.$toast.error(__("Something went wrong"))}},created(){this.$keys.bindGlobal(["mod+s"],M=>{M.preventDefault(),this.submit()})}};var _sfc_render=function M(){var $=this,I=$._self._c;return $.blueprint?I("publish-container",{ref:"container",attrs:{name:"sites",reference:"sites",blueprint:$.blueprint,values:$.values,meta:$.meta,errors:$.errors},on:{updated:function(N){$.values=N}},scopedSlots:$._u([{key:"default",fn:function({setFieldValue:N,setFieldMeta:B}){return I("div",{},[I("header",{staticClass:"mb-6"},[I("div",{staticClass:"flex items-center"},[I("h1",{staticClass:"flex-1",domProps:{textContent:$._s($.pageTitle)}}),I("button",{staticClass:"btn-primary",attrs:{type:"submit"},on:{click:$.submit}},[$._v($._s($.__("Save")))])])]),I("publish-tabs",{attrs:{"enable-sidebar":!1},on:{updated:N,"meta-updated":B}})],1)}}],null,!1,2301684920)}):$._e()},_sfc_staticRenderFns=[],__component__=normalizeComponent$2(_sfc_main,_sfc_render,_sfc_staticRenderFns,!1,null,null,null,null);const SitesEditForm=__component__.exports;let global_functions=Object.keys(Globals);global_functions.forEach(M=>{window[M]=Globals[M]});Vue$3.config.silent=!1;Vue$3.config.devtools=!0;Vue$3.config.productionTip=!1;window.Cookies=Cookies$1;window.Alpine=module_default;window.Vue=Vue$3;window.Statamic=Statamic$1;window._=_;vSelect.props.components.default=()=>({Deselect:{render:M=>M("span",__("×"))},OpenIndicator:{render:M=>M("span",{class:{toggle:!0},domProps:{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 20 20"><path fill="currentColor" d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>'}})}});Statamic$1.booting(M=>{axios$2.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",axios$2.defaults.headers.common["X-CSRF-TOKEN"]=M.$config.get("csrfToken")});module_default.start();Vue$3.prototype.$axios=axios$2;Vue$3.prototype.$events=new Vue$3;Vue$3.prototype.$echo=Statamic$1.$echo;Vue$3.prototype.$bard=Statamic$1.$bard;Vue$3.prototype.$keys=Statamic$1.$keys;Vue$3.prototype.$reveal=Statamic$1.$reveal;Vue$3.prototype.$fieldActions=Statamic$1.$fieldActions;Vue$3.prototype.$slug=Statamic$1.$slug;window.moment=Vue$3.moment=Vue$3.prototype.$moment=hooks;Vue$3.use(PortalVue,{portalName:"v-portal"});Vue$3.use(VModal,{componentName:"v-modal"});Vue$3.use(Vuex);Vue$3.use(VCalendar);Vue$3.component(vSelect);Statamic$1.$store=new Vuex.Store({modules:{statamic:StatamicStore,publish:{namespaced:!0}}});Statamic$1.app({el:"#statamic",mixins:[Toast],store:Statamic$1.$store,components:{GlobalSearch,GlobalSiteSelector,DarkModeToggle,Login,LoginModal,BaseEntryCreateForm,BaseTermCreateForm,CreateTermButton,Importer,FieldsetListing,FieldsetCreateForm,FieldsetEditForm,BlueprintListing,BlueprintBuilder,FormCreateForm,FormListing,FormSubmissionListing,GlobalListing,GlobalEditForm,GlobalPublishForm,GlobalCreateForm,UserListing,UserWizard,RoleListing,RolePublishForm,UserGroupListing,UserGroupPublishForm,CollectionCreateForm,CollectionScaffolder,CollectionEditForm,CollectionView,CollectionBlueprintListing,SessionExpiry,NavigationListing,NavigationCreateForm,NavigationEditForm,PreferencesEditForm,NavigationView,TaxonomyCreateForm,TaxonomyEditForm,TaxonomyBlueprintListing,AssetContainerCreateForm,AssetContainerEditForm,NavBuilder,Updater,PortalTargets,SitesEditForm},data:{navOpen:!0,mobileNavOpen:!1,showBanner:!0,portals:[],appendedComponents:[],isLicensingBannerSnoozed:localStorage.getItem("statamic.snooze_license_banner")>new Date().valueOf(),copyToClipboardModalUrl:null},computed:{version(){return Statamic$1.$config.get("version")},stackCount(){return this.$stacks.count()},wrapperClass(){return this.$config.get("wrapperClass","max-w-xl")}},mounted(){this.bindWindowResizeListener(),this.$keys.bind(["command+\\"],M=>{M.preventDefault(),this.toggleNav()}),this.$config.get("broadcasting.enabled")&&this.$echo.start(),this.fixAutofocus(),this.showBanner=!this.isLicensingBannerSnoozed&&Statamic$1.$config.get("hasLicenseBanner"),this.$toast.intercept()},created(){const M=this,$=localStorage.getItem("statamic.nav")||"open";this.navOpen=$==="open",Statamic$1.$callbacks.add("copyToClipboard",async function(I){try{await navigator.clipboard.writeText(I),Statamic$1.$toast.success(__("Copied to clipboard"))}catch{M.copyToClipboardModalUrl=I}}),Statamic$1.$callbacks.add("bustAndReloadImageCaches",function(I){I.forEach(async N=>{await fetch(N,{cache:"reload",mode:"no-cors"}),document.body.querySelectorAll(`img[src='${N}']`).forEach(B=>B.src=N)})}),this.setupMoment()},methods:{bindWindowResizeListener(){window.addEventListener("resize",()=>{this.$store.commit("statamic/windowWidth",document.documentElement.clientWidth)}),window.dispatchEvent(new Event("resize"))},toggleNav(){this.navOpen=!this.navOpen,localStorage.setItem("statamic.nav",this.navOpen?"open":"closed")},toggleMobileNav(){this.mobileNavOpen=!this.mobileNavOpen},hideBanner(){this.showBanner=!1,localStorage.setItem("statamic.snooze_license_banner",new Date(Date.now()+5*60*1e3).valueOf())},fixAutofocus(){setTimeout(()=>{const M=document.querySelectorAll("input[autofocus]");for(let $ of M)$.blur();M.length&&M[0].focus()},100)},setupMoment(){const M=Statamic$1.$config.get("locale");window.moment.locale(M),Vue$3.moment.locale(M),Vue$3.prototype.$moment.locale(M);const $={relativeTime:{future:__("moment.relativeTime.future"),past:__("moment.relativeTime.past"),s:__("moment.relativeTime.s"),ss:__("moment.relativeTime.ss"),m:__("moment.relativeTime.m"),mm:__("moment.relativeTime.mm"),h:__("moment.relativeTime.h"),hh:__("moment.relativeTime.hh"),d:__("moment.relativeTime.d"),dd:__("moment.relativeTime.dd"),M:__("moment.relativeTime.M"),MM:__("moment.relativeTime.MM"),y:__("moment.relativeTime.y"),yy:__("moment.relativeTime.yy")}};window.moment.updateLocale(M,$),Vue$3.moment.updateLocale(M,$),Vue$3.prototype.$moment.updateLocale(M,$)}}});
© 2026 UnknownSec