1/*! 2 * Bootstrap v5.3.3 (https://getbootstrap.com/) 3 * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 */(function(Ot,Tt){typeof exports=="object"&&typeof module<"u"?module.exports=Tt():typeof define=="function"&&define.amd?define(Tt):(Ot=typeof globalThis<"u"?globalThis:Ot||self).bootstrap=Tt()})(this,function(){"use strict";const Ot=new Map,Tt={set(o,e,t){Ot.has(o)||Ot.set(o,new Map);const u=Ot.get(o);u.has(e)||u.size===0?u.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(u.keys())[0]}.`)},get:(o,e)=>Ot.has(o)&&Ot.get(o).get(e)||null,remove(o,e){if(!Ot.has(o))return;const t=Ot.get(o);t.delete(e),t.size===0&&Ot.delete(o)}},Qe="transitionend",Hn=o=>(o&&window.CSS&&window.CSS.escape&&(o=o.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),o),X=o=>{o.dispatchEvent(new Event(Qe))},T=o=>!(!o||typeof o!="object")&&(o.jquery!==void 0&&(o=o[0]),o.nodeType!==void 0),i=o=>T(o)?o.jquery?o[0]:o:typeof o=="string"&&o.length>0?document.querySelector(Hn(o)):null,m=o=>{if(!T(o)||o.getClientRects().length===0)return!1;const e=getComputedStyle(o).getPropertyValue("visibility")==="visible",t=o.closest("details:not([open])");if(!t)return e;if(t!==o){const u=o.closest("summary");if(u&&u.parentNode!==t||u===null)return!1}return e},E=o=>!o||o.nodeType!==Node.ELEMENT_NODE||!!o.classList.contains("disabled")||(o.disabled!==void 0?o.disabled:o.hasAttribute("disabled")&&o.getAttribute("disabled")!=="false"),C=o=>{if(!document.documentElement.attachShadow)return null;if(typeof o.getRootNode=="function"){const e=o.getRootNode();return e instanceof ShadowRoot?e:null}return o instanceof ShadowRoot?o:o.parentNode?C(o.parentNode):null},w=()=>{},k=o=>{o.offsetHeight},c=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,x=[],d=()=>document.documentElement.dir==="rtl",A=o=>{var e;e=()=>{const t=c();if(t){const u=o.NAME,z=t.fn[u];t.fn[u]=o.jQueryInterface,t.fn[u].Constructor=o,t.fn[u].noConflict=()=>(t.fn[u]=z,o.jQueryInterface)}},document.readyState==="loading"?(x.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of x)t()}),x.push(e)):e()},P=(o,e=[],t=o)=>typeof o=="function"?o(...e):t,h=(o,e,t=!0)=>{if(!t)return void P(o);const u=(Y=>{if(!Y)return 0;let{transitionDuration:ie,transitionDelay:de}=window.getComputedStyle(Y);const ve=Number.parseFloat(ie),Ae=Number.parseFloat(de);return ve||Ae?(ie=ie.split(",")[0],de=de.split(",")[0],1e3*(Number.parseFloat(ie)+Number.parseFloat(de))):0})(e)+5;let z=!1;const F=({target:Y})=>{Y===e&&(z=!0,e.removeEventListener(Qe,F),P(o))};e.addEventListener(Qe,F),setTimeout(()=>{z||X(e)},u)},_=(o,e,t,u)=>{const z=o.length;let F=o.indexOf(e);return F===-1?!t&&u?o[z-1]:o[0]:(F+=t?1:-1,u&&(F=(F+z)%z),o[Math.max(0,Math.min(F,z-1))])},j=/[^.]*(?=\..*)\.|.*/,$=/\..*/,K=/::\d+$/,re={};let le=1;
vendor: 4,447 bytes, line 5
5const V={mouseenter:"mouseover",mouseleave:"mouseout"},y=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function M(o,e){return e&&`${e}::${le++}`||o.uidEvent||le++}function G(o){const e=M(o);return o.uidEvent=e,re[e]=re[e]||{},re[e]}function q(o,e,t=null){return Object.values(o).find(u=>u.callable===e&&u.delegationSelector===t)}function J(o,e,t){const u=typeof e=="string",z=u?t:e||t;let F=we(o);return y.has(F)||(F=o),[u,z,F]}function oe(o,e,t,u,z){if(typeof e!="string"||!o)return;let[F,Y,ie]=J(e,t,u);e in V&&(Y=(De=>function(Le){if(!Le.relatedTarget||Le.relatedTarget!==Le.delegateTarget&&!Le.delegateTarget.contains(Le.relatedTarget))return De.call(this,Le)})(Y));const de=G(o),ve=de[ie]||(de[ie]={}),Ae=q(ve,Y,F?t:null);if(Ae)return void(Ae.oneOff=Ae.oneOff&&z);const me=M(Y,e.replace(j,"")),Pe=F?function(Ce,De,Le){return function Re(et){const st=Ce.querySelectorAll(De);for(let{target:ze}=et;ze&&ze!==this;ze=ze.parentNode)for(const Ge of st)if(Ge===ze)return te(et,{delegateTarget:ze}),Re.oneOff&&S.off(Ce,et.type,De,Le),Le.apply(ze,[et])}}(o,t,Y):function(Ce,De){return function Le(Re){return te(Re,{delegateTarget:Ce}),Le.oneOff&&S.off(Ce,Re.type,De),De.apply(Ce,[Re])}}(o,Y);Pe.delegationSelector=F?t:null,Pe.callable=Y,Pe.oneOff=z,Pe.uidEvent=me,ve[me]=Pe,o.addEventListener(ie,Pe,F)}function se(o,e,t,u,z){const F=q(e[t],u,z);F&&(o.removeEventListener(t,F,!!z),delete e[t][F.uidEvent])}function pe(o,e,t,u){const z=e[t]||{};for(const[F,Y]of Object.entries(z))F.includes(u)&&se(o,e,t,Y.callable,Y.delegationSelector)}function we(o){return o=o.replace($,""),V[o]||o}const S={on(o,e,t,u){oe(o,e,t,u,!1)},one(o,e,t,u){oe(o,e,t,u,!0)},off(o,e,t,u){if(typeof e!="string"||!o)return;const[z,F,Y]=J(e,t,u),ie=Y!==e,de=G(o),ve=de[Y]||{},Ae=e.startsWith(".");if(F===void 0){if(Ae)for(const me of Object.keys(de))pe(o,de,me,e.slice(1));for(const[me,Pe]of Object.entries(ve)){const Ce=me.replace(K,"");ie&&!e.includes(Ce)||se(o,de,Y,Pe.callable,Pe.delegationSelector)}}else{if(!Object.keys(ve).length)return;se(o,de,Y,F,z?t:null)}},trigger(o,e,t){if(typeof e!="string"||!o)return null;const u=c();let z=null,F=!0,Y=!0,ie=!1;e!==we(e)&&u&&(z=u.Event(e,t),u(o).trigger(z),F=!z.isPropagationStopped(),Y=!z.isImmediatePropagationStopped(),ie=z.isDefaultPrevented());const de=te(new Event(e,{bubbles:F,cancelable:!0}),t);return ie&&de.preventDefault(),Y&&o.dispatchEvent(de),de.defaultPrevented&&z&&z.preventDefault(),de}};function te(o,e={}){for(const[t,u]of Object.entries(e))try{o[t]=u}catch{Object.defineProperty(o,t,{configurable:!0,get:()=>u})}return o}function ee(o){if(o==="true")return!0;if(o==="false")return!1;if(o===Number(o).toString())return Number(o);if(o===""||o==="null")return null;if(typeof o!="string")return o;try{return JSON.parse(decodeURIComponent(o))}catch{return o}}function s(o){return o.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const n={setDataAttribute(o,e,t){o.setAttribute(`data-bs-${s(e)}`,t)},removeDataAttribute(o,e){o.removeAttribute(`data-bs-${s(e)}`)},getDataAttributes(o){if(!o)return{};const e={},t=Object.keys(o.dataset).filter(u=>u.startsWith("bs")&&!u.startsWith("bsConfig"));for(const u of t){let z=u.replace(/^bs/,"");z=z.charAt(0).toLowerCase()+z.slice(1,z.length),e[z]=ee(o.dataset[u])}return e},getDataAttribute:(o,e)=>ee(o.getAttribute(`data-bs-${s(e)}`))};class r{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const u=T(t)?n.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof u=="object"?u:{},...T(t)?n.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[z,F]of Object.entries(t)){const Y=e[z],ie=T(Y)?"element":(u=Y)==null?`${u}
5`:Object.prototype.toString.call(u).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(F).test(ie))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${z}" provided type "${ie}" but expected type "${F}".`)}var u}}class a extends r{constructor(e,t){super(),(e=i(e))&&(this._element=e,this._config=this._getConfig(t),Tt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Tt.remove(this._element,this.constructor.DATA_KEY),S.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,u=!0){h(e,t,u)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Tt.get(i(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const B=o=>{let e=o.getAttribute("data-bs-target");if(!e||e==="#"){let t=o.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return e?e.split(",").map(t=>Hn(t)).join(","):null},g={find:(o,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,o)),findOne:(o,e=document.documentElement)=>Element.prototype.querySelector.call(e,o),children:(o,e)=>[].concat(...o.children).filter(t=>t.matches(e)),parents(o,e){const t=[];let u=o.parentNode.closest(e);for(;u;)t.push(u),u=u.parentNode.closest(e);return t},prev(o,e){let t=o.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(o,e){let t=o.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(o){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,o).filter(t=>!E(t)&&m(t))},getSelectorFromElement(o){const e=B(o);return e&&g.findOne(e)?e:null},getElementFromSelector(o){const e=B(o);return e?g.findOne(e):null},getMultipleElementsFromSelector(o){const e=B(o);return e?g.find(e):[]}},O=(o,e="hide")=>{const t=`click.dismiss${o.EVENT_KEY}`,u=o.NAME;S.on(document,t,`[data-bs-dismiss="${u}"]`,function(z){if(["A","AREA"].includes(this.tagName)&&z.preventDefault(),E(this))return;const F=g.getElementFromSelector(this)||this.closest(`.${u}`);o.getOrCreateInstance(F)[e]()})},D=".bs.alert",I=`close${D}`,v=`closed${D}`;class l extends a{static get NAME(){return"alert"}close(){if(S.trigger(this._element,I).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),S.trigger(this._element,v),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=l.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}O(l,"close"),A(l);const f='[data-bs-toggle="button"]';class p extends a{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=p.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}S.on(document,"click.bs.button.data-api",f,o=>{o.preventDefault();const e=o.target.closest(f);p.getOrCreateInstance(e).toggle()}),A(p);const N=".bs.swipe",L=`touchstart${N}`,U=`touchmove${N}`,Q=`touchend${N}`,Z=`pointerdown${N}`,ne=`pointerup${N}`,ce={endCallback:null,leftCallback:null,rightCallback:null},ue={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ae extends r{constructor(e,t){super(),this._element=e,e&&ae.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ce}static get DefaultType(){return ue}static get NAME(){return"swipe"}dispose(){S.off(this._element,N)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),P(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&P(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(S.on(this._element,Z,e=>this._start(e)),S.on(this._element,ne,e=>this._end(e)),this._element.classList.add("pointer-event")):(S.on(this._element,L,e=>this._start(e)),S.on(this._element,U,e=>this._move(e)),S.on(this._element,Q,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType==="pen"||e.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const be=".bs.carousel",fe=".data-api",ye="next",Te="prev",$e="left",Me="r
5ight",ge=`slide${be}`,Ee=`slid${be}`,ke=`keydown${be}`,Ue=`mouseenter${be}`,Se=`mouseleave${be}`,We=`dragstart${be}`,nt=`load${be}${fe}`,ht=`click${be}${fe}`,it="carousel",nn="active",mn=".active",rn=".carousel-item",Wn=mn+rn,Kn={ArrowLeft:Me,ArrowRight:$e},Dn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},wn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Nt extends a{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=g.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===it&&this.cycle()}static get Default(){return Dn}static get DefaultType(){return wn}static get NAME(){return"carousel"}next(){this._slide(ye)}nextWhenVisible(){!document.hidden&&m(this._element)&&this.next()}prev(){this._slide(Te)}pause(){this._isSliding&&X(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?S.one(this._element,Ee,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void S.one(this._element,Ee,()=>this.to(e));const u=this._getItemIndex(this._getActive());if(u===e)return;const z=e>u?ye:Te;this._slide(z,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&S.on(this._element,ke,e=>this._keydown(e)),this._config.pause==="hover"&&(S.on(this._element,Ue,()=>this.pause()),S.on(this._element,Se,()=>this._maybeEnableCycle())),this._config.touch&&ae.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of g.find(".carousel-item img",this._element))S.on(t,We,u=>u.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder($e)),rightCallback:()=>this._slide(this._directionToOrder(Me)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ae(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Kn[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=g.findOne(mn,this._indicatorsElement);t.classList.remove(nn),t.removeAttribute("aria-current");const u=g.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);u&&(u.classList.add(nn),u.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const u=this._getActive(),z=e===ye,F=t||_(this._getItems(),u,z,this._config.wrap);if(F===u)return;const Y=this._getItemIndex(F),ie=me=>S.trigger(this._element,me,{relatedTarget:F,direction:this._orderToDirection(e),from:this._getItemIndex(u),to:Y});if(ie(ge).defaultPrevented||!u||!F)return;const de=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(Y),this._activeElement=F;const ve=z?"carousel-item-start":"carousel-item-end",Ae=z?"carousel-item-next":"carousel-item-prev";F.classList.add(Ae),k(F),u.classList.add(ve),F.classList.add(ve),this._queueCallback(()=>{F.classList.remove(ve,Ae),F.classList.add(nn),u.classList.remove(nn,Ae,ve),this._isSliding=!1,ie(Ee)},u,this._isAnimated()),de&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return g.findOne(Wn,this._element)}_getItems(){return g.find(rn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return d()?e===$e?Te:ye:e===$e?ye:Te}_orderToDirection(e){return d()?e===Te?$e:Me:e===Te?Me:$e}static jQueryInterface(e){return this.each(function(){const t=Nt.getOrCreateInstance(this,e);if(typeof e!="number"){if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method n
5amed "${e}"`);t[e]()}}else t.to(e)})}}S.on(document,ht,"[data-bs-slide], [data-bs-slide-to]",function(o){const e=g.getElementFromSelector(this);if(!e||!e.classList.contains(it))return;o.preventDefault();const t=Nt.getOrCreateInstance(e),u=this.getAttribute("data-bs-slide-to");return u?(t.to(u),void t._maybeEnableCycle()):n.getDataAttribute(this,"slide")==="next"?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),S.on(window,nt,()=>{const o=g.find('[data-bs-ride="carousel"]');for(const e of o)Nt.getOrCreateInstance(e)}),A(Nt);const vt=".bs.collapse",Ut=`show${vt}`,Lt=`shown${vt}`,bt=`hide${vt}`,Bt=`hidden${vt}`,jt=`click${vt}.data-api`,dn="show",It="collapse",Gt="collapsing",bn=`:scope .${It} .${It}`,Qt='[data-bs-toggle="collapse"]',Pt={parent:null,toggle:!0},sn={parent:"(null|element)",toggle:"boolean"};class _t extends a{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const u=g.find(Qt);for(const z of u){const F=g.getSelectorFromElement(z),Y=g.find(F).filter(ie=>ie===this._element);F!==null&&Y.length&&this._triggerArray.push(z)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pt}static get DefaultType(){return sn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];
5if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(z=>z!==this._element).map(z=>_t.getOrCreateInstance(z,{toggle:!1}))),e.length&&e[0]._isTransitioning||S.trigger(this._element,Ut).defaultPrevented)return;for(const z of e)z.hide();const t=this._getDimension();this._element.classList.remove(It),this._element.classList.add(Gt),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const u=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Gt),this._element.classList.add(It,dn),this._element.style[t]="",S.trigger(this._element,Lt)},this._element,!0),this._element.style[t]=`${this._element[u]}px`}hide(){if(this._isTransitioning||!this._isShown()||S.trigger(this._element,bt).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,k(this._element),this._element.classList.add(Gt),this._element.classList.remove(It,dn);for(const t of this._triggerArray){const u=g.getElementFromSelector(t);u&&!this._isShown(u)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Gt),this._element.classList.add(It),S.trigger(this._element,Bt)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(dn)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=i(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Qt);for(const t of e){const u=g.getElementFromSelector(t);u&&this._addAriaAndCollapsedClass([t],this._isShown(u))}}_getFirstLevelChildren(e){const t=g.find(bn,this._config.parent);return g.find(e,this._config.parent).filter(u=>!t.includes(u))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const u of e)u.classList.toggle("collapsed",!t),u.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const u=_t.getOrCreateInstance(this,t);if(typeof e=="string"){if(u[e]===void 0)throw new TypeError(`No method named "${e}"`);u[e]()}})}}S.on(document,jt,Qt,function(o){(o.target.tagName==="A"||o.delegateTarget&&o.delegateTarget.tagName==="A")&&o.preventDefault();for(const e of g.getMultipleElementsFromSelector(this))_t.getOrCreateInstance(e,{toggle:!1}).toggle()}),A(_t);var ot="top",dt="bottom",yt="right",at="left",Ft="auto",Dt=[ot,dt,yt,at],qt="start",Yt="end",yn="clippingParents",Rt="viewport",$t="popper",H="reference",b=Dt.reduce(function(o,e){return o.concat([e+"-"+qt,e+"-"+Yt])},[]),R=[].concat(Dt,[Ft]).reduce(function(o,e){return o.concat([e,e+"-"+qt,e+"-"+Yt])},[]),W="beforeRead",he="read",je="afterRead",xe="beforeMain",Oe="main",Ye="afterMain",Ke="beforeWrite",ft="write",ct="afterWrite",ut=[W,he,je,xe,Oe,Ye,Ke,ft,ct];function _e(o){return o?(o.nodeName||"").toLowerCase():null}function Ne(o){if(o==null)return window;if(o.toString()!=="[object Window]"){var e=o.ownerDocument;return e&&e.defaultView||window}return o}function Be(o){return o instanceof Ne(o).Element||o instanceof Element}function He(o){return o instanceof Ne(o).HTMLElement||o instanceof HTMLElement}function Mt(o){return typeof ShadowRoot<"u"&&(o instanceof Ne(o).ShadowRoot||o instanceof ShadowRoot)}const wt={name:"applyStyles",enabled:!0,phase:"write",fn:function(o){var e=o.state;Object.keys(e.elements).forEach(function(t){var u=e.styles[t]||{},z=e.attributes[t]||{},F=e.elements[t];He(F)&&_e(F)&&(Object.assign(F.style,u),Object.keys(z).forEach(function(Y){var ie=z[Y];ie===!1?F.removeAttribute(Y):F.setAttribute(Y,ie===!0?"":ie)}))})},effect:function(o){var e=o.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEac
5h(function(u){var z=e.elements[u],F=e.attributes[u]||{},Y=Object.keys(e.styles.hasOwnProperty(u)?e.styles[u]:t[u]).reduce(function(ie,de){return ie[de]="",ie},{});He(z)&&_e(z)&&(Object.assign(z.style,Y),Object.keys(F).forEach(function(ie){z.removeAttribute(ie)}))})}},requires:["computeStyles"]};function Ie(o){return o.split("-")[0]}var lt=Math.max,xt=Math.min,on=Math.round;function Xe(){var o=navigator.userAgentData;return o!=null&&o.brands&&Array.isArray(o.brands)?o.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ve(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function Jt(o,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var u=o.getBoundingClientRect(),z=1,F=1;e&&He(o)&&(z=o.offsetWidth>0&&on(u.width)/o.offsetWidth||1,F=o.offsetHeight>0&&on(u.height)/o.offsetHeight||1);var Y=(Be(o)?Ne(o):window).visualViewport,ie=!Ve()&&t,de=(u.left+(ie&&Y?Y.offsetLeft:0))/z,ve=(u.top+(ie&&Y?Y.offsetTop:0))/F,Ae=u.width/z,me=u.height/F;return{width:Ae,height:me,top:ve,right:de+Ae,bottom:ve+me,left:de,x:de,y:ve}}function Ht(o){var e=Jt(o),t=o.offsetWidth,u=o.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-u)<=1&&(u=e.height),{x:o.offsetLeft,y:o.offsetTop,width:t,height:u}}function Rn(o,e){var t=e.getRootNode&&e.getRootNode();if(o.contains(e))return!0;if(t&&Mt(t)){var u=e;do{if(u&&o.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function pt(o){return Ne(o).getComputedStyle(o)}function Zt(o){return["table","td","th"].indexOf(_e(o))>=0}function Et(o){return((Be(o)?o.ownerDocument:o.document)||window.document).documentElement}function an(o){return _e(o)==="html"?o:o.assignedSlot||o.parentNode||(Mt(o)?o.host:null)||Et(o)}function ln(o){return He(o)&&pt(o).position!=="fixed"?o.offsetParent:null}function Ct(o){for(var e=Ne(o),t=ln(o);t&&Zt(t)&&pt(t).position==="static";)t=ln(t);return t&&(_e(t)==="html"||_e(t)==="body"&&pt(t).position==="static")?e:t||function(u){var z=/firefox/i.test(Xe());if(/Trident/i.test(Xe())&&He(u)&&pt(u).position==="fixed")return null;var F=an(u);for(Mt(F)&&(F=F.host);He(F)&&["html","body"].indexOf(_e(F))<0;){var Y=pt(F);if(Y.transform!=="none"||Y.perspective!=="none"||Y.contain==="paint"||["transform","perspective"].indexOf(Y.willChange)!==-1||z&&Y.willChange==="filter"||z&&Y.filter&&Y.filter!=="none")return F;F=F.parentNode}return null}(o)||e}function Mn(o){return["top","bottom"].indexOf(o)>=0?"x":"y"}function cn(o,e,t){return lt(o,xt(e,t))}function Bn(o){return Object.assign({},{top:0,right:0,bottom:0,left:0},o)}function En(o,e){return e.reduce(function(t,u){return t[u]=o,t},{})}const Nn={name:"arrow",enabled:!0,phase:"main",fn:function(o){var e,t=o.state,u=o.name,z=o.options,F=t.elements.arrow,Y=t.modifiersData.popperOffsets,ie=Ie(t.placement),de=Mn(ie),ve=[at,yt].indexOf(ie)>=0?"height":"width";if(F&&Y){var Ae=function(tt,Ze){return Bn(typeof(tt=typeof tt=="function"?tt(Object.assign({},Ze.rects,{placement:Ze.placement})):tt)!="number"?tt:En(tt,Dt))}(z.padding,t),me=Ht(F),Pe=de==="y"?ot:at,Ce=de==="y"?dt:yt,De=t.rects.reference[ve]+t.rects.reference[de]-Y[de]-t.rects.popper[ve],Le=Y[de]-t.rects.reference[de],Re=Ct(F),et=Re?de==="y"?Re.clientHeight||0:Re.clientWidth||0:0,st=De/2-Le/2,ze=Ae[Pe],Ge=et-me[ve]-Ae[Ce],qe=et/2-me[ve]/2+st,Fe=cn(ze,qe,Ge),Je=de;t.modifiersData[u]=((e={})[Je]=Fe,e.centerOffset=Fe-qe,e)}},effect:function(o){var e=o.state,t=o.options.element,u=t===void 0?"[data-popper-arrow]":t;u!=null&&(typeof u!="string"||(u=e.elements.popper.querySelector(u)))&&Rn(e.elements.popper,u)&&(e.elements.arrow=u)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fn(o){return o.split("-")[1]}var Pn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xn(o){var e,t=o.popper,u=o.popperRect,z=o.placement,F=o.variation,Y=o.offsets,ie=o.position,de=o.gpuAcceleration,ve=o.adaptive,Ae=o.roundOffsets,me=o.isFixed,Pe=Y.x,Ce=Pe===void 0?0:Pe,De=Y.y,Le=De===void 0?0:De,Re=typeof Ae=="function"?Ae({x:Ce,y:Le}):{x:Ce,y:Le};Ce=Re.x,Le=Re.y;var et=Y.hasOwnProperty("x"),st=Y.hasOwnProperty("y"),ze=at,Ge=ot,qe=window;if(ve){var Fe=Ct(t),Je="clientHeight",tt="clientWidth";Fe===Ne(t)&&pt(Fe=Et(t)).position!=="static"&&ie==="absolute"&&(Je="scrollHeight",tt="scrollWidth"),(z===ot||(z===at||z===yt)&&F===Yt)&&(Ge=dt,Le-=(me&&Fe===qe&&qe.visualVie
vendor: 9,640 bytes, line 5
5wport?qe.visualViewport.height:Fe[Je])-u.height,Le*=de?1:-1),z!==at&&(z!==ot&&z!==dt||F!==Yt)||(ze=yt,Ce-=(me&&Fe===qe&&qe.visualViewport?qe.visualViewport.width:Fe[tt])-u.width,Ce*=de?1:-1)}var Ze,mt=Object.assign({position:ie},ve&&Pn),zt=Ae===!0?function(tn,kt){var Kt=tn.x,Vt=tn.y,gt=kt.devicePixelRatio||1;return{x:on(Kt*gt)/gt||0,y:on(Vt*gt)/gt||0}}({x:Ce,y:Le},Ne(t)):{x:Ce,y:Le};return Ce=zt.x,Le=zt.y,de?Object.assign({},mt,((Ze={})[Ge]=st?"0":"",Ze[ze]=et?"0":"",Ze.transform=(qe.devicePixelRatio||1)<=1?"translate("+Ce+"px, "+Le+"px)":"translate3d("+Ce+"px, "+Le+"px, 0)",Ze)):Object.assign({},mt,((e={})[Ge]=st?Le+"px":"",e[ze]=et?Ce+"px":"",e.transform="",e))}const ur={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(o){var e=o.state,t=o.options,u=t.gpuAcceleration,z=u===void 0||u,F=t.adaptive,Y=F===void 0||F,ie=t.roundOffsets,de=ie===void 0||ie,ve={placement:Ie(e.placement),variation:fn(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:z,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,xn(Object.assign({},ve,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:Y,roundOffsets:de})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,xn(Object.assign({},ve,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:de})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var Yn={passive:!0};const hr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(o){var e=o.state,t=o.instance,u=o.options,z=u.scroll,F=z===void 0||z,Y=u.resize,ie=Y===void 0||Y,de=Ne(e.elements.popper),ve=[].concat(e.scrollParents.reference,e.scrollParents.popper);return F&&ve.forEach(function(Ae){Ae.addEventListener("scroll",t.update,Yn)}),ie&&de.addEventListener("resize",t.update,Yn),function(){F&&ve.forEach(function(Ae){Ae.removeEventListener("scroll",t.update,Yn)}),ie&&de.removeEventListener("resize",t.update,Yn)}},data:{}};var Ui={left:"right",right:"left",bottom:"top",top:"bottom"};function Jn(o){return o.replace(/left|right|bottom|top/g,function(e){return Ui[e]})}var Fi={start:"end",end:"start"};function Dr(o){return o.replace(/start|end/g,function(e){return Fi[e]})}function dr(o){var e=Ne(o);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fr(o){return Jt(Et(o)).left+dr(o).scrollLeft}function pr(o){var e=pt(o),t=e.overflow,u=e.overflowX,z=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+z+u)}function Rr(o){return["html","body","#document"].indexOf(_e(o))>=0?o.ownerDocument.body:He(o)&&pr(o)?o:Rr(an(o))}function Vn(o,e){var t;e===void 0&&(e=[]);var u=Rr(o),z=u===((t=o.ownerDocument)==null?void 0:t.body),F=Ne(u),Y=z?[F].concat(F.visualViewport||[],pr(u)?u:[]):u,ie=e.concat(Y);return z?ie:ie.concat(Vn(an(Y)))}function gr(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function Mr(o,e,t){return e===Rt?gr(function(u,z){var F=Ne(u),Y=Et(u),ie=F.visualViewport,de=Y.clientWidth,ve=Y.clientHeight,Ae=0,me=0;if(ie){de=ie.width,ve=ie.height;var Pe=Ve();(Pe||!Pe&&z==="fixed")&&(Ae=ie.offsetLeft,me=ie.offsetTop)}return{width:de,height:ve,x:Ae+fr(u),y:me}}(o,t)):Be(e)?function(u,z){var F=Jt(u,!1,z==="fixed");return F.top=F.top+u.clientTop,F.left=F.left+u.clientLeft,F.bottom=F.top+u.clientHeight,F.right=F.left+u.clientWidth,F.width=u.clientWidth,F.height=u.clientHeight,F.x=F.left,F.y=F.top,F}(e,t):gr(function(u){var z,F=Et(u),Y=dr(u),ie=(z=u.ownerDocument)==null?void 0:z.body,de=lt(F.scrollWidth,F.clientWidth,ie?ie.scrollWidth:0,ie?ie.clientWidth:0),ve=lt(F.scrollHeight,F.clientHeight,ie?ie.scrollHeight:0,ie?ie.clientHeight:0),Ae=-Y.scrollLeft+fr(u),me=-Y.scrollTop;return pt(ie||F).direction==="rtl"&&(Ae+=lt(F.clientWidth,ie?ie.clientWidth:0)-de),{width:de,height:ve,x:Ae,y:me}}(Et(o)))}function Br(o){var e,t=o.reference,u=o.element,z=o.placement,F=z?Ie(z):null,Y=z?fn(z):null,ie=t.x+t.width/2-u.width/2,de=t.y+t.height/2-u.height/2;switch(F){case ot:e={x:ie,y:t.y-u.height};break;case dt:e={x:ie,y:t.y+t.height};break;case yt:e={x:t.x+t.width,y:de};break;case at:e={x:t.x-u.width,y:de};break;default:e={x:t.x,y:t.y}}var ve=F?Mn(F):null;if(ve!=null){var Ae=ve==="y"?"height":"width";switch(Y){case qt:e[ve]=e[ve]-(t[Ae]/2-u[Ae]/2);break;case Yt:e[ve]=e[ve]+(t[Ae]/2-u[Ae]/2)}}return e}function qn(o,e){e===void 0&&(e={});var t=e,u=t.placement,z=u===void 0?o.placement:u,F=t.strategy,Y=F===void 0?o.strategy:F,ie=t.boundary,de=ie===void 0?yn:ie,ve=t.rootBoundary,Ae=ve===void 0?Rt:ve,me=t.elementContext,Pe=me===void 0?$t:me,Ce=t.altBoundary,De=Ce!==void 0&&Ce,Le=t.padding,Re=Le===void 0?0:Le,et=Bn(typeof Re!="number"?Re:En(Re,Dt)),st=Pe===$t?H:$t,ze=o.rects.popper,Ge=o.elements[De?st:Pe],qe=function(kt,Kt,Vt,gt){var un=Kt==="clippingParents"?function(rt){var St=Vn(an(rt)),Xt=["absolute","fixed"].indexOf(pt(rt).position)>=0&&He(rt)?Ct(rt):rt;return Be(Xt)?St.filter(function(_n){return Be(_n)&&Rn(_n,Xt)&&_e(_n)!=="body"}):[]}(kt):[].concat(Kt),hn=[].concat(un,[Vt]),Un=hn[0],At=hn.reduce(function(rt,St){var Xt=Mr(kt,St,gt);return rt.top=lt(Xt.top,rt.top),rt.right=xt(Xt.right,rt.right),rt.bottom=xt(Xt.bottom,rt.bottom),rt.left=lt(Xt.left,rt.left),rt},Mr(kt,Un,gt));return At.width=At.right-At.left,At.height=At.bottom-At.top,At.x=At.left,At.y=At.top,At}(Be(Ge)?Ge:Ge.contextElement||Et(o.elements.popper),de,Ae,Y),Fe=Jt(o.elements.reference),Je=Br({reference:Fe,element:ze,strategy:"absolute",placement:z}),tt=gr(Object.assign({},ze,Je)),Ze=Pe===$t?tt:Fe,mt={top:qe.top-Ze.top+et.top,bottom:Ze.bottom-qe.bottom+et.bottom,left:qe.left-Ze.left+et.left,right:Ze.right-qe.right+et.right},zt=o.modifiersData.offset;if(Pe===$t&&zt){var tn=zt[z];Object.keys(mt).forEach(function(kt){var Kt=[yt,dt].indexOf(kt)>=0?1:-1,Vt=[ot,dt].indexOf(kt)>=0?"y":"x";mt[kt]+=tn[Vt]*Kt})}return mt}function Hi(o,e){e===void 0&&(e={});var t=e,u=t.placement,z=t.boundary,F=t.rootBoundary,Y=t.padding,ie=t.flipVariations,de=t.allowedAutoPlacements,ve=de===void 0?R:de,Ae=fn(u),me=Ae?ie?b:b.filter(function(De){return fn(De)===Ae}):Dt,Pe=me.filter(function(De){return ve.indexOf(De)>=0});Pe.length===0&&(Pe=me);var Ce=Pe.reduce(function(De,Le){return De[Le]=qn(o,{placement:Le,boundary:z,rootBoundary:F,padding:Y})[Ie(Le)],De},{});return Object.keys(Ce).sort(function(De,Le){return Ce[De]-Ce[Le]})}const Pr={name:"flip",enabled:!0,phase:"main",fn:function(o){var e=o.state,t=o.options,u=o.name;if(!e.modifiersData[u]._skip){for(var z=t.mainAxis,F=z===void 0||z,Y=t.altAxis,ie=Y===void 0||Y,de=t.fallbackPlacements,ve=t.padding,Ae=t.boundary,me=t.rootBoundary,Pe=t.altBoundary,Ce=t.flipVariations,De=Ce===void 0||Ce,Le=t.allowedAutoPlacements,Re=e.options.placement,et=Ie(Re),st=de||(et!==Re&&De?function(rt){if(Ie(rt)===Ft)return[];var St=Jn(rt);return[Dr(rt),St,Dr(St)]}(Re):[Jn(Re)]),ze=[Re].concat(st).reduce(function(rt,St){return rt.concat(Ie(St)===Ft?Hi(e,{placement:St,boundary:Ae,rootBoundary:me,padding:ve,flipVariations:De,allowedAutoPlacements:Le}):St)},[]),Ge=e.rects.reference,qe=e.rects.popper,Fe=new Map,Je=!0,tt=ze[0],Ze=0;Ze<ze.length;Ze++){var mt=ze[Ze],zt=Ie(mt),tn=fn(mt)===qt,kt=[ot,dt].indexOf(zt)>=0,Kt=kt?"width":"height",Vt=qn(e,{placement:mt,boundary:Ae,rootBoundary:me,altBoundary:Pe,padding:ve}),gt=kt?tn?yt:at:tn?dt:ot;Ge[Kt]>qe[Kt]&&(gt=Jn(gt));var un=Jn(gt),hn=[];if(F&&hn.push(Vt[zt]<=0),ie&&hn.push(Vt[gt]<=0,Vt[un]<=0),hn.every(function(rt){return rt})){tt=mt,Je=!1;break}Fe.set(mt,hn)}if(Je)for(var Un=function(rt){var St=ze.find(function(Xt){var _n=Fe.get(Xt);if(_n)return _n.slice(0,rt).every(function(ar){return ar})});if(St)return tt=St,"break"},At=De?3:1;At>0&&Un(At)!=="break";At--);e.placement!==tt&&(e.modifiersData[u]._skip=!0,e.placement=tt,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qr(o,e,t){return t===void 0&&(t={x:0,y:0}),{top:o.top-e.height-t.y,right:o.right-e.width+t.x,bottom:o.bottom-e.height+t.y,left:o.left-e.width-t.x}}function $r(o){return[ot,yt,dt,at].some(function(e){return o[e]>=0})}const zr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(o){var e=o.state,t=o.name,u=e.rects.reference,z=e.rects.popper,F=e.modifiersData.preventOverflow,Y=qn(e,{elementContext:"reference"}),ie=qn(e,{altBoundary:!0}),de=qr(Y,u),ve=qr(ie,z,F),Ae=$r(de),me=$r(ve);e.modifiersData[t]={referenceClippingOffsets:de,popperEscapeOffsets:ve,isReferenceHidden:Ae,hasPopperEscaped:me},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":Ae,"data-popper-escaped":me})}},Ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(o){var e=o.state,t=o.options,u=o.name,z=t.offset,F=z===void 0?[0,0]:z,Y=R.reduce(function(Ae,me){return Ae[me]=function(Pe,Ce,De){var Le=Ie(Pe),Re=[at,ot].indexOf(Le)>=0?-1:1,et=typeof De=="function"?De(Object.assign({},Ce,{placement:Pe})):De,st=et[0],ze=et[1];return st=st||0,ze=(ze||0)*Re,[at,yt].indexOf(Le)>=0?{x:ze,y:st}:{x:st,y:ze}}(me,e.rects,F),Ae},{}),ie=Y[e.placement],de=ie.x,ve=ie.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=de,e.modifiersData.popperOffsets.y+=ve),e.modifiersData[u]=Y}},mr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(o){var e=o.state,t=o.name;e.modifiersData[t]=Br({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Fr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var e=o.state,t=o.options,u=o.name,z=t.mainAxis,F=z===void 0||z,Y=t.altAxis,ie=Y!==void 0&&Y,de=t.boun
5dary,ve=t.rootBoundary,Ae=t.altBoundary,me=t.padding,Pe=t.tether,Ce=Pe===void 0||Pe,De=t.tetherOffset,Le=De===void 0?0:De,Re=qn(e,{boundary:de,rootBoundary:ve,padding:me,altBoundary:Ae}),et=Ie(e.placement),st=fn(e.placement),ze=!st,Ge=Mn(et),qe=Ge==="x"?"y":"x",Fe=e.modifiersData.popperOffsets,Je=e.rects.reference,tt=e.rects.popper,Ze=typeof Le=="function"?Le(Object.assign({},e.rects,{placement:e.placement})):Le,mt=typeof Ze=="number"?{mainAxis:Ze,altAxis:Ze}:Object.assign({mainAxis:0,altAxis:0},Ze),zt=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,tn={x:0,y:0};if(Fe){if(F){var kt,Kt=Ge==="y"?ot:at,Vt=Ge==="y"?dt:yt,gt=Ge==="y"?"height":"width",un=Fe[Ge],hn=un+Re[Kt],Un=un-Re[Vt],At=Ce?-tt[gt]/2:0,rt=st===qt?Je[gt]:tt[gt],St=st===qt?-tt[gt]:-Je[gt],Xt=e.elements.arrow,_n=Ce&&Xt?Ht(Xt):{width:0,height:0},ar=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ki=ar[Kt],Si=ar[Vt],lr=cn(0,Je[gt],_n[gt]),_o=ze?Je[gt]/2-At-lr-ki-mt.mainAxis:rt-lr-ki-mt.mainAxis,Ao=ze?-Je[gt]/2+At+lr+Si+mt.mainAxis:St+lr+Si+mt.mainAxis,kr=e.elements.arrow&&Ct(e.elements.arrow),wo=kr?Ge==="y"?kr.clientTop||0:kr.clientLeft||0:0,Li=(kt=zt?.[Ge])!=null?kt:0,Eo=un+Ao-Li,ji=cn(Ce?xt(hn,un+_o-Li-wo):hn,un,Ce?lt(Un,Eo):Un);Fe[Ge]=ji,tn[Ge]=ji-un}if(ie){var Ii,No=Ge==="x"?ot:at,xo=Ge==="x"?dt:yt,In=Fe[qe],cr=qe==="y"?"height":"width",Di=In+Re[No],Ri=In-Re[xo],Sr=[ot,at].indexOf(et)!==-1,Mi=(Ii=zt?.[qe])!=null?Ii:0,Bi=Sr?Di:In-Je[cr]-tt[cr]-Mi+mt.altAxis,Pi=Sr?In+Je[cr]+tt[cr]-Mi-mt.altAxis:Ri,qi=Ce&&Sr?function(Oo,To,Lr){var $i=cn(Oo,To,Lr);return $i>Lr?Lr:$i}(Bi,In,Pi):cn(Ce?Bi:Di,In,Ce?Pi:Ri);Fe[qe]=qi,tn[qe]=qi-In}e.modifiersData[u]=tn}},requiresIfExists:["offset"]};function Wi(o,e,t){t===void 0&&(t=!1);var u,z,F=He(e),Y=He(e)&&function(me){var Pe=me.getBoundingClientRect(),Ce=on(Pe.width)/me.offsetWidth||1,De=on(Pe.height)/me.offsetHeight||1;return Ce!==1||De!==1}(e),ie=Et(e),de=Jt(o,Y,t),ve={scrollLeft:0,scrollTop:0},Ae={x:0,y:0};return(F||!F&&!t)&&((_e(e)!=="body"||pr(ie))&&(ve=(u=e)!==Ne(u)&&He(u)?{scrollLeft:(z=u).scrollLeft,scrollTop:z.scrollTop}:dr(u)),He(e)?((Ae=Jt(e,!0)).x+=e.clientLeft,Ae.y+=e.clientTop):ie&&(Ae.x=fr(ie))),{x:de.left+ve.scrollLeft-Ae.x,y:de.top+ve.scrollTop-Ae.y,width:de.width,height:de.height}}function Ki(o){var e=new Map,t=new Set,u=[];function z(F){t.add(F.name),[].concat(F.requires||[],F.requiresIfExists||[]).forEach(function(Y){if(!t.has(Y)){var ie=e.get(Y);ie&&z(ie)}}),u.push(F)}return o.forEach(function(F){e.set(F.name,F)}),o.forEach(function(F){t.has(F.name)||z(F)}),u}var Hr={placement:"bottom",modifiers:[],strategy:"absolute"};function Wr(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return!e.some(function(u){return!(u&&typeof u.getBoundingClientRect=="function")})}function Zn(o){o===void 0&&(o={});var e=o,t=e.defaultModifiers,u=t===void 0?[]:t,z=e.defaultOptions,F=z===void 0?Hr:z;return function(Y,ie,de){de===void 0&&(de=F);var ve,Ae,me={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hr,F),modifiersData:{},elements:{reference:Y,popper:ie},attributes:{},styles:{}},Pe=[],Ce=!1,De={state:me,setOptions:function(Re){var et=typeof Re=="function"?Re(me.options):Re;Le(),me.options=Object.assign({},F,me.options,et),me.scrollParents={reference:Be(Y)?Vn(Y):Y.contextElement?Vn(Y.contextElement):[],popper:Vn(ie)};var st,ze,Ge=function(qe){var Fe=Ki(qe);return ut.reduce(function(Je,tt){return Je.concat(Fe.filter(function(Ze){return Ze.phase===tt}))},[])}((st=[].concat(u,me.options.modifiers),ze=st.reduce(function(qe,Fe){var Je=qe[Fe.name];return qe[Fe.name]=Je?Object.assign({},Je,Fe,{options:Object.assign({},Je.options,Fe.options),data:Object.assign({},Je.data,Fe.data)}):Fe,qe},{}),Object.keys(ze).map(function(qe){return ze[qe]})));return me.orderedModifiers=Ge.filter(function(qe){return qe.enabled}),me.orderedModifiers.forEach(function(qe){var Fe=qe.name,Je=qe.options,tt=Je===void 0?{}:Je,Ze=qe.effect;if(typeof Ze=="function"){var mt=Ze({state:me,name:Fe,instance:De,options:tt});Pe.push(mt||function(){})}}
vendor: 3,127 bytes, line 5
5),De.update()},forceUpdate:function(){if(!Ce){var Re=me.elements,et=Re.reference,st=Re.popper;if(Wr(et,st)){me.rects={reference:Wi(et,Ct(st),me.options.strategy==="fixed"),popper:Ht(st)},me.reset=!1,me.placement=me.options.placement,me.orderedModifiers.forEach(function(Ze){return me.modifiersData[Ze.name]=Object.assign({},Ze.data)});for(var ze=0;ze<me.orderedModifiers.length;ze++)if(me.reset!==!0){var Ge=me.orderedModifiers[ze],qe=Ge.fn,Fe=Ge.options,Je=Fe===void 0?{}:Fe,tt=Ge.name;typeof qe=="function"&&(me=qe({state:me,options:Je,name:tt,instance:De})||me)}else me.reset=!1,ze=-1}}},update:(ve=function(){return new Promise(function(Re){De.forceUpdate(),Re(me)})},function(){return Ae||(Ae=new Promise(function(Re){Promise.resolve().then(function(){Ae=void 0,Re(ve())})})),Ae}),destroy:function(){Le(),Ce=!0}};if(!Wr(Y,ie))return De;function Le(){Pe.forEach(function(Re){return Re()}),Pe=[]}return De.setOptions(de).then(function(Re){!Ce&&de.onFirstUpdate&&de.onFirstUpdate(Re)}),De}}var Vi=Zn(),Xi=Zn({defaultModifiers:[hr,mr,ur,wt]}),br=Zn({defaultModifiers:[hr,mr,ur,wt,Ur,Pr,Fr,Nn,zr]});const Kr=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Ye,afterRead:je,afterWrite:ct,applyStyles:wt,arrow:Nn,auto:Ft,basePlacements:Dt,beforeMain:xe,beforeRead:W,beforeWrite:Ke,bottom:dt,clippingParents:yn,computeStyles:ur,createPopper:br,createPopperBase:Vi,createPopperLite:Xi,detectOverflow:qn,end:Yt,eventListeners:hr,flip:Pr,hide:zr,left:at,main:Oe,modifierPhases:ut,offset:Ur,placements:R,popper:$t,popperGenerator:Zn,popperOffsets:mr,preventOverflow:Fr,read:he,reference:H,right:yt,start:qt,top:ot,variationPlacements:b,viewport:Rt,write:ft},Symbol.toStringTag,{value:"Module"})),Vr="dropdown",On=".bs.dropdown",yr=".data-api",Gi="ArrowUp",Xr="ArrowDown",Qi=`hide${On}`,Yi=`hidden${On}`,Ji=`show${On}`,Zi=`shown${On}`,Gr=`click${On}${yr}`,Qr=`keydown${On}${yr}`,es=`keyup${On}${yr}`,$n="show",Tn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ts=`${Tn}.${$n}`,er=".dropdown-menu",ns=d()?"top-end":"top-start",rs=d()?"top-start":"top-end",is=d()?"bottom-end":"bottom-start",ss=d()?"bottom-start":"bottom-end",os=d()?"left-start":"right-start",as=d()?"right-start":"left-start",ls={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},cs={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class en extends a{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=g.next(this._element,er)[0]||g.prev(this._element,er)[0]||g.findOne(er,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ls}static get DefaultType(){return cs}static get NAME(){return Vr}toggle(){return this._isShown()?this.hide():this.show()}show(){if(E(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!S.trigger(this._element,Ji,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
5navbar-nav"))for(const t of[].concat(...document.body.children))S.on(t,"mouseover",w);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($n),this._element.classList.add($n),S.trigger(this._element,Zi,e)}}hide(){if(E(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!S.trigger(this._element,Qi,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))S.off(t,"mouseover",w);this._popper&&this._popper.destroy(),this._menu.classList.remove($n),this._element.classList.remove($n),this._element.setAttribute("aria-expanded","false"),n.removeDataAttribute(this._menu,"popper"),S.trigger(this._element,Yi,e)}}_getConfig(e){if(typeof(e=super._getConfig(e)).reference=="object"&&!T(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Vr.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Kr===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:T(this._config.reference)?e=i(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=br(e,this._menu,t)}_isShown(){return this._menu.classList.contains($n)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return os;if(e.classList.contains("dropstart"))return as;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains("dropup")?t?rs:ns:t?ss:is}
5_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(n.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...P(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const u=g.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(z=>m(z));u.length&&_(u,t,e===Xr,!u.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=en.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===2||e.type==="keyup"&&e.key!=="Tab")return;const t=g.find(ts);for(const u of t){const z=en.getInstance(u);if(!z||z._config.autoClose===!1)continue;const F=e.composedPath(),Y=F.includes(z._menu);if(F.includes(z._element)||z._config.autoClose==="inside"&&!Y||z._config.autoClose==="outside"&&Y||z._menu.contains(e.target)&&(e.type==="keyup"&&e.key==="Tab"||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const ie={relatedTarget:z._element};e.type==="click"&&(ie.clickEvent=e),z._completeHide(ie)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),u=e.key==="Escape",z=[Gi,Xr].includes(e.key);if(!z&&!u||t&&!u)return;e.preventDefault();const F=this.matches(Tn)?this:g.prev(this,Tn)[0]||g.next(this,Tn)[0]||g.findOne(Tn,e.delegateTarget.parentNode),Y=en.getOrCreateInstance(F);if(z)return e.stopPropagation(),Y.show(),void Y._selectMenuItem(e);Y._isShown()&&(e.stopPropagation(),Y.hide(),F.focus())}}S.on(document,Qr,Tn,en.dataApiKeydownHandler),S.on(document,Qr,er,en.dataApiKeydownHandler),S.on(document,Gr,en.clearMenus),S.on(document,es,en.clearMenus),S.on(document,Gr,Tn,function(o){o.preventDefault(),en.getOrCreateInstance(this).toggle()}),A(en);const Yr="backdrop",Jr="show",Zr=`mousedown.bs.${Yr}`,us={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},hs={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ei extends r{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return us}static get DefaultType(){return hs}static get NAME(){return Yr}show(e){if(!this._config.isVisible)return void P(e);this._append();const t=this._getElement();this._config.isAnimated&&k(t),t.classList.add(Jr),this._emulateAnimation(()=>{P(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Jr),this._emulateAnimation(()=>{this.dispose(),P(e)})):P(e)}dispose(){this._isAppended&&(S.off(this._element,Zr),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=i(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),S.on(e,Zr,()=>{P(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){h(e,this._getElement(),this._config.isAnimated)}}const tr=".bs.focustrap",ds=`focusin${tr}`,fs=`keydown.tab${tr}`,ti="backward",ps={autofocus:!0,trapElement:null},gs={autofocus:"boolean",trapElement:"element"};class ni extends r{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ps}static get DefaultType(){return gs}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),S.off(document,tr),S.on(document,ds,e=>this._handleFocusin(e)),S.on(document,fs,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,S.off(document,tr))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const u=g.focusableChildren(t);u.length===0?t.focus():this._lastTabNavDirection===ti?u[u.length-1].focus():u[0].focus()}_handleKeydown(e){e.key==="Tab"&&(this._lastTabNavDirection=e.shiftKey?ti:"forward")}}const ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ii=".sticky-top",nr="padding-right",si="margin-right";class vr{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,nr,t=>t+e),this._setElementAttributes(ri,nr,t=>t+e),this._setElementAttributes(ii,si,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,nr),this._resetElementAttributes(ri,nr),this._resetElementAttributes(ii,si)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,u){const z=this.getWidth();this._applyManipulationCallback(e,F=>{if(F!==this._element&&window.innerWidth>F.clientWidth+z)return;this._saveInitialAttribute(F,t);const Y=window.getComputedStyle(F).getPropertyValue(t);F.style.setProperty(t,`${u(Number.parseFloat(Y))}px`)}
vendor: 4,515 bytes, line 5
5)}_saveInitialAttribute(e,t){const u=e.style.getPropertyValue(t);u&&n.setDataAttribute(e,t,u)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,u=>{const z=n.getDataAttribute(u,t);z!==null?(n.removeDataAttribute(u,t),u.style.setProperty(t,z)):u.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(T(e))t(e);else for(const u of g.find(e,this._element))t(u)}}const Wt=".bs.modal",ms=`hide${Wt}`,bs=`hidePrevented${Wt}`,oi=`hidden${Wt}`,ai=`show${Wt}`,ys=`shown${Wt}`,vs=`resize${Wt}`,_s=`click.dismiss${Wt}`,As=`mousedown.dismiss${Wt}`,ws=`keydown.dismiss${Wt}`,Es=`click${Wt}.data-api`,li="modal-open",ci="show",_r="modal-static",Ns={backdrop:!0,focus:!0,keyboard:!0},xs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Cn extends a{constructor(e,t){super(e,t),this._dialog=g.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new vr,this._addEventListeners()}static get Default(){return Ns}static get DefaultType(){return xs}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||S.trigger(this._element,ai,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(li),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(S.trigger(this._element,ms).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ci),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){S.off(window,Wt),S.off(this._dialog,Wt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ei({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ni({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=g.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),k(this._element),this._element.classList.add(ci),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,S.trigger(this._element,ys,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){S.on(this._element,ws,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),S.on(window,vs,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),S.on(this._element,As,e=>{S.one(this._element,_s,t=>{this._element===e.target&&this._element===t.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(li),this._resetAdjustments(),this._scrollBar.reset(),S.trigger(this._element,oi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(S.trigger(this._element,bs).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t==="hidden"||this._element.classList.contains(_r)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(_r),this._queueCallback(()=>{this._element.classList.remove(_r),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),u=t>0;if(u&&!e){const z=d()?"paddingLeft":"paddingRight";this._element.style[z]=`${t}px`}if(!u&&e){const z=d()?"paddingRight":"paddingLeft";this._element.style[z]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const u=Cn.getOrCreateInstance(this,e);if(typeof e=="string"){if(u[e]===void 0)throw new TypeError(`No method n
5amed "${e}"`);u[e](t)}})}}S.on(document,Es,'[data-bs-toggle="modal"]',function(o){const e=g.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&o.preventDefault(),S.one(e,ai,u=>{u.defaultPrevented||S.one(e,oi,()=>{m(this)&&this.focus()})});const t=g.findOne(".modal.show");t&&Cn.getInstance(t).hide(),Cn.getOrCreateInstance(e).toggle(this)}),O(Cn),A(Cn);const pn=".bs.offcanvas",ui=".data-api",Os=`load${pn}${ui}`,hi="show",di="showing",fi="hiding",pi=".offcanvas.show",Ts=`show${pn}`,Cs=`shown${pn}`,ks=`hide${pn}`,gi=`hidePrevented${pn}`,mi=`hidden${pn}`,Ss=`resize${pn}`,Ls=`click${pn}${ui}`,js=`keydown.dismiss${pn}`,Is={backdrop:!0,keyboard:!0,scroll:!1},Ds={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class gn extends a{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Is}static get DefaultType(){return Ds}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||S.trigger(this._element,Ts,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new vr().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(di),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(hi),this._element.classList.remove(di),S.trigger(this._element,Cs,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(S.trigger(this._element,ks).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(fi),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(hi,fi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new vr().reset(),S.trigger(this._element,mi)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=!!this._config.backdrop;return new ei({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{this._config.backdrop!=="static"?this.hide():S.trigger(this._element,gi)}:null})}_initializeFocusTrap(){return new ni({trapElement:this._element})}_addEventListeners(){S.on(this._element,js,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():S.trigger(this._element,gi))})}static jQueryInterface(e){return this.each(function(){const t=gn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}S.on(document,Ls,'[data-bs-toggle="offcanvas"]',function(o){const e=g.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),E(this))return;S.one(e,mi,()=>{m(this)&&this.focus()});const t=g.findOne(pi);t&&t!==e&&gn.getInstance(t).hide(),gn.getOrCreateInstance(e).toggle(this)}),S.on(window,Os,()=>{for(const o of g.find(pi))gn.getOrCreateInstance(o).show()}),S.on(window,Ss,()=>{for(const o of g.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(o).position!=="fixed"&&gn.getOrCreateInstance(o).hide()}),O(gn),A(gn);const bi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Rs=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ms=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Bs=(o,e)=>{const t=o.nodeName.toLowerCase();return e.includes(t)?!Rs.has(t)||!!Ms.test(o.nodeValue):e.filter(u=>u instanceof RegExp).some(u=>u.test(t))},Ps={allowList:bi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qs={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$s={entry:"(string|element|function|null)",selector:"(string|element)"};class zs extends r{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ps}static get DefaultType(){return qs}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>
vendor: 4,619 bytes, line 5
5this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[z,F]of Object.entries(this._config.content))this._setContent(e,F,z);const t=e.children[0],u=this._resolvePossibleFunction(this._config.extraClass);return u&&t.classList.add(...u.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,u]of Object.entries(e))super._typeCheckConfig({selector:t,entry:u},$s)}_setContent(e,t,u){const z=g.findOne(u,e);z&&((t=this._resolvePossibleFunction(t))?T(t)?this._putElementInTemplate(i(t),z):this._config.html?z.innerHTML=this._maybeSanitize(t):z.textContent=t:z.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,u,z){if(!t.length)return t;if(z&&typeof z=="function")return z(t);const F=new window.DOMParser().parseFromString(t,"text/html"),Y=[].concat(...F.body.querySelectorAll("*"));for(const ie of Y){const de=ie.nodeName.toLowerCase();if(!Object.keys(u).includes(de)){ie.remove();continue}const ve=[].concat(...ie.attributes),Ae=[].concat(u["*"]||[],u[de]||[]);for(const me of ve)Bs(me,Ae)||ie.removeAttribute(me.nodeName)}return F.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return P(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Us=new Set(["sanitize","allowList","sanitizeFn"]),Ar="fade",rr="show",yi=".modal",vi="hide.bs.modal",Xn="hover",wr="focus",Fs={AUTO:"auto",TOP:"top",RIGHT:d()?"left":"right",BOTTOM:"bottom",LEFT:d()?"right":"left"},Hs={allowList:bi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ws={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class kn extends a{constructor(e,t){if(Kr===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Hs}static get DefaultType(){return Ws}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),S.off(this._element.closest(yi),vi,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=S.trigger(this._element,this.constructor.eventName("show")),t=(C(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const u=this._getTipElement();this._element.setAttribute("aria-describedby",u.getAttribute("id"));const{container:z}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(z.append(u),S.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(u),u.classList.add(rr),"ontouchstart"in document.documentElement)for(const F of[].concat(...document.body.children))S.on(F,"mouseover",w);this._queueCallback(()=>{S.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}
5hide(){if(this._isShown()&&!S.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(rr),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))S.off(e,"mouseover",w);this._activeTrigger.click=!1,this._activeTrigger[wr]=!1,this._activeTrigger[Xn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),S.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Ar,rr),t.classList.add(`bs-${this.constructor.NAME}-auto`);const u=(z=>{do z+=Math.floor(1e6*Math.random());while(document.getElementById(z));return z})(this.constructor.NAME).toString();return t.setAttribute("id",u),this._isAnimated()&&t.classList.add(Ar),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new zs({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ar)}_isShown(){return this.tip&&this.tip.classList.contains(rr)}_createPopper(e){const t=P(this._config.placement,[this,e,this._element]),u=Fs[t.toUpperCase()];return br(this._element,e,this._getPopperConfig(u))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return P(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:u=>{this._getTipElement().setAttribute("data-popper-placement",u.state.placement)}}]};return{...t,...P(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")S.on(this._element,this.constructor.eventName("click"),this._config.selector,u=>{this._initializeOnDelegatedTarget(u).toggle()});else if(t!=="manual"){const u=t===Xn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),z=t===Xn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");S.on(this._element,u,this._config.selector,F=>{const Y=this._initializeOnDelegatedTarget(F);Y._activeTrigger[F.type==="focusin"?wr:Xn]=!0,Y._enter()}),S.on(this._element,z,this._config.selector,F=>{const Y=this._initializeOnDelegatedTarget(F);Y._activeTrigger[F.type==="focusout"?wr:Xn]=Y._element.contains(F.relatedTarget),Y._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},S.on(this._element.closest(yi),vi,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=n.getDataAttributes(this._element);for(const u of Object.keys(t))Us.has(u)&&delete t[u];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:i(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,u]of Object.entries(this._config))this.constructor.Default[t]!==u&&(e[t]=u);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=kn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method n
5amed "${e}"`);t[e]()}})}}A(kn);const Ks={...kn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Vs={...kn.DefaultType,content:"(null|string|element|function)"};class ir extends kn{static get Default(){return Ks}static get DefaultType(){return Vs}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=ir.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}A(ir);const Er=".bs.scrollspy",Xs=`activate${Er}`,_i=`click${Er}`,Gs=`load${Er}.data-api`,zn="active",Nr="[href]",Ai=".nav-link",Qs=`${Ai}, .nav-item > ${Ai}, .list-group-item`,Ys={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Js={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Gn extends a{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ys}static get DefaultType(){return Js}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=i(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(S.off(this._config.target,_i),S.on(this._config.target,_i,Nr,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const u=this._rootElement||window,z=t.offsetTop-this._element.offsetTop;if(u.scrollTo)return void u.scrollTo({top:z,behavior:"smooth"});u.scrollTop=z}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=Y=>this._targetLinks.get(`#${Y.target.id}`),u=Y=>{this._previousScrollData.visibleEntryTop=Y.target.offsetTop,this._process(t(Y))},z=(this._rootElement||document.documentElement).scrollTop,F=z>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=z;for(const Y of e){if(!Y.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(Y));continue}const ie=Y.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(F&&ie){if(u(Y),!z)return}else F||ie||u(Y)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=g.find(Nr,this._config.target);for(const t of e){if(!t.hash||E(t))continue;const u=g.findOne(decodeURI(t.hash),this._element);m(u)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,u))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(zn),this._activateParents(e),S.trigger(this._element,Xs,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))g.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(zn);else for(const t of g.parents(e,".nav, .list-group"))for(const u of g.prev(t,Qs))u.classList.add(zn)}_clearActiveClass(e){e.classList.remove(zn);const t=g.find(`${Nr}.${zn}`,e);for(const u of t)u.classList.remove(zn)}static jQueryInterface(e){return this.each(function(){const t=Gn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method n
5amed "${e}"`);t[e]()}})}}S.on(window,Gs,()=>{for(const o of g.find('[data-bs-spy="scroll"]'))Gn.getOrCreateInstance(o)}),A(Gn);const Sn=".bs.tab",Zs=`hide${Sn}`,eo=`hidden${Sn}`,to=`show${Sn}`,no=`shown${Sn}`,ro=`click${Sn}`,io=`keydown${Sn}`,so=`load${Sn}`,oo="ArrowLeft",wi="ArrowRight",ao="ArrowUp",Ei="ArrowDown",xr="Home",Ni="End",Ln="active",xi="fade",Or="show",Oi=".dropdown-toggle",Tr=`:not(${Oi})`,Ti='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Cr=`.nav-link${Tr}, .list-group-item${Tr}, [role="tab"]${Tr}, ${Ti}`,lo=`.${Ln}[data-bs-toggle="tab"], .${Ln}[data-bs-toggle="pill"], .${Ln}[data-bs-toggle="list"]`;class jn extends a{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),S.on(this._element,io,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),u=t?S.trigger(t,Zs,{relatedTarget:e}):null;S.trigger(e,to,{relatedTarget:t}).defaultPrevented||u&&u.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ln),this._activate(g.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),S.trigger(e,no,{relatedTarget:t})):e.classList.add(Or)},e,e.classList.contains(xi)))}_deactivate(e,t){e&&(e.classList.remove(Ln),e.blur(),this._deactivate(g.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),S.trigger(e,eo,{relatedTarget:t})):e.classList.remove(Or)},e,e.classList.contains(xi)))}_keydown(e){if(![oo,wi,ao,Ei,xr,Ni].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(z=>!E(z));let u;if([xr,Ni].includes(e.key))u=t[e.key===xr?0:t.length-1];else{const z=[wi,Ei].includes(e.key);u=_(t,e.target,z,!0)}u&&(u.focus({preventScroll:!0}),jn.getOrCreateInstance(u).show())}_getChildren(){return g.find(Cr,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const u of t)this._setInitialAttributesOnChild(u)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),u=this._getOuterElement(e);e.setAttribute("aria-selected",t),u!==e&&this._setAttributeIfNotExists(u,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=g.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const u=this._getOuterElement(e);if(!u.classList.contains("dropdown"))return;const z=(F,Y)=>{const ie=g.findOne(F,u);ie&&ie.classList.toggle(Y,t)};z(Oi,Ln),z(".dropdown-menu",Or),u.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,u){e.hasAttribute(t)||e.setAttribute(t,u)}_elemIsActive(e){return e.classList.contains(Ln)}_getInnerElement(e){return e.matches(Cr)?e:g.findOne(Cr,e)}
5_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=jn.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}S.on(document,ro,Ti,function(o){["A","AREA"].includes(this.tagName)&&o.preventDefault(),E(this)||jn.getOrCreateInstance(this).show()}),S.on(window,so,()=>{for(const o of g.find(lo))jn.getOrCreateInstance(o)}),A(jn);const vn=".bs.toast",co=`mouseover${vn}`,uo=`mouseout${vn}`,ho=`focusin${vn}`,fo=`focusout${vn}`,po=`hide${vn}`,go=`hidden${vn}`,mo=`show${vn}`,bo=`shown${vn}`,Ci="hide",sr="show",or="showing",yo={animation:"boolean",autohide:"boolean",delay:"number"},vo={animation:!0,autohide:!0,delay:5e3};class Qn extends a{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return vo}static get DefaultType(){return yo}static get NAME(){return"toast"}show(){S.trigger(this._element,mo).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Ci),k(this._element),this._element.classList.add(sr,or),this._queueCallback(()=>{this._element.classList.remove(or),S.trigger(this._element,bo),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(S.trigger(this._element,po).defaultPrevented||(this._element.classList.add(or),this._queueCallback(()=>{this._element.classList.add(Ci),this._element.classList.remove(or,sr),S.trigger(this._element,go)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(sr),super.dispose()}isShown(){return this._element.classList.contains(sr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const u=e.relatedTarget;this._element===u||this._element.contains(u)||this._maybeScheduleHide()}_setListeners(){S.on(this._element,co,e=>this._onInteraction(e,!0)),S.on(this._element,uo,e=>this._onInteraction(e,!1)),S.on(this._element,ho,e=>this._onInteraction(e,!0)),S.on(this._element,fo,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Qn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return O(Qn),A(Qn),{Alert:l,Button:p,Carousel:Nt,Collapse:_t,Dropdown:en,Modal:Cn,Offcanvas:gn,Popover:ir,ScrollSpy:Gn,Tab:jn,Toast:Qn,Tooltip:kn}});/*! For license information please see quill.core.js.LICENSE.txt */(function(Ot,Tt){typeof exports=="object"&&typeof module=="object"?module.exports=Tt():typeof define=="function"&&define.amd?define([],Tt):typeof exports=="object"?exports.Quill=Tt():Ot.Quill=Tt()})(self,function(){return function(){var Ot={9698:function(X,T,i){"use strict";i.d(T,{Ay:function(){return x},Ji:function(){return A},zo:function(){return d}});var m=i(6003),E=i(5232),C=i.n(E),w=i(3036),k=i(4850),c=i(5508);class x extends m.BlockBlot{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=function(h){let _=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return h.descendants(m.LeafBlot).reduce((j,$)=>$.length()===0?j:j.insert($.value(),A($,{},_)),new(C())).insert(` 6`,A(h))}(this)),this.cache.delta}deleteAt(h,_){super.deleteAt(h,_),this.cache={}}formatAt(h,_,j,$){_<=0||(this.scroll.query(j,m.Scope.BLOCK)?h+_===this.length()&&this.format(j,$):super.formatAt(h,Math.min(_,this.length()-h-1),j,$),this.cache={})}insertAt(h,_,j){if(j!=null)return super.insertAt(h,_,j),void(this.cache={});if(_.length===0)return;const $=_.split(` 7`),K=$.shift();K.length>0&&(h<this.length()-1||this.children.tail==null?super.insertAt(Math.min(h,this.length()-1),K):this.children.tail.insertAt(this.children.tail.length(),K),this.cache={});let re=this;$.reduce((le,V)=>(re=re.split(le,!0),re.insertAt(0,V),V.length),h+K.length)}insertBefore(h,_){const{head:j}=this.children;super.insertBefore(h,_),j instanceof w.A&&j.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(h,_){super.moveChildren(h,_),this.cache={}}optimize(h){super.optimize(h),this.cache={}}path(h){return super.path(h,!0)}removeChild(h){super.removeChild(h),this.cache={}}split(h){let _=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(_&&(h===0||h>=this.length()-1)){const $=this.clone();return h===0?(this.parent.insertBefore($,this),this):(this.parent.insertBefore($,this.next),$)}const j=super.split(h,_);return this.cache={},j}}x.blotName="block",x.tagName="P",x.defaultChild=w.A,x.allowedChildren=[w.A,k.A,m.EmbedBlot,c.A];class d extends m.EmbedBlot{attach(){super.attach(),this.attributes=new m.AttributorStore(this.domNode)}delta(){return new(C())().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(h,_){const j=this.scroll.query(h,m.Scope.BLOCK_ATTRIBUTE);j!=null&&this.attributes.attribute(j,_)}formatAt(h,_,j,$){this.format(j,$)}insertAt(h,_,j){if(j!=null)return void super.insertAt(h,_,j);const $=_.split(` 8`),K=$.pop(),re=$.map(V=>{const y=this.scroll.create(x.blotName);return y.insertAt(0,V),y}),le=this.split(h);re.forEach(V=>{this.parent.insertBefore(V,le)}),K&&this.parent.insertBefore(this.scroll.create("text",K),le)}}function A(P){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return P==null?h:("formats"in P&&typeof P.formats=="function"&&(h={...h,...P.formats()},_&&delete h["code-token"]),P.parent==null||P.parent.statics.blotName==="scroll"||P.parent.statics.scope!==P.statics.scope?h:A(P.parent,h,_))}d.scope=m.Scope.BLOCK_BLOT},3036:function(X,T,i){"use strict";var m=i(6003);class E extends m.EmbedBlot{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}E.blotName="break",E.tagName="BR",T.A=E},580:function(X,T,i){"use strict";var m=i(6003);class E extends m.ContainerBlot{}T.A=E},4541:function(X,T,i){"use strict";var m=i(6003),E=i(5508);class C extends m.EmbedBlot{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(k,c,x){super(k,c),this.selection=x,this.textNode=document.createTextNode(C.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(k,c){if(this.savedLength!==0)return void super.format(k,c);let x=this,d=0;for(;x!=null&&x.statics.scope!==m.Scope.BLOCK_BLOT;)d+=x.offset(x.parent),x=x.parent;x!=null&&(this.savedLength=C.CONTENTS.length,x.optimize(),x.formatAt(d,C.CONTENTS.length,k,c),this.savedLength=0)}index(k,c){return k===this.textNode?0:super.index(k,c)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;
vendor: 4,880 bytes, line 8
8const k=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const c=this.prev instanceof E.A?this.prev:null,x=c?c.length():0,d=this.next instanceof E.A?this.next:null,A=d?d.text:"",{textNode:P}=this,h=P.data.split(C.CONTENTS).join("");let _;if(P.data=C.CONTENTS,c)_=c,(h||d)&&(c.insertAt(c.length(),h+A),d&&d.remove());else if(d)_=d,d.insertAt(0,h);else{const j=document.createTextNode(h);_=this.scroll.create(j),this.parent.insertBefore(_,this)}if(this.remove(),k){const j=(re,le)=>c&&re===c.domNode?le:re===P?x+le-1:d&&re===d.domNode?x+h.length+le:null,$=j(k.start.node,k.start.offset),K=j(k.end.node,k.end.offset);if($!==null&&K!==null)return{startNode:_.domNode,startOffset:$,endNode:_.domNode,endOffset:K}}return null}update(k,c){if(k.some(x=>x.type==="characterData"&&x.target===this.textNode)){const x=this.restore();x&&(c.range=x)}}optimize(k){super.optimize(k);let{parent:c}=this;for(;c;){if(c.domNode.tagName==="A"){this.savedLength=C.CONTENTS.length,c.isolate(this.offset(c),this.length()).unwrap(),this.savedLength=0;break}c=c.parent}}value(){return""}}T.A=C},746:function(X,T,i){"use strict";var m=i(6003),E=i(5508);const C="\uFEFF";class w extends m.EmbedBlot{constructor(c,x){super(c,x),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(d=>{this.contentNode.appendChild(d)}),this.leftGuard=document.createTextNode(C),this.rightGuard=document.createTextNode(C),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(c,x){return c===this.leftGuard?0:c===this.rightGuard?1:super.index(c,x)}restore(c){let x,d=null;const A=c.data.split(C).join("");if(c===this.leftGuard)if(this.prev instanceof E.A){const P=this.prev.length();this.prev.insertAt(P,A),d={startNode:this.prev.domNode,startOffset:P+A.length}}else x=document.createTextNode(A),this.parent.insertBefore(this.scroll.create(x),this),d={startNode:x,startOffset:A.length};else c===this.rightGuard&&(this.next instanceof E.A?(this.next.insertAt(0,A),d={startNode:this.next.domNode,startOffset:A.length}):(x=document.createTextNode(A),this.parent.insertBefore(this.scroll.create(x),this.next),d={startNode:x,startOffset:A.length}));return c.data=C,d}update(c,x){c.forEach(d=>{if(d.type==="characterData"&&(d.target===this.leftGuard||d.target===this.rightGuard)){const A=this.restore(d.target);A&&(x.range=A)}})}}T.A=w},4850:function(X,T,i){"use strict";var m=i(6003),E=i(3036),C=i(5508);class w extends m.InlineBlot{static allowedChildren=[w,E.A,m.EmbedBlot,C.A];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(c,x){const d=w.order.indexOf(c),A=w.order.indexOf(x);return d>=0||A>=0?d-A:c===x?0:c<x?-1:1}formatAt(c,x,d,A){if(w.compare(this.statics.blotName,d)<0&&this.scroll.query(d,m.Scope.BLOT)){const P=this.isolate(c,x);A&&P.wrap(d,A)}else super.formatAt(c,x,d,A)}optimize(c){if(super.optimize(c),this.parent instanceof w&&w.compare(this.statics.blotName,this.parent.statics.blotName)>0){const x=this.parent.isolate(this.offset(),this.length());this.moveChildren(x),x.wrap(this)}}}T.A=w},5508:function(X,T,i){"use strict";i.d(T,{A:function(){return E},X:function(){return w}});var m=i(6003);class E extends m.TextBlot{}const C={"&":"&","<":"<",">":">",'"':""","'":"'"};function w(k){return k.replace(/[&<>"']/g,c=>C[c])}},5374:function(X,T,i){"use strict";i.d(T,{A:function(){return w}});var m=i(8920),E=i(7356);const C=(0,i(6078).A)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(k=>{document.addEventListener(k,function(){for(var c=arguments.length,x=new Array(c),d=0;d<c;d++)x[d]=arguments[d];Array.from(document.querySelectorAll(".ql-container")).forEach(A=>{const P=E.A.get(A);P&&P.emitter&&P.emitter.handleDOM(...x)})})});var w=class extends m{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",C.error)}emit(){for(var k=arguments.length,c=new Array(k),x=0;x<k;x++)c[x]=arguments[x];return C.log.call(C,...c),super.emit(...c)}handleDOM(k){for(var c=arguments.length,x=new Array(c>1?c-1:0),d=1;d<c;d++)x[d-1]=arguments[d];
8(this.domListeners[k.type]||[]).forEach(A=>{let{node:P,handler:h}=A;(k.target===P||P.contains(k.target))&&h(k,...x)})}listenDOM(k,c,x){this.domListeners[k]||(this.domListeners[k]=[]),this.domListeners[k].push({node:c,handler:x})}}},7356:function(X,T){"use strict";T.A=new WeakMap},6078:function(X,T){"use strict";const i=["error","warn","log","info"];let m="warn";function E(w){if(m&&i.indexOf(w)<=i.indexOf(m)){for(var k=arguments.length,c=new Array(k>1?k-1:0),x=1;x<k;x++)c[x-1]=arguments[x];console[w](...c)}}function C(w){return i.reduce((k,c)=>(k[c]=E.bind(console,c,w),k),{})}C.level=w=>{m=w},E.level=C.level,T.A=C},4266:function(X,T){"use strict";T.A=class{static DEFAULTS={};constructor(i){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=i,this.options=m}}},6142:function(X,T,i){"use strict";i.d(T,{Ay:function(){return r}});var m=i(8347),E=i(6003),C=i(5232),w=i.n(C),k=i(3707),c=i(5123),x=i(9698),d=i(3036),A=i(4541),P=i(5508),h=i(8298);const _=/^[ -~]*$/;function j(v,l,f){if(v.length===0){const[be]=re(f.pop());return l<=0?`</li></${be}>`:`</li></${be}>${j([],l-1,f)}`}const[{child:p,offset:N,length:L,indent:U,type:Q},...Z]=v,[ne,ce]=re(Q);if(U>l)return f.push(Q),U===l+1?`<${ne}><li${ce}>${$(p,N,L)}${j(Z,U,f)}`:`<${ne}><li>${j(v,l+1,f)}`;const ue=f[f.length-1];if(U===l&&Q===ue)return`</li><li${ce}>${$(p,N,L)}${j(Z,U,f)}`;const[ae]=re(f.pop());return`</li></${ae}>${j(v,l-1,f)}`}function $(v,l,f){let p=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if("html"in v&&typeof v.html=="function")return v.html(l,f);if(v instanceof P.A)return(0,P.X)(v.value().slice(l,l+f)).replaceAll(" "," ");if(v instanceof E.ParentBlot){if(v.statics.blotName==="list-container"){const ne=[];return v.children.forEachAt(l,f,(ce,ue,ae)=>{const be="formats"in ce&&typeof ce.formats=="function"?ce.formats():{};ne.push({child:ce,offset:ue,length:ae,indent:be.indent||0,type:be.list})}),j(ne,-1,[])}const N=[];if(v.children.forEachAt(l,f,(ne,ce,ue)=>{N.push($(ne,ce,ue))}),p||v.statics.blotName==="list")return N.join("");const{outerHTML:L,innerHTML:U}=v.domNode,[Q,Z]=L.split(`>${U}<`);return Q==="<table"?`<table style="border: 1px solid #000;">${N.join("")}<${Z}`:`${Q}>${N.join("")}<${Z}`}return v.domNode instanceof Element?v.domNode.outerHTML:""}function K(v,l){return Object.keys(l).reduce((f,p)=>{if(v[p]==null)return f;const N=l[p];return N===v[p]?f[p]=N:Array.isArray(N)?N.indexOf(v[p])<0?f[p]=N.concat([v[p]]):f[p]=N:f[p]=[N,v[p]],f},{})}function re(v){const l=v==="ordered"?"ol":"ul";switch(v){case"checked":return[l,' data-list="checked"'];case"unchecked":return[l,' data-list="unchecked"'];default:return[l,""]}}function le(v){return v.reduce((l,f)=>{if(typeof f.insert=="string"){const p=f.insert.replace(/\r\n/g,` 9`).replace(/\r/g,` 10`);return l.insert(p,f.attributes)}return l.push(f)},new(w()))}function V(v,l){let{index:f,length:p}=v;return new h.Q(f+l,p)}var y=class{constructor(v){this.scroll=v,this.delta=this.getDelta()}applyDelta(v){this.scroll.update();let l=this.scroll.length();this.scroll.batchStart();const f=le(v),p=new(w());return function(N){const L=[];return N.forEach(U=>{typeof U.insert=="string"?U.insert.split(` 11`).forEach((Q,Z)=>{Z&&L.push({insert:` 12`,attributes:U.attributes}),Q&&L.push({insert:Q,attributes:U.attributes})}):L.push(U)}),L}(f.ops.slice()).reduce((N,L)=>{const U=C.Op.length(L);let Q=L.attributes||{},Z=!1,ne=!1;if(L.insert!=null){if(p.retain(U),typeof L.insert=="string"){const ae=L.insert;ne=!ae.endsWith(` 13`)&&(l<=N||!!this.scroll.descendant(x.zo,N)[0]),this.scroll.insertAt(N,ae);const[be,fe]=this.scroll.line(N);let ye=(0,m.A)({},(0,x.Ji)(be));if(be instanceof x.Ay){const[Te]=be.descendant(E.LeafBlot,fe);Te&&(ye=(0,m.A)(ye,(0,x.Ji)(Te)))}Q=C.AttributeMap.diff(ye,Q)||{}}else if(typeof L.insert=="object"){const ae=Object.keys(L.insert)[0];if(ae==null)return N;const be=this.scroll.query(ae,E.Scope.INLINE)!=null;if(be)(l<=N||this.scroll.descendant(x.zo,N)[0])&&(ne=!0);else if(N>0){const[fe,ye]=this.scroll.descendant(E.LeafBlot,N-1);fe instanceof P.A?fe.value()[ye]!==` 14`&&(Z=!0):fe instanceof E.EmbedBlot&&fe.statics.scope===E.Scope.INLINE_BLOT&&(Z=!0)}if(this.scroll.insertAt(N,ae,L.insert[ae]),be){const[fe]=this.scroll.descendant(E.LeafBlot,N);if(fe){const ye=(0,m.A)({},(0,x.Ji)(fe));Q=C.AttributeMap.diff(ye,Q)||{}}}}l+=U}else if(p.push(L),L.retain!==null&&typeof L.retain=="object"){const ae=Object.keys(L.retain)[0];if(ae==null)return N;this.scroll.updateEmbedAt(N,ae,L.retain[ae])}
14Object.keys(Q).forEach(ae=>{this.scroll.formatAt(N,U,ae,Q[ae])});const ce=Z?1:0,ue=ne?1:0;return l+=ce+ue,p.retain(ce),p.delete(ue),N+U+ce+ue},0),p.reduce((N,L)=>typeof L.delete=="number"?(this.scroll.deleteAt(N,L.delete),N):N+C.Op.length(L),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(f)}deleteText(v,l){return this.scroll.deleteAt(v,l),this.update(new(w())().retain(v).delete(l))}formatLine(v,l){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(f).forEach(N=>{this.scroll.lines(v,Math.max(l,1)).forEach(L=>{L.format(N,f[N])})}),this.scroll.optimize();const p=new(w())().retain(v).retain(l,(0,k.A)(f));return this.update(p)}formatText(v,l){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(f).forEach(N=>{this.scroll.formatAt(v,l,N,f[N])});const p=new(w())().retain(v).retain(l,(0,k.A)(f));return this.update(p)}getContents(v,l){return this.delta.slice(v,v+l)}getDelta(){return this.scroll.lines().reduce((v,l)=>v.concat(l.delta()),new(w()))}getFormat(v){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=[],p=[];l===0?this.scroll.path(v).forEach(U=>{const[Q]=U;Q instanceof x.Ay?f.push(Q):Q instanceof E.LeafBlot&&p.push(Q)}):(f=this.scroll.lines(v,l),p=this.scroll.descendants(E.LeafBlot,v,l));const[N,L]=[f,p].map(U=>{const Q=U.shift();if(Q==null)return{};let Z=(0,x.Ji)(Q);for(;Object.keys(Z).length>0;){const ne=U.shift();if(ne==null)return Z;Z=K((0,x.Ji)(ne),Z)}return Z});return{...N,...L}}getHTML(v,l){const[f,p]=this.scroll.line(v);if(f){const N=f.length();return f.length()>=p+l&&(p!==0||l!==N)?$(f,p,l,!0):$(this.scroll,v,l,!0)}return""}getText(v,l){return this.getContents(v,l).filter(f=>typeof f.insert=="string").map(f=>f.insert).join("")}insertContents(v,l){const f=le(l),p=new(w())().retain(v).concat(f);return this.scroll.insertContents(v,f),this.update(p)}insertEmbed(v,l,f){return this.scroll.insertAt(v,l,f),this.update(new(w())().retain(v).insert({[l]:f}))}insertText(v,l){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return l=l.replace(/\r\n/g,` 15`).replace(/\r/g,` 16`),this.scroll.insertAt(v,l),Object.keys(f).forEach(p=>{this.scroll.formatAt(v,l.length,p,f[p])}),this.update(new(w())().retain(v).insert(l,(0,k.A)(f)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const v=this.scroll.children.head;if(v?.statics.blotName!==x.Ay.blotName)return!1;const l=v;return!(l.children.length>1)&&l.children.head instanceof d.A}removeFormat(v,l){const f=this.getText(v,l),[p,N]=this.scroll.line(v+l);let L=0,U=new(w());p!=null&&(L=p.length()-N,U=p.delta().slice(N,N+L-1).insert(` 17`));const Q=this.getContents(v,l+L).diff(new(w())().insert(f).concat(U)),Z=new(w())().retain(v).concat(Q);return this.applyDelta(Z)}update(v){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const p=this.delta;if(l.length===1&&l[0].type==="characterData"&&l[0].target.data.match(_)&&this.scroll.find(l[0].target)){const N=this.scroll.find(l[0].target),L=(0,x.Ji)(N),U=N.offset(this.scroll),Q=l[0].oldValue.replace(A.A.CONTENTS,""),Z=new(w())().insert(Q),ne=new(w())().insert(N.value()),ce=f&&{oldRange:V(f.oldRange,-U),newRange:V(f.newRange,-U)};v=new(w())().retain(U).concat(Z.diff(ne,ce)).reduce((ue,ae)=>ae.insert?ue.insert(ae.insert,L):ue.push(ae),new(w())),this.delta=p.compose(v)}else this.delta=this.getDelta(),v&&(0,c.A)(p.compose(v),this.delta)||(v=p.diff(this.delta,f));return v}},M=i(5374),G=i(7356),q=i(6078),J=i(4266),oe=i(746),se=class{isComposing=!1;constructor(v,l){this.scroll=v,this.emitter=l,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",v=>{this.isComposing||this.handleCompositionStart(v)}),this.scroll.domNode.addEventListener("compositionend",v=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(v)})})}handleCompositionStart(v){const l=v.target instanceof Node?this.scroll.find(v.target,!0):null;!l||l instanceof oe.A||(this.emitter.emit(M.A.events.COMPOSITION_BEFORE_START,v),this.scroll.batchStart(),this.emitter.emit(M.A.events.COMPOSITION_START,v),this.isComposing=!0)}handleCompositionEnd(v){this.emitter.emit(M.A.events.COMPOSITION_BEFORE_END,v),this.scroll.batchEnd(),this.emitter.emit(M.A.events.COMPOSITION_END,v),this.isComposing=!1}},pe=i(9609);const we=v=>{const l=v.getBoundingClientRect(),f="offsetWidth"in v&&Math.abs(l.width)/v.offsetWidth||1,p="offsetHeight"in v&&Math.abs(l.height)/v.offsetHeight||1;return{top:l.top,right:l.left+v.clientWidth*f,bottom:l.top+v.clientHeight*p,left:l.left}},S=v=>{const l=parseInt(v,10);return Number.isNaN(l)?0:l},te=(v,l,f,p,N,L)=>v<f&&l>p?0:v<f?-(f-v+N):l>p?l-v>p-f?v+N-f:l-p+L:0,ee=["block","break","cursor","inline","scroll","text"],s=(0,q.A)("quill"),n=new E.Registry;E.ParentBlot.uiClass="ql-ui";class r{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:n,theme:"default"};static events=M.A.events;static sources=M.A.sources;static version="2.0.3";static imports={delta:w(),parchment:E,"core/module":J.A,"core/theme":pe.A};static debug(l){l===!0&&(l="log"),q.A.level(l)}static find(l){let f=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return G.A.get(l)||n.find(l,f)}static import(l){return this.imports[l]==null&&s.error(`Cannot import ${l}. Are you sure it was registered?`),this.imports[l]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const l=arguments.length<=0?void 0:arguments[0],f=!!(!(arguments.length<=1)&&arguments[1]),p="attrName"in l?l.attrName:l.blotName;typeof p=="string"?this.register(`formats/${p}`,l,f):Object.keys(l).forEach(N=>{this.register(N,l[N],f)})}else{const l=arguments.length<=0?void 0:arguments[0],f=arguments.length<=1?void 0:arguments[1],p=!!(!(arguments.length<=2)&&arguments[2]);this.imports[l]==null||p||s.warn(`Overwriting ${l} with`,f),this.imports[l]=f,(l.startsWith("blots/")||l.startsWith("formats/"))&&f&&typeof f!="boolean"&&f.blotName!=="abstract"&&n.register(f),typeof f.register=="function"&&f.register(n)}}constructor(l){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=function(U,Q){const Z=a(U);if(!Z)throw new Error("Invalid Quill container");const ne=!Q.theme||Q.theme===r.DEFAULTS.theme?pe.A:r.import(`themes/${Q.theme}`);if(!ne)throw new Error(`Invalid theme ${Q.theme}. Did you register it?`);const{modules:ce,...ue}=r.DEFAULTS,{modules:ae,...be}=ne.DEFAULTS;let fe=B(Q.modules);fe!=null&&fe.toolbar&&fe.toolbar.constructor!==Object&&(fe={...fe,toolbar:{container:fe.toolbar}});const ye=(0,m.A)({},B(ce),B(ae),fe),Te={...ue,...g(be),...g(Q)};let $e=Q.registry;return $e?Q.formats&&s.warn('Ignoring "formats" option because "registry" is specified'):$e=Q.formats?((Me,ge,Ee)=>{const ke=new E.Registry;return ee.forEach(Ue=>{const Se=ge.query(Ue);
17Se&&ke.register(Se)}),Me.forEach(Ue=>{let Se=ge.query(Ue);Se||Ee.error(`Cannot register "${Ue}" specified in "formats" config. Are you sure it was registered?`);let We=0;for(;Se;)if(ke.register(Se),Se="blotName"in Se?Se.requiredContainer??null:null,We+=1,We>100){Ee.error(`Cycle detected in registering blot requiredContainer: "${Ue}"`);break}}),ke})(Q.formats,Te.registry,s):Te.registry,{...Te,registry:$e,container:Z,theme:ne,modules:Object.entries(ye).reduce((Me,ge)=>{let[Ee,ke]=ge;if(!ke)return Me;const Ue=r.import(`modules/${Ee}`);return Ue==null?(s.error(`Cannot load ${Ee} module. Are you sure you registered it?`),Me):{...Me,[Ee]:(0,m.A)({},Ue.DEFAULTS||{},ke)}},{}),bounds:a(Te.bounds)}}(l,f),this.container=this.options.container,this.container==null)return void s.error("Invalid Quill container",l);this.options.debug&&r.debug(this.options.debug);const p=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",G.A.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new M.A;const N=E.ScrollBlot.blotName,L=this.options.registry.query(N);if(!L||!("blotName"in L))throw new Error(`Cannot initialize Quill without "${N}" blot`);if(this.scroll=new L(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new y(this.scroll),this.selection=new h.A(this.scroll,this.emitter),this.composition=new se(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(M.A.events.EDITOR_CHANGE,U=>{U===M.A.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(M.A.events.SCROLL_UPDATE,(U,Q)=>{const Z=this.selection.lastRange,[ne]=this.selection.getRange(),ce=Z&&ne?{oldRange:Z,newRange:ne}:void 0;O.call(this,()=>this.editor.update(null,Q,ce),U)}),this.emitter.on(M.A.events.SCROLL_EMBED_UPDATE,(U,Q)=>{const Z=this.selection.lastRange,[ne]=this.selection.getRange(),ce=Z&&ne?{oldRange:Z,newRange:ne}:void 0;O.call(this,()=>{const ue=new(w())().retain(U.offset(this)).retain({[U.statics.blotName]:Q});return this.editor.update(ue,[],ce)},r.sources.USER)}),p){const U=this.clipboard.convert({html:`${p}<p><br></p>`,text:` 18`});this.setContents(U)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(l){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof l=="string"){const p=l;(l=document.createElement("div")).classList.add(p)}return this.container.insertBefore(l,f),l}blur(){this.selection.setRange(null)}deleteText(l,f,p){return[l,f,,p]=D(l,f,p),O.call(this,()=>this.editor.deleteText(l,f),p,l,-1*f)}disable(){this.enable(!1)}editReadOnly(l){this.allowReadOnlyEdits=!0;const f=l();return this.allowReadOnlyEdits=!1,f}enable(){let l=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.scroll.enable(l),this.container.classList.toggle("ql-disabled",!l)}focus(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),l.preventScroll||this.scrollSelectionIntoView()}format(l,f){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M.A.sources.API;return O.call(this,()=>{const N=this.getSelection(!0);let L=new(w());if(N==null)return L;if(this.scroll.query(l,E.Scope.BLOCK))L=this.editor.formatLine(N.index,N.length,{[l]:f});else{if(N.length===0)return this.selection.format(l,f),L;L=this.editor.formatText(N.index,N.length,{[l]:f})}return this.setSelection(N,M.A.sources.SILENT),L},p)}formatLine(l,f,p,N,L){let U;return[l,f,U,L]=D(l,f,p,N,L),O.call(this,()=>this.editor.formatLine(l,f,U),L,l,0)}formatText(l,f,p,N,L){let U;return[l,f,U,L]=D(l,f,p,N,L),O.call(this,()=>this.editor.formatText(l,f,U),L,l,0)}getBounds(l){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,p=null;if(p=typeof l=="number"?this.selection.getBounds(l,f):this.selection.getBounds(l.index,l.length),!p)return null;const N=this.container.getBoundingClientRect();return{bottom:p.bottom-N.top,height:p.height,left:p.left-N.left,right:p.right-N.left,top:p.top-N.top,width:p.width}}getContents(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-l;return[l,f]=D(l,f),this.editor.getContents(l,f)}getFormat(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof l=="number"?this.editor.getFormat(l,f):this.editor.getFormat(l.index,l.length)}getIndex(l){return l.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(l){return this.scroll.leaf(l)}getLine(l){return this.scroll.line(l)}getLines(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof l!="number"?this.scroll.lines(l.index,l.length):this.scroll.lines(l,f)}getModule(l){return this.theme.modules[l]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1?arguments[1]:void 0;return typeof l=="number"&&(f=f??this.getLength()-l),[l,f]=D(l,f),this.editor.getHTML(l,f)}getText(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1?arguments[1]:void 0;return typeof l=="number"&&(f=f??this.getLength()-l),[l,f]=D(l,f),this.editor.getText(l,f)}hasFocus(){return this.selection.hasFocus()}insertEmbed(l,f,p){let N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r.sources.API;return O.call(this,()=>this.editor.insertEmbed(l,f,p),N,l)}insertText(l,f,p,N,L){let U;return[l,,U,L]=D(l,0,p,N,L),O.call(this,()=>this.editor.insertText(l,f,U),L,l,f.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(l,f,p){return[l,f,,p]=D(l,f,p),O.call(this,()=>this.editor.removeFormat(l,f),p,l)}scrollRectIntoView(l){((f,p)=>{const N=f.ownerDocument;let L=p,U=f;for(;U;
18){const Z=U===N.body,ne=Z?{top:0,right:window.visualViewport?.width??N.documentElement.clientWidth,bottom:window.visualViewport?.height??N.documentElement.clientHeight,left:0}:we(U),ce=getComputedStyle(U),ue=te(L.left,L.right,ne.left,ne.right,S(ce.scrollPaddingLeft),S(ce.scrollPaddingRight)),ae=te(L.top,L.bottom,ne.top,ne.bottom,S(ce.scrollPaddingTop),S(ce.scrollPaddingBottom));if(ue||ae)if(Z)N.defaultView?.scrollBy(ue,ae);else{const{scrollLeft:be,scrollTop:fe}=U;ae&&(U.scrollTop+=ae),ue&&(U.scrollLeft+=ue);const ye=U.scrollLeft-be,Te=U.scrollTop-fe;L={left:L.left-ye,top:L.top-Te,right:L.right-ye,bottom:L.bottom-Te}}U=Z||ce.position==="fixed"?null:(Q=U).parentElement||Q.getRootNode().host||null}var Q})(this.root,l)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const l=this.selection.lastRange,f=l&&this.selection.getBounds(l.index,l.length);f&&this.scrollRectIntoView(f)}setContents(l){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M.A.sources.API;return O.call(this,()=>{l=new(w())(l);const p=this.getLength(),N=this.editor.deleteText(0,p),L=this.editor.insertContents(0,l),U=this.editor.deleteText(this.getLength()-1,1);return N.compose(L).compose(U)},f)}setSelection(l,f,p){l==null?this.selection.setRange(null,f||r.sources.API):([l,f,,p]=D(l,f,p),this.selection.setRange(new h.Q(Math.max(0,l),f),p),p!==M.A.sources.SILENT&&this.scrollSelectionIntoView())}setText(l){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M.A.sources.API;const p=new(w())().insert(l);return this.setContents(p,f)}update(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M.A.sources.USER;const f=this.scroll.update(l);return this.selection.update(l),f}updateContents(l){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M.A.sources.API;return O.call(this,()=>(l=new(w())(l),this.editor.applyDelta(l)),f,!0)}}function a(v){return typeof v=="string"?document.querySelector(v):v}function B(v){return Object.entries(v??{}).reduce((l,f)=>{let[p,N]=f;return{...l,[p]:N===!0?{}:N}},{})}function g(v){return Object.fromEntries(Object.entries(v).filter(l=>l[1]!==void 0))}function O(v,l,f,p){if(!this.isEnabled()&&l===M.A.sources.USER&&!this.allowReadOnlyEdits)return new(w());let N=f==null?null:this.getSelection();const L=this.editor.delta,U=v();if(N!=null&&(f===!0&&(f=N.index),p==null?N=I(N,U,l):p!==0&&(N=I(N,f,p,l)),this.setSelection(N,M.A.sources.SILENT)),U.length()>0){const Q=[M.A.events.TEXT_CHANGE,U,L,l];this.emitter.emit(M.A.events.EDITOR_CHANGE,...Q),l!==M.A.sources.SILENT&&this.emitter.emit(...Q)}return U}function D(v,l,f,p,N){let L={};return typeof v.index=="number"&&typeof v.length=="number"?typeof l!="number"?(N=p,p=f,f=l,l=v.length,v=v.index):(l=v.length,v=v.index):typeof l!="number"&&(N=p,p=f,f=l,l=0),typeof f=="object"?(L=f,N=p):typeof f=="string"&&(p!=null?L[f]=p:N=f),[v,l,L,N=N||M.A.sources.API]}function I(v,l,f,p){const N=typeof f=="number"?f:0;if(v==null)return null;let L,U;return l&&typeof l.transformPosition=="function"?[L,U]=[v.index,v.index+v.length].map(Q=>l.transformPosition(Q,p!==M.A.sources.USER)):[L,U]=[v.index,v.index+v.length].map(Q=>Q<l||Q===l&&p===M.A.sources.USER?Q:N>=0?Q+N:Math.max(l,Q+N)),new h.Q(L,U-L)}},8298:function(X,T,i){"use strict";i.d(T,{Q:function(){return c}});var m=i(6003),E=i(5123),C=i(3707),w=i(5374);const k=(0,i(6078).A)("quill:selection");class c{constructor(A){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=A,this.length=P}}function x(d,A){try{A.parentNode}catch{return!1}return d.contains(A)}T.A=class{constructor(d,A){this.emitter=A,this.scroll=d,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new c(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,w.A.sources.USER),1)}),this.emitter.on(w.A.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const P=this.getNativeRange();P!=null&&P.start.node!==this.cursor.textNode&&this.emitter.once(w.A.events.SCROLL_UPDATE,(h,_)=>{try{this.root.contains(P.start.node)&&this.root.contains(P.end.node)&&this.setNativeRange(P.start.node,P.start.offset,P.end.node,P.end.offset);const j=_.some($=>$.type==="characterData"||$.type==="childList"||$.type==="attributes"&&$.target===this.root);this.update(j?w.A.sources.SILENT:h)}catch{}})}),this.emitter.on(w.A.events.SCROLL_OPTIMIZE,(P,h)=>
18{if(h.range){const{startNode:_,startOffset:j,endNode:$,endOffset:K}=h.range;this.setNativeRange(_,j,$,K),this.update(w.A.sources.SILENT)}}),this.update(w.A.sources.SILENT)}handleComposition(){this.emitter.on(w.A.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(w.A.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const d=this.cursor.restore();if(!d)return;setTimeout(()=>{this.setNativeRange(d.startNode,d.startOffset,d.endNode,d.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(w.A.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(d,A){this.scroll.update();const P=this.getNativeRange();if(P!=null&&P.native.collapsed&&!this.scroll.query(d,m.Scope.BLOCK)){if(P.start.node!==this.cursor.textNode){const h=this.scroll.find(P.start.node,!1);if(h==null)return;if(h instanceof m.LeafBlot){const _=h.split(P.start.offset);h.parent.insertBefore(this.cursor,_)}else h.insertBefore(this.cursor,P.start.node);this.cursor.attach()}this.cursor.format(d,A),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(d){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const P=this.scroll.length();let h;
18d=Math.min(d,P-1),A=Math.min(d+A,P-1)-d;let[_,j]=this.scroll.leaf(d);if(_==null)return null;if(A>0&&j===_.length()){const[le]=this.scroll.leaf(d+1);if(le){const[V]=this.scroll.line(d),[y]=this.scroll.line(d+1);V===y&&(_=le,j=0)}}[h,j]=_.position(j,!0);const $=document.createRange();if(A>0)return $.setStart(h,j),[_,j]=this.scroll.leaf(d+A),_==null?null:([h,j]=_.position(j,!0),$.setEnd(h,j),$.getBoundingClientRect());let K,re="left";if(h instanceof Text){if(!h.data.length)return null;j<h.data.length?($.setStart(h,j),$.setEnd(h,j+1)):($.setStart(h,j-1),$.setEnd(h,j),re="right"),K=$.getBoundingClientRect()}else{if(!(_.domNode instanceof Element))return null;K=_.domNode.getBoundingClientRect(),j>0&&(re="right")}return{bottom:K.top+K.height,height:K.height,left:K[re],right:K[re],top:K.top,width:0}}getNativeRange(){const d=document.getSelection();if(d==null||d.rangeCount<=0)return null;const A=d.getRangeAt(0);if(A==null)return null;const P=this.normalizeNative(A);return k.info("getNativeRange",P),P}getRange(){const d=this.scroll.domNode;if("isConnected"in d&&!d.isConnected)return[null,null];const A=this.getNativeRange();return A==null?[null,null]:[this.normalizedToRange(A),A]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&x(this.root,document.activeElement)}normalizedToRange(d){const A=[[d.start.node,d.start.offset]];d.native.collapsed||A.push([d.end.node,d.end.offset]);const P=A.map(j=>{const[$,K]=j,re=this.scroll.find($,!0),le=re.offset(this.scroll);return K===0?le:re instanceof m.LeafBlot?le+re.index($,K):le+re.length()}),h=Math.min(Math.max(...P),this.scroll.length()-1),_=Math.min(h,...P);return new c(_,h-_)}normalizeNative(d){if(!x(this.root,d.startContainer)||!d.collapsed&&!x(this.root,d.endContainer))return null;const A={start:{node:d.startContainer,offset:d.startOffset},end:{node:d.endContainer,offset:d.endOffset},native:d};return[A.start,A.end].forEach(P=>{let{node:h,offset:_}=P;for(;!(h instanceof Text)&&h.childNodes.length>0;)if(h.childNodes.length>_)h=h.childNodes[_],_=0;else{if(h.childNodes.length!==_)break;h=h.lastChild,_=h instanceof Text?h.data.length:h.childNodes.length>0?h.childNodes.length:h.childNodes.length+1}P.node=h,P.offset=_}),A}rangeToNative(d){const A=this.scroll.length(),P=(h,_)=>{h=Math.min(A-1,h);const[j,$]=this.scroll.leaf(h);return j?j.position($,_):[null,-1]};return[...P(d.index,!1),...P(d.index+d.length,!0)]}setNativeRange(d,A){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:A,_=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(k.info("setNativeRange",d,A,P,h),d!=null&&(this.root.parentNode==null||d.parentNode==null||P.parentNode==null))return;const j=document.getSelection();if(j!=null)if(d!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:$}=this.getNativeRange()||{};if($==null||_||d!==$.startContainer||A!==$.startOffset||P!==$.endContainer||h!==$.endOffset){d instanceof Element&&d.tagName==="BR"&&(A=Array.from(d.parentNode.childNodes).indexOf(d),d=d.parentNode),P instanceof Element&&P.tagName==="BR"&&(h=Array.from(P.parentNode.childNodes).indexOf(P),P=P.parentNode);const K=document.createRange();K.setStart(d,A),K.setEnd(P,h),j.removeAllRanges(),j.addRange(K)}}else j.removeAllRanges(),this.root.blur()}setRange(d){let A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w.A.sources.API;if(typeof A=="string"&&(P=A,A=!1),k.info("setRange",d),d!=null){const h=this.rangeToNative(d);this.setNativeRange(...h,A)}else this.setNativeRange(null);this.update(P)}update(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w.A.sources.USER;const A=this.lastRange,[P,h]=this.getRange();if(this.lastRange=P,this.lastNative=h,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,E.A)(A,this.lastRange)){if(!this.composing&&h!=null&&h.native.collapsed&&h.start.node!==this.cursor.textNode){const j=this.cursor.restore();j&&this.setNativeRange(j.startNode,j.startOffset,j.endNode,j.endOffset)}const _=[w.A.events.SELECTION_CHANGE,(0,C.A)(this.lastRange),(0,C.A)(A),d];this.emitter.emit(w.A.events.EDITOR_CHANGE,..._),d!==w.A.sources.SILENT&&this.emitter.emit(..._)}}}},9609:function(X,T){"use strict";
vendor: 4,531 bytes, lines 18-21
18class i{static DEFAULTS={modules:{}};static themes={default:i};modules={};constructor(E,C){this.quill=E,this.options=C}init(){Object.keys(this.options.modules).forEach(E=>{this.modules[E]==null&&this.addModule(E)})}addModule(E){const C=this.quill.constructor.import(`modules/${E}`);return this.modules[E]=new C(this.quill,this.options.modules[E]||{}),this.modules[E]}}T.A=i},8276:function(X,T,i){"use strict";i.d(T,{Hu:function(){return w},gS:function(){return C}});var m=i(6003);const E={scope:m.Scope.BLOCK,whitelist:["right","center","justify"]},C=new m.Attributor("align","align",E),w=(new m.ClassAttributor("align","ql-align",E),new m.StyleAttributor("align","text-align",E))},9541:function(X,T,i){"use strict";i.d(T,{s:function(){return C}});var m=i(6003),E=i(8638);new m.ClassAttributor("background","ql-bg",{scope:m.Scope.INLINE});const C=new E.a2("background","background-color",{scope:m.Scope.INLINE})},9404:function(X,T,i){"use strict";i.d(T,{Ay:function(){return A}});var m=i(9698),E=i(3036),C=i(4541),w=i(4850),k=i(5508),c=i(580),x=i(6142);class d extends c.A{static create(_){const j=super.create(_);return j.setAttribute("spellcheck","false"),j}code(_,j){return this.children.map($=>$.length()<=1?"":$.domNode.innerText).join(` 19`).slice(_,_+j)}html(_,j){return`<pre> 20${(0,k.X)(this.code(_,j))} 21</pre>`}}class A extends m.Ay{static TAB=" ";static register(){x.Ay.register(d)}}class P extends w.A{}P.blotName="code",P.tagName="CODE",A.blotName="code-block",A.className="ql-code-block",A.tagName="DIV",d.blotName="code-block-container",d.className="ql-code-block-container",d.tagName="DIV",d.allowedChildren=[A],A.allowedChildren=[k.A,E.A,C.A],A.requiredContainer=d},8638:function(X,T,i){"use strict";i.d(T,{JM:function(){return C},a2:function(){return E}});var m=i(6003);class E extends m.StyleAttributor{value(k){let c=super.value(k);return c.startsWith("rgb(")?(c=c.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${c.split(",").map(x=>`00${parseInt(x,10).toString(16)}`.slice(-2)).join("")}`):c}}new m.ClassAttributor("color","ql-color",{scope:m.Scope.INLINE});const C=new E("color","color",{scope:m.Scope.INLINE})},7912:function(X,T,i){"use strict";i.d(T,{Mc:function(){return C},VL:function(){return w}});var m=i(6003);const E={scope:m.Scope.BLOCK,whitelist:["rtl"]},C=new m.Attributor("direction","dir",E),w=(new m.ClassAttributor("direction","ql-direction",E),new m.StyleAttributor("direction","direction",E))},6772:function(X,T,i){"use strict";i.d(T,{z:function(){return w}});var m=i(6003);const E={scope:m.Scope.INLINE,whitelist:["serif","monospace"]};new m.ClassAttributor("font","ql-font",E);class C extends m.StyleAttributor{value(c){return super.value(c).replace(/["']/g,"")}}const w=new C("font","font-family",E)},664:function(X,T,i){"use strict";i.d(T,{r:function(){return E}});var m=i(6003);new m.ClassAttributor("size","ql-size",{scope:m.Scope.INLINE,whitelist:["small","large","huge"]});const E=new m.StyleAttributor("size","font-size",{scope:m.Scope.INLINE,whitelist:["10px","18px","32px"]})},584:function(X,T,i){"use strict";i.d(T,{Ay:function(){return we}});var m=i(6003),E=i(5232),C=i.n(E),w=i(9698),k=i(6078),c=i(4266),x=i(6142),d=i(8276),A=i(9541),P=i(9404),h=i(8638),_=i(7912),j=i(6772),$=i(664),K=i(8123);const re=/font-weight:\s*normal/,le=["P","OL","UL"],V=g=>g&&le.includes(g.tagName),y=/\bmso-list:[^;]*ignore/i,M=/\bmso-list:[^;]*\bl(\d+)/i,G=/\bmso-list:[^;]*\blevel(\d+)/i,q=[function(g){g.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&(O=>{const D=Array.from(O.querySelectorAll("[style*=mso-list]")),I=[],v=[];D.forEach(p=>{(p.getAttribute("style")||"").match(y)?I.push(p):v.push(p)}),I.forEach(p=>p.parentNode?.removeChild(p));const l=O.documentElement.innerHTML,f=v.map(p=>((N,L)=>{const U=N.getAttribute("style"),Q=U?.match(M);if(!Q)return null;const Z=Number(Q[1]),ne=U?.match(G),ce=ne?Number(ne[1]):1,ue=new RegExp(`@list l${Z}:level${ce}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),ae=L.match(ue);return{id:Z,indent:ce,type:ae&&ae[1]==="bullet"?"bullet":"ordered",element:N}})(p,l)).filter(p=>p);for(;f.length;){const p=[];let N=f.shift();for(;N;)p.push(N),N=f.length&&f[0]?.element===N.element.nextElementSibling&&f[0].id===N.id?f.shift():null;const L=document.createElement("ul");p.forEach(Z=>{const ne=document.createElement("li");ne.setAttribute("data-list",Z.type),Z.indent>1&&ne.setAttribute("class","ql-indent-"+(Z.indent-1)),ne.innerHTML=Z.element.innerHTML,L.appendChild(ne)});const U=p[0]?.element,{parentNode:Q}=U??{};
21U&&Q?.replaceChild(L,U),p.slice(1).forEach(Z=>{let{element:ne}=Z;Q?.removeChild(ne)})}})(g)},function(g){g.querySelector('[id^="docs-internal-guid-"]')&&((O=>{Array.from(O.querySelectorAll('b[style*="font-weight"]')).filter(D=>D.getAttribute("style")?.match(re)).forEach(D=>{const I=O.createDocumentFragment();I.append(...D.childNodes),D.parentNode?.replaceChild(I,D)})})(g),(O=>{Array.from(O.querySelectorAll("br")).filter(D=>V(D.previousElementSibling)&&V(D.nextElementSibling)).forEach(D=>{D.parentNode?.removeChild(D)})})(g))}],J=(0,k.A)("quill:clipboard"),oe=[[Node.TEXT_NODE,function(g,O,D){let I=g.data;if(g.parentElement?.tagName==="O:P")return O.insert(I.trim());if(!n(g)){if(I.trim().length===0&&I.includes(` 22`)&&!function(v,l){return v.previousElementSibling&&v.nextElementSibling&&!ee(v.previousElementSibling,l)&&!ee(v.nextElementSibling,l)}(g,D))return O;I=I.replace(/[^\S\u00a0]/g," "),I=I.replace(/ {2,}/g," "),(g.previousSibling==null&&g.parentElement!=null&&ee(g.parentElement,D)||g.previousSibling instanceof Element&&ee(g.previousSibling,D))&&(I=I.replace(/^ /,"")),(g.nextSibling==null&&g.parentElement!=null&&ee(g.parentElement,D)||g.nextSibling instanceof Element&&ee(g.nextSibling,D))&&(I=I.replace(/ $/,"")),I=I.replaceAll("\xA0"," ")}return O.insert(I)}],[Node.TEXT_NODE,B],["br",function(g,O){return te(O,` 23`)||O.insert(` 24`),O}],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,function(g,O,D){const I=D.query(g);if(I==null)return O;if(I.prototype instanceof m.EmbedBlot){const v={},l=I.value(g);if(l!=null)return v[I.blotName]=l,new(C())().insert(v,I.formats(g,D))}else if(I.prototype instanceof m.BlockBlot&&!te(O,` 25`)&&O.insert(` 26`),"blotName"in I&&"formats"in I&&typeof I.formats=="function")return S(O,I.blotName,I.formats(g,D),D);return O}],[Node.ELEMENT_NODE,function(g,O,D){const I=m.Attributor.keys(g),v=m.ClassAttributor.keys(g),l=m.StyleAttributor.keys(g),f={};return I.concat(v).concat(l).forEach(p=>{let N=D.query(p,m.Scope.ATTRIBUTE);N!=null&&(f[N.attrName]=N.value(g),f[N.attrName])||(N=se[p],N==null||N.attrName!==p&&N.keyName!==p||(f[N.attrName]=N.value(g)||void 0),N=pe[p],N==null||N.attrName!==p&&N.keyName!==p||(N=pe[p],f[N.attrName]=N.value(g)||void 0))}),Object.entries(f).reduce((p,N)=>{let[L,U]=N;return S(p,L,U,D)},O)}],[Node.ELEMENT_NODE,function(g,O,D){const I={},v=g.style||{};return v.fontStyle==="italic"&&(I.italic=!0),v.textDecoration==="underline"&&(I.underline=!0),v.textDecoration==="line-through"&&(I.strike=!0),(v.fontWeight?.startsWith("bold")||parseInt(v.fontWeight,10)>=700)&&(I.bold=!0),O=Object.entries(I).reduce((l,f)=>{let[p,N]=f;return S(l,p,N,D)},O),parseFloat(v.textIndent||0)>0?new(C())().insert(" ").concat(O):O}],["li",function(g,O,D){const I=D.query(g);if(I==null||I.blotName!=="list"||!te(O,` 27`))return O;let v=-1,l=g.parentNode;for(;l!=null;)["OL","UL"].includes(l.tagName)&&(v+=1),l=l.parentNode;return v<=0?O:O.reduce((f,p)=>p.insert?p.attributes&&typeof p.attributes.indent=="number"?f.push(p):f.insert(p.insert,{indent:v,...p.attributes||{}}):f,new(C()))}],["ol, ul",function(g,O,D){const I=g;let v=I.tagName==="OL"?"ordered":"bullet";const l=I.getAttribute("data-checked");return l&&(v=l==="true"?"checked":"unchecked"),S(O,"list",v,D)}],["pre",function(g,O,D){const I=D.query("code-block");return S(O,"code-block",!I||!("formats"in I)||typeof I.formats!="function"||I.formats(g,D),D)}],["tr",function(g,O,D){const I=g.parentElement?.tagName==="TABLE"?g.parentElement:g.parentElement?.parentElement;return I!=null?S(O,"table",Array.from(I.querySelectorAll("tr")).indexOf(g)+1,D):O}],["b",a("bold")],["i",a("italic")],["strike",a("strike")],["style",function(){return new(C())}]],se=[d.gS,_.Mc].reduce((g,O)=>(g[O.keyName]=O,g),{}),pe=[d.Hu,A.s,h.JM,_.VL,j.z,$.r].reduce((g,O)=>(g[O.keyName]=O,g),{});class we extends c.A{static DEFAULTS={matchers:[]};constructor(O,D){super(O,D),this.quill.root.addEventListener("copy",I=>this.onCaptureCopy(I,!1)),this.quill.root.addEventListener("cut",I=>this.onCaptureCopy(I,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],oe.concat(this.options.matchers??[]).forEac
27h(I=>{let[v,l]=I;this.addMatcher(v,l)})}addMatcher(O,D){this.matchers.push([O,D])}convert(O){let{html:D,text:I}=O,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(v[P.Ay.blotName])return new(C())().insert(I||"",{[P.Ay.blotName]:v[P.Ay.blotName]});if(!D)return new(C())().insert(I||"",v);const l=this.convertHTML(D);return te(l,` 28`)&&(l.ops[l.ops.length-1].attributes==null||v.table)?l.compose(new(C())().retain(l.length()-1).delete(1)):l}normalizeHTML(O){(D=>{D.documentElement&&q.forEach(I=>{I(D)})})(O)}convertHTML(O){const D=new DOMParser().parseFromString(O,"text/html");this.normalizeHTML(D);const I=D.body,v=new WeakMap,[l,f]=this.prepareMatching(I,v);return r(this.quill.scroll,I,l,f,v)}dangerouslyPasteHTML(O,D){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x.Ay.sources.API;if(typeof O=="string"){const v=this.convert({html:O,text:""});this.quill.setContents(v,D),this.quill.setSelection(0,x.Ay.sources.SILENT)}else{const v=this.convert({html:D,text:""});this.quill.updateContents(new(C())().retain(O).concat(v),I),this.quill.setSelection(O+v.length(),x.Ay.sources.SILENT)}}onCaptureCopy(O){let D=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(O.defaultPrevented)return;O.preventDefault();const[I]=this.quill.selection.getRange();if(I==null)return;const{html:v,text:l}=this.onCopy(I,D);O.clipboardData?.setData("text/plain",l),O.clipboardData?.setData("text/html",v),D&&(0,K.Xo)({range:I,quill:this.quill})}normalizeURIList(O){return O.split(/\r?\n/).filter(D=>D[0]!=="#").join(` 29`)}onCapturePaste(O){if(O.defaultPrevented||!this.quill.isEnabled())return;O.preventDefault();const D=this.quill.getSelection(!0);if(D==null)return;const I=O.clipboardData?.getData("text/html");let v=O.clipboardData?.getData("text/plain");if(!I&&!v){const f=O.clipboardData?.getData("text/uri-list");f&&(v=this.normalizeURIList(f))}const l=Array.from(O.clipboardData?.files||[]);if(!I&&l.length>0)this.quill.uploader.upload(D,l);else{if(I&&l.length>0){const f=new DOMParser().parseFromString(I,"text/html");if(f.body.childElementCount===1&&f.body.firstElementChild?.tagName==="IMG")return void this.quill.uploader.upload(D,l)}this.onPaste(D,{html:I,text:v})}}onCopy(O){const D=this.quill.getText(O);return{html:this.quill.getSemanticHTML(O),text:D}}onPaste(O,D){let{text:I,html:v}=D;const l=this.quill.getFormat(O.index),f=this.convert({text:I,html:v},l);J.log("onPaste",f,{text:I,html:v});const p=new(C())().retain(O.index).delete(O.length).concat(f);this.quill.updateContents(p,x.Ay.sources.USER),this.quill.setSelection(p.length()-O.length,x.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(O,D){const I=[],v=[];return this.matchers.forEach(l=>{const[f,p]=l;switch(f){case Node.TEXT_NODE:v.push(p);break;case Node.ELEMENT_NODE:I.push(p);break;default:Array.from(O.querySelectorAll(f)).forEach(N=>{D.has(N)?D.get(N)?.push(p):D.set(N,[p])})}}),[I,v]}}function S(g,O,D,I){return I.query(O)?g.reduce((v,l)=>{if(!l.insert)return v;if(l.attributes&&l.attributes[O])return v.push(l);const f=D?{[O]:D}:{};return v.insert(l.insert,{...f,...l.attributes})},new(C())):g}function te(g,O){let D="";for(let I=g.ops.length-1;I>=0&&D.length<O.length;--I){const v=g.ops[I];if(typeof v.insert!="string")break;D=v.insert+D}return D.slice(-1*O.length)===O}function ee(g,O){if(!(g instanceof Element))return!1;const D=O.query(g);return!(D&&D.prototype instanceof m.EmbedBlot)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(g.tagName.toLowerCase())}const s=new WeakMap;function n(g){return g!=null&&(s.has(g)||(g.tagName==="PRE"?s.set(g,!0):s.set(g,n(g.parentNode))),s.get(g))}function r(g,O,D,I,v){return O.nodeType===O.TEXT_NODE?I.reduce((l,f)=>f(O,l,g),new(C())):O.nodeType===O.ELEMENT_NODE?Array.from(O.childNodes||[]).reduce((l,f)=>{let p=r(g,f,D,I,v);return f.nodeType===O.ELEMENT_NODE&&(p=D.reduce((N,L)=>L(f,N,g),p),p=(v.get(f)||[]).reduce((N,L)=>L(f,N,g),p)),l.concat(p)},new(C())):new(C())}function a(g){return(O,D,I)=>S(D,g,!0,I)}function B(g,O,D){if(!te(O,` 30`)){if(ee(g,D)&&(g.childNodes.length>0||g instanceof HTMLParagraphElement))return O.insert(` 31`);if(O.length()>0&&g.nextSibling){let I=g.nextSibling;for(;I!=null;){if(ee(I,D))return O.insert(` 32`);const v=D.query(I);if(v&&v.prototype instanceof w.zo)return O.insert(` 33`);I=I.firstChild}}}return O}},8123:function(X,T,i){"use strict";i.d(T,{Ay:function(){return h},Xo:function(){return le}});
33var m=i(5123),E=i(3707),C=i(5232),w=i.n(C),k=i(6003),c=i(6142),x=i(6078),d=i(4266);const A=(0,x.A)("quill:keyboard"),P=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class h extends d.A{static match(y,M){return!["altKey","ctrlKey","metaKey","shiftKey"].some(G=>!!M[G]!==y[G]&&M[G]!==null)&&(M.key===y.key||M.key===y.which)}constructor(y,M){super(y,M),this.bindings={},Object.keys(this.options.bindings).forEach(G=>{this.options.bindings[G]&&this.addBinding(this.options.bindings[G])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(y){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const q=function(J){if(typeof J=="string"||typeof J=="number")J={key:J};else{if(typeof J!="object")return null;J=(0,E.A)(J)}return J.shortKey&&(J[P]=J.shortKey,delete J.shortKey),J}(y);q!=null?(typeof M=="function"&&(M={handler:M}),typeof G=="function"&&(G={handler:G}),(Array.isArray(q.key)?q.key:[q.key]).forEach(J=>{const oe={...q,key:J,...M,...G};this.bindings[oe.key]=this.bindings[oe.key]||[],this.bindings[oe.key].push(oe)})):A.warn("Attempted to add invalid keyboard binding",q)}listen(){this.quill.root.addEventListener("keydown",y=>{if(y.defaultPrevented||y.isComposing||y.keyCode===229&&(y.key==="Enter"||y.key==="Backspace"))return;const M=(this.bindings[y.key]||[]).concat(this.bindings[y.which]||[]).filter(n=>h.match(y,n));if(M.length===0)return;const G=c.Ay.find(y.target,!0);if(G&&G.scroll!==this.quill.scroll)return;const q=this.quill.getSelection();if(q==null||!this.quill.hasFocus())return;const[J,oe]=this.quill.getLine(q.index),[se,pe]=this.quill.getLeaf(q.index),[we,S]=q.length===0?[se,pe]:this.quill.getLeaf(q.index+q.length),te=se instanceof k.TextBlot?se.value().slice(0,pe):"",ee=we instanceof k.TextBlot?we.value().slice(S):"",s={collapsed:q.length===0,empty:q.length===0&&J.length()<=1,format:this.quill.getFormat(q),line:J,offset:oe,prefix:te,suffix:ee,event:y};M.some(n=>{if(n.collapsed!=null&&n.collapsed!==s.collapsed||n.empty!=null&&n.empty!==s.empty||n.offset!=null&&n.offset!==s.offset)return!1;if(Array.isArray(n.format)){if(n.format.every(r=>s.format[r]==null))return!1}else if(typeof n.format=="object"&&!Object.keys(n.format).every(r=>n.format[r]===!0?s.format[r]!=null:n.format[r]===!1?s.format[r]==null:(0,m.A)(n.format[r],s.format[r])))return!1;return!(n.prefix!=null&&!n.prefix.test(s.prefix)||n.suffix!=null&&!n.suffix.test(s.suffix)||n.handler.call(this,q,s,n)===!0)})&&y.preventDefault()})}handleBackspace(y,M){const G=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(M.prefix)?2:1;if(y.index===0||this.quill.getLength()<=1)return;let q={};const[J]=this.quill.getLine(y.index);let oe=new(w())().retain(y.index-G).delete(G);if(M.offset===0){const[se]=this.quill.getLine(y.index-1);if(se&&!(se.statics.blotName==="block"&&se.length()<=1)){const pe=J.formats(),we=this.quill.getFormat(y.index-1,1);if(q=C.AttributeMap.diff(pe,we)||{},Object.keys(q).length>0){const S=new(w())().retain(y.index+J.length()-2).retain(1,q);oe=oe.compose(S)}}}this.quill.updateContents(oe,c.Ay.sources.USER),this.quill.focus()}handleDelete(y,M){const G=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(M.suffix)?2:1;if(y.index>=this.quill.getLength()-G)return;let q={};const[J]=this.quill.getLine(y.index);let oe=new(w())().retain(y.index).delete(G);if(M.offset>=J.length()-1){const[se]=this.quill.getLine(y.index+1);if(se){const pe=J.formats(),we=this.quill.getFormat(y.index,1);q=C.AttributeMap.diff(pe,we)||{},Object.keys(q).length>0&&(oe=oe.retain(se.length()-1).retain(1,q))}}this.quill.updateContents(oe,c.Ay.sources.USER),this.quill.focus()}handleDeleteRange(y){le({range:y,quill:this.quill}),this.quill.focus()}handleEnter(y,M){const G=Object.keys(M.format).reduce((J,oe)=>
33(this.quill.scroll.query(oe,k.Scope.BLOCK)&&!Array.isArray(M.format[oe])&&(J[oe]=M.format[oe]),J),{}),q=new(w())().retain(y.index).delete(y.length).insert(` 34`,G);this.quill.updateContents(q,c.Ay.sources.USER),this.quill.setSelection(y.index+1,c.Ay.sources.SILENT),this.quill.focus()}}const _={bindings:{bold:K("bold"),italic:K("italic"),underline:K("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(V,y){return!(!y.collapsed||y.offset===0)||(this.quill.format("indent","+1",c.Ay.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(V,y){return!(!y.collapsed||y.offset===0)||(this.quill.format("indent","-1",c.Ay.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(V,y){y.format.indent!=null?this.quill.format("indent","-1",c.Ay.sources.USER):y.format.list!=null&&this.quill.format("list",!1,c.Ay.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(V){this.quill.deleteText(V.index-1,1,c.Ay.sources.USER)}},tab:{key:"Tab",handler(V,y){if(y.format.table)return!0;this.quill.history.cutoff();const M=new(w())().retain(V.index).delete(V.length).insert(" ");return this.quill.updateContents(M,c.Ay.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index+1,c.Ay.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,c.Ay.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(V,y){const M={list:!1};y.format.indent&&(M.indent=!1),this.quill.formatLine(V.index,V.length,M,c.Ay.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(V){const[y,M]=this.quill.getLine(V.index),G={...y.formats(),list:"checked"},q=new(w())().retain(V.index).insert(` 35`,G).retain(y.length()-M-1).retain(1,{list:"unchecked"});this.quill.updateContents(q,c.Ay.sources.USER),this.quill.setSelection(V.index+1,c.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(V,y){const[M,G]=this.quill.getLine(V.index),q=new(w())().retain(V.index).insert(` 36`,y.format).retain(M.length()-G-1).retain(1,{header:null});this.quill.updateContents(q,c.Ay.sources.USER),this.quill.setSelection(V.index+1,c.Ay.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(V){const y=this.quill.getModule("table");if(y){const[M,G,q,J]=y.getTable(V),oe=function(pe,we,S,te){return we.prev==null&&we.next==null?S.prev==null&&S.next==null?te===0?-1:1:S.prev==null?-1:1:we.prev==null?-1:we.next==null?1:null}(0,G,q,J);if(oe==null)return;let se=M.offset();if(oe<0){const pe=new(w())().retain(se).insert(` 37`);this.quill.updateContents(pe,c.Ay.sources.USER),this.quill.setSelection(V.index+1,V.length,c.Ay.sources.SILENT)}else if(oe>0){se+=M.length();const pe=new(w())().retain(se).insert(` 38`);this.quill.updateContents(pe,c.Ay.sources.USER),this.quill.setSelection(se,c.Ay.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(V,y){const{event:M,line:G}=y,q=G.offset(this.quill.scroll);M.shiftKey?this.quill.setSelection(q-1,c.Ay.sources.USER):this.quill.setSelection(q+G.length(),c.Ay.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(V,y){if(this.quill.scroll.query("list")==null)return!0;const{length:M}=y.prefix,[G,q]=this.quill.getLine(V.index);if(q>M)return!0;let J;switch(y.prefix.trim()){case"[]":case"[ ]":J="unchecked";break;case"[x]":J="checked";break;case"-":case"*":J="bullet";break;default:J="ordered"}this.quill.insertText(V.index," ",c.Ay.sources.USER),this.quill.history.cutoff();const oe=new(w())().retain(V.index-q).delete(M+1).retain(G.length()-2-q).retain(1,{list:J});return this.quill.updateContents(oe,c.Ay.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index-M,c.Ay.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(V){const[y,M]=this.quill.getLine(V.index);let G=2,q=y;for(;q!=null&&q.length()<=1&&q.formats()["code-block"];)if(q=q.prev,G-=1,G<=0){const J=new(w())().retain(V.index+y.length()-M-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(J,c.Ay.sources.USER),this.quill.setSelection(V.index-1,c.Ay.sources.SILENT),!1}return!0}},"embed left":$("ArrowLeft",!1),"embed left shift":$("ArrowLeft",!0),"embed right":$("ArrowRight",!1),"embed right shift":$("ArrowRight",!0),"table down":re(!1),"table up":re(!0)}};function j(V){return{key:"Tab",shiftKey:!V,format:{"code-block":!0},handler(y,M){let{event:G}=M;const q=this.quill.scroll.query("code-block"),{TAB:J}=q;if(y.length===0&&!G.shiftKey)return this.quill.insertText(y.index,J,c.Ay.sources.USER),void this.quill.setSelection(y.index+J.length,c.Ay.sources.SILENT);const oe=y.length===0?this.quill.getLines(y.index,1):this.quill.getLines(y);let{index:se,length:pe}=y;oe.forEach((we,S)=>{V?(we.insertAt(0,J),S===0?se+=J.length:pe+=J.length):we.domNode.textContent.startsWith(J)&&(we.deleteAt(0,J.length),S===0?se-=J.length:pe-=J.length)}),this.quill.update(c.Ay.sources.USER),this.quill.setSelection(se,pe,c.Ay.sources.SILENT)}}}function $(V,y){return{key:V,shiftKey:y,altKey:null,[V==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(
vendor: 10,933 bytes, line 38
38M){let{index:G}=M;V==="ArrowRight"&&(G+=M.length+1);const[q]=this.quill.getLeaf(G);return!(q instanceof k.EmbedBlot&&(V==="ArrowLeft"?y?this.quill.setSelection(M.index-1,M.length+1,c.Ay.sources.USER):this.quill.setSelection(M.index-1,c.Ay.sources.USER):y?this.quill.setSelection(M.index,M.length+1,c.Ay.sources.USER):this.quill.setSelection(M.index+M.length+1,c.Ay.sources.USER),1))}}}function K(V){return{key:V[0],shortKey:!0,handler(y,M){this.quill.format(V,!M.format[V],c.Ay.sources.USER)}}}function re(V){return{key:V?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(y,M){const G=V?"prev":"next",q=M.line,J=q.parent[G];if(J!=null){if(J.statics.blotName==="table-row"){let oe=J.children.head,se=q;for(;se.prev!=null;)se=se.prev,oe=oe.next;const pe=oe.offset(this.quill.scroll)+Math.min(M.offset,oe.length()-1);this.quill.setSelection(pe,0,c.Ay.sources.USER)}}else{const oe=q.table()[G];oe!=null&&(V?this.quill.setSelection(oe.offset(this.quill.scroll)+oe.length()-1,0,c.Ay.sources.USER):this.quill.setSelection(oe.offset(this.quill.scroll),0,c.Ay.sources.USER))}return!1}}}function le(V){let{quill:y,range:M}=V;const G=y.getLines(M);let q={};if(G.length>1){const J=G[0].formats(),oe=G[G.length-1].formats();q=C.AttributeMap.diff(oe,J)||{}}y.deleteText(M,c.Ay.sources.USER),Object.keys(q).length>0&&y.formatLine(M.index,1,q,c.Ay.sources.USER),y.setSelection(M.index,c.Ay.sources.SILENT)}h.DEFAULTS=_},8920:function(X){"use strict";var T=Object.prototype.hasOwnProperty,i="~";function m(){}function E(c,x,d){this.fn=c,this.context=x,this.once=d||!1}function C(c,x,d,A,P){if(typeof d!="function")throw new TypeError("The listener must be a function");var h=new E(d,A||c,P),_=i?i+x:x;return c._events[_]?c._events[_].fn?c._events[_]=[c._events[_],h]:c._events[_].push(h):(c._events[_]=h,c._eventsCount++),c}function w(c,x){--c._eventsCount==0?c._events=new m:delete c._events[x]}function k(){this._events=new m,this._eventsCount=0}Object.create&&(m.prototype=Object.create(null),new m().__proto__||(i=!1)),k.prototype.eventNames=function(){var c,x,d=[];if(this._eventsCount===0)return d;for(x in c=this._events)T.call(c,x)&&d.push(i?x.slice(1):x);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(c)):d},k.prototype.listeners=function(c){var x=i?i+c:c,d=this._events[x];if(!d)return[];if(d.fn)return[d.fn];for(var A=0,P=d.length,h=new Array(P);A<P;A++)h[A]=d[A].fn;return h},k.prototype.listenerCount=function(c){var x=i?i+c:c,d=this._events[x];return d?d.fn?1:d.length:0},k.prototype.emit=function(c,x,d,A,P,h){var _=i?i+c:c;if(!this._events[_])return!1;var j,$,K=this._events[_],re=arguments.length;if(K.fn){switch(K.once&&this.removeListener(c,K.fn,void 0,!0),re){case 1:return K.fn.call(K.context),!0;case 2:return K.fn.call(K.context,x),!0;case 3:return K.fn.call(K.context,x,d),!0;case 4:return K.fn.call(K.context,x,d,A),!0;case 5:return K.fn.call(K.context,x,d,A,P),!0;case 6:return K.fn.call(K.context,x,d,A,P,h),!0}for($=1,j=new Array(re-1);$<re;$++)j[$-1]=arguments[$];K.fn.apply(K.context,j)}else{var le,V=K.length;for($=0;$<V;$++)switch(K[$].once&&this.removeListener(c,K[$].fn,void 0,!0),re){case 1:K[$].fn.call(K[$].context);break;case 2:K[$].fn.call(K[$].context,x);break;case 3:K[$].fn.call(K[$].context,x,d);break;case 4:K[$].fn.call(K[$].context,x,d,A);break;default:if(!j)for(le=1,j=new Array(re-1);le<re;le++)j[le-1]=arguments[le];K[$].fn.apply(K[$].context,j)}}return!0},k.prototype.on=function(c,x,d){return C(this,c,x,d,!1)},k.prototype.once=function(c,x,d){return C(this,c,x,d,!0)},k.prototype.removeListener=function(c,x,d,A){var P=i?i+c:c;if(!this._events[P])return this;if(!x)return w(this,P),this;var h=this._events[P];if(h.fn)h.fn!==x||A&&!h.once||d&&h.context!==d||w(this,P);else{for(var _=0,j=[],$=h.length;_<$;_++)(h[_].fn!==x||A&&!h[_].once||d&&h[_].context!==d)&&j.push(h[_]);j.length?this._events[P]=j.length===1?j[0]:j:w(this,P)}return this},k.prototype.removeAllListeners=function(c){var x;return c?(x=i?i+c:c,this._events[x]&&w(this,x)):(this._events=new m,this._eventsCount=0),this},k.prototype.off=k.prototype.removeListener,k.prototype.addListener=k.prototype.on,k.prefixed=i,k.EventEmitter=k,X.exports=k},5090:function(X){var T=-1,i=1,m=0;function E(y,M,G,q,J){if(y===M)return y?[[m,y]]:[];if(G!=null){var oe=function(te,ee,s){var n=typeof s=="number"?{index:s,length:0}:s.oldRange,r=typeof s=="number"?null:s.newRange,a=te.length,B=ee.length;if(n.length===0&&(r===null||r.length===0)){var g=n.index,O=te.slice(0,g),D=te.slice(g),I=r?r.index:null,v=g+B-a;if((I===null||I===v)&&!(v<0||v>B)){var l=ee.slice(0,v);if((N=ee.slice(v))===D){var f=Math.min(g,v);if((U=O.slice(0,f))===(Z=l.slice(0,f)))return le(U,O.slice(f),l.slice(f),D)}}if(I===null||I===g){var p=g,N=(l=ee.slice(0,p),ee.slice(p));if(l===O){var L=Math.min(a-p,B-p);if((Q=D.slice(D.length-L))===(ne=N.slice(N.length-L)))return le(O,D.slice(0,D.length-L),N.slice(0,N.length-L),Q)}}}if(n.length>0&&r&&r.length===0){var U=te.slice(0,n.index),Q=te.slice(n.index+n.length);if(!(B<(f=U.length)+(L=Q.length))){var Z=ee.slice(0,f),ne=ee.slice(B-L);if(U===Z&&Q===ne)return le(U,te.slice(f,a-L),ee.slice(f,B-L),Q)}}return null}(y,M,G);if(oe)return oe}var se=w(y,M),pe=y.substring(0,se);se=c(y=y.substring(se),M=M.substring(se));var we=y.substring(y.length-se),S=function(te,ee){var s;if(!te)return[[i,ee]];if(!ee)return[[T,te]];var n=te.length>ee.length?te:ee,r=te.length>ee.length?ee:te,a=n.indexOf(r);if(a!==-1)return s=[[i,n.substring(0,a)],[m,r],[i,n.substring(a+r.length)]],te.length>ee.length&&(s[0][0]=s[2][0]=T),s;if(r.length===1)return[[T,te],[i,ee]];var B=function(p,N){var L=p.length>N.length?p:N,U=p.length>N.length?N:p;if(L.length<4||2*U.length<L.length)return null;function Q(ye,Te,$e){for(var Me,ge,Ee,ke,Ue=ye.substring($e,$e+Math.floor(ye.length/4)),Se=-1,We="";(Se=Te.indexOf(Ue,Se+1))!==-1;){var nt=w(ye.substring($e),Te.substring(Se)),ht=c(ye.substring(0,$e),Te.substring(0,Se));We.length<ht+nt&&(We=Te.substring(Se-ht,Se)+Te.substring(Se,Se+nt),Me=ye.substring(0,$e-ht),ge=ye.substring($e+nt),Ee=Te.substring(0,Se-ht),ke=Te.substring(Se+nt))}return 2*We.length>=ye.length?[Me,ge,Ee,ke,We]:null}var Z,ne,ce,ue,ae,be=Q(L,U,Math.ceil(L.length/4)),fe=Q(L,U,Math.ceil(L.length/2));return be||fe?(Z=fe?be&&be[4].length>fe[4].length?be:fe:be,p.length>N.length?(ne=Z[0],ce=Z[1],ue=Z[2],ae=Z[3]):(ue=Z[0],ae=Z[1],ne=Z[2],ce=Z[3]),[ne,ce,ue,ae,Z[4]]):null}(te,ee);if(B){var g=B[0],O=B[1],D=B[2],I=B[3],v=B[4],l=E(g,D),f=E(O,I);return l.concat([[m,v]],f)}return function(p,N){for(var L=p.length,U=N.length,Q=Math.ceil((L+U)/2),Z=Q,ne=2*Q,ce=new Array(ne),ue=new Array(ne),ae=0;ae<ne;ae++)ce[ae]=-1,ue[ae]=-1;ce[Z+1]=0,ue[Z+1]=0;for(var be=L-U,fe=be%2!=0,ye=0,Te=0,$e=0,Me=0,ge=0;ge<Q;ge++){for(var Ee=-ge+ye;Ee<=ge-Te;Ee+=2){for(var ke=Z+Ee,Ue=(it=Ee===-ge||Ee!==ge&&ce[ke-1]<ce[ke+1]?ce[ke+1]:ce[ke-1]+1)-Ee;it<L&&Ue<U&&p.charAt(it)===N.charAt(Ue);)it++,Ue++;if(ce[ke]=it,it>L)Te+=2;else if(Ue>U)ye+=2;else if(fe&&(nt=Z+be-Ee)>=0&&nt<ne&&ue[nt]!==-1&&it>=(We=L-ue[nt]))return C(p,N,it,Ue)}for(var Se=-ge+$e;Se<=ge-Me;Se+=2){for(var We,nt=Z+Se,ht=(We=Se===-ge||Se!==ge&&ue[nt-1]<ue[nt+1]?ue[nt+1]:ue[nt-1]+1)-Se;We<L&&ht<U&&p.charAt(L-We-1)===N.charAt(U-ht-1);)We++,ht++;if(ue[nt]=We,We>L)Me+=2;else if(ht>U)$e+=2;else if(!fe){var it;if((ke=Z+be-Se)>=0&&ke<ne&&ce[ke]!==-1&&(Ue=Z+(it=ce[ke])-ke,it>=(We=L-We)))return C(p,N,it,Ue)}}}return[[T,p],[i,N]]}(te,ee)}(y=y.substring(0,y.length-se),M=M.substring(0,M.length-se));return pe&&S.unshift([m,pe]),we&&S.push([m,we]),_(S,J),q&&function(te){for(var ee=!1,s=[],n=0,r=null,a=0,B=0,g=0,O=0,D=0;a<te.length;)te[a][0]==m?(s[n++]=a,B=O,g=D,O=0,D=0,r=te[a][1]):(te[a][0]==i?O+=te[a][1].length:D+=te[a][1].length,r&&r.length<=Math.max(B,g)&&r.length<=Math.max(O,D)&&(te.splice(s[n-1],0,[T,r]),te[s[n-1]+1][0]=i,n--,a=--n>0?s[n-1]:-1,B=0,g=0,O=0,D=0,r=null,ee=!0)),a++;for(ee&&_(te),function(p){function N(Te,$e){if(!Te||!$e)return 6;var Me=Te.charAt(Te.length-1),ge=$e.charAt(0),Ee=Me.match(x),ke=ge.match(x),Ue=Ee&&Me.match(d),Se=ke&&ge.match(d),We=Ue&&Me.match(A),nt=Se&&ge.match(A),ht=We&&Te.match(P),it=nt&&$e.match(h);return ht||it?5:We||nt?4:Ee&&!Ue&&Se?3:Ue||Se?2:Ee||ke?1:0}for(var L=1;L<p.length-1;){if(p[L-1][0]==m&&p[L+1][0]==m){var U=p[L-1][1],Q=p[L][1],Z=p[L+1][1],ne=c(U,Q);if(ne){var ce=Q.substring(Q.length-ne);U=U.substring(0,U.length-ne),Q=ce+Q.substring(0,Q.length-ne),Z=ce+Z}for(var ue=U,ae=Q,be=Z,fe=N(U,Q)+N(Q,Z);Q.charAt(0)===Z.charAt(0);){U+=Q.charAt(0),Q=Q.substring(1)+Z.charAt(0),Z=Z.substring(1);var ye=N(U,Q)+N(Q,Z);ye>=fe&&(fe=ye,ue=U,ae=Q,be=Z)}p[L-1][1]!=ue&&(ue?p[L-1][1]=ue:(p.splice(L-1,1),L--),p[L][1]=ae,be?p[L+1][1]=be:(p.splice(L+1,1),L--))}L++}}(te),a=1;a<te.length;){if(te[a-1][0]==T&&te[a][0]==i){var I=te[a-1][1],v=te[a][1],l=k(I,v),f=k(v,I);l>=f?(l>=I.length/2||l>=v.length/2)&&(te.splice(a,0,[m,v.substring(0,l)]),te[a-1][1]=I.substring(0,I.length-l),te[a+1][1]=v.substring(l),a++):(f>=I.length/2||f>=v.length/2)&&(te.splice(a,0,[m,I.substring(0,f)]),te[a-1][0]=i,te[a-1][1]=v.substring(0,v.length-f),te[a+1][0]=T,te[a+1][1]=I.substring(f),a++),a++}a++}}(S),S}function C(y,M,G,q){var J=y.substring(0,G),oe=M.substring(0,q),se=y.substring(G),pe=M.substring(q),we=E(J,oe),S=E(se,pe);return we.concat(S)}function w(y,M){if(!y||!M||y.charAt(0)!==M.charAt(0))return 0;for(var G=0,q=Math.min(y.length,M.length),J=q,oe=0;G<J;)y.substring(oe,J)==M.substring(oe,J)?oe=G=J:q=J,J=Math.floor((q-G)/2+G);return j(y.charCodeAt(J-1))&&J--,J}function k(y,M){var G=y.length,q=M.length;if(G==0||q==0)return 0;G>q?y=y.substring(G-q):G<q&&(M=M.substring(0,G));var J=Math.min(G,q);if(y==M)return J;for(var oe=0,se=1;;){var pe=y.substring(J-se),we=M.indexOf(pe);if(we==-1)return oe;se+=we,we!=0&&y.substring(J-se)!=M.substring(0,se)||(oe=se,se++)}}function c(y,M){if(!y||!M||y.slice(-1)!==M.slice(-1))return 0;for(var G=0,q=Math.min(y.length,M.length),J=q,oe=0;G<J;)y.substring(y.length-J,y.length-oe)==M.substring(M.length-J,M.length-oe)?oe=G=J:q=J,J=Math.floor((q-G)/2+G);return $(y.charCodeAt(y.length-J))&&J--,J}var x=/[^a-zA-Z0-9]/,d=/\s/,A=/[\r\n]/,P=/\n\r?\n$/,h=/^\r?\n\r?\n/;function _(y,M){y.push([m,""]);for(var G,q=0,J=0,oe=0,se="",pe="";q<y.length;)if(q<y.length-1&&!y[q][1])y.splice(q,1);else switch(y[q][0]){case i:oe++,pe+=y[q][1],q++;break;case T:J++,se+=y[q][1],q++;break;case m:var we=q-oe-J-1;if(M){if(we>=0&&re(y[we][1])){var S=y[we][1].slice(-1);if(y[we][1]=y[we][1].slice(0,-1),se=S+se,pe=S+pe,!y[we][1]){y.splice(we,1),q--;var te=we-1;y[te]&&y[te][0]===i&&(oe++,pe=y[te][1]+pe,te--),y[te]&&y[te][0]===T&&(J++,se=y[te][1]+se,te--),we=te}}K(y[q][1])&&(S=y[q][1].charAt(0),y[q][1]=y[q][1].slice(1),se+=S,pe+=S)}if(q<y.length-1&&!y[q][1]){y.splice(q,1);break}if(se.length>0||pe.length>0){se.length>0&&pe.length>0&&((G=w(pe,se))!==0&&(we>=0?y[we][1]+=pe.substring(0,G):(y.splice(0,0,[m,pe.substring(0,G)]),q++),pe=pe.substring(G),se=se.substring(G)),(G=c(pe,se))!==0&&(y[q][1]=pe.substring(pe.length-G)+y[q][1],pe
38=pe.substring(0,pe.length-G),se=se.substring(0,se.length-G)));var ee=oe+J;se.length===0&&pe.length===0?(y.splice(q-ee,ee),q-=ee):se.length===0?(y.splice(q-ee,ee,[i,pe]),q=q-ee+1):pe.length===0?(y.splice(q-ee,ee,[T,se]),q=q-ee+1):(y.splice(q-ee,ee,[T,se],[i,pe]),q=q-ee+2)}q!==0&&y[q-1][0]===m?(y[q-1][1]+=y[q][1],y.splice(q,1)):q++,oe=0,J=0,se="",pe=""}y[y.length-1][1]===""&&y.pop();var s=!1;for(q=1;q<y.length-1;)y[q-1][0]===m&&y[q+1][0]===m&&(y[q][1].substring(y[q][1].length-y[q-1][1].length)===y[q-1][1]?(y[q][1]=y[q-1][1]+y[q][1].substring(0,y[q][1].length-y[q-1][1].length),y[q+1][1]=y[q-1][1]+y[q+1][1],y.splice(q-1,1),s=!0):y[q][1].substring(0,y[q+1][1].length)==y[q+1][1]&&(y[q-1][1]+=y[q+1][1],y[q][1]=y[q][1].substring(y[q+1][1].length)+y[q+1][1],y.splice(q+1,1),s=!0)),q++;s&&_(y,M)}function j(y){return y>=55296&&y<=56319}function $(y){return y>=56320&&y<=57343}function K(y){return $(y.charCodeAt(0))}function re(y){return j(y.charCodeAt(y.length-1))}function le(y,M,G,q){return re(y)||K(q)?null:function(J){for(var oe=[],se=0;se<J.length;se++)J[se][1].length>0&&oe.push(J[se]);return oe}([[m,y],[T,M],[i,G],[m,q]])}function V(y,M,G,q){return E(y,M,G,q,!0)}V.INSERT=i,V.DELETE=T,V.EQUAL=m,X.exports=V},9629:function(X,T,i){X=i.nmd(X);var m="__lodash_hash_undefined__",E=9007199254740991,C="[object Arguments]",w="[object Boolean]",k="[object Date]",c="[object Function]",x="[object GeneratorFunction]",d="[object Map]",A="[object Number]",P="[object Object]",h="[object Promise]",_="[object RegExp]",j="[object Set]",$="[object String]",K="[object Symbol]",re="[object WeakMap]",le="[object ArrayBuffer]",V="[object DataView]",y="[object Float32Array]",M="[object Float64Array]",G="[object Int8Array]",q="[object Int16Array]",J="[object Int32Array]",oe="[object Uint8Array]",se="[object Uint8ClampedArray]",pe="[object Uint16Array]",we="[object Uint32Array]",S=/\w*$/,te=/^\[object .+?Constructor\]$/,ee=/^(?:0|[1-9]\d*)$/,s={};s[C]=s["[object Array]"]=s[le]=s[V]=s[w]=s[k]=s[y]=s[M]=s[G]=s[q]=s[J]=s[d]=s[A]=s[P]=s[_]=s[j]=s[$]=s[K]=s[oe]=s[se]=s[pe]=s[we]=!0,s["[object Error]"]=s[c]=s[re]=!1;var n=typeof i.g=="object"&&i.g&&i.g.Object===Object&&i.g,r=typeof self=="object"&&self&&self.Object===Object&&self,a=n||r||Function("return this")(),B=T&&!T.nodeType&&T,g=B&&X&&!X.nodeType&&X,O=g&&g.exports===B;function D(H,b){return H.set(b[0],b[1]),H}function I(H,b){return H.add(b),H}function v(H,b,R,W){var he=-1,je=H?H.length:0;for(W&&je&&(R=H[++he]);++he<je;)R=b(R,H[he],he,H);return R}function l(H){var b=!1;if(H!=null&&typeof H.toString!="function")try{b=!!(H+"")}catch{}return b}function f(H){var b=-1,R=Array(H.size);return H.forEach(function(W,he){R[++b]=[he,W]}),R}function p(H,b){return function(R){return H(b(R))}}function N(H){var b=-1,R=Array(H.size);return H.forEach(function(W){R[++b]=W}),R}var L,U=Array.prototype,Q=Function.prototype,Z=Object.prototype,ne=a["__core-js_shared__"],ce=(L=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",ue=Q.toString,ae=Z.hasOwnProperty,be=Z.toString,fe=RegExp("^"+ue.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=O?a.Buffer:void 0,Te=a.Symbol,$e=a.Uint8Array,Me=p(Object.getPrototypeOf,Object),ge=Object.create,Ee=Z.propertyIsEnumerable,ke=U.splice,Ue=Object.getOwnPropertySymbols,Se=ye?ye.isBuffer:void 0,We=p(Object.keys,Object),nt=sn(a,"DataView"),ht=sn(a,"Map"),it=sn(a,"Promise"),nn=sn(a,"Set"),mn=sn(a,"WeakMap"),rn=sn(Object,"create"),Wn=at(nt),Kn=at(ht),Dn=at(it),wn=at(nn),Nt=at(mn),vt=Te?Te.prototype:void 0,Ut=vt?vt.valueOf:void 0;function Lt(H){var b=-1,R=H?H.length:0;for(this.clear();++b<R;){var W=H[b];this.set(W[0],W[1])}}function bt(H){var b=-1,R=H?H.length:0;for(this.clear();++b<R;){var W=H[b];this.set(W[0],W[1])}}function Bt(H){var b=-1,R=H?H.length:0;for(this.clear();++b<R;){var W=H[b];this.set(W[0],W[1])}}function jt(H){this.__data__=new bt(H)}function dn(H,b,R){var W=H[b];ae.call(H,b)&&Ft(W,R)&&(R!==void 0||b in H)||(H[b]=R)}function It(H,b){for(var R=H.length;R--;)if(Ft(H[R][0],b))return R;return-1}function Gt(H,b,R,W,he,je,xe){var Oe;if(W&&(Oe=je?W(H,he,je,xe):W(H)),Oe!==void 0)return Oe;if(!Rt(H))return H;var Ye=Dt(H);if(Ye){if(Oe=function(_e){var Ne=_e.length,Be=_e.constructor(Ne);return Ne&&typeof _e[0]=="string"&&ae.call(_e,"index")&&(Be.index=_e.index,Be.input
vendor: 6,073 bytes, line 38
38=_e.input),Be}(H),!b)return function(_e,Ne){var Be=-1,He=_e.length;for(Ne||(Ne=Array(He));++Be<He;)Ne[Be]=_e[Be];return Ne}(H,Oe)}else{var Ke=ot(H),ft=Ke==c||Ke==x;if(Yt(H))return function(_e,Ne){if(Ne)return _e.slice();var Be=new _e.constructor(_e.length);return _e.copy(Be),Be}(H,b);if(Ke==P||Ke==C||ft&&!je){if(l(H))return je?H:{};if(Oe=function(_e){return typeof _e.constructor!="function"||yt(_e)?{}:Rt(Ne=Me(_e))?ge(Ne):{};var Ne}(ft?{}:H),!b)return function(_e,Ne){return Qt(_e,_t(_e),Ne)}(H,function(_e,Ne){return _e&&Qt(Ne,$t(Ne),_e)}(Oe,H))}else{if(!s[Ke])return je?H:{};Oe=function(_e,Ne,Be,He){var Mt,wt=_e.constructor;switch(Ne){case le:return bn(_e);case w:case k:return new wt(+_e);case V:return function(Ie,lt){var xt=lt?bn(Ie.buffer):Ie.buffer;return new Ie.constructor(xt,Ie.byteOffset,Ie.byteLength)}(_e,He);case y:case M:case G:case q:case J:case oe:case se:case pe:case we:return function(Ie,lt){var xt=lt?bn(Ie.buffer):Ie.buffer;return new Ie.constructor(xt,Ie.byteOffset,Ie.length)}(_e,He);case d:return function(Ie,lt,xt){return v(lt?xt(f(Ie),!0):f(Ie),D,new Ie.constructor)}(_e,He,Be);case A:case $:return new wt(_e);case _:return function(Ie){var lt=new Ie.constructor(Ie.source,S.exec(Ie));return lt.lastIndex=Ie.lastIndex,lt}(_e);case j:return function(Ie,lt,xt){return v(lt?xt(N(Ie),!0):N(Ie),I,new Ie.constructor)}(_e,He,Be);case K:return Mt=_e,Ut?Object(Ut.call(Mt)):{}}}(H,Ke,Gt,b)}}xe||(xe=new jt);var ct=xe.get(H);if(ct)return ct;if(xe.set(H,Oe),!Ye)var ut=R?function(_e){return function(Ne,Be,He){var Mt=Be(Ne);return Dt(Ne)?Mt:function(wt,Ie){for(var lt=-1,xt=Ie.length,on=wt.length;++lt<xt;)wt[on+lt]=Ie[lt];return wt}(Mt,He(Ne))}(_e,$t,_t)}(H):$t(H);return function(_e,Ne){for(var Be=-1,He=_e?_e.length:0;++Be<He&&Ne(_e[Be],Be)!==!1;);}(ut||H,function(_e,Ne){ut&&(_e=H[Ne=_e]),dn(Oe,Ne,Gt(_e,b,R,W,Ne,H,xe))}),Oe}function bn(H){var b=new H.constructor(H.byteLength);return new $e(b).set(new $e(H)),b}function Qt(H,b,R,W){R||(R={});for(var he=-1,je=b.length;++he<je;){var xe=b[he],Oe=W?W(R[xe],H[xe],xe,R,H):void 0;dn(R,xe,Oe===void 0?H[xe]:Oe)}return R}function Pt(H,b){var R,W,he=H.__data__;return((W=typeof(R=b))=="string"||W=="number"||W=="symbol"||W=="boolean"?R!=="__proto__":R===null)?he[typeof b=="string"?"string":"hash"]:he.map}function sn(H,b){var R=function(W,he){return W?.[he]}(H,b);return function(W){return!(!Rt(W)||(he=W,ce&&ce in he))&&(yn(W)||l(W)?fe:te).test(at(W));var he}(R)?R:void 0}Lt.prototype.clear=function(){this.__data__=rn?rn(null):{}},Lt.prototype.delete=function(H){return this.has(H)&&delete this.__data__[H]},Lt.prototype.get=function(H){var b=this.__data__;if(rn){var R=b[H];return R===m?void 0:R}return ae.call(b,H)?b[H]:void 0},Lt.prototype.has=function(H){var b=this.__data__;return rn?b[H]!==void 0:ae.call(b,H)},Lt.prototype.set=function(H,b){return this.__data__[H]=rn&&b===void 0?m:b,this},bt.prototype.clear=function(){this.__data__=[]},bt.prototype.delete=function(H){var b=this.__data__,R=It(b,H);return!(R<0||(R==b.length-1?b.pop():ke.call(b,R,1),0))},bt.prototype.get=function(H){var b=this.__data__,R=It(b,H);return R<0?void 0:b[R][1]},bt.prototype.has=function(H){return It(this.__data__,H)>-1},bt.prototype.set=function(H,b){var R=this.__data__,W=It(R,H);return W<0?R.push([H,b]):R[W][1]=b,this},Bt.prototype.clear=function(){this.__data__={hash:new Lt,map:new(ht||bt),string:new Lt}},Bt.prototype.delete=function(H){return Pt(this,H).delete(H)},Bt.prototype.get=function(H){return Pt(this,H).get(H)},Bt.prototype.has=function(H){return Pt(this,H).has(H)},Bt.prototype.set=function(H,b){return Pt(this,H).set(H,b),this},jt.prototype.clear=function(){this.__data__=new bt},jt.prototype.delete=function(H){return this.__data__.delete(H)},jt.prototype.get=function(H){return this.__data__.get(H)},jt.prototype.has=function(H){return this.__data__.has(H)},jt.prototype.set=function(H,b){var R=this.__data__;if(R instanceof bt){var W=R.__data__;if(!ht||W.length<199)return W.push([H,b]),this;R=this.__data__=new Bt(W)}return R.set(H,b),this};var _t=Ue?p(Ue,Object):function(){return[]},ot=function(H){return be.call(H)};function dt(H,b){return!!(b=b??E)&&(typeof H=="number"||ee.test(H))&&H>-1&&H%1==0&&H<b}function yt(H){var b=H&&H.constructor;return H===(typeof b=="function"&&b.prototype||Z)}function at(H){if(H!=null){try{return ue.call(H)}catch{}try{return H+""}catch{}}return""}function Ft(H,b){return H===b||H!=H&&b!=b}(nt&&ot(new nt(new ArrayBuffer(1)))!=V||ht&&ot(new ht)!=d||it&&ot(it.resolve())!=h||nn&&ot(new nn)!=j||mn&&ot(new mn)!=re)&&(ot=function(H){var b=be.call(H),R=b==P?H.constructor:void 0,W=R?at(R):void 0;if(W)switch(W){case Wn:return V;case Kn:return d;case Dn:return h;case wn:return j;case Nt:return re}return b});var Dt=Array.isArray;function qt(H){return H!=null&&function(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=E}(H.length)&&!yn(H)}var Yt=Se||function(){return!1};function yn(H){var b=Rt(H)?be.call(H):"";return b==c||b==x}function Rt(H){var b=typeof H;return!!H&&(b=="object"||b=="function")}function $t(H){return qt(H)?function(b,R){var W=Dt(b)||function(Oe){return function(Ye){return function(Ke){return!!Ke&&typeof Ke=="object"}(Ye)&&qt(Ye)}(Oe)&&ae.call(Oe,"callee")&&(!Ee.call(Oe,"callee")||be.call(Oe)==C)}(b)?function(Oe,Ye){for(var Ke=-1,ft=Array(Oe);++Ke<Oe;)ft[Ke]=Ye(Ke);return ft}(b.length,String):[],he=W.length,je=!!he;for(var xe in b)!R&&!ae.call(b,xe)||je&&(xe=="length"||dt(xe,he))||W.push(xe);return W}(H):function(b){if(!yt(b))return We(b);var R=[];for(var W in Object(b))ae.call(b,W)&&W!="constructor"&&R.push(W);return R}(H)}X.exports=function(H){return Gt(H,!0,!0)}},4162:function(X,T,i){X=i.nmd(X);var m="__lodash_hash_undefined__",E=1,C=2,w=9007199254740991,k="[object Arguments]",c="[object Array]",x="[object AsyncFunction]",d="[object Boolean]",A="[object Date]",P="[object Error]",h="[object Function]",_="[object GeneratorFunction]",j="[object Map]",$="[object Number]",K="[object Null]",re="[object Object]",le="[object Promise]",V="[object Proxy]",y="[object RegExp]",M="[object Set]",G="[object String]",q="[object Undef
38ined]",J="[object WeakMap]",oe="[object ArrayBuffer]",se="[object DataView]",pe=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[k]=S[c]=S[oe]=S[d]=S[se]=S[A]=S[P]=S[h]=S[j]=S[$]=S[re]=S[y]=S[M]=S[G]=S[J]=!1;var te=typeof i.g=="object"&&i.g&&i.g.Object===Object&&i.g,ee=typeof self=="object"&&self&&self.Object===Object&&self,s=te||ee||Function("return this")(),n=T&&!T.nodeType&&T,r=n&&X&&!X.nodeType&&X,a=r&&r.exports===n,B=a&&te.process,g=function(){try{return B&&B.binding&&B.binding("util")}catch{}}(),O=g&&g.isTypedArray;function D(b,R){for(var W=-1,he=b==null?0:b.length;++W<he;)if(R(b[W],W,b))return!0;return!1}function I(b){var R=-1,W=Array(b.size);return b.forEach(function(he,je){W[++R]=[je,he]}),W}function v(b){var R=-1,W=Array(b.size);return b.forEach(function(he){W[++R]=he}),W}var l,f,p,N=Array.prototype,L=Function.prototype,U=Object.prototype,Q=s["__core-js_shared__"],Z=L.toString,ne=U.hasOwnProperty,ce=(l=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",ue=U.toString,ae=RegExp("^"+Z.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=a?s.Buffer:void 0,fe=s.Symbol,ye=s.Uint8Array,Te=U.propertyIsEnumerable,$e=N.splice,Me=fe?fe.toStringTag:void 0,ge=Object.getOwnPropertySymbols,Ee=be?be.isBuffer:void 0,ke=(f=Object.keys,p=Object,function(b){return f(p(b))}),Ue=Pt(s,"DataView"),Se=Pt(s,"Map"),We=Pt(s,"Promise"),nt=Pt(s,"Set"),ht=Pt(s,"WeakMap"),it=Pt(Object,"create"),nn=dt(Ue),mn=dt(Se),rn=dt(We),Wn=dt(nt),Kn=dt(ht),Dn=fe?fe.prototype:void 0,wn=Dn?Dn.valueOf:void 0;function Nt(b){var R=-1,W=b==null?0:b.length;for(this.clear();++R<W;){var he=b[R];this.set(he[0],he[1])}}function vt(b){var R=-1,W=b==null?0:b.length;for(this.clear();++R<W;){var he=b[R];this.set(he[0],he[1])}}function Ut(b){var R=-1,W=b==null?0:b.length;for(this.clear();++R<W;){var he=b[R];this.set(he[0],he[1])}}function Lt(b){var R=-1,W=b==null?0:b.length;for(this.__data__=new Ut;++R<W;)this.add(b[R])}function bt(b){var R=this.__data__=new vt(b);this.size=R.size}function Bt(b,R){for(var W=b.length;W--;)if(yt(b[W][0],R))return W;return-1}function jt(b){return b==null?b===void 0?q:K:Me&&Me in Object(b)?function(R){var W=ne.call(R,Me),he=R[Me];try{R[Me]=void 0;var je=!0}catch{}var xe=ue.call(R);return je&&(W?R[Me]=he:delete R[Me]),xe}(b):function(R){return ue.call(R)}(b)}function dn(b){return Rt(b)&&jt(b)==k}function It(b,R,W,he,je){return b===R||(b==null||R==null||!Rt(b)&&!Rt(R)?b!=b&&R!=R:function(xe,Oe,Ye,Ke,ft,ct){var ut=Ft(xe),_e=Ft(Oe),Ne=ut?c:_t(xe),Be=_e?c:_t(Oe),He=(Ne=Ne==k?re:Ne)==re,Mt=(Be=Be==k?re:Be)==re,wt=Ne==Be;if(wt&&Dt(xe)){if(!Dt(Oe))return!1;ut=!0,He=!1}if(wt&&!He)return ct||(ct=new bt),ut||$t(xe)?Gt(xe,Oe,Ye,Ke,ft,ct):function(Xe,Ve,Jt,Ht,Rn,pt,Zt){switch(Jt){case se:if(Xe.byteLength!=Ve.byteLength||Xe.byteOffset!=Ve.byteOffset)return!1;Xe=Xe.buffer,Ve=Ve.buffer;case oe:return!(Xe.byteLength!=Ve.byteLength||!pt(new ye(Xe),new ye(Ve)));case d:case A:case $:return yt(+Xe,+Ve);case P:return Xe.name==Ve.name&&Xe.message==Ve.message;case y:case G:return Xe==Ve+"";case j:var Et=I;case M:var an=Ht&E;if(Et||(Et=v),Xe.size!=Ve.size&&!an)return!1;var ln=Zt.get(Xe);if(ln)return ln==Ve;Ht|=C,Zt.set(Xe,Ve);var Ct=Gt(Et(Xe),Et(Ve),Ht,Rn,pt,Zt);return Zt.delete(Xe),Ct;case"[object Symbol]":if(wn)return wn.call(Xe)==wn.call(Ve)}return!1}(xe,Oe,Ne,Ye,Ke,ft,ct);if(!(Ye&E)){var Ie=He&&ne.call(xe,"__wrapped__"),lt=Mt&&ne.call(Oe,"__wrapped__");
38if(Ie||lt){var xt=Ie?xe.value():xe,on=lt?Oe.value():Oe;return ct||(ct=new bt),ft(xt,on,Ye,Ke,ct)}}return!!wt&&(ct||(ct=new bt),function(Xe,Ve,Jt,Ht,Rn,pt){var Zt=Jt&E,Et=bn(Xe),an=Et.length;if(an!=bn(Ve).length&&!Zt)return!1;for(var ln=an;ln--;){var Ct=Et[ln];if(!(Zt?Ct in Ve:ne.call(Ve,Ct)))return!1}var Mn=pt.get(Xe);if(Mn&&pt.get(Ve))return Mn==Ve;var cn=!0;pt.set(Xe,Ve),pt.set(Ve,Xe);for(var Bn=Zt;++ln<an;){var En=Xe[Ct=Et[ln]],Nn=Ve[Ct];if(Ht)var fn=Zt?Ht(Nn,En,Ct,Ve,Xe,pt):Ht(En,Nn,Ct,Xe,Ve,pt);if(!(fn===void 0?En===Nn||Rn(En,Nn,Jt,Ht,pt):fn)){cn=!1;break}Bn||(Bn=Ct=="constructor")}if(cn&&!Bn){var Pn=Xe.constructor,xn=Ve.constructor;Pn==xn||!("constructor"in Xe)||!("constructor"in Ve)||typeof Pn=="function"&&Pn instanceof Pn&&typeof xn=="function"&&xn instanceof xn||(cn=!1)}return pt.delete(Xe),pt.delete(Ve),cn}(xe,Oe,Ye,Ke,ft,ct))}(b,R,W,he,It,je))}function Gt(b,R,W,he,je,xe){var Oe=W&E,Ye=b.length,Ke=R.length;if(Ye!=Ke&&!(Oe&&Ke>Ye))return!1;var ft=xe.get(b);if(ft&&xe.get(R))return ft==R;var ct=-1,ut=!0,_e=W&C?new Lt:void 0;for(xe.set(b,R),xe.set(R,b);++ct<Ye;){var Ne=b[ct],Be=R[ct];if(he)var He=Oe?he(Be,Ne,ct,R,b,xe):he(Ne,Be,ct,b,R,xe);if(He!==void 0){if(He)continue;ut=!1;break}if(_e){if(!D(R,function(Mt,wt){if(Ie=wt,!_e.has(Ie)&&(Ne===Mt||je(Ne,Mt,W,he,xe)))return _e.push(wt);var Ie})){ut=!1;break}}else if(Ne!==Be&&!je(Ne,Be,W,he,xe)){ut=!1;break}}return xe.delete(b),xe.delete(R),ut}function bn(b){return function(R,W,he){var je=W(R);return Ft(R)?je:function(xe,Oe){for(var Ye=-1,Ke=Oe.length,ft=xe.length;++Ye<Ke;)xe[ft+Ye]=Oe[Ye];return xe}(je,he(R))}(b,H,sn)}function Qt(b,R){var W,he,je=b.__data__;return((he=typeof(W=R))=="string"||he=="number"||he=="symbol"||he=="boolean"?W!=="__proto__":W===null)?je[typeof R=="string"?"string":"hash"]:je.map}function Pt(b,R){var W=function(he,je){return he?.[je]}(b,R);return function(he){return!(!yn(he)||function(je){return!!ce&&ce in je}(he))&&(qt(he)?ae:pe).test(dt(he))}(W)?W:void 0}Nt.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},Nt.prototype.delete=function(b){var R=this.has(b)&&delete this.__data__[b];return this.size-=R?1:0,R},Nt.prototype.get=function(b){var R=this.__data__;if(it){var W=R[b];return W===m?void 0:W}
38return ne.call(R,b)?R[b]:void 0},Nt.prototype.has=function(b){var R=this.__data__;return it?R[b]!==void 0:ne.call(R,b)},Nt.prototype.set=function(b,R){var W=this.__data__;return this.size+=this.has(b)?0:1,W[b]=it&&R===void 0?m:R,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(b){var R=this.__data__,W=Bt(R,b);return!(W<0||(W==R.length-1?R.pop():$e.call(R,W,1),--this.size,0))},vt.prototype.get=function(b){var R=this.__data__,W=Bt(R,b);return W<0?void 0:R[W][1]},vt.prototype.has=function(b){return Bt(this.__data__,b)>-1},vt.prototype.set=function(b,R){var W=this.__data__,he=Bt(W,b);return he<0?(++this.size,W.push([b,R])):W[he][1]=R,this},Ut.prototype.clear=function(){this.size=0,this.__data__={hash:new Nt,map:new(Se||vt),string:new Nt}},Ut.prototype.delete=function(b){var R=Qt(this,b).delete(b);return this.size-=R?1:0,R},Ut.prototype.get=function(b){return Qt(this,b).get(b)},Ut.prototype.has=function(b){return Qt(this,b).has(b)},Ut.prototype.set=function(b,R){var W=Qt(this,b),he=W.size;return W.set(b,R),this.size+=W.size==he?0:1,this},Lt.prototype.add=Lt.prototype.push=function(b){return this.__data__.set(b,m),this},Lt.prototype.has=function(b){return this.__data__.has(b)},bt.prototype.clear=function(){this.__data__=new vt,this.size=0},bt.prototype.delete=function(b){var R=this.__data__,W=R.delete(b);return this.size=R.size,W},bt.prototype.get=function(b){return this.__data__.get(b)},bt.prototype.has=function(b){return this.__data__.has(b)},bt.prototype.set=function(b,R){var W=this.__data__;if(W instanceof vt){var he=W.__data__;if(!Se||he.length<199)return he.push([b,R]),this.size=++W.size,this;W=this.__data__=new Ut(he)}return W.set(b,R),this.size=W.size,this};var sn=ge?function(b){return b==null?[]:(b=Object(b),function(R,W){for(var he=-1,je=R==null?0:R.length,xe=0,Oe=[];++he<je;){var Ye=R[he];Ke=Ye,Te.call(b,Ke)&&(Oe[xe++]=Ye)}var Ke;return Oe}(ge(b)))}:function(){return[]},_t=jt;function ot(b,R){return!!(R=R??w)&&(typeof b=="number"||we.test(b))&&b>-1&&b%1==0&&b<R}function dt(b){if(b!=null){try{return Z.call(b)}catch{}try{return b+""}catch{}}return""}function yt(b,R){return b===R||b!=b&&R!=R}(Ue&&_t(new Ue(new ArrayBuffer(1)))!=se||Se&&_t(new Se)!=j||We&&_t(We.resolve())!=le||nt&&_t(new nt)!=M||ht&&_t(new ht)!=J)&&(_t=function(b){var R=jt(b),W=R==re?b.constructor:void 0,he=W?dt(W):"";if(he)switch(he){case nn:return se;case mn:return j;case rn:return le;case Wn:return M;case Kn:return J}return R});var at=dn(function(){return arguments}())?dn:function(b){return Rt(b)&&ne.call(b,"callee")&&!Te.call(b,"callee")},Ft=Array.isArray,Dt=Ee||function(){return!1};function qt(b){if(!yn(b))return!1;var R=jt(b);return R==h||R==_||R==x||R==V}function Yt(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=w}function yn(b){var R=typeof b;return b!=null&&(R=="object"||R=="function")}function Rt(b){return b!=null&&typeof b=="object"}var $t=O?function(b){return function(R){return b(R)}}(O):function(b){return Rt(b)&&Yt(b.length)&&!!S[jt(b)]};function H(b){return(R=b)!=null&&Yt(R.length)&&!qt(R)?function(W,he){var je=Ft(W),xe=!je&&at(W),Oe=!je&&!xe&&Dt(W),Ye=!je&&!xe&&!Oe&&$t(W),Ke=je||xe||Oe||Ye,ft=Ke?function(_e,Ne){for(var Be=-1,He=Array(_e);++Be<_e;)He[Be]=Ne(Be);return He}(W.length,String):[],ct=ft.length;for(var ut in W)!he&&!ne.call(W,ut)||Ke&&(ut=="length"||Oe&&(ut=="offset"||ut=="parent")||Ye&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||ot(ut,ct))||ft.push(ut);return ft}(b):function(W){if(je=(he=W)&&he.constructor,he!==(typeof je=="function"&&je.prototype||U))return ke(W);var he,je,xe=[];for(var Oe in Object(W))ne.call(W,Oe)&&Oe!="constructor"&&xe.push(Oe);return xe}(b);var R}X.exports=function(b,R){return It(b,R)}},1270:function(X,T,i){"use strict";Object.defineProperty(T,"__esModule",{value:!0});const m=i(9629),E=i(4162);var C;(function(w){w.compose=function(k={},c={},x=!1){typeof k!="object"&&(k={}),typeof c!="object"&&(c={});let d=m(c);x||(d=Object.keys(d).reduce((A,P)=>(d[P]!=null&&(A[P]=d[P]),A),{}));for(const A in k)k[A]!==void 0&&c[A]===void 0&&(d[A]=k[A]);return Object.keys(d).length>0?d:void 0},w.diff=function(k={},c={}){typeof k!="object"&&(k={}),typeof c!="object"&&(c={});const x=Object.keys(k).concat(Object.keys(c)).reduce((d,A)=>(E(k[A],c[A])||(d[A]=c[A]===void 0?null:c[A]),d),{});return Object.keys(x).length>0?x:void 0},w.invert=function(k={},c={}){k=k||{};const x=Object.keys(c).reduce((d,A)=>(c[A]!==k[A]&&k[A]!==void 0&&(d[A]=c[A]),d),{});return Object.keys(k).reduce((d,A)=>(k[A]!==c[A]&&c[A]===void 0&&(d[A]=null),d),x)},w.transform=function(k,c,x=!1){if(typeof k!="object")return c;if(typeof c!="object")return;if(!x)return c;const d=Object.keys(c).reduce((A,P)=>(k[P]===void 0&&(A[P]=c[P]),A),{});return Object.keys(d).length>0?d:void 0}})(C||(C={})),T.default=C},5232:function(X,T,i){"use strict";
38Object.defineProperty(T,"__esModule",{value:!0}),T.AttributeMap=T.OpIterator=T.Op=void 0;const m=i(5090),E=i(9629),C=i(4162),w=i(1270);T.AttributeMap=w.default;const k=i(4123);T.Op=k.default;const c=i(7033);T.OpIterator=c.default;const x="\0",d=(P,h)=>{if(typeof P!="object"||P===null)throw new Error("cannot retain a "+typeof P);if(typeof h!="object"||h===null)throw new Error("cannot retain a "+typeof h);const _=Object.keys(P)[0];if(!_||_!==Object.keys(h)[0])throw new Error(`embed types not matched: ${_} != ${Object.keys(h)[0]}`);return[_,P[_],h[_]]};class A{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,_){this.handlers[h]=_}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const _=this.handlers[h];if(!_)throw new Error(`no handlers for embed type "${h}"`);return _}insert(h,_){const j={};return typeof h=="string"&&h.length===0?this:(j.insert=h,_!=null&&typeof _=="object"&&Object.keys(_).length>0&&(j.attributes=_),this.push(j))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,_){if(typeof h=="number"&&h<=0)return this;const j={retain:h};return _!=null&&typeof _=="object"&&Object.keys(_).length>0&&(j.attributes=_),this.push(j)}push(h){let _=this.ops.length,j=this.ops[_-1];if(h=E(h),typeof j=="object"){if(typeof h.delete=="number"&&typeof j.delete=="number")return this.ops[_-1]={delete:j.delete+h.delete},this;if(typeof j.delete=="number"&&h.insert!=null&&(_-=1,j=this.ops[_-1],typeof j!="object"))return this.ops.unshift(h),this;if(C(h.attributes,j.attributes)){if(typeof h.insert=="string"&&typeof j.insert=="string")return this.ops[_-1]={insert:j.insert+h.insert},typeof h.attributes=="object"&&(this.ops[_-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof j.retain=="number")return this.ops[_-1]={retain:j.retain+h.retain},typeof h.attributes=="object"&&(this.ops[_-1].attributes=h.attributes),this}}return _===this.ops.length?this.ops.push(h):this.ops.splice(_,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const _=[],j=[];return this.forEach($=>{(h($)?_:j).push($)}),[_,j]}reduce(h,_){return this.ops.reduce(h,_)}changeLength(){return this.reduce((h,_)=>_.insert?h+k.default.length(_):_.delete?h-_.delete:h,0)}length(){return this.reduce((h,_)=>h+k.default.length(_),0)}slice(h=0,_=1/0){const j=[],$=new c.default(this.ops);let K=0;for(;K<_&&$.hasNext();){let re;K<h?re=$.next(h-K):(re=$.next(_-K),j.push(re)),K+=k.default.length(re)}return new A(j)}compose(h){const _=new c.default(this.ops),j=new c.default(h.ops),$=[],K=j.peek();if(K!=null&&typeof K.retain=="number"&&K.attributes==null){let le=K.retain;for(;_.peekType()==="insert"&&_.peekLength()<=le;)le-=_.peekLength(),$.push(_.next());K.retain-le>0&&j.next(K.retain-le)}const re=new A($);for(;_.hasNext()||j.hasNext();)if(j.peekType()==="insert")re.push(j.next());else if(_.peekType()==="delete")re.push(_.next());else{const le=Math.min(_.peekLength(),j.peekLength()),V=_.next(le),y=j.next(le);if(y.retain){const M={};if(typeof V.retain=="number")M.retain=typeof y.retain=="number"?le:y.retain;else if(typeof y.retain=="number")V.retain==null?M.insert=V.insert:M.retain=V.retain;else{const q=V.retain==null?"insert":"retain",[J,oe,se]=d(V[q],y.retain),pe=A.getHandler(J);M[q]={[J]:pe.compose(oe,se,q==="retain")}}const G=w.default.compose(V.attributes,y.attributes,typeof V.retain=="number");if(G&&(M.attributes=G),re.push(M),!j.hasNext()&&C(re.ops[re.ops.length-1],M)){const q=new A(_.rest());return re.concat(q).chop()}}else typeof y.delete=="number"&&(typeof V.retain=="number"||typeof V.retain=="object"&&V.retain!==null)&&re.push(y)}return re.chop()}concat(h){const _=new A(this.ops.slice());return h.ops.length>0&&(_.push(h.ops[0]),_.ops=_.ops.concat(h.ops.slice(1))),_}diff(h,_){if(this.ops===h.ops)return new A;const j=[this,h].map(V=>V.map(y=>{if(y.insert!=null)return typeof y.insert=="string"?y.insert:x;throw new Error("diff() called "+(V===h?"on":"with")+" non-document")}).join("")),$=new A,K=m(j[0],j[1],_,!0),re=new c.default(this.ops),le=new c.default(h.ops);
38return K.forEach(V=>{let y=V[1].length;for(;y>0;){let M=0;switch(V[0]){case m.INSERT:M=Math.min(le.peekLength(),y),$.push(le.next(M));break;case m.DELETE:M=Math.min(y,re.peekLength()),re.next(M),$.delete(M);break;case m.EQUAL:M=Math.min(re.peekLength(),le.peekLength(),y);const G=re.next(M),q=le.next(M);C(G.insert,q.insert)?$.retain(M,w.default.diff(G.attributes,q.attributes)):$.push(q).delete(M)}y-=M}}),$.chop()}eachLine(h,_=` 39`){const j=new c.default(this.ops);let $=new A,K=0;for(;j.hasNext();){if(j.peekType()!=="insert")return;const re=j.peek(),le=k.default.length(re)-j.peekLength(),V=typeof re.insert=="string"?re.insert.indexOf(_,le)-le:-1;if(V<0)$.push(j.next());else if(V>0)$.push(j.next(V));else{if(h($,j.next(1).attributes||{},K)===!1)return;K+=1,$=new A}}$.length()>0&&h($,{},K)}invert(h){const _=new A;return this.reduce((j,$)=>{if($.insert)_.delete(k.default.length($));else{if(typeof $.retain=="number"&&$.attributes==null)return _.retain($.retain),j+$.retain;if($.delete||typeof $.retain=="number"){const K=$.delete||$.retain;
39return h.slice(j,j+K).forEach(re=>{$.delete?_.push(re):$.retain&&$.attributes&&_.retain(k.default.length(re),w.default.invert($.attributes,re.attributes))}),j+K}if(typeof $.retain=="object"&&$.retain!==null){const K=h.slice(j,j+1),re=new c.default(K.ops).next(),[le,V,y]=d($.retain,re.insert),M=A.getHandler(le);return _.retain({[le]:M.invert(V,y)},w.default.invert($.attributes,re.attributes)),j+1}}return j},0),_.chop()}transform(h,_=!1){if(_=!!_,typeof h=="number")return this.transformPosition(h,_);const j=h,$=new c.default(this.ops),K=new c.default(j.ops),re=new A;for(;$.hasNext()||K.hasNext();)if($.peekType()!=="insert"||!_&&K.peekType()==="insert")if(K.peekType()==="insert")re.push(K.next());else{const le=Math.min($.peekLength(),K.peekLength()),V=$.next(le),y=K.next(le);if(V.delete)continue;if(y.delete)re.push(y);else{const M=V.retain,G=y.retain;let q=typeof G=="object"&&G!==null?G:le;if(typeof M=="object"&&M!==null&&typeof G=="object"&&G!==null){const J=Object.keys(M)[0];if(J===Object.keys(G)[0]){const oe=A.getHandler(J);oe&&(q={[J]:oe.transform(M[J],G[J],_)})}}re.retain(q,w.default.transform(V.attributes,y.attributes,_))}}else re.retain(k.default.length($.next()));return re.chop()}transformPosition(h,_=!1){_=!!_;const j=new c.default(this.ops);let $=0;for(;j.hasNext()&&$<=h;){const K=j.peekLength(),re=j.peekType();j.next(),re!=="delete"?(re==="insert"&&($<h||!_)&&(h+=K),$+=K):h-=Math.min(K,h-$)}return h}}A.Op=k.default,A.OpIterator=c.default,A.AttributeMap=w.default,A.handlers={},T.default=A,X.exports=A,X.exports.default=A},4123:function(X,T){"use strict";var i;Object.defineProperty(T,"__esModule",{value:!0}),function(m){m.length=function(E){return typeof E.delete=="number"?E.delete:typeof E.retain=="number"?E.retain:typeof E.retain=="object"&&E.retain!==null?1:typeof E.insert=="string"?E.insert.length:1}}(i||(i={})),T.default=i},7033:function(X,T,i){"use strict";Object.defineProperty(T,"__esModule",{value:!0});const m=i(4123);T.default=class{constructor(E){this.ops=E,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(E){E||(E=1/0);const C=this.ops[this.index];if(C){const w=this.offset,k=m.default.length(C);if(E>=k-w?(E=k-w,this.index+=1,this.offset=0):this.offset+=E,typeof C.delete=="number")return{delete:E};{const c={};return C.attributes&&(c.attributes=C.attributes),typeof C.retain=="number"?c.retain=E:typeof C.retain=="object"&&C.retain!==null?c.retain=C.retain:typeof C.insert=="string"?c.insert=C.insert.substr(w,E):c.insert=C.insert,c}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?m.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const E=this.ops[this.index];return E?typeof E.delete=="number"?"delete":typeof E.retain=="number"||typeof E.retain=="object"&&E.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const E=this.offset,C=this.index,w=this.next(),k=this.ops.slice(this.index);return this.offset=E,this.index=C,[w].concat(k)}}return[]}}},8820:function(X,T,i){"use strict";i.d(T,{A:function(){return k}});var m=i(8138),E=function(c,x){for(var d=c.length;d--;)if((0,m.A)(c[d][0],x))return d;return-1},C=Array.prototype.splice;function w(c){var x=-1,d=c==null?0:c.length;for(this.clear();++x<d;){var A=c[x];this.set(A[0],A[1])}}w.prototype.clear=function(){this.__data__=[],this.size=0},w.prototype.delete=function(c){var x=this.__data__,d=E(x,c);return!(d<0||(d==x.length-1?x.pop():C.call(x,d,1),--this.size,0))},w.prototype.get=function(c){var x=this.__data__,d=E(x,c);return d<0?void 0:x[d][1]},w.prototype.has=function(c){return E(this.__data__,c)>-1},w.prototype.set=function(c,x){var d=this.__data__,A=E(d,c);return A<0?(++this.size,d.push([c,x])):d[A][1]=x,this};var k=w},2461:function(X,T,i){"use strict";var m=i(2281),E=i(5507),C=(0,m.A)(E.A,"Map");T.A=C},3558:function(X,T,i){"use strict";i.d(T,{A:function(){return P}});var m=(0,i(2281).A)(Object,"create"),E=Object.prototype.hasOwnProperty,C=Object.prototype.hasOwnProperty;function w(h){var _=-1,j=h==null?0:h.length;for(this.clear();++_<j;){var $=h[_];this.set($[0],$[1])}}w.prototype.clear=function(){this.__data__=m?m(null):{},this.size=0},w.prototype.delete=function(h){var _=this.has(h)&&delete this.__data__[h];return this.size-=_?1:0,_},w.prototype.get=function(h){var _=this.__data__;if(m){var j=_[h];return j==="__lodash_hash_undefined__"?void 0:j}return E.call(_,h)?_[h]:void 0},w.prototype.has=function(h){var _=this.__data__;return m?_[h]!==void 0:C.call(_,h)},w.prototype.set=function(h,_){var j=this.__data__;return this.size+=this.has(h)?0:1,j[h]=m&&_===void 0?"__lodash_hash_undefined__":_,this};var k=w,c=i(8820),x=i(2461),d=function(h,_){var j,$,K=h.__data__;return(($=typeof(j=_))=="string"||$=="number"||$=="symbol"||$=="boolean"?j!=="__proto__":j===null)?K[typeof _=="string"?"string":"hash"]:K.map};function A(h){var _=-1,j=h==null?0:h.length;for(this.clear();++_<j;){var $=h[_];this.set($[0],$[1])}}A.prototype.clear=function(){this.size=0,this.__data__={hash:new k,map:new(x.A||c.A),string:new k}},A.prototype.delete=function(h){var _=d(this,h).delete(h);return this.size-=_?1:0,_},A.prototype.get=function(h){return d(this,h).get(h)},A.prototype.has=function(h){return d(this,h).has(h)},A.prototype.set=function(h,_){var j=d(this,h),$=j.size;return j.set(h,_),this.size+=j.size==$?0:1,this};var P=A},2673:function(X,T,i){"use strict";i.d(T,{A:function(){return k}});var m=i(8820),E=i(2461),C=i(3558);function w(c){var x=this.__data__=new m.A(c);this.size=x.size}w.prototype.clear=function(){this.__data__=new m.A,this.size=0},w.prototype.delete=function(c){var x=this.__data__,d=x.delete(c);return this.size=x.size,d},w.prototype.get=function(c){return this.__data__.get(c)},w.prototype.has=function(c){return this.__data__.has(c)},w.prototype.set=function(c,x){var d=this.__data__;if(d instanceof m.A){var A=d.__data__;if(!E.A||A.length<199)return A.push([c,x]),this.size=++d.size,this;d=this.__data__=new C.A(A)}return d.set(c,x),this.size=d.size,this};var k=w},439:function(X,T,i){"use strict";var m=i(5507).A.Symbol;T.A=m},7218:function(X,T,i){"use strict";var m=i(5507).A.Uint8Array;T.A=m},6753:function(X,T,i){"use strict";i.d(T,{A:function(){return x}});var m=i(8412),E=i(723),C=i(776),w=i(3767),k=i(5755),c=Object.prototype.hasOwnProperty,x=function(d,A){var P=(0,E.A)(d),h=!P&&(0,m.A)(d),_=!P&&!h&&(0,C.A)(d),j=!P&&!h&&!_&&(0,k.A)(d),$=P||h||_||j,K=$?function(V,y){for(var M=-1,G=Array(V);++M<V;)G[M]=y(M);return G}(d.length,String):[],re=K.length;for(var le in d)!A&&!c.call(d,le)||$&&(le=="length"||_&&(le=="offset"||le=="parent")||j&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||(0,w.A)(le,re))||K.push(le);return K}},802:function(X,T){"use strict";T.A=function(i,m){for(var E=-1,C=m.length,w=i.length;++E<C;)i[w+E]=m[E];return i}},6437:function(X,T,i){"use strict";var m=i(6770),E=i(8138),C=Object.prototype.hasOwnProperty;T.A=function(w,k,c){var x=w[k];C.call(w,k)&&(0,E.A)(x,c)&&(c!==void 0||k in w)||(0,m.A)(w,k,c)}},6770:function(X,T,i){"use strict";var m=i(7889);
39T.A=function(E,C,w){C=="__proto__"&&m.A?(0,m.A)(E,C,{configurable:!0,enumerable:!0,value:w,writable:!0}):E[C]=w}},1381:function(X,T,i){"use strict";var m=i(802),E=i(723);T.A=function(C,w,k){var c=w(C);return(0,E.A)(C)?c:(0,m.A)(c,k(C))}},2159:function(X,T,i){"use strict";i.d(T,{A:function(){return d}});var m=i(439),E=Object.prototype,C=E.hasOwnProperty,w=E.toString,k=m.A?m.A.toStringTag:void 0,c=Object.prototype.toString,x=m.A?m.A.toStringTag:void 0,d=function(A){return A==null?A===void 0?"[object Undefined]":"[object Null]":x&&x in Object(A)?function(P){var h=C.call(P,k),_=P[k];try{P[k]=void 0;var j=!0}catch{}var $=w.call(P);return j&&(h?P[k]=_:delete P[k]),$}(A):function(P){return c.call(P)}(A)}},5771:function(X,T){"use strict";T.A=function(i){return function(m){return i(m)}}},2899:function(X,T,i){"use strict";var m=i(7218);T.A=function(E){var C=new E.constructor(E.byteLength);return new m.A(C).set(new m.A(E)),C}},3812:function(X,T,i){"use strict";var m=i(5507),E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C=E&&typeof module=="object"&&module&&!module.nodeType&&module,w=C&&C.exports===E?m.A.Buffer:void 0,k=w?w.allocUnsafe:void 0;T.A=function(c,x){if(x)return c.slice();var d=c.length,A=k?k(d):new c.constructor(d);return c.copy(A),A}},1827:function(X,T,i){"use strict";var m=i(2899);T.A=function(E,C){var w=C?(0,m.A)(E.buffer):E.buffer;return new E.constructor(w,E.byteOffset,E.length)}},4405:function(X,T){"use strict";T.A=function(i,m){var E=-1,C=i.length;for(m||(m=Array(C));++E<C;)m[E]=i[E];return m}},9601:function(X,T,i){"use strict";var m=i(6437),E=i(6770);T.A=function(C,w,k,c){var x=!k;k||(k={});for(var d=-1,A=w.length;++d<A;){var P=w[d],h=c?c(k[P],C[P],P,k,C):void 0;h===void 0&&(h=C[P]),x?(0,E.A)(k,P,h):(0,m.A)(k,P,h)}return k}},7889:function(X,T,i){"use strict";var m=i(2281),E=function(){try{var C=(0,m.A)(Object,"defineProperty");return C({},"",{}),C}catch{}}();T.A=E},9646:function(X,T){"use strict";var i=typeof global=="object"&&global&&global.Object===Object&&global;T.A=i},2816:function(X,T,i){"use strict";var m=i(1381),E=i(9844),C=i(3169);T.A=function(w){return(0,m.A)(w,C.A,E.A)}},2281:function(X,T,i){"use strict";i.d(T,{A:function(){return $}});var m,E=i(7572),C=i(5507).A["__core-js_shared__"],w=(m=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",k=i(659),c=i(1543),x=/^\[object .+?Constructor\]$/,d=Function.prototype,A=Object.prototype,P=d.toString,h=A.hasOwnProperty,_=RegExp("^"+P.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=function(K){return!(!(0,k.A)(K)||(re=K,w&&w in re))&&((0,E.A)(K)?_:x).test((0,c.A)(K));var re},$=function(K,re){var le=function(V,y){return V?.[y]}(K,re);return j(le)?le:void 0}},8769:function(X,T,i){"use strict";var m=(0,i(2217).A)(Object.getPrototypeOf,Object);T.A=m},9844:function(X,T,i){"use strict";i.d(T,{A:function(){return w}});var m=i(6935),E=Object.prototype.propertyIsEnumerable,C=Object.getOwnPropertySymbols,w=C?function(k){return k==null?[]:(k=Object(k),function(c,x){for(var d=-1,A=c==null?0:c.length,P=0,h=[];++d<A;){var _=c[d];x(_,d,c)&&(h[P++]=_)}return h}(C(k),function(c){return E.call(k,c)}))}:m.A},7995:function(X,T,i){"use strict";i.d(T,{A:function(){return G}});var m=i(2281),E=i(5507),C=(0,m.A)(E.A,"DataView"),w=i(2461),k=(0,m.A)(E.A,"Promise"),c=(0,m.A)(E.A,"Set"),x=(0,m.A)(E.A,"WeakMap"),d=i(2159),A=i(1543),P="[object Map]",h="[object Promise]",_="[object Set]",j="[object WeakMap]",$="[object DataView]",K=(0,A.A)(C),re=(0,A.A)(w.A),le=(0,A.A)(k),V=(0,A.A)(c),y=(0,A.A)(x),M=d.A;(C&&M(new C(new ArrayBuffer(1)))!=$||w.A&&M(new w.A)!=P||k&&M(k.resolve())!=h||c&&M(new c)!=_||x&&M(new x)!=j)&&(M=function(q){var J=(0,d.A)(q),oe=J=="[object Object]"?q.constructor:void 0,se=oe?(0,A.A)(oe):"";if(se)switch(se){case K:return $;case re:return P;case le:return h;case V:return _;case y:return j}return J});var G=M},1683:function(X,T,i){"use strict";i.d(T,{A:function(){return c}});var m=i(659),E=Object.create,C=function(){function x(){}return function(d){if(!(0,m.A)(d))return{};if(E)return E(d);x.prototype=d;var A=new x;return x.prototype=void 0,A}}(),w=i(8769),k=i(501),c=function(x){return typeof x.constructor!="function"||(0,k.A)(x)?{}:C((0,w.A)(x))}},3767:function(X,T){"use strict";var i=/^(?:0|[1-9]\d*)$/;T.A=function(m,E){var C=typeof m;return!!(E=E??9007199254740991)&&(C=="number"||C!="symbol"&&i.test(m))&&m>-1&&m%1==0&&m<E}},501:function(X,T){"use strict";var i=Object.prototype;T.A=function(m){var E=m&&m.constructor;return m===(typeof E=="function"&&E.prototype||i)}},8795:function(X,T,i){"use strict";var m=i(9646),E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C=E&&typeof module=="object"&&module&&!module.nodeType&&module,w=C&&C.exports===E&&m.A.process,k=function(){try{return C&&C.require&&C.require("util").t
vendor: 7,187 bytes, line 39
39ypes||w&&w.binding&&w.binding("util")}catch{}}();T.A=k},2217:function(X,T){"use strict";T.A=function(i,m){return function(E){return i(m(E))}}},5507:function(X,T,i){"use strict";var m=i(9646),E=typeof self=="object"&&self&&self.Object===Object&&self,C=m.A||E||Function("return this")();T.A=C},1543:function(X,T){"use strict";var i=Function.prototype.toString;T.A=function(m){if(m!=null){try{return i.call(m)}catch{}try{return m+""}catch{}}return""}},3707:function(X,T,i){"use strict";i.d(T,{A:function(){return l}});var m=i(2673),E=i(6437),C=i(9601),w=i(3169),k=i(2624),c=i(3812),x=i(4405),d=i(9844),A=i(802),P=i(8769),h=i(6935),_=Object.getOwnPropertySymbols?function(f){for(var p=[];f;)(0,A.A)(p,(0,d.A)(f)),f=(0,P.A)(f);return p}:h.A,j=i(2816),$=i(1381),K=function(f){return(0,$.A)(f,k.A,_)},re=i(7995),le=Object.prototype.hasOwnProperty,V=i(2899),y=/\w*$/,M=i(439),G=M.A?M.A.prototype:void 0,q=G?G.valueOf:void 0,J=i(1827),oe=function(f,p,N){var L,U,Q,Z=f.constructor;switch(p){case"[object ArrayBuffer]":return(0,V.A)(f);case"[object Boolean]":case"[object Date]":return new Z(+f);case"[object DataView]":return function(ne,ce){var ue=ce?(0,V.A)(ne.buffer):ne.buffer;return new ne.constructor(ue,ne.byteOffset,ne.byteLength)}(f,N);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,J.A)(f,N);case"[object Map]":case"[object Set]":return new Z;case"[object Number]":case"[object String]":return new Z(f);case"[object RegExp]":return(Q=new(U=f).constructor(U.source,y.exec(U))).lastIndex=U.lastIndex,Q;case"[object Symbol]":return L=f,q?Object(q.call(L)):{}}},se=i(1683),pe=i(723),we=i(776),S=i(7948),te=i(5771),ee=i(8795),s=ee.A&&ee.A.isMap,n=s?(0,te.A)(s):function(f){return(0,S.A)(f)&&(0,re.A)(f)=="[object Map]"},r=i(659),a=ee.A&&ee.A.isSet,B=a?(0,te.A)(a):function(f){return(0,S.A)(f)&&(0,re.A)(f)=="[object Set]"},g="[object Arguments]",O="[object Function]",D="[object Object]",I={};I[g]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[D]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1;var v=function f(p,N,L,U,Q,Z){var ne,ce=1&N,ue=2&N,ae=4&N;if(L&&(ne=Q?L(p,U,Q,Z):L(p)),ne!==void 0)return ne;if(!(0,r.A)(p))return p;var be=(0,pe.A)(p);if(be){if(ne=function(ge){var Ee=ge.length,ke=new ge.constructor(Ee);return Ee&&typeof ge[0]=="string"&&le.call(ge,"index")&&(ke.index=ge.index,ke.input=ge.input),ke}(p),!ce)return(0,x.A)(p,ne)}else{var fe=(0,re.A)(p),ye=fe==O||fe=="[object GeneratorFunction]";if((0,we.A)(p))return(0,c.A)(p,ce);if(fe==D||fe==g||ye&&!Q){if(ne=ue||ye?{}:(0,se.A)(p),!ce)return ue?function(ge,Ee){return(0,C.A)(ge,_(ge),Ee)}(p,function(ge,Ee){return ge&&(0,C.A)(Ee,(0,k.A)(Ee),ge)}(ne,p)):function(ge,Ee){return(0,C.A)(ge,(0,d.A)(ge),Ee)}(p,function(ge,Ee){return ge&&(0,C.A)(Ee,(0,w.A)(Ee),ge)}(ne,p))}else{if(!I[fe])return Q?p:{};ne=oe(p,fe,ce)}}Z||(Z=new m.A);var Te=Z.get(p);if(Te)return Te;Z.set(p,ne),B(p)?p.forEach(function(ge){ne.add(f(ge,N,L,ge,p,Z))}):n(p)&&p.forEach(function(ge,Ee){ne.set(Ee,f(ge,N,L,Ee,p,Z))});var $e=ae?ue?K:j.A:ue?k.A:w.A,Me=be?void 0:$e(p);return function(ge,Ee){for(var ke=-1,Ue=ge==null?0:ge.length;++ke<Ue&&Ee(ge[ke],ke,ge)!==!1;);}(Me||p,function(ge,Ee){Me&&(ge=p[Ee=ge]),(0,E.A)(ne,Ee,f(ge,N,L,Ee,p,Z))}),ne},l=function(f){return v(f,5)}},8138:function(X,T){"use strict";T.A=function(i,m){return i===m||i!=i&&m!=m}},8412:function(X,T,i){"use strict";i.d(T,{A:function(){return d}});var m=i(2159),E=i(7948),C=function(A){return(0,E.A)(A)&&(0,m.A)(A)=="[object Arguments]"},w=Object.prototype,k=w.hasOwnProperty,c=w.propertyIsEnumerable,x=C(function(){return arguments}())?C:function(A){return(0,E.A)(A)&&k.call(A,"callee")&&!c.call(A,"callee")},d=x},723:function(X,T){"use strict";var i=Array.isArray;T.A=i},3628:function(X,T,i){"use strict";var m=i(7572),E=i(1628);T.A=function(C){return C!=null&&(0,E.A)(C.length)&&!(0,m.A)(C)}},776:function(X,T,i){"use strict";i.d(T,{A:function(){return k}});var m=i(5507),E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C=E&&typeof module=="object"&&module&&!module.nodeType&&module,w=C&&C.exports===E?m.A.Buffer:void 0,k=(w?w.isBuffer:void 0)||function(){return!1}},5123:function(X,T,i){"use strict";i.d(T,{A:function(){return we}});var m=i(2673),E=i(3558);function C(S){var te=-1,ee=S==null?0:S.length;for(this.__data__=new E.A;++te<ee;)this.add(S[te])}C.prototype.add=C.prototype.push=function(S){return this.__data__.set(S,"__lodash_hash_undefined__"),this},C.prototype.has=function(S){return this.__data__.has(S)};var w=C,k=function(S,te){for(var ee=-1,s=S==null?0:S.length;++ee<s;)if(te(S[ee],ee,S))return!0;return!1},c=function(S,te,ee,s,n,r){var a=1&ee,B=S.length,g=te.length;if(B!=g&&!(a&&g>B))return!1;var O=r.get(S),D=r.get(te);if(O&&D)return O==te&&D==S;var I=-1,v=!0,l=2&ee?new w:void 0;for(r.set(S,te),r.set(te,S);++I<B;){var f=S[I],p=te[I];if(s)var N=a?s(p,f,I,te,S,r):s(f,p,I,S,te,r);if(N!==void 0){if(N)continue;v=!1;break}if(l){if(!k(te,function(L,U){if(Q=U,!l.has(Q)&&(f===L||n(f,L,ee,s,r)))return l.push(U);var Q})){v=!1;break}}else if(f!==p&&!n(f,p,ee,s,r)){v=!1;break}}return r.delete(S),r.delete(te),v},x=i(439),d=i(7218),A=i(8138),P=function(S){var te=-1,ee=Array(S.size);return S.forEach(function(s,n){ee[++te]=[n,s]}),ee},h=function(S){var te=-1,ee=Array(S.size);return S.forEach(function(s){ee[++te]=s}),ee},_=x.A?x.A.prototype:void 0,j=_?_.valueOf:void 0,$=i(2816),K=Object.prototype.hasOwnProperty,re=i(7995),le=i(723),V=i(776),y=i(5755),M="[object Arguments]",G="[object Array]",q="[object Object]",J=Object.prototype.hasOwnProperty,oe=function(S,te,ee,s,n,r){var a=(0,le.A)(S),B=(0,le.A)(te),g=a?G:(0,re.A)(S),O=B?G:(0,re.A)(te),D=(g=g==M?q:g)==q,I=(O=O==M?q:O)==q,v=g==O;if(v&&(0,V.A)(S)){if(!(0,V.A)(te))return!1;a=!0,D=!1}if(v&&!D)return r||(r=new m.A),a||(0,y.A)(S)?c(S,te,ee,s,n,r):function(L,U,Q,Z,ne,ce,ue){switch(Q){case"[object DataView]":if(L.byteLength!=U.byteLength||L.byteOffset!=U.byteOffset)return!1;L=L.buffer,U=U.buffer;case"[object ArrayBuffer]":return!(L.byteLength!=U.byteLength||!ce(new d.A(L),new d.A(U)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,A.A)(+L,+U);case"[object Error]":return L.name==U.name&&L.message==U.message;case"[object RegExp]":case"[object String]":return L==U+"";case"[object Map]":var ae=P;case"[object Set]":var be=1&Z;if(ae||(ae=h),L.size!=U.size&&!be)return!1;var fe=ue.get(L);if(fe)return fe==U;Z|=2,ue.set(L,U);var ye=c(ae(L),ae(U),Z,ne,ce,ue);return ue.delete(L),ye;case"[object Symbol]":if(j)return j.call(L)==j.call(U)}return!1}(S,te,g,ee,s,n,r);if(!(1&ee)){var l=D&&J.call(S,"__wrapped__"),f=I&&J.call(te,"__wrapped__");
39if(l||f){var p=l?S.value():S,N=f?te.value():te;return r||(r=new m.A),n(p,N,ee,s,r)}}return!!v&&(r||(r=new m.A),function(L,U,Q,Z,ne,ce){var ue=1&Q,ae=(0,$.A)(L),be=ae.length;if(be!=(0,$.A)(U).length&&!ue)return!1;for(var fe=be;fe--;){var ye=ae[fe];if(!(ue?ye in U:K.call(U,ye)))return!1}var Te=ce.get(L),$e=ce.get(U);if(Te&&$e)return Te==U&&$e==L;var Me=!0;ce.set(L,U),ce.set(U,L);for(var ge=ue;++fe<be;){var Ee=L[ye=ae[fe]],ke=U[ye];if(Z)var Ue=ue?Z(ke,Ee,ye,U,L,ce):Z(Ee,ke,ye,L,U,ce);if(!(Ue===void 0?Ee===ke||ne(Ee,ke,Q,Z,ce):Ue)){Me=!1;break}ge||(ge=ye=="constructor")}if(Me&&!ge){var Se=L.constructor,We=U.constructor;Se==We||!("constructor"in L)||!("constructor"in U)||typeof Se=="function"&&Se instanceof Se&&typeof We=="function"&&We instanceof We||(Me=!1)}return ce.delete(L),ce.delete(U),Me}(S,te,ee,s,n,r))},se=i(7948),pe=function S(te,ee,s,n,r){return te===ee||(te==null||ee==null||!(0,se.A)(te)&&!(0,se.A)(ee)?te!=te&&ee!=ee:oe(te,ee,s,n,S,r))},we=function(S,te){return pe(S,te)}},7572:function(X,T,i){"use strict";var m=i(2159),E=i(659);T.A=function(C){if(!(0,E.A)(C))return!1;var w=(0,m.A)(C);return w=="[object Function]"||w=="[object GeneratorFunction]"||w=="[object AsyncFunction]"||w=="[object Proxy]"}},1628:function(X,T){"use strict";T.A=function(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=9007199254740991}},659:function(X,T){"use strict";T.A=function(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}},7948:function(X,T){"use strict";T.A=function(i){return i!=null&&typeof i=="object"}},5755:function(X,T,i){"use strict";i.d(T,{A:function(){return d}});var m=i(2159),E=i(1628),C=i(7948),w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w["[object Arguments]"]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w["[object Function]"]=w["[object Map]"]=w["[object Number]"]=w["[object Object]"]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var k=i(5771),c=i(8795),x=c.A&&c.A.isTypedArray,d=x?(0,k.A)(x):function(A){return(0,C.A)(A)&&(0,E.A)(A.length)&&!!w[(0,m.A)(A)]}},3169:function(X,T,i){"use strict";i.d(T,{A:function(){return c}});var m=i(6753),E=i(501),C=(0,i(2217).A)(Object.keys,Object),w=Object.prototype.hasOwnProperty,k=i(3628),c=function(x){return(0,k.A)(x)?(0,m.A)(x):function(d){if(!(0,E.A)(d))return C(d);var A=[];for(var P in Object(d))w.call(d,P)&&P!="constructor"&&A.push(P);return A}(x)}},2624:function(X,T,i){"use strict";i.d(T,{A:function(){return x}});var m=i(6753),E=i(659),C=i(501),w=Object.prototype.hasOwnProperty,k=function(d){if(!(0,E.A)(d))return function(_){var j=[];if(_!=null)for(var $ in Object(_))j.push($);return j}(d);var A=(0,C.A)(d),P=[];for(var h in d)(h!="constructor"||!A&&w.call(d,h))&&P.push(h);return P},c=i(3628),x=function(d){return(0,c.A)(d)?(0,m.A)(d,!0):k(d)}},8347:function(X,T,i){"use strict";i.d(T,{A:function(){return f}});var m,E,C,w,k=i(2673),c=i(6770),x=i(8138),d=function(p,N,L){(L!==void 0&&!(0,x.A)(p[N],L)||L===void 0&&!(N in p))&&(0,c.A)(p,N,L)},A=function(p,N,L){for(var U=-1,Q=Object(p),Z=L(p),ne=Z.length;ne--;){var ce=Z[++U];if(N(Q[ce],ce,Q)===!1)break}return p},P=i(3812),h=i(1827),_=i(4405),j=i(1683),$=i(8412),K=i(723),re=i(3628),le=i(7948),V=i(776),y=i(7572),M=i(659),G=i(2159),q=i(8769),J=Function.prototype,oe=Object.prototype,se=J.toString,pe=oe.hasOwnProperty,we=se.call(Object),S=i(5755),te=function(p,N){if((N!=="constructor"||typeof p[N]!="function")&&N!="__proto__")return p[N]},ee=i(9601),s=i(2624),n=function(p,N,L,U,Q,Z,ne){var ce,ue=te(p,L),ae=te(N,L),be=ne.get(ae);if(be)d(p,L,be);else{var fe=Z?Z(ue,ae,L+"",p,N,ne):void 0,ye=fe===void 0;if(ye){var Te=(0,K.A)(ae),$e=!Te&&(0,V.A)(ae),Me=!Te&&!$e&&(0,S.A)(ae);fe=ae,Te||$e||Me?(0,K.A)(ue)?fe=ue:(ce=ue,(0,le.A)(ce)&&(0,re.A)(ce)?fe=(0,_.A)(ue):$e?(ye=!1,fe=(0,P.A)(ae,!0)):Me?(ye=!1,fe=(0,h.A)(ae,!0)):fe=[]):function(ge){if(!(0,le.A)(ge)||(0,G.A)(ge)!="[object Object]")return!1;var Ee=(0,q.A)(ge);if(Ee===null)return!0;var ke=pe.call(Ee,"constructor")&&Ee.constructor;return typeof ke=="function"&&ke instanceof ke&&se.call(ke)==we}(ae)||(0,$.A)(ae)?(fe=ue,(0,$.A)(ue)?fe=function(ge){return(0,ee.A)(ge,(0,s.A)(ge))}(ue):(0,M.A)(ue)&&!(0,y.A)(ue)||(fe=(0,j.A)(ae))):ye=!1}ye&&(ne.set(ae,fe),Q(fe,ae,U,Z,ne),ne.delete(ae)),d(p,L,fe)}},r=function p(N,L,U,Q,Z){N!==L&&A(L,function(ne,ce){if(Z||(Z=new k.A),(0,M.A)(ne))n(N,L,ce,U,p,Q,Z);else{var ue=Q?Q(te(N,ce),ne,ce+"",N,L,Z):void 0;ue===void 0&&(ue=ne),d(N,ce,ue)}},s.A)},a=function(p){return p},B=Math.max,g=i(7889),O=g.A?function(p,N){return(0,g.A)(p,"toString",{configurable:!0,enumerable:!1,value:(L=N,function(){return L}),writable:!0});var L}:a,D=Date.now,I=(m=O,E=0,C=0,function(){var p=D(),N=16-(p-C);if(C=p,N>0){if(++E>=800)return arguments[0]}else E=0;return m.apply(void 0,arguments)}),v=function(p,N){return I(function(L,U,Q){return U=B(U===void 0?L.length-1:U,0),function(){for(var Z=arguments,ne=-1,ce=B(Z.length-U,0),ue=Array(ce);++ne<ce;)ue[ne]=Z[U+ne];ne=-1;for(var ae=Array(U+1);++ne<U;)ae[ne]=Z[ne];return ae[U]=Q(ue),function(be,fe,ye){switch(ye.length){case 0:return be.call(fe);case 1:return be.call(fe,ye[0]);case 2:return be.call(fe,ye[0],ye[1]);case 3:return be.call(fe,ye[0],ye[1],ye[2])}return be.apply(fe,ye)}(L,this,ae)}}(p,N,a),p+"")},l=i(3767),f=(w=function(p,N,L){r(p,N,L)},v(function(p,N){var L=-1,U=N.length,Q=U>1?N[U-1]:void 0,Z=U>2?N[2]:void 0;for(Q=w.length>3&&typeof Q=="function"?(U--,Q):void 0,Z&&function(ce,ue,ae){if(!(0,M.A)(ae))return!1;var be=typeof ue;return!!(be=="number"?(0,re.A)(ae)&&(0,l.A)(ue,ae.length):be=="string"&&ue in ae)&&(0,x.A)(ae[ue],ce)}(N[0],N[1],Z)&&(Q=U<3?void 0:Q,U=1),p=Object(p);++L<U;){var ne=N[L];ne&&w(p,ne,L)}return p}))},6935:function(X,T){"use strict";T.A=function(){return[]}},6003:function(X,T,i){"use strict";i.r(T),i.d(T,{Attributor:function(){return E},AttributorStore:function(){return P},BlockBlot:function(){return q},ClassAttributor:function(){return x},ContainerBlot:function(){return oe},EmbedBlot:function(){return se},InlineBlot:function(){return M},LeafBlot:function(){return $},ParentBlot:function(){return V},Registry:function(){return k},Scope:function(){return m},ScrollBlot:function(){return S},StyleAttributor:function(){return A},TextBlot:function(){return ee}});var m=(s=>(s[s.TYPE=3]="TYPE",s[s.LEVEL=12]="LEVEL",s[s.ATTRIBUTE=13]="ATTRIBUTE",s[s.BLOT=14]="BLOT",s[s.INLINE=7]="INLINE",s[s.BLOCK=11]="BLOCK",s[s.BLOCK_BLOT=10]="BLOCK_BLOT",s[s.INLINE_BLOT=6]="INLINE_BLOT",s[s.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",s[s.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",s[s.ANY=15]="ANY",s))(m||{});class E{constructor(n,r,a={}){this.attrName=n,this.keyName=r;const B=m.TYPE&m.ATTRIBUTE;this.scope=a.scope!=null?a.scope&m.LEVEL|B:m.ATTRIBUTE,a.whitelist!=null&&(this.whitelist=a.whitelist)}static keys(n){return Array.from(n.attributes).map(r=>r.name)}add(n,r){return!!this.canAdd(n,r)&&(n.setAttribute(this.keyName,r),!0)}canAdd(n,r){return this.whitelist==null||(typeof r=="string"?this.whitelist.indexOf(r.replace(/["']/g,""))>-1:this.whitelist.indexOf(r)>-1)}remove(n){n.removeAttribute(this.keyName)}value(n){const r=n.getAttribute(this.keyName);return this.canAdd(n,r)&&r?r:""}}
vendor: 16,882 bytes, line 39
39class C extends Error{constructor(n){super(n="[Parchment] "+n),this.message=n,this.name=this.constructor.name}}const w=class jr{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(n,r=!1){if(n==null)return null;if(this.blots.has(n))return this.blots.get(n)||null;if(r){let a=null;try{a=n.parentNode}catch{return null}return this.find(a,r)}return null}create(n,r,a){const B=this.query(r);if(B==null)throw new C(`Unable to create ${r} blot`);const g=B,O=r instanceof Node||r.nodeType===Node.TEXT_NODE?r:g.create(a),D=new g(n,O,a);return jr.blots.set(D.domNode,D),D}find(n,r=!1){return jr.find(n,r)}query(n,r=m.ANY){let a;return typeof n=="string"?a=this.types[n]||this.attributes[n]:n instanceof Text||n.nodeType===Node.TEXT_NODE?a=this.types.text:typeof n=="number"?n&m.LEVEL&m.BLOCK?a=this.types.block:n&m.LEVEL&m.INLINE&&(a=this.types.inline):n instanceof Element&&((n.getAttribute("class")||"").split(/\s+/).some(B=>(a=this.classes[B],!!a)),a=a||this.tags[n.tagName]),a==null?null:"scope"in a&&r&m.LEVEL&a.scope&&r&m.TYPE&a.scope?a:null}register(...n){return n.map(r=>{const a="blotName"in r,B="attrName"in r;if(!a&&!B)throw new C("Invalid definition");if(a&&r.blotName==="abstract")throw new C("Cannot register abstract class");const g=a?r.blotName:B?r.attrName:void 0;return this.types[g]=r,B?typeof r.keyName=="string"&&(this.attributes[r.keyName]=r):a&&(r.className&&(this.classes[r.className]=r),r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(O=>O.toUpperCase()):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(O=>{(this.tags[O]==null||r.className==null)&&(this.tags[O]=r)}))),r})}};w.blots=new WeakMap;let k=w;function c(s,n){return(s.getAttribute("class")||"").split(/\s+/).filter(r=>r.indexOf(`${n}-`)===0)}const x=class extends E{static keys(s){return(s.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(s,n){return!!this.canAdd(s,n)&&(this.remove(s),s.classList.add(`${this.keyName}-${n}`),!0)}remove(s){c(s,this.keyName).forEach(n=>{s.classList.remove(n)}),s.classList.length===0&&s.removeAttribute("class")}value(s){const n=(c(s,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(s,n)?n:""}};function d(s){const n=s.split("-"),r=n.slice(1).map(a=>a[0].toUpperCase()+a.slice(1)).join("");return n[0]+r}const A=class extends E{static keys(s){return(s.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(s,n){return!!this.canAdd(s,n)&&(s.style[d(this.keyName)]=n,!0)}remove(s){s.style[d(this.keyName)]="",s.getAttribute("style")||s.removeAttribute("style")}value(s){const n=s.style[d(this.keyName)];return this.canAdd(s,n)?n:""}},P=class{constructor(s){this.attributes={},this.domNode=s,this.build()}attribute(s,n){n?s.add(this.domNode,n)&&(s.value(this.domNode)!=null?this.attributes[s.attrName]=s:delete this.attributes[s.attrName]):(s.remove(this.domNode),delete this.attributes[s.attrName])}build(){this.attributes={};const s=k.find(this.domNode);if(s==null)return;const n=E.keys(this.domNode),r=x.keys(this.domNode),a=A.keys(this.domNode);n.concat(r).concat(a).forEach(B=>{const g=s.scroll.query(B,m.ATTRIBUTE);g instanceof E&&(this.attributes[g.attrName]=g)})}copy(s){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);s.format(n,r)})}move(s){this.copy(s),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((s,n)=>(s[n]=this.attributes[n].value(this.domNode),s),{})}},h=class{constructor(s,n){this.scroll=s,this.domNode=n,k.blots.set(n,this),this.prev=null,this.next=null}static create(s){if(this.tagName==null)throw new C("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof s=="string"?(r=s.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof s=="number"&&(r=s),n=typeof r=="number"?document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?document.createElement(r):document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const s=this.domNode.cloneNode(!1);return this.scroll.create(s)}detach(){this.parent!=null&&this.parent.removeChild(this),k.blots.delete(this.domNode)}deleteAt(s,n){this.isolate(s,n).remove()}formatAt(s,n,r,a){const B=this.isolate(s,n);if(this.scroll.query(r,m.BLOT)!=null&&a)B.wrap(r,a);else if(this.scroll.query(r,m.ATTRIBUTE)!=null){const g=this.scroll.create(this.statics.scope);B.wrap(g),g.format(r,a)}}insertAt(s,n,r){const a=r==null?this.scroll.create("text",n):this.scroll.create(n,r),B=this.split(s);this.parent.insertBefore(a,B||void 0)}isolate(s,n){const r=this.split(s);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(s=this.parent){return this.parent==null||this===s?0:this.parent.children.offset(this)+this.parent.offset(s)}optimize(s){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(s,n){const r=typeof s=="string"?this.scroll.create(s,n):s;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(s,n){return s===0?this:this.next}update(s,n){}wrap(s,n){const r=typeof s=="string"?this.scroll.create(s,n):s;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new C(`Cannot wrap ${s}`);return r.appendChild(this),r}};h.blotName="abstract";let _=h;const j=class extends _{static value(s){return!0}index(s,n){return this.domNode===s||this.domNode.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(s,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return s>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};j.scope=m.INLINE_BLOT;const $=j;class K{constructor(){this.head=null,this.tail=null,this.length=0}append(...n){if(this.insertBefore(n[0],null),n.length>1){const r=n.slice(1);this.append(...r)}}at(n){const r=this.iterator();let a=r();for(;a&&n>0;)n-=1,a=r();return a}contains(n){const r=this.iterator();let a=r();for(;a;){if(a===n)return!0;a=r()}return!1}indexOf(n){const r=this.iterator();let a=r(),B=0;for(;a;){if(a===n)return B;B+=1,a=r()}return-1}insertBefore(n,r){n!=null&&(this.remove(n),n.next=r,r!=null?(n.prev=r.prev,r.prev!=null&&(r.prev.next=n),r.prev=n,r===this.head&&(this.head=n)):this.tail!=null?(this.tail.next=n,n.prev=this.tail,this.tail=n):(n.prev=null,this.head=this.tail=n),this.length+=1)}offset(n){let r=0,a=this.head;for(;a!=null;){if(a===n)return r;r+=a.length(),a=a.next}return-1}remove(n){this.contains(n)&&(n.prev!=null&&(n.prev.next=n.next),n.next!=null&&(n.next.prev=n.prev),n===this.head&&(this.head=n.next),n===this.tail&&(this.tail=n.prev),this.length-=1)}iterator(n=this.head){return()=>{const r=n;return n!=null&&(n=n.next),r}}find(n,r=!1){const a=this.iterator();let B=a();for(;B;){const g=B.length();if(n<g||r&&n===g&&(B.next==null||B.next.length()!==0))return[B,n];n-=g,B=a()}return[null,0]}forEach(n){const r=this.iterator();let a=r();for(;a;)n(a),a=r()}forEachAt(n,r,a){if(r<=0)return;const[B,g]=this.find(n);let O=n-g;const D=this.iterator(B);let I=D();for(;I&&O<n+r;){const v=I.length();n>O?a(I,n-O,Math.min(r,O+v-n)):a(I,0,Math.min(v,n+r-O)),O+=v,I=D()}}map(n){return this.reduce((r,a)=>(r.push(n(a)),r),[])}reduce(n,r){const a=this.iterator();let B=a();for(;B;)r=n(r,B),B=a();return r}}function re(s,n){const r=n.find(s);if(r)return r;try{return n.create(s)}catch{const a=n.create(m.INLINE);return Array.from(s.childNodes).forEach(B=>{a.domNode.appendChild(B)}),s.parentNode&&s.parentNode.replaceChild(a.domNode,s),a.attach(),a}}const le=class An extends _{constructor(n,r){super(n,r),this.uiNode=null,this.build()}appendChild(n){this.insertBefore(n)}attach(){super.attach(),this.children.forEach(n=>{n.attach()})}attachUI(n){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=n,An.uiClass&&this.uiNode.classList.add(An.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new K,Array.from(this.domNode.childNodes).filter(n=>n!==this.uiNode).reverse().forEach(n=>{try{const r=re(n,this.scroll);this.insertBefore(r,this.children.head||void 0)}catch(r){if(r instanceof C)return;throw r}})}deleteAt(n,r){if(n===0&&r===this.length())return this.remove();this.children.forEachAt(n,r,(a,B,g)=>{a.deleteAt(B,g)})}descendant(n,r=0){const[a,B]=this.children.find(r);return n.blotName==null&&n(a)||n.blotName!=null&&a instanceof n?[a,B]:a instanceof An?a.descendant(n,B):[null,-1]}descendants(n,r=0,a=Number.MAX_VALUE){let B=[],g=a;return this.children.forEachAt(r,a,(O,D,I)=>{(n.blotName==null&&n(O)||n.blotName!=null&&O instanceof n)&&B.push(O),O instanceof An&&(B=B.concat(O.descendants(n,D,g))),g-=I}),B}detach(){this.children.forEach(n=>{n.detach()}),super.detach()}enforceAllowedChildren(){let n=!1;this.children.forEach(r=>{n||this.statics.allowedChildren.some(a=>r instanceof a)||(r.statics.scope===m.BLOCK_BLOT?(r.next!=null&&this.splitAfter(r),r.prev!=null&&this.splitAfter(r.prev),r.parent.unwrap(),n=!0):r instanceof An?r.unwrap():r.remove())})}formatAt(n,r,a,B){this.children.forEachAt(n,r,(g,O,D)=>{g.formatAt(O,D,a,B)})}insertAt(n,r,a){const[B,g]=this.children.find(n);if(B)B.insertAt(g,r,a);else{const O=a==null?this.scroll.create("text",r):this.scroll.create(r,a);this.appendChild(O)}}insertBefore(n,r){n.parent!=null&&n.parent.children.remove(n);let a=null;this.children.insertBefore(n,r||null),n.parent=this,r!=null&&(a=r.domNode),(this.domNode.parentNode!==n.domNode||this.domNode.nextSibling!==a)&&this.domNode.insertBefore(n.domNode,a),n.attach()}length(){return this.children.reduce((n,r)=>n+r.length(),0)}moveChildren(n,r){this.children.forEach(a=>{n.insertBefore(a,r)})}optimize(n){if(super.optimize(n),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r)}else this.remove()}path(n,r=!1){const[a,B]=this.children.find(n,r),g=[[this,n]];return a instanceof An?g.concat(a.path(B,r)):(a!=null&&g.push([a,B]),g)}removeChild(n){this.children.remove(n)}replaceWith(n,r){const a=typeof n=="string"?this.scroll.create(n,r):n;return a instanceof An&&this.moveChildren(a),super.replaceWith(a)}split(n,r=!1){if(!r){if(n===0)return this;if(n===this.length())return this.next}const a=this.clone();return this.parent&&this.parent.insertBefore(a,this.next||void 0),this.children.forEachAt(n,this.length(),(B,g,O)=>{const D=B.split(g,r);D!=null&&a.appendChild(D)}),a}splitAfter(n){const r=this.clone();for(;n.next!=null;)r.appendChild(n.next);return this.parent&&this.parent.insertBefore(r,this.next||void 0),r}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(n,r){const a=[],B=[];n.forEach(g=>{g.target===this.domNode&&g.type==="childList"&&(a.push(...g.addedNodes),B.push(...g.removedNodes))}),B.forEach(g=>{if(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const O=this.scroll.find(g);O!=null&&(O.domNode.parentNode==null||O.domNode.parentNode===this.domNode)&&O.detach()}),a.filter(g=>g.parentNode===this.domNode&&g!==this.uiNode).sort((g,O)=>g===O?0:g.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(g=>{let O=null;g.nextSibling!=null&&(O=this.scroll.find(g.nextSibling));const D=re(g,this.scroll);(D.next!==O||D.next==null)&&(D.parent!=null&&D.parent.removeChild(this),this.insertBefore(D,O||void 0))}),this.enforceAllowedChildren()}};le.uiClass="";const V=le,y=class Fn extends V{static create(n){return super.create(n)}static formats(n,r){const a=r.query(Fn.blotName);if(a==null||n.tagName!==a.tagName){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return n.tagName.toLowerCase()}}constructor(n,r){super(n,r),this.attributes=new P(this.domNode)}format(n,r){if(n!==this.statics.blotName||r){const a=this.scroll.query(n,m.INLINE);if(a==null)return;a instanceof E?this.attributes.attribute(a,r):r&&(n!==this.statics.blotName||this.formats()[n]!==r)&&this.replaceWith(n,r)}else this.children.forEach(a=>{a instanceof Fn||(a=a.wrap(Fn.blotName,!0)),this.attributes.copy(a)}),this.unwrap()}formats(){const n=this.attributes.values(),r=this.statics.formats(this.domNode,this.scroll);return r!=null&&(n[this.statics.blotName]=r),n}formatAt(n,r,a,B){this.formats()[a]!=null||this.scroll.query(a,m.ATTRIBUTE)?this.isolate(n,r).format(a,B):super.formatAt(n,r,a,B)}optimize(n){super.optimize(n);const r=this.formats();if(Object.keys(r).length===0)return this.unwrap();const a=this.next;a instanceof Fn&&a.prev===this&&function(B,g){if(Object.keys(B).length!==Object.keys(g).length)return!1;for(const O in B)if(B[O]!==g[O])return!1;return!0}(r,a.formats())&&(a.moveChildren(this),a.remove())}replaceWith(n,r){const a=super.replaceWith(n,r);return this.attributes.copy(a),a}update(n,r){super.update(n,r),n.some(a=>a.target===this.domNode&&a.type==="attributes")&&this.attributes.build()}wrap(n,r){const a=super.wrap(n,r);return a instanceof Fn&&this.attributes.move(a),a}};y.allowedChildren=[y,$],y.blotName="inline",y.scope=m.INLINE_BLOT,y.tagName="SPAN";const M=y,G=class Ir extends V{static create(n){return super.create(n)}static formats(n,r){const a=r.query(Ir.blotName);if(a==null||n.tagName!==a.tagName){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return n.tagName.toLowerCase()}}constructor(n,r){super(n,r),this.attributes=new P(this.domNode)}format(n,r){const a=this.scroll.query(n,m.BLOCK);a!=null&&(a instanceof E?this.attributes.attribute(a,r):n!==this.statics.blotName||r?r&&(n!==this.statics.blotName||this.formats()[n]!==r)&&this.replaceWith(n,r):this.replaceWith(Ir.blotName))}formats(){const n=this.attributes.values(),r=this.statics.formats(this.domNode,this.scroll);return r!=null&&(n[this.statics.blotName]=r),n}formatAt(n,r,a,B){this.scroll.query(a,m.BLOCK)!=null?this.format(a,B):super.formatAt(n,r,a,B)}insertAt(n,r,a){if(a==null||this.scroll.query(r,m.INLINE)!=null)super.insertAt(n,r,a);else{const B=this.split(n);if(B==null)throw new Error("Attempt to insertAt after block boundaries");{const g=this.scroll.create(r,a);B.parent.insertBefore(g,B)}}}replaceWith(n,r){const a=super.replaceWith(n,r);return this.attributes.copy(a),a}update(n,r){super.update(n,r),n.some(a=>a.target===this.domNode&&a.type==="attributes")&&this.attributes.build()}};G.blotName="block",G.scope=m.BLOCK_BLOT,G.tagName="P",G.allowedChildren=[M,G,$];const q=G,J=class extends V{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(s,n){super.deleteAt(s,n),this.enforceAllowedChildren()}formatAt(s,n,r,a){super.formatAt(s,n,r,a),this.enforceAllowedChildren()}insertAt(s,n,r){super.insertAt(s,n,r),this.enforceAllowedChildren()}optimize(s){super.optimize(s),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};J.blotName="container",J.scope=m.BLOCK_BLOT;const oe=J,se=class extends ${static formats(s,n){}format(s,n){super.formatAt(0,this.length(),s,n)}formatAt(s,n,r,a){s===0&&n===this.length()?this.format(r,a):super.formatAt(s,n,r,a)}formats(){return this.statics.formats(this.domNode,this.scroll)}},pe={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},we=class extends V{constructor(s,n){super(null,n),this.registry=s,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,pe),this.attach()}create(s,n){return this.registry.create(this,s,n)}find(s,n=!1){const r=this.registry.find(s,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(s,n=m.ANY){return this.registry.query(s,n)}register(...s){return this.registry.register(...s)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(s,n){this.update(),s===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(s,n)}formatAt(s,n,r,a){this.update(),super.formatAt(s,n,r,a)}insertAt(s,n,r){this.update(),super.insertAt(s,n,r)}optimize(s=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let a=Array.from(this.observer.takeRecords());for(;a.length>0;)s.push(a.pop());const B=(D,I=!0)=>
39{D==null||D===this||D.domNode.parentNode!=null&&(r.has(D.domNode)||r.set(D.domNode,[]),I&&B(D.parent))},g=D=>{r.has(D.domNode)&&(D instanceof V&&D.children.forEach(g),r.delete(D.domNode),D.optimize(n))};let O=s;for(let D=0;O.length>0;D+=1){if(D>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(O.forEach(I=>{const v=this.find(I.target,!0);v!=null&&(v.domNode===I.target&&(I.type==="childList"?(B(this.find(I.previousSibling,!1)),Array.from(I.addedNodes).forEach(l=>{const f=this.find(l,!1);B(f,!1),f instanceof V&&f.children.forEach(p=>{B(p,!1)})})):I.type==="attributes"&&B(v.prev)),B(v))}),this.children.forEach(g),O=Array.from(this.observer.takeRecords()),a=O.slice();a.length>0;)s.push(a.pop())}}update(s,n={}){s=s||this.observer.takeRecords();const r=new WeakMap;s.map(a=>{const B=this.find(a.target,!0);return B==null?null:r.has(B.domNode)?(r.get(B.domNode).push(a),null):(r.set(B.domNode,[a]),B)}).forEach(a=>{a!=null&&a!==this&&r.has(a.domNode)&&a.update(r.get(a.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(s,n)}};we.blotName="scroll",we.defaultChild=q,we.allowedChildren=[q,oe],we.scope=m.BLOCK_BLOT,we.tagName="DIV";const S=we,te=class zi extends ${static create(n){return document.createTextNode(n)}static value(n){return n.data}constructor(n,r){super(n,r),this.text=this.statics.value(this.domNode)}deleteAt(n,r){this.domNode.data=this.text=this.text.slice(0,n)+this.text.slice(n+r)}index(n,r){return this.domNode===n?r:-1}insertAt(n,r,a){a==null?(this.text=this.text.slice(0,n)+r+this.text.slice(n),this.domNode.data=this.text):super.insertAt(n,r,a)}length(){return this.text.length}optimize(n){super.optimize(n),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof zi&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(n,r=!1){return[this.domNode,n]}split(n,r=!1){if(!r){if(n===0)return this;if(n===this.length())return this.next}const a=this.scroll.create(this.domNode.splitText(n));return this.parent.insertBefore(a,this.next||void 0),this.text=this.statics.value(this.domNode),a}update(n,r){n.some(a=>a.type==="characterData"&&a.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};te.blotName="text",te.scope=m.INLINE_BLOT;const ee=te}},Tt={};function Qe(X){var T=Tt[X];if(T!==void 0)return T.exports;var i=Tt[X]={id:X,loaded:!1,exports:{}};return Ot[X](i,i.exports,Qe),i.loaded=!0,i.exports}Qe.n=function(X){var T=X&&X.__esModule?function(){return X.default}:function(){return X};return Qe.d(T,{a:T}),T},Qe.d=function(X,T){for(var i in T)Qe.o(T,i)&&!Qe.o(X,i)&&Object.defineProperty(X,i,{enumerable:!0,get:T[i]})},Qe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Qe.o=function(X,T){return Object.prototype.hasOwnProperty.call(X,T)},Qe.r=function(X){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"__esModule",{value:!0})},Qe.nmd=function(X){return X.paths=[],X.children||(X.children=[]),X};var Hn={};return function(){"use strict";Qe.d(Hn,{default:function(){return te}});var X=Qe(6142),T=Qe(9698),i=Qe(3036),m=Qe(580),E=Qe(4541),C=Qe(746),w=Qe(4850),k=Qe(6003),c=Qe(5232),x=Qe.n(c),d=Qe(5374);function A(ee){return ee instanceof T.Ay||ee instanceof T.zo}function P(ee){return typeof ee.updateContent=="function"}class h extends k.ScrollBlot{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=T.Ay;static allowedChildren=[T.Ay,T.zo,m.A];constructor(s,n,r){let{emitter:a}=r;super(s,n),this.emitter=a,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",B=>this.handleDragStart(B))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const s=this.batch;this.batch=!1,this.update(s)}emitMount(s){this.emitter.emit(d.A.events.SCROLL_BLOT_MOUNT,s)}emitUnmount(s){this.emitter.emit(d.A.events.SCROLL_BLOT_UNMOUNT,s)}emitEmbedUpdate(s,n){this.emitter.emit(d.A.events.SCROLL_EMBED_UPDATE,s,n)}deleteAt(s,n){const[r,a]=this.line(s),[B]=this.line(s+n);if(super.deleteAt(s,n),B!=null&&r!==B&&a>0){if(r instanceof T.zo||B instanceof T.zo)return void this.optimize();const g=B.children.head instanceof i.A?null:B.children.head;r.moveChildren(B,g),r.remove()}this.optimize()}enable(){let s=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.domNode.setAttribute("contenteditable",s?"true":"false")}formatAt(s,n,r,a){super.formatAt(s,n,r,a),this.optimize()}insertAt(s,n,r){if(s>=this.length())if(r==null||this.scroll.query(n,k.Scope.BLOCK)==null){const a=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(a),r==null&&n.endsWith(` 40`)?a.insertAt(0,n.slice(0,-1),r):a.insertAt(0,n,r)}else{const a=this.scroll.create(n,r);this.appendChild(a)}else super.insertAt(s,n,r);this.optimize()}
40insertBefore(s,n){if(s.statics.scope===k.Scope.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(s),super.insertBefore(r,n)}else super.insertBefore(s,n)}insertContents(s,n){const r=this.deltaToRenderBlocks(n.concat(new(x())().insert(` 41`))),a=r.pop();if(a==null)return;this.batchStart();const B=r.shift();if(B){const D=B.type==="block"&&(B.delta.length()===0||!this.descendant(T.zo,s)[0]&&s<this.length()),I=B.type==="block"?B.delta:new(x())().insert({[B.key]:B.value});_(this,s,I);const v=B.type==="block"?1:0,l=s+I.length()+v;D&&this.insertAt(l-1,` 42`);const f=(0,T.Ji)(this.line(s)[0]),p=c.AttributeMap.diff(f,B.attributes)||{};Object.keys(p).forEach(N=>{this.formatAt(l-1,1,N,p[N])}),s=l}let[g,O]=this.children.find(s);r.length&&(g&&(g=g.split(O),O=0),r.forEach(D=>{if(D.type==="block")_(this.createBlock(D.attributes,g||void 0),0,D.delta);else{const I=this.create(D.key,D.value);this.insertBefore(I,g||void 0),Object.keys(D.attributes).forEach(v=>{I.format(v,D.attributes[v])})}})),a.type==="block"&&a.delta.length()&&_(this,g?g.offset(g.scroll)+O:this.length(),a.delta),this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(s){const n=this.path(s).pop();if(!n)return[null,-1];const[r,a]=n;return r instanceof k.LeafBlot?[r,a]:[null,-1]}line(s){return s===this.length()?this.line(s-1):this.descendant(A,s)}lines(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(a,B,g)=>{let O=[],D=g;return a.children.forEachAt(B,g,(I,v,l)=>{A(I)?O.push(I):I instanceof k.ContainerBlot&&(O=O.concat(r(I,v,D))),D-=l}),O};return r(this,s,n)}optimize(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(s,n),s.length>0&&this.emitter.emit(d.A.events.SCROLL_OPTIMIZE,s,n))}path(s){return super.path(s).slice(1)}remove(){}update(s){if(this.batch)return void(Array.isArray(s)&&(this.batch=this.batch.concat(s)));let n=d.A.sources.USER;typeof s=="string"&&(n=s),Array.isArray(s)||(s=this.observer.takeRecords()),(s=s.filter(r=>{let{target:a}=r;const B=this.find(a,!0);return B&&!P(B)})).length>0&&this.emitter.emit(d.A.events.SCROLL_BEFORE_UPDATE,n,s),super.update(s.concat([])),s.length>0&&this.emitter.emit(d.A.events.SCROLL_UPDATE,n,s)}updateEmbedAt(s,n,r){const[a]=this.descendant(B=>B instanceof T.zo,s);a&&a.statics.blotName===n&&P(a)&&a.updateContent(r)}handleDragStart(s){s.preventDefault()}deltaToRenderBlocks(s){const n=[];let r=new(x());return s.forEach(a=>{const B=a?.insert;if(B)if(typeof B=="string"){const g=B.split(` 43`);g.slice(0,-1).forEach(D=>{r.insert(D,a.attributes),n.push({type:"block",delta:r,attributes:a.attributes??{}}),r=new(x())});const O=g[g.length-1];O&&r.insert(O,a.attributes)}else{const g=Object.keys(B)[0];if(!g)return;this.query(g,k.Scope.INLINE)?r.push(a):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new(x()),n.push({type:"blockEmbed",key:g,value:B[g],attributes:a.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(s,n){let r;const a={};Object.entries(s).forEach(O=>{let[D,I]=O;this.query(D,k.Scope.BLOCK&k.Scope.BLOT)!=null?r=D:a[D]=I});const B=this.create(r||this.statics.defaultChild.blotName,r?s[r]:void 0);this.insertBefore(B,n||void 0);const g=B.length();return Object.entries(a).forEach(O=>{let[D,I]=O;B.formatAt(0,g,D,I)}),B}}function _(ee,s,n){n.reduce((r,a)=>{const B=c.Op.length(a);let g=a.attributes||{};if(a.insert!=null){if(typeof a.insert=="string"){const O=a.insert;ee.insertAt(r,O);const[D]=ee.descendant(k.LeafBlot,r),I=(0,T.Ji)(D);g=c.AttributeMap.diff(I,g)||{}}else if(typeof a.insert=="object"){const O=Object.keys(a.insert)[0];if(O==null)return r;if(ee.insertAt(r,O,a.insert[O]),ee.scroll.query(O,k.Scope.INLINE)!=null){const[D]=ee.descendant(k.LeafBlot,r),I=(0,T.Ji)(D);g=c.AttributeMap.diff(I,g)||{}}}}return Object.keys(g).forEach(O=>{ee.formatAt(r,B,O,g[O])}),r+B},s)}var j=h,$=Qe(5508),K=Qe(584),re=Qe(4266);class le extends re.A{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(s,n){super(s,n),this.quill.on(X.Ay.events.EDITOR_CHANGE,(r,a,B,g)=>{r===X.Ay.events.SELECTION_CHANGE?a&&g!==X.Ay.sources.SILENT&&(this.currentRange=a):r===X.Ay.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&g!==X.Ay.sources.USER?this.transform(a):this.record(a,B)),this.currentRange=y(this.currentRange,a))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}
43change(s,n){if(this.stack[s].length===0)return;const r=this.stack[s].pop();if(!r)return;const a=this.quill.getContents(),B=r.delta.invert(a);this.stack[n].push({delta:B,range:y(r.range,B)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,X.Ay.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(s,n){if(s.ops.length===0)return;this.stack.redo=[];let r=s.invert(n),a=this.currentRange;const B=Date.now();if(this.lastRecorded+this.options.delay>B&&this.stack.undo.length>0){const g=this.stack.undo.pop();g&&(r=r.compose(g.delta),a=g.range)}else this.lastRecorded=B;r.length()!==0&&(this.stack.undo.push({delta:r,range:a}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(s){V(this.stack.undo,s),V(this.stack.redo,s)}undo(){this.change("undo","redo")}restoreSelection(s){if(s.range)this.quill.setSelection(s.range,X.Ay.sources.USER);else{const n=function(r,a){const B=a.reduce((O,D)=>O+(D.delete||0),0);let g=a.length()-B;return function(O,D){const I=D.ops[D.ops.length-1];return I!=null&&(I.insert!=null?typeof I.insert=="string"&&I.insert.endsWith(` 44`):I.attributes!=null&&Object.keys(I.attributes).some(v=>O.query(v,k.Scope.BLOCK)!=null))}(r,a)&&(g-=1),g}(this.quill.scroll,s.delta);this.quill.setSelection(n,X.Ay.sources.USER)}}}function V(ee,s){let n=s;for(let r=ee.length-1;r>=0;r-=1){const a=ee[r];ee[r]={delta:n.transform(a.delta,!0),range:a.range&&y(a.range,n)},n=a.delta.transform(n),ee[r].delta.length()===0&&ee.splice(r,1)}}function y(ee,s){if(!ee)return ee;const n=s.transformPosition(ee.index);return{index:n,length:s.transformPosition(ee.index+ee.length)-n}}var M=Qe(8123);class G extends re.A{constructor(s,n){super(s,n),s.root.addEventListener("drop",r=>{r.preventDefault();let a=null;if(document.caretRangeFromPoint)a=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const g=document.caretPositionFromPoint(r.clientX,r.clientY);a=document.createRange(),a.setStart(g.offsetNode,g.offset),a.setEnd(g.offsetNode,g.offset)}const B=a&&s.selection.normalizeNative(a);if(B){const g=s.selection.normalizedToRange(B);r.dataTransfer?.files&&this.upload(g,r.dataTransfer.files)}})}upload(s,n){const r=[];Array.from(n).forEach(a=>{a&&this.options.mimetypes?.includes(a.type)&&r.push(a)}),r.length>0&&this.options.handler.call(this,s,r)}}G.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(ee,s){if(!this.quill.scroll.query("image"))return;const n=s.map(r=>new Promise(a=>{const B=new FileReader;B.onload=()=>{a(B.result)},B.readAsDataURL(r)}));Promise.all(n).then(r=>{const a=r.reduce((B,g)=>B.insert({image:g}),new(x())().retain(ee.index).delete(ee.length));this.quill.updateContents(a,d.A.sources.USER),this.quill.setSelection(ee.index+r.length,d.A.sources.SILENT)})}};var q=G;const J=["insertText","insertReplacementText"];class oe extends re.A{constructor(s,n){super(s,n),s.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||s.on(X.Ay.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(s){(0,M.Xo)({range:s,quill:this.quill})}replaceText(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(s.length===0)return!1;if(n){const r=this.quill.getFormat(s.index,1);this.deleteRange(s),this.quill.updateContents(new(x())().retain(s.index).insert(n,r),X.Ay.sources.USER)}else this.deleteRange(s);return this.quill.setSelection(s.index+n.length,0,X.Ay.sources.SILENT),!0}handleBeforeInput(s){if(this.quill.composition.isComposing||s.defaultPrevented||!J.includes(s.inputType))return;const n=s.getTargetRanges?s.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=function(g){return typeof g.data=="string"?g.data:g.dataTransfer?.types.includes("text/plain")?g.dataTransfer.getData("text/plain"):null}(s);if(r==null)return;const a=this.quill.selection.normalizeNative(n),B=a?this.quill.selection.normalizedToRange(a):null;B&&this.replaceText(B,r)&&s.preventDefault()}handleCompositionStart(){const s=this.quill.getSelection();s&&this.replaceText(s)}}
44var se=oe;const pe=/Mac/i.test(navigator.platform);class we extends re.A{isListening=!1;selectionChangeDeadline=0;constructor(s,n){super(s,n),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(s,n){let{line:r,event:a}=n;if(!(r instanceof k.ParentBlot&&r.uiNode))return!0;const B=getComputedStyle(r.domNode).direction==="rtl";return!!(B&&a.key!=="ArrowRight"||!B&&a.key!=="ArrowLeft")||(this.quill.setSelection(s.index-1,s.length+(a.shiftKey?1:0),X.Ay.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",s=>{!s.defaultPrevented&&(n=>n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||!(!pe||n.key!=="a"||n.ctrlKey!==!0))(s)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const s=document.getSelection();if(!s)return;const n=s.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const r=this.quill.scroll.find(n.startContainer);if(!(r instanceof k.ParentBlot&&r.uiNode))return;const a=document.createRange();a.setStartAfter(r.uiNode),a.setEndAfter(r.uiNode),s.removeAllRanges(),s.addRange(a)}}var S=we;X.Ay.register({"blots/block":T.Ay,"blots/block/embed":T.zo,"blots/break":i.A,"blots/container":m.A,"blots/cursor":E.A,"blots/embed":C.A,"blots/inline":w.A,"blots/scroll":j,"blots/text":$.A,"modules/clipboard":K.Ay,"modules/history":le,"modules/keyboard":M.Ay,"modules/uploader":q,"modules/input":se,"modules/uiNode":S});var te=X.Ay}(),Hn.default}()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.