1||0==l||t.content.size)&&(c=e,u.push(function t(e,n,r){if(n<=0)return e;let s=e.content;return n>1&&(s=s.replaceChild(0,t(s.firstChild,n-1,1==s.childCount?r-1:0))),n>0&&(s=e.type.contentMatch.fillBefore(s).append(s),r<=0&&(s=s.append(e.type.contentMatch.matchFragment(s).fillBefore(i.HY.empty,!0)))),e.copy(s)}(t.mark(d.allowedMarks(t.marks)),1==h?l:0,h==a.childCount?p:-1)))}let f=h==a.childCount;f||(p=-1),this.placed=O(this.placed,e,i.HY.from(u)),this.frontier[e].match=c,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t1&&i==this.$to.end(--n);)++i;return i}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:i}=this.frontier[e],r=e=0;n--){let{match:e,type:i}=this.frontier[n],r=I(t,n,i,e,!0);if(!r||r.childCount)continue t}return{depth:e,fit:s,move:r?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=O(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),i=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,i)}return t}openFrontierNode(t,e=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=O(this.placed,this.depth,i.HY.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(i.HY.empty,!0);t.childCount&&(this.placed=O(this.placed,this.frontier.length,t))}}function R(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(R(t.firstChild.content,e-1,n)))}function O(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(O(t.lastChild.content,e-1,n)))}function D(t,e){for(let n=0;n=0;r--){let i=t.start(r);if(ie.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&n.push(r)}return n}class V extends l{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let r=e.type.create(n,null,e.marks);return h.fromReplace(t,this.pos,this.pos+1,new i.p2(i.HY.from(r),0,e.isLeaf?0:1))}getMap(){return s.empty}invert(t){return new V(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new V(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new V(e.pos,e.attr,e.value)}}l.jsonID("attr",V);class F extends l{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return h.ok(n)}getMap(){return s.empty}invert(t){return new F(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new F(e.attr,e.value)}}l.jsonID("docAttr",F);let z=class extends Error{};(z=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n}).prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.name="TransformError";class B{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new o}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new z(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=i.p2.empty){let r=A(this.doc,t,e,n);return r&&this.step(r),this}replaceWith(t,e,n){return this.replace(t,e,new i.p2(i.HY.from(n),0,0))}delete(t,e){return this.replace(t,e,i.p2.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return!function(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let s=t.doc.resolve(e),o=t.doc.resolve(n);if(M(s,o,r))return t.step(new m(e,n,r));let a=N(s,t.doc.resolve(n));0==a[a.length-1]&&a.pop();let l=-(s.depth+1);a.unshift(l);for(let t=s.depth,e=s.pos-1;t>0;t--,e--){let n=s.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(t)>-1?l=t:s.before(t)==e&&a.splice(1,0,-t)}let h=a.indexOf(l),u=[],c=r.openStart;for(let t=r.content,e=0;;e++){let n=t.firstChild;if(u.push(n),e==r.openStart)break;t=n.content}for(let t=c-1;t>=0;t--){var d;let e=u[t],n=(d=e.type).spec.defining||d.spec.definingForContent;if(n&&!e.sameMarkup(s.node(Math.abs(l)-1)))c=t;else if(n||!e.type.isTextblock)break}for(let e=r.openStart;e>=0;e--){let l=(e+c+1)%(r.openStart+1),d=u[l];if(d)for(let e=0;es){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(i.HY.empty,!0))}return e}(r.content,0,r.openStart,l),l,r.openEnd))}}let p=t.steps.length;for(let i=a.length-1;i>=0&&(t.replace(e,n,r),!(t.steps.length>p));i--){let t=a[i];t<0||(e=s.before(t),n=o.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return!function(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=function(t,e,n){let i=t.resolve(e);if(i.parent.canReplaceWith(i.index(),i.index(),n))return e;if(0==i.parentOffset)for(let t=i.depth-1;t>=0;t--){let e=i.index(t);if(i.node(t).canReplaceWith(e,e,n))return i.before(t+1);if(e>0)return null}if(i.parentOffset==i.parent.content.size)for(let t=i.depth-1;t>=0;t--){let e=i.indexAfter(t);if(i.node(t).canReplaceWith(e,e,n))return i.after(t+1);if(e0&&(o||i.node(n-1).canReplace(i.index(n-1),r.indexAfter(n-1))))return t.delete(i.before(n),r.after(n))}for(let s=1;s<=i.depth&&s<=r.depth;s++)if(e-i.start(s)==i.depth-s&&n>i.end(s)&&r.end(s)-n!=r.depth-s)return t.delete(i.before(s),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return!function(t,e,n){let{$from:r,$to:s,depth:o}=e,a=r.before(o+1),l=s.after(o+1),h=a,u=l,c=i.HY.empty,d=0;for(let t=o,e=!1;t>n;t--)e||r.index(t)>0?(e=!0,c=i.HY.from(r.node(t).copy(c)),d++):h--;let p=i.HY.empty,f=0;for(let t=o,e=!1;t>n;t--)e||s.after(t+1)=0;t--){if(r.size){let e=n[t].type.contentMatch.matchFragment(r);if(!e||!e.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=i.HY.from(n[t].type.create(n[t].attrs,r))}let s=e.start,o=e.end;t.step(new g(s,o,s,o,new i.p2(r,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,r=null){return!function(t,e,n,r,s){if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(e,n)=>{var a,l;let h,u,c="function"==typeof s?s(e):s;if(e.isTextblock&&!e.hasMarkup(r,c)&&(a=t.doc,l=t.mapping.slice(o).map(n),u=(h=a.resolve(l)).index(),h.parent.canReplaceWith(u,u+1,r))){let s=null;if(r.schema.linebreakReplacement){let t="pre"==r.whitespace,e=!!r.contentMatch.matchType(r.schema.linebreakReplacement);t&&!e?s=!1:!t&&e&&(s=!0)}!1===s&&function(t,e,n,i){e.forEach((r,s)=>{if(r.type==r.type.schema.linebreakReplacement){let r=t.mapping.slice(i).map(n+1+s);t.replaceWith(r,r+1,e.type.schema.text("\n"))}})}(t,e,n,o),v(t,t.mapping.slice(o).map(n,1),r,void 0,null===s);let a=t.mapping.slice(o),l=a.map(n,1),h=a.map(n+e.nodeSize,1);return t.step(new g(l,h,l+1,h-1,new i.p2(i.HY.from(r.create(c,null,e.marks)),0,0),1,!0)),!0===s&&function(t,e,n,i){e.forEach((r,s)=>{if(r.isText){let o,a=/\r?\n|\r/g;for(;o=a.exec(r.text);){let r=t.mapping.slice(i).map(n+1+s+o.index);t.replaceWith(r,r+1,e.type.schema.linebreakReplacement.create())}}})}(t,e,n,o),!1}})}(this,t,e,n,r),this}setNodeMarkup(t,e,n=null,r){return!function(t,e,n,r,s){let o=t.doc.nodeAt(e);if(!o)throw RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,s||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,a);if(!n.validContent(o.content))throw RangeError("Invalid content for node type "+n.name);t.step(new g(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new i.p2(i.HY.from(a),0,0),1,!0))}(this,t,e,n,r),this}setNodeAttribute(t,e,n){return this.step(new V(t,e,n)),this}setDocAttribute(t,e){return this.step(new F(t,e)),this}addNodeMark(t,e){return this.step(new p(t,e)),this}removeNodeMark(t,e){if(!(e instanceof i.vc)){let n=this.doc.nodeAt(t);if(!n)throw RangeError("No node at position "+t);if(!(e=e.isInSet(n.marks)))return this}return this.step(new f(t,e)),this}split(t,e=1,n){return!function(t,e,n=1,r){let s=t.doc.resolve(e),o=i.HY.empty,a=i.HY.empty;for(let t=s.depth,e=s.depth-n,l=n-1;t>e;t--,l--){o=i.HY.from(s.node(t).copy(o));let e=r&&r[l];a=i.HY.from(e?e.type.create(e.attrs,a):s.node(t).copy(a))}t.step(new m(e,e,new i.p2(o.append(a),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){var i;let r,s,o,a;return i=this,o=[],a=[],i.doc.nodesBetween(t,e,(i,l,h)=>{if(!i.isInline)return;let u=i.marks;if(!n.isInSet(u)&&h.type.allowsMarkType(n.type)){let h=Math.max(l,t),p=Math.min(l+i.nodeSize,e),f=n.addToSet(u);for(let t=0;ti.step(t)),a.forEach(t=>i.step(t)),this}removeMark(t,e,n){var r;let s,o;return r=this,s=[],o=0,r.doc.nodesBetween(t,e,(r,a)=>{if(!r.isInline)return;o++;let l=null;if(n instanceof i.ZU){let t=r.marks,e;for(;e=n.isInSet(t);)(l||(l=[])).push(e),t=e.removeFromSet(t)}else n?n.isInSet(r.marks)&&(l=[n]):l=r.marks;if(l&&l.length){let n=Math.min(a+r.nodeSize,e);for(let e=0;er.step(new d(t.from,t.to,t.style))),this}clearIncompatible(t,e,n){return v(this,t,e,n),this}}},21987:function(t,e,n){n.d(e,{YG:function(){return h},uY:function(){return r},ue:function(){return i}});for(var i={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),o="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)i[48+a]=i[96+a]=String(a);for(var a=1;a<=24;a++)i[a+111]="F"+a;for(var a=65;a<=90;a++)i[a]=String.fromCharCode(a+32),r[a]=String.fromCharCode(a);for(var l in i)r.hasOwnProperty(l)||(r[l]=i[l]);function h(t){var e=!(s&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||o&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?r:i)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}},27257:function(t,e,n){n.d(e,{Ue:function(){return d},oR:function(){return u}});let i=t=>{let e;let n=new Set,i=(t,i)=>{let r="function"==typeof t?t(e):t;if(!Object.is(r,e)){let t=e;e=(null!=i?i:"object"!=typeof r)?r:Object.assign({},e,r),n.forEach(n=>n(e,t))}},r=()=>e,s={setState:i,getState:r,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return e=t(i,r,s),s},r=t=>t?i(t):i;var s=n(3546),o=n(52635);let{useDebugValue:a}=s,{useSyncExternalStoreWithSelector:l}=o,h=!1;function u(t,e=t.getState,n){n&&!h&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),h=!0);let i=l(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return a(i),i}let c=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?r(t):t,n=(t,n)=>u(e,t,n);return Object.assign(n,e),n},d=t=>t?c(t):c},85654:function(t,e,n){n.d(e,{tJ:function(){return o}});let i=t=>e=>{try{let n=t(e);if(n instanceof Promise)return n;return{then:t=>i(t)(n),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>i(e)(t)}}},r=(t,e)=>(n,r,s)=>{let o,a,l={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},h=!1,u=new Set,c=new Set;try{o=l.getStorage()}catch(t){}if(!o)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...t)},r,s);let d=i(l.serialize),p=()=>{let t;let e=l.partialize({...r()}),n=d({state:e,version:l.version}).then(t=>o.setItem(l.name,t)).catch(e=>{t=e});if(t)throw t;return n},f=s.setState;s.setState=(t,e)=>{f(t,e),p()};let m=t((...t)=>{n(...t),p()},r,s),g=()=>{var t;if(!o)return;h=!1,u.forEach(t=>t(r()));let e=(null==(t=l.onRehydrateStorage)?void 0:t.call(l,r()))||void 0;return i(o.getItem.bind(o))(l.name).then(t=>{if(t)return l.deserialize(t)}).then(t=>{if(t){if("number"!=typeof t.version||t.version===l.version)return t.state;if(l.migrate)return l.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(t=>{var e;return n(a=l.merge(t,null!=(e=r())?e:m),!0),p()}).then(()=>{null==e||e(a,void 0),h=!0,c.forEach(t=>t(a))}).catch(t=>{null==e||e(void 0,t)})};return s.persist={setOptions:t=>{l={...l,...t},t.getStorage&&(o=t.getStorage())},clearStorage:()=>{null==o||o.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>g(),hasHydrated:()=>h,onHydrate:t=>(u.add(t),()=>{u.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},g(),a||m},s=(t,e)=>(n,r,s)=>{let o,a={storage:function(t,e){let n;try{n=t()}catch(t){return}return{getItem:t=>{var i;let r=t=>null===t?null:JSON.parse(t,null==e?void 0:e.reviver),s=null!=(i=n.getItem(t))?i:null;return s instanceof Promise?s.then(r):r(s)},setItem:(t,i)=>n.setItem(t,JSON.stringify(i,null==e?void 0:e.replacer)),removeItem:t=>n.removeItem(t)}}(()=>localStorage),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},l=!1,h=new Set,u=new Set,c=a.storage;if(!c)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...t)},r,s);let d=()=>{let t=a.partialize({...r()});return c.setItem(a.name,{state:t,version:a.version})},p=s.setState;s.setState=(t,e)=>{p(t,e),d()};let f=t((...t)=>{n(...t),d()},r,s),m=()=>{var t,e;if(!c)return;l=!1,h.forEach(t=>{var e;return t(null!=(e=r())?e:f)});let s=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,null!=(t=r())?t:f))||void 0;return i(c.getItem.bind(c))(a.name).then(t=>{if(t){if("number"!=typeof t.version||t.version===a.version)return t.state;if(a.migrate)return a.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(t=>{var e;return n(o=a.merge(t,null!=(e=r())?e:f),!0),d()}).then(()=>{null==s||s(o,void 0),o=r(),l=!0,u.forEach(t=>t(o))}).catch(t=>{null==s||s(void 0,t)})};return s.persist={setOptions:t=>{a={...a,...t},t.storage&&(c=t.storage)},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>l,onHydrate:t=>(h.add(t),()=>{h.delete(t)}),onFinishHydration:t=>(u.add(t),()=>{u.delete(t)})},a.skipHydration||m(),o||f},o=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),r(t,e)):s(t,e)}}]);
\ No newline at end of file
+Defaulting to \`${o}\`.`):null}};let u=l},54767:function(t,e,n){n.d(e,{Z:function(){return u}});var r=n(35737),i=[["\xdf","ss"],["ẞ","Ss"],["\xe4","ae"],["\xc4","Ae"],["\xf6","oe"],["\xd6","Oe"],["\xfc","ue"],["\xdc","Ue"],["\xc0","A"],["\xc1","A"],["\xc2","A"],["\xc3","A"],["\xc4","Ae"],["\xc5","A"],["\xc6","AE"],["\xc7","C"],["\xc8","E"],["\xc9","E"],["\xca","E"],["\xcb","E"],["\xcc","I"],["\xcd","I"],["\xce","I"],["\xcf","I"],["\xd0","D"],["\xd1","N"],["\xd2","O"],["\xd3","O"],["\xd4","O"],["\xd5","O"],["\xd6","Oe"],["Ő","O"],["\xd8","O"],["\xd9","U"],["\xda","U"],["\xdb","U"],["\xdc","Ue"],["Ű","U"],["\xdd","Y"],["\xde","TH"],["\xdf","ss"],["\xe0","a"],["\xe1","a"],["\xe2","a"],["\xe3","a"],["\xe4","ae"],["\xe5","a"],["\xe6","ae"],["\xe7","c"],["\xe8","e"],["\xe9","e"],["\xea","e"],["\xeb","e"],["\xec","i"],["\xed","i"],["\xee","i"],["\xef","i"],["\xf0","d"],["\xf1","n"],["\xf2","o"],["\xf3","o"],["\xf4","o"],["\xf5","o"],["\xf6","oe"],["ő","o"],["\xf8","o"],["\xf9","u"],["\xfa","u"],["\xfb","u"],["\xfc","ue"],["ű","u"],["\xfd","y"],["\xfe","th"],["\xff","y"],["ẞ","SS"],["\xe0","a"],["\xc0","A"],["\xe1","a"],["\xc1","A"],["\xe2","a"],["\xc2","A"],["\xe3","a"],["\xc3","A"],["\xe8","e"],["\xc8","E"],["\xe9","e"],["\xc9","E"],["\xea","e"],["\xca","E"],["\xec","i"],["\xcc","I"],["\xed","i"],["\xcd","I"],["\xf2","o"],["\xd2","O"],["\xf3","o"],["\xd3","O"],["\xf4","o"],["\xd4","O"],["\xf5","o"],["\xd5","O"],["\xf9","u"],["\xd9","U"],["\xfa","u"],["\xda","U"],["\xfd","y"],["\xdd","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ","a"],["ُ","u"],["ِ","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["\xe7","c"],["\xc7","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["\xa2","c"],["\xa5","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["\uD835\uDC00","A"],["\uD835\uDC01","B"],["\uD835\uDC02","C"],["\uD835\uDC03","D"],["\uD835\uDC04","E"],["\uD835\uDC05","F"],["\uD835\uDC06","G"],["\uD835\uDC07","H"],["\uD835\uDC08","I"],["\uD835\uDC09","J"],["\uD835\uDC0A","K"],["\uD835\uDC0B","L"],["\uD835\uDC0C","M"],["\uD835\uDC0D","N"],["\uD835\uDC0E","O"],["\uD835\uDC0F","P"],["\uD835\uDC10","Q"],["\uD835\uDC11","R"],["\uD835\uDC12","S"],["\uD835\uDC13","T"],["\uD835\uDC14","U"],["\uD835\uDC15","V"],["\uD835\uDC16","W"],["\uD835\uDC17","X"],["\uD835\uDC18","Y"],["\uD835\uDC19","Z"],["\uD835\uDC1A","a"],["\uD835\uDC1B","b"],["\uD835\uDC1C","c"],["\uD835\uDC1D","d"],["\uD835\uDC1E","e"],["\uD835\uDC1F","f"],["\uD835\uDC20","g"],["\uD835\uDC21","h"],["\uD835\uDC22","i"],["\uD835\uDC23","j"],["\uD835\uDC24","k"],["\uD835\uDC25","l"],["\uD835\uDC26","m"],["\uD835\uDC27","n"],["\uD835\uDC28","o"],["\uD835\uDC29","p"],["\uD835\uDC2A","q"],["\uD835\uDC2B","r"],["\uD835\uDC2C","s"],["\uD835\uDC2D","t"],["\uD835\uDC2E","u"],["\uD835\uDC2F","v"],["\uD835\uDC30","w"],["\uD835\uDC31","x"],["\uD835\uDC32","y"],["\uD835\uDC33","z"],["\uD835\uDC34","A"],["\uD835\uDC35","B"],["\uD835\uDC36","C"],["\uD835\uDC37","D"],["\uD835\uDC38","E"],["\uD835\uDC39","F"],["\uD835\uDC3A","G"],["\uD835\uDC3B","H"],["\uD835\uDC3C","I"],["\uD835\uDC3D","J"],["\uD835\uDC3E","K"],["\uD835\uDC3F","L"],["\uD835\uDC40","M"],["\uD835\uDC41","N"],["\uD835\uDC42","O"],["\uD835\uDC43","P"],["\uD835\uDC44","Q"],["\uD835\uDC45","R"],["\uD835\uDC46","S"],["\uD835\uDC47","T"],["\uD835\uDC48","U"],["\uD835\uDC49","V"],["\uD835\uDC4A","W"],["\uD835\uDC4B","X"],["\uD835\uDC4C","Y"],["\uD835\uDC4D","Z"],["\uD835\uDC4E","a"],["\uD835\uDC4F","b"],["\uD835\uDC50","c"],["\uD835\uDC51","d"],["\uD835\uDC52","e"],["\uD835\uDC53","f"],["\uD835\uDC54","g"],["\uD835\uDC56","i"],["\uD835\uDC57","j"],["\uD835\uDC58","k"],["\uD835\uDC59","l"],["\uD835\uDC5A","m"],["\uD835\uDC5B","n"],["\uD835\uDC5C","o"],["\uD835\uDC5D","p"],["\uD835\uDC5E","q"],["\uD835\uDC5F","r"],["\uD835\uDC60","s"],["\uD835\uDC61","t"],["\uD835\uDC62","u"],["\uD835\uDC63","v"],["\uD835\uDC64","w"],["\uD835\uDC65","x"],["\uD835\uDC66","y"],["\uD835\uDC67","z"],["\uD835\uDC68","A"],["\uD835\uDC69","B"],["\uD835\uDC6A","C"],["\uD835\uDC6B","D"],["\uD835\uDC6C","E"],["\uD835\uDC6D","F"],["\uD835\uDC6E","G"],["\uD835\uDC6F","H"],["\uD835\uDC70","I"],["\uD835\uDC71","J"],["\uD835\uDC72","K"],["\uD835\uDC73","L"],["\uD835\uDC74","M"],["\uD835\uDC75","N"],["\uD835\uDC76","O"],["\uD835\uDC77","P"],["\uD835\uDC78","Q"],["\uD835\uDC79","R"],["\uD835\uDC7A","S"],["\uD835\uDC7B","T"],["\uD835\uDC7C","U"],["\uD835\uDC7D","V"],["\uD835\uDC7E","W"],["\uD835\uDC7F","X"],["\uD835\uDC80","Y"],["\uD835\uDC81","Z"],["\uD835\uDC82","a"],["\uD835\uDC83","b"],["\uD835\uDC84","c"],["\uD835\uDC85","d"],["\uD835\uDC86","e"],["\uD835\uDC87","f"],["\uD835\uDC88","g"],["\uD835\uDC89","h"],["\uD835\uDC8A","i"],["\uD835\uDC8B","j"],["\uD835\uDC8C","k"],["\uD835\uDC8D","l"],["\uD835\uDC8E","m"],["\uD835\uDC8F","n"],["\uD835\uDC90","o"],["\uD835\uDC91","p"],["\uD835\uDC92","q"],["\uD835\uDC93","r"],["\uD835\uDC94","s"],["\uD835\uDC95","t"],["\uD835\uDC96","u"],["\uD835\uDC97","v"],["\uD835\uDC98","w"],["\uD835\uDC99","x"],["\uD835\uDC9A","y"],["\uD835\uDC9B","z"],["\uD835\uDC9C","A"],["\uD835\uDC9E","C"],["\uD835\uDC9F","D"],["\uD835\uDCA2","g"],["\uD835\uDCA5","J"],["\uD835\uDCA6","K"],["\uD835\uDCA9","N"],["\uD835\uDCAA","O"],["\uD835\uDCAB","P"],["\uD835\uDCAC","Q"],["\uD835\uDCAE","S"],["\uD835\uDCAF","T"],["\uD835\uDCB0","U"],["\uD835\uDCB1","V"],["\uD835\uDCB2","W"],["\uD835\uDCB3","X"],["\uD835\uDCB4","Y"],["\uD835\uDCB5","Z"],["\uD835\uDCB6","a"],["\uD835\uDCB7","b"],["\uD835\uDCB8","c"],["\uD835\uDCB9","d"],["\uD835\uDCBB","f"],["\uD835\uDCBD","h"],["\uD835\uDCBE","i"],["\uD835\uDCBF","j"],["\uD835\uDCC0","h"],["\uD835\uDCC1","l"],["\uD835\uDCC2","m"],["\uD835\uDCC3","n"],["\uD835\uDCC5","p"],["\uD835\uDCC6","q"],["\uD835\uDCC7","r"],["\uD835\uDCC8","s"],["\uD835\uDCC9","t"],["\uD835\uDCCA","u"],["\uD835\uDCCB","v"],["\uD835\uDCCC","w"],["\uD835\uDCCD","x"],["\uD835\uDCCE","y"],["\uD835\uDCCF","z"],["\uD835\uDCD0","A"],["\uD835\uDCD1","B"],["\uD835\uDCD2","C"],["\uD835\uDCD3","D"],["\uD835\uDCD4","E"],["\uD835\uDCD5","F"],["\uD835\uDCD6","G"],["\uD835\uDCD7","H"],["\uD835\uDCD8","I"],["\uD835\uDCD9","J"],["\uD835\uDCDA","K"],["\uD835\uDCDB","L"],["\uD835\uDCDC","M"],["\uD835\uDCDD","N"],["\uD835\uDCDE","O"],["\uD835\uDCDF","P"],["\uD835\uDCE0","Q"],["\uD835\uDCE1","R"],["\uD835\uDCE2","S"],["\uD835\uDCE3","T"],["\uD835\uDCE4","U"],["\uD835\uDCE5","V"],["\uD835\uDCE6","W"],["\uD835\uDCE7","X"],["\uD835\uDCE8","Y"],["\uD835\uDCE9","Z"],["\uD835\uDCEA","a"],["\uD835\uDCEB","b"],["\uD835\uDCEC","c"],["\uD835\uDCED","d"],["\uD835\uDCEE","e"],["\uD835\uDCEF","f"],["\uD835\uDCF0","g"],["\uD835\uDCF1","h"],["\uD835\uDCF2","i"],["\uD835\uDCF3","j"],["\uD835\uDCF4","k"],["\uD835\uDCF5","l"],["\uD835\uDCF6","m"],["\uD835\uDCF7","n"],["\uD835\uDCF8","o"],["\uD835\uDCF9","p"],["\uD835\uDCFA","q"],["\uD835\uDCFB","r"],["\uD835\uDCFC","s"],["\uD835\uDCFD","t"],["\uD835\uDCFE","u"],["\uD835\uDCFF","v"],["\uD835\uDD00","w"],["\uD835\uDD01","x"],["\uD835\uDD02","y"],["\uD835\uDD03","z"],["\uD835\uDD04","A"],["\uD835\uDD05","B"],["\uD835\uDD07","D"],["\uD835\uDD08","E"],["\uD835\uDD09","F"],["\uD835\uDD0A","G"],["\uD835\uDD0D","J"],["\uD835\uDD0E","K"],["\uD835\uDD0F","L"],["\uD835\uDD10","M"],["\uD835\uDD11","N"],["\uD835\uDD12","O"],["\uD835\uDD13","P"],["\uD835\uDD14","Q"],["\uD835\uDD16","S"],["\uD835\uDD17","T"],["\uD835\uDD18","U"],["\uD835\uDD19","V"],["\uD835\uDD1A","W"],["\uD835\uDD1B","X"],["\uD835\uDD1C","Y"],["\uD835\uDD1E","a"],["\uD835\uDD1F","b"],["\uD835\uDD20","c"],["\uD835\uDD21","d"],["\uD835\uDD22","e"],["\uD835\uDD23","f"],["\uD835\uDD24","g"],["\uD835\uDD25","h"],["\uD835\uDD26","i"],["\uD835\uDD27","j"],["\uD835\uDD28","k"],["\uD835\uDD29","l"],["\uD835\uDD2A","m"],["\uD835\uDD2B","n"],["\uD835\uDD2C","o"],["\uD835\uDD2D","p"],["\uD835\uDD2E","q"],["\uD835\uDD2F","r"],["\uD835\uDD30","s"],["\uD835\uDD31","t"],["\uD835\uDD32","u"],["\uD835\uDD33","v"],["\uD835\uDD34","w"],["\uD835\uDD35","x"],["\uD835\uDD36","y"],["\uD835\uDD37","z"],["\uD835\uDD38","A"],["\uD835\uDD39","B"],["\uD835\uDD3B","D"],["\uD835\uDD3C","E"],["\uD835\uDD3D","F"],["\uD835\uDD3E","G"],["\uD835\uDD40","I"],["\uD835\uDD41","J"],["\uD835\uDD42","K"],["\uD835\uDD43","L"],["\uD835\uDD44","M"],["\uD835\uDD46","N"],["\uD835\uDD4A","S"],["\uD835\uDD4B","T"],["\uD835\uDD4C","U"],["\uD835\uDD4D","V"],["\uD835\uDD4E","W"],["\uD835\uDD4F","X"],["\uD835\uDD50","Y"],["\uD835\uDD52","a"],["\uD835\uDD53","b"],["\uD835\uDD54","c"],["\uD835\uDD55","d"],["\uD835\uDD56","e"],["\uD835\uDD57","f"],["\uD835\uDD58","g"],["\uD835\uDD59","h"],["\uD835\uDD5A","i"],["\uD835\uDD5B","j"],["\uD835\uDD5C","k"],["\uD835\uDD5D","l"],["\uD835\uDD5E","m"],["\uD835\uDD5F","n"],["\uD835\uDD60","o"],["\uD835\uDD61","p"],["\uD835\uDD62","q"],["\uD835\uDD63","r"],["\uD835\uDD64","s"],["\uD835\uDD65","t"],["\uD835\uDD66","u"],["\uD835\uDD67","v"],["\uD835\uDD68","w"],["\uD835\uDD69","x"],["\uD835\uDD6A","y"],["\uD835\uDD6B","z"],["\uD835\uDD6C","A"],["\uD835\uDD6D","B"],["\uD835\uDD6E","C"],["\uD835\uDD6F","D"],["\uD835\uDD70","E"],["\uD835\uDD71","F"],["\uD835\uDD72","G"],["\uD835\uDD73","H"],["\uD835\uDD74","I"],["\uD835\uDD75","J"],["\uD835\uDD76","K"],["\uD835\uDD77","L"],["\uD835\uDD78","M"],["\uD835\uDD79","N"],["\uD835\uDD7A","O"],["\uD835\uDD7B","P"],["\uD835\uDD7C","Q"],["\uD835\uDD7D","R"],["\uD835\uDD7E","S"],["\uD835\uDD7F","T"],["\uD835\uDD80","U"],["\uD835\uDD81","V"],["\uD835\uDD82","W"],["\uD835\uDD83","X"],["\uD835\uDD84","Y"],["\uD835\uDD85","Z"],["\uD835\uDD86","a"],["\uD835\uDD87","b"],["\uD835\uDD88","c"],["\uD835\uDD89","d"],["\uD835\uDD8A","e"],["\uD835\uDD8B","f"],["\uD835\uDD8C","g"],["\uD835\uDD8D","h"],["\uD835\uDD8E","i"],["\uD835\uDD8F","j"],["\uD835\uDD90","k"],["\uD835\uDD91","l"],["\uD835\uDD92","m"],["\uD835\uDD93","n"],["\uD835\uDD94","o"],["\uD835\uDD95","p"],["\uD835\uDD96","q"],["\uD835\uDD97","r"],["\uD835\uDD98","s"],["\uD835\uDD99","t"],["\uD835\uDD9A","u"],["\uD835\uDD9B","v"],["\uD835\uDD9C","w"],["\uD835\uDD9D","x"],["\uD835\uDD9E","y"],["\uD835\uDD9F","z"],["\uD835\uDDA0","A"],["\uD835\uDDA1","B"],["\uD835\uDDA2","C"],["\uD835\uDDA3","D"],["\uD835\uDDA4","E"],["\uD835\uDDA5","F"],["\uD835\uDDA6","G"],["\uD835\uDDA7","H"],["\uD835\uDDA8","I"],["\uD835\uDDA9","J"],["\uD835\uDDAA","K"],["\uD835\uDDAB","L"],["\uD835\uDDAC","M"],["\uD835\uDDAD","N"],["\uD835\uDDAE","O"],["\uD835\uDDAF","P"],["\uD835\uDDB0","Q"],["\uD835\uDDB1","R"],["\uD835\uDDB2","S"],["\uD835\uDDB3","T"],["\uD835\uDDB4","U"],["\uD835\uDDB5","V"],["\uD835\uDDB6","W"],["\uD835\uDDB7","X"],["\uD835\uDDB8","Y"],["\uD835\uDDB9","Z"],["\uD835\uDDBA","a"],["\uD835\uDDBB","b"],["\uD835\uDDBC","c"],["\uD835\uDDBD","d"],["\uD835\uDDBE","e"],["\uD835\uDDBF","f"],["\uD835\uDDC0","g"],["\uD835\uDDC1","h"],["\uD835\uDDC2","i"],["\uD835\uDDC3","j"],["\uD835\uDDC4","k"],["\uD835\uDDC5","l"],["\uD835\uDDC6","m"],["\uD835\uDDC7","n"],["\uD835\uDDC8","o"],["\uD835\uDDC9","p"],["\uD835\uDDCA","q"],["\uD835\uDDCB","r"],["\uD835\uDDCC","s"],["\uD835\uDDCD","t"],["\uD835\uDDCE","u"],["\uD835\uDDCF","v"],["\uD835\uDDD0","w"],["\uD835\uDDD1","x"],["\uD835\uDDD2","y"],["\uD835\uDDD3","z"],["\uD835\uDDD4","A"],["\uD835\uDDD5","B"],["\uD835\uDDD6","C"],["\uD835\uDDD7","D"],["\uD835\uDDD8","E"],["\uD835\uDDD9","F"],["\uD835\uDDDA","G"],["\uD835\uDDDB","H"],["\uD835\uDDDC","I"],["\uD835\uDDDD","J"],["\uD835\uDDDE","K"],["\uD835\uDDDF","L"],["\uD835\uDDE0","M"],["\uD835\uDDE1","N"],["\uD835\uDDE2","O"],["\uD835\uDDE3","P"],["\uD835\uDDE4","Q"],["\uD835\uDDE5","R"],["\uD835\uDDE6","S"],["\uD835\uDDE7","T"],["\uD835\uDDE8","U"],["\uD835\uDDE9","V"],["\uD835\uDDEA","W"],["\uD835\uDDEB","X"],["\uD835\uDDEC","Y"],["\uD835\uDDED","Z"],["\uD835\uDDEE","a"],["\uD835\uDDEF","b"],["\uD835\uDDF0","c"],["\uD835\uDDF1","d"],["\uD835\uDDF2","e"],["\uD835\uDDF3","f"],["\uD835\uDDF4","g"],["\uD835\uDDF5","h"],["\uD835\uDDF6","i"],["\uD835\uDDF7","j"],["\uD835\uDDF8","k"],["\uD835\uDDF9","l"],["\uD835\uDDFA","m"],["\uD835\uDDFB","n"],["\uD835\uDDFC","o"],["\uD835\uDDFD","p"],["\uD835\uDDFE","q"],["\uD835\uDDFF","r"],["\uD835\uDE00","s"],["\uD835\uDE01","t"],["\uD835\uDE02","u"],["\uD835\uDE03","v"],["\uD835\uDE04","w"],["\uD835\uDE05","x"],["\uD835\uDE06","y"],["\uD835\uDE07","z"],["\uD835\uDE08","A"],["\uD835\uDE09","B"],["\uD835\uDE0A","C"],["\uD835\uDE0B","D"],["\uD835\uDE0C","E"],["\uD835\uDE0D","F"],["\uD835\uDE0E","G"],["\uD835\uDE0F","H"],["\uD835\uDE10","I"],["\uD835\uDE11","J"],["\uD835\uDE12","K"],["\uD835\uDE13","L"],["\uD835\uDE14","M"],["\uD835\uDE15","N"],["\uD835\uDE16","O"],["\uD835\uDE17","P"],["\uD835\uDE18","Q"],["\uD835\uDE19","R"],["\uD835\uDE1A","S"],["\uD835\uDE1B","T"],["\uD835\uDE1C","U"],["\uD835\uDE1D","V"],["\uD835\uDE1E","W"],["\uD835\uDE1F","X"],["\uD835\uDE20","Y"],["\uD835\uDE21","Z"],["\uD835\uDE22","a"],["\uD835\uDE23","b"],["\uD835\uDE24","c"],["\uD835\uDE25","d"],["\uD835\uDE26","e"],["\uD835\uDE27","f"],["\uD835\uDE28","g"],["\uD835\uDE29","h"],["\uD835\uDE2A","i"],["\uD835\uDE2B","j"],["\uD835\uDE2C","k"],["\uD835\uDE2D","l"],["\uD835\uDE2E","m"],["\uD835\uDE2F","n"],["\uD835\uDE30","o"],["\uD835\uDE31","p"],["\uD835\uDE32","q"],["\uD835\uDE33","r"],["\uD835\uDE34","s"],["\uD835\uDE35","t"],["\uD835\uDE36","u"],["\uD835\uDE37","v"],["\uD835\uDE38","w"],["\uD835\uDE39","x"],["\uD835\uDE3A","y"],["\uD835\uDE3B","z"],["\uD835\uDE3C","A"],["\uD835\uDE3D","B"],["\uD835\uDE3E","C"],["\uD835\uDE3F","D"],["\uD835\uDE40","E"],["\uD835\uDE41","F"],["\uD835\uDE42","G"],["\uD835\uDE43","H"],["\uD835\uDE44","I"],["\uD835\uDE45","J"],["\uD835\uDE46","K"],["\uD835\uDE47","L"],["\uD835\uDE48","M"],["\uD835\uDE49","N"],["\uD835\uDE4A","O"],["\uD835\uDE4B","P"],["\uD835\uDE4C","Q"],["\uD835\uDE4D","R"],["\uD835\uDE4E","S"],["\uD835\uDE4F","T"],["\uD835\uDE50","U"],["\uD835\uDE51","V"],["\uD835\uDE52","W"],["\uD835\uDE53","X"],["\uD835\uDE54","Y"],["\uD835\uDE55","Z"],["\uD835\uDE56","a"],["\uD835\uDE57","b"],["\uD835\uDE58","c"],["\uD835\uDE59","d"],["\uD835\uDE5A","e"],["\uD835\uDE5B","f"],["\uD835\uDE5C","g"],["\uD835\uDE5D","h"],["\uD835\uDE5E","i"],["\uD835\uDE5F","j"],["\uD835\uDE60","k"],["\uD835\uDE61","l"],["\uD835\uDE62","m"],["\uD835\uDE63","n"],["\uD835\uDE64","o"],["\uD835\uDE65","p"],["\uD835\uDE66","q"],["\uD835\uDE67","r"],["\uD835\uDE68","s"],["\uD835\uDE69","t"],["\uD835\uDE6A","u"],["\uD835\uDE6B","v"],["\uD835\uDE6C","w"],["\uD835\uDE6D","x"],["\uD835\uDE6E","y"],["\uD835\uDE6F","z"],["\uD835\uDE70","A"],["\uD835\uDE71","B"],["\uD835\uDE72","C"],["\uD835\uDE73","D"],["\uD835\uDE74","E"],["\uD835\uDE75","F"],["\uD835\uDE76","G"],["\uD835\uDE77","H"],["\uD835\uDE78","I"],["\uD835\uDE79","J"],["\uD835\uDE7A","K"],["\uD835\uDE7B","L"],["\uD835\uDE7C","M"],["\uD835\uDE7D","N"],["\uD835\uDE7E","O"],["\uD835\uDE7F","P"],["\uD835\uDE80","Q"],["\uD835\uDE81","R"],["\uD835\uDE82","S"],["\uD835\uDE83","T"],["\uD835\uDE84","U"],["\uD835\uDE85","V"],["\uD835\uDE86","W"],["\uD835\uDE87","X"],["\uD835\uDE88","Y"],["\uD835\uDE89","Z"],["\uD835\uDE8A","a"],["\uD835\uDE8B","b"],["\uD835\uDE8C","c"],["\uD835\uDE8D","d"],["\uD835\uDE8E","e"],["\uD835\uDE8F","f"],["\uD835\uDE90","g"],["\uD835\uDE91","h"],["\uD835\uDE92","i"],["\uD835\uDE93","j"],["\uD835\uDE94","k"],["\uD835\uDE95","l"],["\uD835\uDE96","m"],["\uD835\uDE97","n"],["\uD835\uDE98","o"],["\uD835\uDE99","p"],["\uD835\uDE9A","q"],["\uD835\uDE9B","r"],["\uD835\uDE9C","s"],["\uD835\uDE9D","t"],["\uD835\uDE9E","u"],["\uD835\uDE9F","v"],["\uD835\uDEA0","w"],["\uD835\uDEA1","x"],["\uD835\uDEA2","y"],["\uD835\uDEA3","z"],["\uD835\uDEA4","l"],["\uD835\uDEA5","j"],["\uD835\uDEE2","A"],["\uD835\uDEE3","B"],["\uD835\uDEE4","G"],["\uD835\uDEE5","D"],["\uD835\uDEE6","E"],["\uD835\uDEE7","Z"],["\uD835\uDEE8","I"],["\uD835\uDEE9","TH"],["\uD835\uDEEA","I"],["\uD835\uDEEB","K"],["\uD835\uDEEC","L"],["\uD835\uDEED","M"],["\uD835\uDEEE","N"],["\uD835\uDEEF","KS"],["\uD835\uDEF0","O"],["\uD835\uDEF1","P"],["\uD835\uDEF2","R"],["\uD835\uDEF3","TH"],["\uD835\uDEF4","S"],["\uD835\uDEF5","T"],["\uD835\uDEF6","Y"],["\uD835\uDEF7","F"],["\uD835\uDEF8","x"],["\uD835\uDEF9","PS"],["\uD835\uDEFA","O"],["\uD835\uDEFB","D"],["\uD835\uDEFC","a"],["\uD835\uDEFD","b"],["\uD835\uDEFE","g"],["\uD835\uDEFF","d"],["\uD835\uDF00","e"],["\uD835\uDF01","z"],["\uD835\uDF02","i"],["\uD835\uDF03","th"],["\uD835\uDF04","i"],["\uD835\uDF05","k"],["\uD835\uDF06","l"],["\uD835\uDF07","m"],["\uD835\uDF08","n"],["\uD835\uDF09","ks"],["\uD835\uDF0A","o"],["\uD835\uDF0B","p"],["\uD835\uDF0C","r"],["\uD835\uDF0D","s"],["\uD835\uDF0E","s"],["\uD835\uDF0F","t"],["\uD835\uDF10","y"],["\uD835\uDF11","f"],["\uD835\uDF12","x"],["\uD835\uDF13","ps"],["\uD835\uDF14","o"],["\uD835\uDF15","d"],["\uD835\uDF16","E"],["\uD835\uDF17","TH"],["\uD835\uDF18","K"],["\uD835\uDF19","f"],["\uD835\uDF1A","r"],["\uD835\uDF1B","p"],["\uD835\uDF1C","A"],["\uD835\uDF1D","V"],["\uD835\uDF1E","G"],["\uD835\uDF1F","D"],["\uD835\uDF20","E"],["\uD835\uDF21","Z"],["\uD835\uDF22","I"],["\uD835\uDF23","TH"],["\uD835\uDF24","I"],["\uD835\uDF25","K"],["\uD835\uDF26","L"],["\uD835\uDF27","M"],["\uD835\uDF28","N"],["\uD835\uDF29","KS"],["\uD835\uDF2A","O"],["\uD835\uDF2B","P"],["\uD835\uDF2C","S"],["\uD835\uDF2D","TH"],["\uD835\uDF2E","S"],["\uD835\uDF2F","T"],["\uD835\uDF30","Y"],["\uD835\uDF31","F"],["\uD835\uDF32","X"],["\uD835\uDF33","PS"],["\uD835\uDF34","O"],["\uD835\uDF35","D"],["\uD835\uDF36","a"],["\uD835\uDF37","v"],["\uD835\uDF38","g"],["\uD835\uDF39","d"],["\uD835\uDF3A","e"],["\uD835\uDF3B","z"],["\uD835\uDF3C","i"],["\uD835\uDF3D","th"],["\uD835\uDF3E","i"],["\uD835\uDF3F","k"],["\uD835\uDF40","l"],["\uD835\uDF41","m"],["\uD835\uDF42","n"],["\uD835\uDF43","ks"],["\uD835\uDF44","o"],["\uD835\uDF45","p"],["\uD835\uDF46","r"],["\uD835\uDF47","s"],["\uD835\uDF48","s"],["\uD835\uDF49","t"],["\uD835\uDF4A","y"],["\uD835\uDF4B","f"],["\uD835\uDF4C","x"],["\uD835\uDF4D","ps"],["\uD835\uDF4E","o"],["\uD835\uDF4F","a"],["\uD835\uDF50","e"],["\uD835\uDF51","i"],["\uD835\uDF52","k"],["\uD835\uDF53","f"],["\uD835\uDF54","r"],["\uD835\uDF55","p"],["\uD835\uDF56","A"],["\uD835\uDF57","B"],["\uD835\uDF58","G"],["\uD835\uDF59","D"],["\uD835\uDF5A","E"],["\uD835\uDF5B","Z"],["\uD835\uDF5C","I"],["\uD835\uDF5D","TH"],["\uD835\uDF5E","I"],["\uD835\uDF5F","K"],["\uD835\uDF60","L"],["\uD835\uDF61","M"],["\uD835\uDF62","N"],["\uD835\uDF63","KS"],["\uD835\uDF64","O"],["\uD835\uDF65","P"],["\uD835\uDF66","R"],["\uD835\uDF67","TH"],["\uD835\uDF68","S"],["\uD835\uDF69","T"],["\uD835\uDF6A","Y"],["\uD835\uDF6B","F"],["\uD835\uDF6C","X"],["\uD835\uDF6D","PS"],["\uD835\uDF6E","O"],["\uD835\uDF6F","D"],["\uD835\uDF70","a"],["\uD835\uDF71","v"],["\uD835\uDF72","g"],["\uD835\uDF73","d"],["\uD835\uDF74","e"],["\uD835\uDF75","z"],["\uD835\uDF76","i"],["\uD835\uDF77","th"],["\uD835\uDF78","i"],["\uD835\uDF79","k"],["\uD835\uDF7A","l"],["\uD835\uDF7B","m"],["\uD835\uDF7C","n"],["\uD835\uDF7D","ks"],["\uD835\uDF7E","o"],["\uD835\uDF7F","p"],["\uD835\uDF80","r"],["\uD835\uDF81","s"],["\uD835\uDF82","s"],["\uD835\uDF83","t"],["\uD835\uDF84","y"],["\uD835\uDF85","f"],["\uD835\uDF86","x"],["\uD835\uDF87","ps"],["\uD835\uDF88","o"],["\uD835\uDF89","a"],["\uD835\uDF8A","e"],["\uD835\uDF8B","i"],["\uD835\uDF8C","k"],["\uD835\uDF8D","f"],["\uD835\uDF8E","r"],["\uD835\uDF8F","p"],["\uD835\uDF90","A"],["\uD835\uDF91","V"],["\uD835\uDF92","G"],["\uD835\uDF93","D"],["\uD835\uDF94","E"],["\uD835\uDF95","Z"],["\uD835\uDF96","I"],["\uD835\uDF97","TH"],["\uD835\uDF98","I"],["\uD835\uDF99","K"],["\uD835\uDF9A","L"],["\uD835\uDF9B","M"],["\uD835\uDF9C","N"],["\uD835\uDF9D","KS"],["\uD835\uDF9E","O"],["\uD835\uDF9F","P"],["\uD835\uDFA0","S"],["\uD835\uDFA1","TH"],["\uD835\uDFA2","S"],["\uD835\uDFA3","T"],["\uD835\uDFA4","Y"],["\uD835\uDFA5","F"],["\uD835\uDFA6","X"],["\uD835\uDFA7","PS"],["\uD835\uDFA8","O"],["\uD835\uDFA9","D"],["\uD835\uDFAA","av"],["\uD835\uDFAB","g"],["\uD835\uDFAC","d"],["\uD835\uDFAD","e"],["\uD835\uDFAE","z"],["\uD835\uDFAF","i"],["\uD835\uDFB0","i"],["\uD835\uDFB1","th"],["\uD835\uDFB2","i"],["\uD835\uDFB3","k"],["\uD835\uDFB4","l"],["\uD835\uDFB5","m"],["\uD835\uDFB6","n"],["\uD835\uDFB7","ks"],["\uD835\uDFB8","o"],["\uD835\uDFB9","p"],["\uD835\uDFBA","r"],["\uD835\uDFBB","s"],["\uD835\uDFBC","s"],["\uD835\uDFBD","t"],["\uD835\uDFBE","y"],["\uD835\uDFBF","f"],["\uD835\uDFC0","x"],["\uD835\uDFC1","ps"],["\uD835\uDFC2","o"],["\uD835\uDFC3","a"],["\uD835\uDFC4","e"],["\uD835\uDFC5","i"],["\uD835\uDFC6","k"],["\uD835\uDFC7","f"],["\uD835\uDFC8","r"],["\uD835\uDFC9","p"],["\uD835\uDFCA","F"],["\uD835\uDFCB","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["\uD835\uDFCE","0"],["\uD835\uDFCF","1"],["\uD835\uDFD0","2"],["\uD835\uDFD1","3"],["\uD835\uDFD2","4"],["\uD835\uDFD3","5"],["\uD835\uDFD4","6"],["\uD835\uDFD5","7"],["\uD835\uDFD6","8"],["\uD835\uDFD7","9"],["\uD835\uDFD8","0"],["\uD835\uDFD9","1"],["\uD835\uDFDA","2"],["\uD835\uDFDB","3"],["\uD835\uDFDC","4"],["\uD835\uDFDD","5"],["\uD835\uDFDE","6"],["\uD835\uDFDF","7"],["\uD835\uDFE0","8"],["\uD835\uDFE1","9"],["\uD835\uDFE2","0"],["\uD835\uDFE3","1"],["\uD835\uDFE4","2"],["\uD835\uDFE5","3"],["\uD835\uDFE6","4"],["\uD835\uDFE7","5"],["\uD835\uDFE8","6"],["\uD835\uDFE9","7"],["\uD835\uDFEA","8"],["\uD835\uDFEB","9"],["\uD835\uDFEC","0"],["\uD835\uDFED","1"],["\uD835\uDFEE","2"],["\uD835\uDFEF","3"],["\uD835\uDFF0","4"],["\uD835\uDFF1","5"],["\uD835\uDFF2","6"],["\uD835\uDFF3","7"],["\uD835\uDFF4","8"],["\uD835\uDFF5","9"],["\uD835\uDFF6","0"],["\uD835\uDFF7","1"],["\uD835\uDFF8","2"],["\uD835\uDFF9","3"],["\uD835\uDFFA","4"],["\uD835\uDFFB","5"],["\uD835\uDFFC","6"],["\uD835\uDFFD","7"],["\uD835\uDFFE","8"],["\uD835\uDFFF","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["\uD83D\uDE70","&"],["\uD83D\uDE71","&"],["\uD83D\uDE72","&"],["\uD83D\uDE73","&"],["\uD83D\uDE74","&"],["\uD83D\uDE75","&"],["\uD83D\uDE76",'"'],["\uD83D\uDE77",'"'],["\uD83D\uDE78",'"'],["‽","?!"],["\uD83D\uDE79","?!"],["\uD83D\uDE7A","?!"],["\uD83D\uDE7B","?!"],["\uD83D\uDE7C","/"],["\uD83D\uDE7D","\\"],["\uD83D\uDF07","AR"],["\uD83D\uDF08","V"],["\uD83D\uDF09","V"],["\uD83D\uDF06","VR"],["\uD83D\uDF05","VF"],["\uD83D\uDF29","2"],["\uD83D\uDF2A","5"],["\uD83D\uDF61","f"],["\uD83D\uDF62","W"],["\uD83D\uDF63","U"],["\uD83D\uDF67","V"],["\uD83D\uDF68","T"],["\uD83D\uDF6A","V"],["\uD83D\uDF6B","MB"],["\uD83D\uDF6C","VB"],["\uD83D\uDF72","3B"],["\uD83D\uDF73","3B"],["\uD83D\uDCAF","100"],["\uD83D\uDD19","BACK"],["\uD83D\uDD1A","END"],["\uD83D\uDD1B","ON!"],["\uD83D\uDD1C","SOON"],["\uD83D\uDD1D","TOP"],["\uD83D\uDD1E","18"],["\uD83D\uDD24","abc"],["\uD83D\uDD20","ABCD"],["\uD83D\uDD21","abcd"],["\uD83D\uDD22","1234"],["\uD83D\uDD23","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["\uD83D\uDD1F","10"],["\uD83C\uDD70️","A"],["\uD83C\uDD71️","B"],["\uD83C\uDD8E","AB"],["\uD83C\uDD91","CL"],["\uD83C\uDD7E️","O"],["\uD83C\uDD7F","P"],["\uD83C\uDD98","SOS"],["\uD83C\uDD72","C"],["\uD83C\uDD73","D"],["\uD83C\uDD74","E"],["\uD83C\uDD75","F"],["\uD83C\uDD76","G"],["\uD83C\uDD77","H"],["\uD83C\uDD78","I"],["\uD83C\uDD79","J"],["\uD83C\uDD7A","K"],["\uD83C\uDD7B","L"],["\uD83C\uDD7C","M"],["\uD83C\uDD7D","N"],["\uD83C\uDD80","Q"],["\uD83C\uDD81","R"],["\uD83C\uDD82","S"],["\uD83C\uDD83","T"],["\uD83C\uDD84","U"],["\uD83C\uDD85","V"],["\uD83C\uDD86","W"],["\uD83C\uDD87","X"],["\uD83C\uDD88","Y"],["\uD83C\uDD89","Z"]];let s=(t,e)=>{for(let[n,i]of e)t=t.replace(RegExp((0,r.Z)(n),"g"),i);return t};var o=[["&"," and "],["\uD83E\uDD84"," unicorn "],["♥"," love "]];let a=t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),l=(t,e)=>{let n=(0,r.Z)(e);return t.replace(RegExp(`${n}{2,}`,"g"),e).replace(RegExp(`^${n}|${n}$`,"g"),"")},h=t=>{let e="a-z\\d";if(e+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(let n of t.preserveCharacters){if(n===t.separator)throw Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);e+=(0,r.Z)(n)}return RegExp(`[^${e}]+`,"g")};function u(t,e){if("string"!=typeof t)throw TypeError(`Expected a string, got \`${typeof t}\``);e={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...e};let n=e.preserveLeadingUnderscore&&t.startsWith("_"),r=e.preserveTrailingDash&&t.endsWith("-"),u=new Map([...o,...e.customReplacements]);t=function(t,e){if("string"!=typeof t)throw TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};let n=new Map([...i,...e.customReplacements]);return t=(t=s(t=t.normalize(),n)).normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize()}(t,{customReplacements:u}),e.decamelize&&(t=a(t));let c=h(e);return e.lowercase&&(t=t.toLowerCase()),t=(t=(t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(c,e.separator)).replace(/\\/g,""),e.separator&&(t=l(t,e.separator)),n&&(t=`_${t}`),r&&(t=`${t}-`),t}},68035:function(t,e,n){n.d(e,{M_:function(){return M},T5:function(){return A},fW:function(){return R},jE:function(){return k},kg:function(){return m}});var r,i,s=n(3546),o=n(30171),a=n(31408),l={exports:{}},h={};l.exports=function(){if(r)return h;r=1;var t="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},e=s.useState,n=s.useEffect,i=s.useLayoutEffect,o=s.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,r){var s=r(),l=e({inst:{value:s,getSnapshot:r}}),h=l[0].inst,u=l[1];return i(function(){h.value=s,h.getSnapshot=r,a(h)&&u({inst:h})},[t,s,r]),n(function(){return a(h)&&u({inst:h}),t(function(){a(h)&&u({inst:h})})},[t]),o(s),s};return h.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:l,h}();var u=l.exports;let c=(...t)=>e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})},d=({contentComponent:t})=>{let e=u.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return s.createElement(s.Fragment,null,Object.values(e))};class p extends s.Component{constructor(t){var e;super(t),this.editorContentRef=s.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null===(e=t.editor)||void 0===e?void 0:e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let t=this.props.editor;if(t&&!t.isDestroyed&&t.options.element){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.options.element.childNodes),t.setOptions({element:e}),t.contentComponent=function(){let t=new Set,e={};return{subscribe:e=>(t.add(e),()=>{t.delete(e)}),getSnapshot:()=>e,getServerSnapshot:()=>e,setRenderer(n,r){e={...e,[n]:o.createPortal(r.reactElement,r.element,n)},t.forEach(t=>t())},removeRenderer(n){let r={...e};delete r[n],e=r,t.forEach(t=>t())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(t=>t.hasContentComponentInitialized?t:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let t=this.props.editor;if(!t||(this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null,!t.options.element.firstChild))return;let e=document.createElement("div");e.append(...t.options.element.childNodes),t.setOptions({element:e})}render(){let{editor:t,innerRef:e,...n}=this.props;return s.createElement(s.Fragment,null,s.createElement("div",{ref:c(e,this.editorContentRef),...n}),(null==t?void 0:t.contentComponent)&&s.createElement(d,{contentComponent:t.contentComponent}))}}let f=(0,s.forwardRef)((t,e)=>{let n=s.useMemo(()=>Math.floor(4294967295*Math.random()).toString(),[t.editor]);return s.createElement(p,{key:n,innerRef:e,...t})}),m=s.memo(f);var g={exports:{}},y={};g.exports=function(){if(i)return y;i=1;var t="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},e=u.useSyncExternalStore,n=s.useRef,r=s.useEffect,o=s.useMemo,a=s.useDebugValue;return y.useSyncExternalStoreWithSelector=function(i,s,l,h,u){var c=n(null);if(null===c.current){var d={hasValue:!1,value:null};c.current=d}else d=c.current;var p=e(i,(c=o(function(){function e(e){if(!i){if(i=!0,n=e,e=h(e),void 0!==u&&d.hasValue){var s=d.value;if(u(s,e))return r=s}return r=e}if(s=r,t(n,e))return s;var o=h(e);return void 0!==u&&u(s,o)?s:(n=e,r=o)}var n,r,i=!1,o=void 0===l?null:l;return[function(){return e(s())},null===o?void 0:function(){return e(o())}]},[s,l,h,u]))[0],c[1]);return r(function(){d.hasValue=!0,d.value=p},[p]),a(p),p},y}();var v=g.exports;class x{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){let t=()=>{this.transactionNumber+=1,this.subscribers.forEach(t=>t())},e=this.editor;return e.on("transaction",t),()=>{e.off("transaction",t)}}}}let w="undefined"==typeof window,S=w||!!("undefined"!=typeof window&&window.next);class b{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(t=>t())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?w||S?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){let t={...this.options.current,onBeforeCreate:(...t)=>{var e,n;return null===(n=(e=this.options.current).onBeforeCreate)||void 0===n?void 0:n.call(e,...t)},onBlur:(...t)=>{var e,n;return null===(n=(e=this.options.current).onBlur)||void 0===n?void 0:n.call(e,...t)},onCreate:(...t)=>{var e,n;return null===(n=(e=this.options.current).onCreate)||void 0===n?void 0:n.call(e,...t)},onDestroy:(...t)=>{var e,n;return null===(n=(e=this.options.current).onDestroy)||void 0===n?void 0:n.call(e,...t)},onFocus:(...t)=>{var e,n;return null===(n=(e=this.options.current).onFocus)||void 0===n?void 0:n.call(e,...t)},onSelectionUpdate:(...t)=>{var e,n;return null===(n=(e=this.options.current).onSelectionUpdate)||void 0===n?void 0:n.call(e,...t)},onTransaction:(...t)=>{var e,n;return null===(n=(e=this.options.current).onTransaction)||void 0===n?void 0:n.call(e,...t)},onUpdate:(...t)=>{var e,n;return null===(n=(e=this.options.current).onUpdate)||void 0===n?void 0:n.call(e,...t)},onContentError:(...t)=>{var e,n;return null===(n=(e=this.options.current).onContentError)||void 0===n?void 0:n.call(e,...t)}},e=new a.ML(t);return e}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?this.editor.setOptions(this.options.current):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=t;return}let e=this.previousDeps.length===t.length&&this.previousDeps.every((e,n)=>e===t[n]);if(e)return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){let t=this.instanceId,e=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){e&&e.setOptions(this.options.current);return}e&&!e.isDestroyed&&(e.destroy(),this.instanceId===t&&this.setEditor(null))},1)}}function k(t={},e=[]){let n=(0,s.useRef)(t);n.current=t;let[r]=(0,s.useState)(()=>new b(n)),i=u.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,s.useDebugValue)(i),(0,s.useEffect)(r.onRender(e)),!function(t){let[e]=(0,s.useState)(()=>new x(t.editor)),n=v.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getServerSnapshot,t.selector,t.equalityFn);(0,s.useEffect)(()=>e.watch(t.editor),[t.editor,e]),(0,s.useDebugValue)(n)}({editor:i,selector:({transactionNumber:e})=>!1===t.shouldRerenderOnTransaction?null:t.immediatelyRender&&0===e?0:e+1}),i}let T=(0,s.createContext)({editor:null});T.Consumer;let E=(0,s.createContext)({onDragStart:void 0}),C=()=>(0,s.useContext)(E),A=s.forwardRef((t,e)=>{let{onDragStart:n}=C(),r=t.as||"div";return s.createElement(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});class M{constructor(t,{editor:e,props:n={},as:r="div",className:i="",attrs:s}){this.ref=null,this.id=Math.floor(4294967295*Math.random()).toString(),this.component=t,this.editor=e,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),s&&Object.keys(s).forEach(t=>{this.element.setAttribute(t,s[t])}),this.editor.isInitialized?(0,o.flushSync)(()=>{this.render()}):this.render()}render(){var t,e;let n=this.component,r=this.props,i=this.editor;("function"==typeof n&&n.prototype&&n.prototype.isReactComponent||"object"==typeof n&&(null===(e=n.$$typeof)||void 0===e?void 0:e.toString())==="Symbol(react.forward_ref)")&&(r.ref=t=>{this.ref=t}),this.reactElement=s.createElement(n,r),null===(t=null==i?void 0:i.contentComponent)||void 0===t||t.setRenderer(this.id,this)}updateProps(t={}){this.props={...this.props,...t},this.render()}destroy(){var t;let e=this.editor;null===(t=null==e?void 0:e.contentComponent)||void 0===t||t.removeRenderer(this.id)}}class P extends a.DK{mount(){let t={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(t={})=>this.updateAttributes(t),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){var e;this.component.displayName=(e=this.extension.name).charAt(0).toUpperCase()+e.substring(1)}let n=this.onDragStart.bind(this),r={onDragStart:n,nodeViewContentRef:t=>{t&&this.contentDOMElement&&t.firstChild!==this.contentDOMElement&&t.appendChild(this.contentDOMElement)}},i=this.component,o=s.memo(t=>s.createElement(E.Provider,{value:r},s.createElement(i,t)));o.displayName="ReactNodeView",this.node.isLeaf?this.contentDOMElement=null:this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit");let a=this.node.isInline?"span":"div";this.options.as&&(a=this.options.as);let{className:l=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new M(o,{editor:this.editor,props:t,as:a,className:`node-${this.node.type.name} ${l}`.trim(),attrs:this.options.attrs})}get dom(){var t;if(this.renderer.element.firstElementChild&&!(null===(t=this.renderer.element.firstElementChild)||void 0===t?void 0:t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){let{from:t,to:e}=this.editor.state.selection;if(t<=this.getPos()&&e>=this.getPos()+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(t,e){let n=t=>{this.renderer.updateProps(t)};if(t.type!==this.node.type)return!1;if("function"==typeof this.options.update){let r=this.node,i=this.decorations;return this.node=t,this.decorations=e,this.options.update({oldNode:r,oldDecorations:i,newNode:t,newDecorations:e,updateProps:()=>n({node:t,decorations:e})})}return t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,n({node:t,decorations:e}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}}function R(t,e){return n=>n.editor.contentComponent?new P(t,n,e):{}}},94755:function(t,e,n){n.d(e,{iP:function(){return i}});var r=n(3546);function i(){let[t,e]=r.useState({width:null,height:null});return r.useLayoutEffect(()=>{let t=()=>{e({width:window.innerWidth,height:window.innerHeight})};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),t}},35737:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},17463:function(t,e,n){n.d(e,{p:function(){return i}});var r=n(3546);let i=(0,r.createContext)({})},63566:function(t,e,n){n.d(e,{_:function(){return i}});var r=n(3546);let i=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},5934:function(t,e,n){n.d(e,{O:function(){return i}});var r=n(3546);let i=(0,r.createContext)(null)},84837:function(t,e,n){let r;function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}n.d(e,{E:function(){return si}});let s=t=>Array.isArray(t);function o(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function h(t,e,n,r){if("function"==typeof e){let[i,s]=l(r);e=e(void 0!==n?n:t.custom,i,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[i,s]=l(r);e=e(void 0!==n?n:t.custom,i,s)}return e}function u(t,e,n){let r=t.getProps();return h(r,e,void 0!==n?n:r.custom,t)}let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c],p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(p),m=t=>1e3*t,g=t=>t/1e3,y={type:"spring",stiffness:500,damping:25,restSpeed:10},v=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),x={type:"keyframes",duration:.8},w={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S=(t,{keyframes:e})=>e.length>2?x:f.has(t)?t.startsWith("scale")?v(e[1]):y:w;function b(t,e){return t?t[e]||t.default||t:void 0}let k={skipAnimations:!1,useManualTiming:!1},T={current:!1},E=t=>null!==t;function C(t,{repeat:e,repeatType:n="loop"},r){let i=t.filter(E),s=e&&"loop"!==n&&e%2==1?0:i.length-1;return s&&void 0!==r?r:i[s]}var A,M,P,R=n(58559);let O=["read","resolveKeyframes","update","preRender","render","postRender"];function I(t,e){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=O.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,r=!1,i=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,i=!1,o=!1)=>{let a=o&&r,l=a?e:n;return i&&s.add(t),l.has(t)||l.add(t),t},cancel:t=>{n.delete(t),s.delete(t)},process:t=>{if(o=t,r){i=!0;return}r=!0,[e,n]=[n,e],n.clear(),e.forEach(a),r=!1,i&&(i=!1,l.process(t))}};return l}(s),t),{}),{read:a,resolveKeyframes:l,update:h,preRender:u,render:c,postRender:d}=o,p=()=>{let s=k.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1),i.timestamp=s,i.isProcessing=!0,a.process(i),l.process(i),h.process(i),u.process(i),c.process(i),d.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(p))},f=()=>{n=!0,r=!0,i.isProcessing||t(p)},m=O.reduce((t,e)=>{let r=o[e];return t[e]=(t,e=!1,i=!1)=>(n||f(),r.schedule(t,e,i)),t},{});return{schedule:m,cancel:t=>{for(let e=0;e(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function j(t,e,n,r){if(t===e&&n===r)return R.Z;let i=e=>(function(t,e,n,r,i){let s,o;let a=0;do(s=z(o=e+(n-e)/2,r,i)-t)>0?n=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,n);return t=>0===t||1===t?t:z(i(t),e,r)}let B=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,L=t=>e=>1-t(1-e),$=j(.33,1.53,.69,.99),U=L($),Y=B(U),W=t=>(t*=2)<1?.5*U(t):.5*(2-Math.pow(2,-10*(t-1))),J=t=>1-Math.sin(Math.acos(t)),H=L(J),q=B(J),K=t=>/^0[^.\s]+$/u.test(t);var Z=n(59700);let G=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),X=t=>e=>"string"==typeof e&&e.startsWith(t),_=X("--"),Q=X("var(--"),tt=t=>{let e=Q(t);return!!e&&te.test(t.split("/*")[0].trim())},te=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tr=(t,e,n)=>n>e?e:n"number"==typeof t,parse:parseFloat,transform:t=>t},ts={...ti,transform:t=>tr(0,1,t)},to={...ti,default:1},ta=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tl=ta("deg"),th=ta("%"),tu=ta("px"),tc=ta("vh"),td=ta("vw"),tp={...th,parse:t=>th.parse(t)/100,transform:t=>th.transform(100*t)},tf=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tm=t=>t===ti||t===tu,tg=(t,e)=>parseFloat(t.split(", ")[e]),ty=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return tg(i[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?tg(e[1],t):0}},tv=new Set(["x","y","z"]),tx=p.filter(t=>!tv.has(t)),tw={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ty(4,13),y:ty(5,14)};tw.translateX=tw.x,tw.translateY=tw.y;let tS=t=>e=>e.test(t),tb=[ti,tu,th,tl,td,tc,{test:t=>"auto"===t,parse:t=>t}],tk=t=>tb.find(tS(t)),tT=new Set,tE=!1,tC=!1;function tA(){if(tC){let t=Array.from(tT).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=function(t){let e=[];return tx.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tC=!1,tE=!1,tT.forEach(t=>t.complete()),tT.clear()}function tM(){tT.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tC=!0)})}class tP{constructor(t,e,n,r,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tT.add(this),tE||(tE=!0,D.read(tM),D.resolveKeyframes(tA))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:r}=this;for(let i=0;iMath.round(1e5*t)/1e5,tO=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tD=(t,e)=>n=>!!("string"==typeof n&&tI.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),tN=(t,e,n)=>r=>{if("string"!=typeof r)return r;let[i,s,o,a]=r.match(tO);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tV=t=>tr(0,255,t),tF={...ti,transform:t=>Math.round(tV(t))},tz={test:tD("rgb","red"),parse:tN("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+tF.transform(t)+", "+tF.transform(e)+", "+tF.transform(n)+", "+tR(ts.transform(r))+")"},tj={test:tD("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:tz.transform},tB={test:tD("hsl","hue"),parse:tN("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+th.transform(tR(e))+", "+th.transform(tR(n))+", "+tR(ts.transform(r))+")"},tL={test:t=>tz.test(t)||tj.test(t)||tB.test(t),parse:t=>tz.test(t)?tz.parse(t):tB.test(t)?tB.parse(t):tj.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tz.transform(t):tB.transform(t)},t$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tU="number",tY="color",tW=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tJ(t){let e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[],s=0,o=e.replace(tW,t=>(tL.test(t)?(r.color.push(s),i.push(tY),n.push(tL.parse(t))):t.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(t)):(r.number.push(s),i.push(tU),n.push(parseFloat(t))),++s,"${}")),a=o.split("${}");return{values:n,split:a,indexes:r,types:i}}function tH(t){return tJ(t).values}function tq(t){let{split:e,types:n}=tJ(t),r=e.length;return t=>{let i="";for(let s=0;s"number"==typeof t?0:t,tZ={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tO))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(t$))||void 0===n?void 0:n.length)||0)>0},parse:tH,createTransformer:tq,getAnimatableNone:function(t){let e=tH(t),n=tq(t);return n(e.map(tK))}},tG=new Set(["brightness","contrast","saturate","opacity"]);function tX(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(tO)||[];if(!r)return t;let i=n.replace(r,""),s=tG.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}let t_=/\b([a-z-]*)\(.*?\)/gu,tQ={...tZ,getAnimatableNone:t=>{let e=t.match(t_);return e?e.map(tX).join(" "):t}},t0={...ti,transform:Math.round},t1={borderWidth:tu,borderTopWidth:tu,borderRightWidth:tu,borderBottomWidth:tu,borderLeftWidth:tu,borderRadius:tu,radius:tu,borderTopLeftRadius:tu,borderTopRightRadius:tu,borderBottomRightRadius:tu,borderBottomLeftRadius:tu,width:tu,maxWidth:tu,height:tu,maxHeight:tu,top:tu,right:tu,bottom:tu,left:tu,padding:tu,paddingTop:tu,paddingRight:tu,paddingBottom:tu,paddingLeft:tu,margin:tu,marginTop:tu,marginRight:tu,marginBottom:tu,marginLeft:tu,backgroundPositionX:tu,backgroundPositionY:tu,rotate:tl,rotateX:tl,rotateY:tl,rotateZ:tl,scale:to,scaleX:to,scaleY:to,scaleZ:to,skew:tl,skewX:tl,skewY:tl,distance:tu,translateX:tu,translateY:tu,translateZ:tu,x:tu,y:tu,z:tu,perspective:tu,transformPerspective:tu,opacity:ts,originX:tp,originY:tp,originZ:tu,zIndex:t0,size:tu,fillOpacity:ts,strokeOpacity:ts,numOctaves:t0},t2={...t1,color:tL,backgroundColor:tL,outlineColor:tL,fill:tL,stroke:tL,borderColor:tL,borderTopColor:tL,borderRightColor:tL,borderBottomColor:tL,borderLeftColor:tL,filter:tQ,WebkitFilter:tQ},t5=t=>t2[t];function t3(t,e){let n=t5(t);return n!==tQ&&(n=tZ),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let t9=new Set(["auto","none","0"]);class t4 extends tP{constructor(t,e,n,r,i){super(t,e,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}function t6(t){return"function"==typeof t}function t7(){r=void 0}let t8={now:()=>(void 0===r&&t8.set(V.isProcessing||k.useManualTiming?V.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(t7)}},et=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tZ.test(t)||"0"===t)&&!t.startsWith("url("));class ee{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=t8.now(),this.options={autoplay:t,delay:e,type:n,repeat:r,repeatDelay:i,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tM(),tA()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=t8.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,r){let i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=et(i,e),a=et(s,e);return(0,Z.K)(o===a,`You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function en(t,e,n){var r,i;let s=Math.max(e-5,0);return r=n-t(s),(i=e-s)?r*(1e3/i):0}function er(t,e){return t*Math.sqrt(1-e*e)}let ei=["duration","bounce"],es=["stiffness","damping","mass"];function eo(t,e){return e.some(e=>void 0!==t[e])}function ea({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:h,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eo(t,es)&&eo(t,ei)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,s;(0,Z.K)(t<=m(10),"Spring duration must be 10 seconds or less");let o=1-e;o=tr(.05,1,o),t=tr(.01,10,g(t)),o<1?(i=e=>{let r=e*o,i=r*t,s=er(e,o);return .001-(r-n)/s*Math.exp(-i)},s=e=>{let r=e*o,s=r*t,a=Math.pow(o,2)*Math.pow(e,2)*t,l=er(Math.pow(e,2),o),h=-i(e)+.001>0?-1:1;return h*((s*n+n-a)*Math.exp(-s))/l}):(i=e=>{let r=Math.exp(-e*t),i=(e-n)*t+1;return -.001+r*i},s=e=>{let r=Math.exp(-e*t),i=(n-e)*(t*t);return r*i});let a=5/t,l=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,s,a);if(t=m(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-g(r.velocity||0)}),f=d||0,y=h/(2*Math.sqrt(l*u)),v=o-s,x=g(Math.sqrt(l/u)),w=5>Math.abs(v);if(n||(n=w?.01:2),e||(e=w?.005:.5),y<1){let t=er(x,y);i=e=>{let n=Math.exp(-y*x*e);return o-n*((f+y*x*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===y)i=t=>o-Math.exp(-x*t)*(v+(f+x*v)*t);else{let t=x*Math.sqrt(y*y-1);i=e=>{let n=Math.exp(-y*x*e),r=Math.min(t*e,300);return o-n*((f+y*x*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{let r=i(t);if(p)a.done=t>=c;else{let s=0;y<1&&(s=0===t?m(f):en(i,t,r));let l=Math.abs(s)<=n,h=Math.abs(o-r)<=e;a.done=l&&h}return a.value=a.done?o:r,a}}}function el({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&tl,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-y*Math.exp(-t/r),S=t=>x+w(t),b=t=>{let e=w(t),n=S(t);f.done=Math.abs(e)<=h,f.value=f.done?x:n},k=t=>{m(f.value)&&(c=t,d=ea({keyframes:[f.value,g(f.value)],velocity:en(S,t,f.value),damping:i,stiffness:s,restDelta:h,restSpeed:u}))};return k(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),k(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),f)}}}let eh=j(.42,0,1,1),eu=j(0,0,.58,1),ec=j(.42,0,.58,1),ed=t=>Array.isArray(t)&&"number"!=typeof t[0],ep=t=>Array.isArray(t)&&"number"==typeof t[0],ef={linear:R.Z,easeIn:eh,easeInOut:ec,easeOut:eu,circIn:J,circInOut:q,circOut:H,backIn:U,backInOut:Y,backOut:$,anticipate:W},em=t=>{if(ep(t)){(0,Z.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return j(e,n,r,i)}return"string"==typeof t?((0,Z.k)(void 0!==ef[t],`Invalid easing type '${t}'`),ef[t]):t},eg=(t,e)=>n=>e(t(n)),ey=(...t)=>t.reduce(eg),ev=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},ex=(t,e,n)=>t+(e-t)*n;function ew(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function eS(t,e){return n=>n>0?e:t}let eb=(t,e,n)=>{let r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},ek=[tj,tz,tB],eT=t=>ek.find(e=>e.test(t));function eE(t){let e=eT(t);if((0,Z.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===tB&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,s=0,o=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=ew(a,r,t+1/3),s=ew(a,r,t),o=ew(a,r,t-1/3)}else i=s=o=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(n)),n}let eC=(t,e)=>{let n=eE(t),r=eE(e);if(!n||!r)return eS(t,e);let i={...n};return t=>(i.red=eb(n.red,r.red,t),i.green=eb(n.green,r.green,t),i.blue=eb(n.blue,r.blue,t),i.alpha=ex(n.alpha,r.alpha,t),tz.transform(i))},eA=new Set(["none","hidden"]);function eM(t,e){return n=>ex(t,e,n)}function eP(t){return"number"==typeof t?eM:"string"==typeof t?tt(t)?eS:tL.test(t)?eC:eI:Array.isArray(t)?eR:"object"==typeof t?tL.test(t)?eC:eO:eS}function eR(t,e){let n=[...t],r=n.length,i=t.map((t,n)=>eP(t)(t,e[n]));return t=>{for(let e=0;e{for(let e in r)n[e]=r[e](t);return n}}let eI=(t,e)=>{let n=tZ.createTransformer(e),r=tJ(t),i=tJ(e),s=r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length;return s?eA.has(t)&&!i.values.length||eA.has(e)&&!r.values.length?eA.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:ey(eR(function(t,e){var n;let r=[],i={color:0,var:0,number:0};for(let s=0;se*t),a=function(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let s=t.length;if((0,Z.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,n){let r=[],i=n||eD,s=t.length-1;for(let n=0;n{let n=0;if(a>1)for(;nl(tr(t[0],t[s-1],e)):l}(o,e,{ease:Array.isArray(i)?i:e.map(()=>i||ec).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let eV=t=>{let e=({timestamp:e})=>t(e);return{start:()=>D.update(e,!0),stop:()=>N(e),now:()=>V.isProcessing?V.timestamp:t8.now()}},eF={decay:el,inertia:el,tween:eN,keyframes:eN,spring:ea},ez=t=>t/100;class ej extends ee{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:n,element:r,keyframes:i}=this.options,s=(null==r?void 0:r.KeyframeResolver)||tP;this.resolver=new s(i,(t,e)=>this.onKeyframesResolved(t,e),e,n,r),this.resolver.scheduleResolve()}initPlayback(t){let e,n;let{type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=t6(r)?r:eF[r]||eN;l!==eN&&"number"!=typeof t[0]&&(e=ey(ez,eD(t[0],t[1])),t=[0,100]);let h=l({...this.options,keyframes:t});"mirror"===o&&(n=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===h.calculatedDuration&&(h.calculatedDuration=function(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}(h));let{calculatedDuration:u}=h,c=u+s;return{generator:h,mirroredGenerator:n,mapPercentToKeyframes:e,calculatedDuration:u,resolvedDuration:c,totalDuration:c*(i+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:n}=this;if(!n){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:h,resolvedDuration:u}=n;if(null===this.startTime)return i.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let v=this.currentTime,x=i;if(d){let t=Math.min(this.currentTime,h)/u,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);let r=!!(e%2);r&&("reverse"===p?(n=1-n,f&&(n-=f/u)):"mirror"===p&&(x=s)),v=tr(0,1,n)*u}let w=y?{done:!1,value:a[0]}:x.next(v);o&&(w.value=o(w.value));let{done:S}=w;y||null===l||(S=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&void 0!==r&&(w.value=C(a,this.options,r)),m&&m(w.value),b&&this.finish(),w}get duration(){let{resolved:t}=this;return t?g(t.calculatedDuration):0}get time(){return g(this.currentTime)}set time(t){t=m(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=g(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eV,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eB=new Set(["opacity","clipPath","filter","transform"]),eL=(t,e)=>{let n="",r=Math.max(Math.round(e/10),2);for(let e=0;e(void 0===e&&(e=t()),e)}let eU={linearEasing:void 0},eY=function(t,e){let n=e$(t);return()=>{var t;return null!==(t=eU[e])&&void 0!==t?t:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eW=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,eJ={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eW([0,.65,.55,1]),circOut:eW([.55,0,1,.45]),backIn:eW([.31,.01,.66,-.59]),backOut:eW([.33,1.53,.69,.99])};function eH(t,e){t.timeline=e,t.onfinish=null}let eq=e$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eK={anticipate:W,backInOut:Y,circInOut:q};class eZ extends ee{constructor(t){super(t);let{name:e,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new t4(i,(t,e)=>this.onKeyframesResolved(t,e),e,n,r),this.resolver.scheduleResolve()}initPlayback(t,e){var n,r;let{duration:i=300,times:s,ease:o,type:a,motionValue:l,name:h,startTime:u}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof o&&eY()&&o in eK&&(o=eK[o]),t6((r=this.options).type)||"spring"===r.type||!function t(e){return!!("function"==typeof e&&eY()||!e||"string"==typeof e&&(e in eJ||eY())||ep(e)||Array.isArray(e)&&e.every(t))}(r.ease)){let{onComplete:e,onUpdate:n,motionValue:r,element:l,...h}=this.options,u=function(t,e){let n=new ej({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},i=[],s=0;for(;!r.done&&s<2e4;)i.push((r=n.sample(s)).value),s+=10;return{times:void 0,keyframes:i,duration:s-10,ease:"linear"}}(t,h);1===(t=u.keyframes).length&&(t[1]=t[0]),i=u.duration,s=u.times,o=u.ease,a="keyframes"}let c=function(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let h={[e]:n};l&&(h.offset=l);let u=function t(e,n){if(e)return"function"==typeof e&&eY()?eL(e,n):ep(e)?eW(e):Array.isArray(e)?e.map(e=>t(e,n)||eJ.easeOut):eJ[e]}(a,i);return Array.isArray(u)&&(h.easing=u),t.animate(h,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,h,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(eH(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;l.set(C(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return g(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return g(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.currentTime=m(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return R.Z;let{animation:n}=e;eH(n,t)}else this.pendingTimeline=t;return R.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:n,duration:r,type:i,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...h}=this.options,u=new ej({...h,keyframes:n,duration:r,type:i,ease:s,times:o,isGenerator:!0}),c=m(this.time);t.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=t;return eq()&&n&&eB.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==s&&"inertia"!==o}}let eG=e$(()=>void 0!==window.ScrollTimeline);class eX{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;neG()&&n.attachTimeline?n.attachTimeline(t):e(n));return()=>{n.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let e_=(t,e,n,r={},i,s)=>o=>{let a=b(r,t)||{},l=a.delay||r.delay||0,{elapsed:h=0}=r;h-=m(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};!function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(a)&&(u={...u,...S(t,u)}),u.duration&&(u.duration=m(u.duration)),u.repeatDelay&&(u.repeatDelay=m(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(u.duration=0,0!==u.delay||(c=!0)),(T.current||k.skipAnimations)&&(c=!0,u.duration=0,u.delay=0),c&&!s&&void 0!==e.get()){let t=C(u.keyframes,a);if(void 0!==t)return D.update(()=>{u.onUpdate(t),u.onComplete()}),new eX([])}return!s&&eZ.supports(u)?new eZ(u):new ej(u)},eQ=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),e0=t=>s(t)?t[t.length-1]||0:t;function e1(t,e){-1===t.indexOf(e)&&t.push(e)}function e2(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class e5{constructor(){this.subscriptions=[]}add(t){return e1(this.subscriptions,t),()=>e2(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i!isNaN(parseFloat(t)),e9={current:void 0};class e4{constructor(t,e={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let n=t8.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t8.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=e3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new e5);let n=this.events[t].add(e);return"change"===t?()=>{n(),D.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return e9.current&&e9.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t8.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?t*(1e3/n):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e6(t,e){return new e4(t,e)}let e7=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),e8="data-"+e7("framerAppearId"),nt=t=>!!(t&&t.getVelocity);function ne(t,e){if(!t.applyWillChange)return;let n=t.getValue("willChange");if(nt(n)&&n.add)return n.add(e)}function nn(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);let h=[],c=i&&t.animationState&&t.animationState.getState()[i];for(let e in l){let r=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),i=l[e];if(void 0===i||c&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(c,e))continue;let a={delay:n,...b(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let n=t.props[e8];if(n){let t=window.MotionHandoffAnimation(n,e,D);null!==t&&(a.startTime=t,u=!0)}}ne(t,e),r.start(e_(e,r,i,t.shouldReduceMotion&&f.has(e)?{type:!1}:a,t,u));let d=r.animation;d&&h.push(d)}return a&&Promise.all(h).then(()=>{D.update(()=>{a&&function(t,e){let n=u(t,e),{transitionEnd:r={},transition:i={},...s}=n||{};for(let e in s={...s,...r}){let n=e0(s[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,e6(n))}}(t,a)})}),h}function nr(t,e,n={}){var r;let i=u(t,e,"exit"===n.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);let o=i?()=>Promise.all(nn(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,n=0,r=0,i=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(ni).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(nr(t,e,{...s,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,i+r,o,a,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function ni(t,e){return t.sortNodePosition(e)}let ns=d.length,no=[...c].reverse(),na=c.length;function nl(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nh(){return{animate:nl(!0),whileInView:nl(),whileHover:nl(),whileTap:nl(),whileDrag:nl(),whileFocus:nl(),exit:nl()}}class nu{constructor(t){this.isMounted=!1,this.node=t}update(){}}let nc=0,nd=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function np(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let nf=t=>e=>nd(e)&&t(e,np(e));function nm(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function ng(t,e,n,r){return nm(t,e,nf(n),r)}let ny=(t,e)=>Math.abs(t-e);class nv{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=nS(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){let n=ny(t.x,e.x),r=ny(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;let{point:r}=t,{timestamp:i}=V;this.history.push({...r,timestamp:i});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nx(e,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nS("pointercancel"===t.type?this.lastMoveEventInfo:nx(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,s),r&&r(t,s)},!nd(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let s=np(t),o=nx(s,this.transformPagePoint),{point:a}=o,{timestamp:l}=V;this.history=[{...a,timestamp:l}];let{onSessionStart:h}=e;h&&h(t,nS(o,this.history)),this.removeListeners=ey(ng(this.contextWindow,"pointermove",this.handlePointerMove),ng(this.contextWindow,"pointerup",this.handlePointerUp),ng(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),N(this.updatePoint)}}function nx(t,e){return e?{point:e(t.point)}:t}function nw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nS({point:t},e){return{point:t,delta:nw(t,nb(e)),offset:nw(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=nb(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>m(.1)));)n--;if(!r)return{x:0,y:0};let s=g(i.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function nb(t){return t[t.length-1]}function nk(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let nT=nk("dragHorizontal"),nE=nk("dragVertical");function nC(t){let e=!1;if("y"===t)e=nE();else if("x"===t)e=nT();else{let t=nT(),n=nE();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function nA(){let t=nC(!0);return!t||(t(),!1)}function nM(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function nP(t){return t.max-t.min}function nR(t,e,n,r=.5){t.origin=r,t.originPoint=ex(e.min,e.max,t.origin),t.scale=nP(n)/nP(e),t.translate=ex(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nO(t,e,n,r){nR(t.x,e.x,n.x,r?r.originX:void 0),nR(t.y,e.y,n.y,r?r.originY:void 0)}function nI(t,e,n){t.min=n.min+e.min,t.max=t.min+nP(e)}function nD(t,e,n){t.min=e.min-n.min,t.max=t.min+nP(e)}function nN(t,e,n){nD(t.x,e.x,n.x),nD(t.y,e.y,n.y)}function nV(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function nF(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min({translate:0,scale:1,origin:0,originPoint:0}),nL=()=>({x:nB(),y:nB()}),n$=()=>({min:0,max:0}),nU=()=>({x:n$(),y:n$()});function nY(t){return[t("x"),t("y")]}function nW({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function nJ(t){return void 0===t||1===t}function nH({scale:t,scaleX:e,scaleY:n}){return!nJ(t)||!nJ(e)||!nJ(n)}function nq(t){return nH(t)||nK(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function nK(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function nZ(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function nG(t,e=0,n=1,r,i){t.min=nZ(t.min,e,n,r,i),t.max=nZ(t.max,e,n,r,i)}function nX(t,{x:e,y:n}){nG(t.x,e.translate,e.scale,e.originPoint),nG(t.y,n.translate,n.scale,n.originPoint)}function n_(t,e){t.min=t.min+e,t.max=t.max+e}function nQ(t,e,n,r,i=.5){let s=ex(t.min,t.max,i);nG(t,e,n,s,r)}function n0(t,e){nQ(t.x,e.x,e.scaleX,e.scale,e.originX),nQ(t.y,e.y,e.scaleY,e.scale,e.originY)}function n1(t,e){return nW(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let n2=({current:t})=>t?t.ownerDocument.defaultView:null,n5=new WeakMap;class n3{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nU(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nv(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(np(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=nC(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nY(t=>{let e=this.getAxisMotionValue(t).get()||0;if(th.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=nP(r);e=t*(parseFloat(e)/100)}}}this.originPoint[t]=e}),i&&D.postRender(()=>i(t,e)),ne(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>nY(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:n2(this.visualElement)})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&D.postRender(()=>i(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!n9(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},r){return void 0!==e&&tn&&(t=r?ex(n,t,r.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&nM(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:nV(t.x,n,i),y:nV(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nz(t,"left","right"),y:nz(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nY(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!nM(e))return!1;let r=e.current;(0,Z.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(t,e,n){let r=n1(t,n),{scroll:i}=e;return i&&(n_(r.x,i.offset.x),n_(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:nF((t=i.layout.layoutBox).x,s.x),y:nF(t.y,s.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=nW(t))}return o}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=nY(o=>{if(!n9(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let h={type:"inertia",velocity:n?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,h)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return ne(this.visualElement,t),n.start(e_(t,n,0,e,this.visualElement,!1))}stopAnimation(){nY(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nY(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){nY(e=>{let{drag:n}=this.getProps();if(!n9(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[e];i.set(t[e]-ex(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!nM(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nY(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();r[t]=function(t,e){let n=.5,r=nP(t),i=nP(e);return i>r?n=ev(e.min,e.max-r,t.min):r>i&&(n=ev(t.min,t.max-i,e.min)),tr(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nY(e=>{if(!n9(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:s}=this.constraints[e];n.set(ex(i,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;n5.set(this.visualElement,this);let t=this.visualElement.current,e=ng(t,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),n=()=>{let{dragConstraints:t}=this.getProps();nM(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),D.read(n);let s=nm(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nY(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),i(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function n9(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}let n4=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};var n6=n(36164),n7=n(3546),n8=n(5934),rt=n(17463);let re=(0,n7.createContext)({}),rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ri={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tu.test(t))return t;t=parseFloat(t)}let n=rr(t,e.target.x),r=rr(t,e.target.y);return`${n}% ${r}%`}},rs={},{schedule:ro,cancel:ra}=I(queueMicrotask,!1);class rl extends n7.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(rs,ru),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===i||(i?s.promote():s.relegate()||D.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ro.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rh(t){let[e,n]=function(){let t=(0,n7.useContext)(n8.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,n7.useId)();(0,n7.useEffect)(()=>r(i),[]);let s=(0,n7.useCallback)(()=>n&&n(i),[i,n]);return!e&&n?[!1,s]:[!0]}(),r=(0,n7.useContext)(rt.p);return(0,n6.jsx)(rl,{...t,layoutGroup:r,switchLayoutGroup:(0,n7.useContext)(re),isPresent:e,safeToRemove:n})}let ru={borderRadius:{...ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ri,borderTopRightRadius:ri,borderBottomLeftRadius:ri,borderBottomRightRadius:ri,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=tZ.parse(t);if(r.length>5)return t;let i=tZ.createTransformer(t),s="number"!=typeof r[0]?1:0,o=n.x.scale*e.x,a=n.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=ex(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}},rc=["TopLeft","TopRight","BottomLeft","BottomRight"],rd=rc.length,rp=t=>"string"==typeof t?parseFloat(t):t,rf=t=>"number"==typeof t||tu.test(t);function rm(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rg=rv(0,.5,H),ry=rv(.5,.95,R.Z);function rv(t,e,n){return r=>re?1:n(ev(t,e,r))}function rx(t,e){t.min=e.min,t.max=e.max}function rw(t,e){rx(t.x,e.x),rx(t.y,e.y)}function rS(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rb(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function rk(t,e,[n,r,i],s,o){!function(t,e=0,n=1,r=.5,i,s=t,o=t){if(th.test(e)){e=parseFloat(e);let t=ex(o.min,o.max,e/100);e=t-o.min}if("number"!=typeof e)return;let a=ex(s.min,s.max,r);t===s&&(a-=e),t.min=rb(t.min,e,n,a,i),t.max=rb(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,s,o)}let rT=["x","scaleX","originX"],rE=["y","scaleY","originY"];function rC(t,e,n,r){rk(t.x,e,rT,n?n.x:void 0,r?r.x:void 0),rk(t.y,e,rE,n?n.y:void 0,r?r.y:void 0)}function rA(t){return 0===t.translate&&1===t.scale}function rM(t){return rA(t.x)&&rA(t.y)}function rP(t,e){return t.min===e.min&&t.max===e.max}function rR(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rO(t,e){return rR(t.x,e.x)&&rR(t.y,e.y)}function rI(t){return nP(t.x)/nP(t.y)}function rD(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rN{constructor(){this.members=[]}add(t){e1(this.members,t),t.scheduleRender()}remove(t){if(e2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rV=(t,e)=>t.depth-e.depth;class rF{constructor(){this.children=[],this.isDirty=!1}add(t){e1(this.children,t),this.isDirty=!0}remove(t){e2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rV),this.isDirty=!1,this.children.forEach(t)}}function rz(t){let e=nt(t)?t.get():t;return eQ(e)?e.toValue():e}let rj={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rB="undefined"!=typeof window&&void 0!==window.MotionDebug,rL=["","X","Y","Z"],r$={visibility:"hidden"},rU=0;function rY(t,e,n,r){let{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rW({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=rU++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rB&&(rj.totalNodes=rj.resolvedTargetDeltas=rj.recalculatedProjection=0),this.nodes.forEach(rq),this.nodes.forEach(r0),this.nodes.forEach(r1),this.nodes.forEach(rK),rB&&window.MotionDebug.record(rj)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=t8.now(),r=({timestamp:i})=>{let s=i-n;s>=e&&(N(r),t(s-e))};return D.read(r,!0),()=>N(r)}(r,250),rn.hasAnimatedSinceResize&&(rn.hasAnimatedSinceResize=!1,this.nodes.forEach(rQ))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||s.getDefaultTransition()||r6,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!rO(this.targetLayout,r)||n,h=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...b(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rQ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,N(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r2),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:n}=e.options;if(!n)return;let r=n.props[e8];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",D,!(t||n))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&t(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=nU());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rS(this.prevProjectionDelta.x,this.projectionDelta.x),rS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nO(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rD(this.projectionDelta.x,this.prevProjectionDelta.x)&&rD(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rB&&rj.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nL(),this.projectionDelta=nL(),this.projectionDeltaWithTransform=nL()}setAnimationOrigin(t,e=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},s={...this.latestValues},o=nL();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=nU(),l=r?r.source:void 0,h=this.layout?this.layout.source:void 0,u=l!==h,c=this.getStack(),d=!c||c.members.length<=1,p=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(r4));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(r3(o.x,t.x,r),r3(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,h,c,f;nN(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c=this.relativeTarget,f=this.relativeTargetOrigin,r9(c.x,f.x,a.x,r),r9(c.y,f.y,a.y,r),n&&(l=this.relativeTarget,h=n,rP(l.x,h.x)&&rP(l.y,h.y))&&(this.isProjectionDirty=!1),n||(n=nU()),rw(n,this.relativeTarget)}u&&(this.animationValues=s,function(t,e,n,r,i,s){i?(t.opacity=ex(0,void 0!==n.opacity?n.opacity:1,rg(r)),t.opacityExit=ex(void 0!==e.opacity?e.opacity:1,0,ry(r))):s&&(t.opacity=ex(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i{rn.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=nt(t)?t:e6(t);return r.start(e_("",r,1e3,n)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&ie(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nU();let e=nP(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=nP(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}rw(e,n),n0(e,i),nO(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rN);let n=this.sharedNodes.get(t);n.add(e);let r=e.options.initialPromotionConfig;e.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let r={};n.z&&rY("z",t,r,this.animationValues);for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(rG),this.root.sharedNodes.clear()}}}function rJ(t){t.updateLayout()}function rH(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,s=n.source!==t.layout.source;"size"===i?nY(t=>{let r=s?n.measuredBox[t]:n.layoutBox[t],i=nP(r);r.min=e[t].min,r.max=r.min+i}):ie(i,n.layoutBox,e)&&nY(r=>{let i=s?n.measuredBox[r]:n.layoutBox[r],o=nP(e[r]);i.max=i.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=nL();nO(o,e,n.layoutBox);let a=nL();s?nO(a,t.applyTransform(r,!0),n.measuredBox):nO(a,e,n.layoutBox);let l=!rM(o),h=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let o=nU();nN(o,n.layoutBox,i.layoutBox);let a=nU();nN(a,e,s.layoutBox),rO(o,a)||(h=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rq(t){rB&&rj.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rK(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rZ(t){t.clearSnapshot()}function rG(t){t.clearMeasurements()}function rX(t){t.isLayoutDirty=!1}function r_(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rQ(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r0(t){t.resolveTargetDelta()}function r1(t){t.calcProjection()}function r2(t){t.resetSkewAndRotation()}function r5(t){t.removeLeadSnapshot()}function r3(t,e,n){t.translate=ex(e.translate,0,n),t.scale=ex(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function r9(t,e,n,r){t.min=ex(e.min,n.min,r),t.max=ex(e.max,n.max,r)}function r4(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r6={duration:.45,ease:[.4,0,.1,1]},r7=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r8=r7("applewebkit/")&&!r7("chrome/")?Math.round:R.Z;function it(t){t.min=r8(t.min),t.max=r8(t.max)}function ie(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rI(e)-rI(n)))}function ir(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ii=rW({attachResizeListener:(t,e)=>nm(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),is={current:void 0},io=rW({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!is.current){let t=new ii({});t.mount(window),t.setOptions({layoutScroll:!0}),is.current=t}return is.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ia(t,e){let n=e?"pointerenter":"pointerleave",r=e?"onHoverStart":"onHoverEnd";return ng(t.current,n,(n,i)=>{if("touch"===n.pointerType||nA())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[r];o&&D.postRender(()=>o(n,i))},{passive:!t.getProps()[r]})}let il=(t,e)=>!!e&&(t===e||il(t,e.parentElement));function ih(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,np(n))}let iu=new WeakMap,ic=new WeakMap,id=t=>{let e=iu.get(t.target);e&&e(t)},ip=t=>{t.forEach(id)},im={some:0,all:1};var ig=n(63566);let iy=(0,n7.createContext)({});var iv=n(10604);let ix=(0,n7.createContext)({strict:!1});function iw(t){return i(t.animate)||d.some(e=>a(t[e]))}function iS(t){return!!(iw(t)||t.variants)}function ib(t){return Array.isArray(t)?t.join(" "):t}let ik={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iT={};for(let t in ik)iT[t]={isEnabled:e=>ik[t].some(t=>!!e[t])};var iE=n(80926);let iC=Symbol.for("motionComponentSymbol"),iA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iM(t){if("string"!=typeof t||t.includes("-"));else if(iA.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function iP(t,{style:e,vars:n},r,i){for(let s in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(s,n[s])}let iR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function iO(t,e,n,r){for(let n in iP(t,e,void 0,r),e.attrs)t.setAttribute(iR.has(n)?n:e7(n),e.attrs[n])}function iI(t,{layout:e,layoutId:n}){return f.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!rs[t]||"opacity"===t)}function iD(t,e,n){var r;let{style:i}=t,s={};for(let o in i)(nt(i[o])||e.style&&nt(e.style[o])||iI(o,t)||(null===(r=null==n?void 0:n.getValue(o))||void 0===r?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return n&&i&&"string"==typeof i.willChange&&(n.applyWillChange=!1),s}function iN(t,e,n){let r=iD(t,e,n);for(let n in t)if(nt(t[n])||nt(e[n])){let e=-1!==p.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[e]=t[n]}return r}var iV=n(78118);let iF=t=>(e,n)=>{let r=(0,n7.useContext)(iy),s=(0,n7.useContext)(n8.O),o=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:r},s,o,a,l){let h={latestValues:function(t,e,n,r,s){var o;let a={},l=new Set,h=r&&(null===(o=t.style)||void 0===o?void 0:o.willChange)===void 0,u=s(t,{});for(let t in u)a[t]=rz(u[t]);let{initial:c,animate:d}=t,p=iw(t),m=iS(t);e&&m&&!p&&!1!==t.inherit&&(void 0===c&&(c=e.initial),void 0===d&&(d=e.animate));let g=!!n&&!1===n.initial;g=g||!1===c;let y=g?d:c;return y&&"boolean"!=typeof y&&!i(y)&&iz(t,y,(t,e)=>{for(let e in t){let n=t[e];if(Array.isArray(n)){let t=g?n.length-1:0;n=n[t]}null!==n&&(a[e]=n)}for(let t in e)a[t]=e[t]}),h&&(d&&!1!==c&&!i(d)&&iz(t,d,t=>{for(let e in t){let t=f.has(e)?"transform":eB.has(e)?e7(e):void 0;t&&l.add(t)}}),l.size&&(a.willChange=Array.from(l).join(","))),a}(s,o,a,!l&&t,e),renderState:n()};return r&&(h.mount=t=>r(s,t,h)),h})(t,e,r,s,n);return n?o():(0,iV.h)(o)};function iz(t,e,n){let r=Array.isArray(e)?e:[e];for(let e=0;e({style:{},transform:{},transformOrigin:{},vars:{}}),iB=()=>({...ij(),attrs:{}}),iL=(t,e)=>e&&"number"==typeof t?e.transform(t):t,i$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iU=p.length;function iY(t,e,n){let{style:r,vars:i,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let n=e[t];if(f.has(t)){o=!0;continue}if(_(t)){i[t]=n;continue}{let e=iL(n,t1[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||n?r.transform=function(t,e,n){let r="",i=!0;for(let s=0;s"string"==typeof t&&"svg"===t.toLowerCase(),iZ={useVisualState:iF({scrapeMotionValuesFromProps:iN,createRenderState:iB,onMount:(t,e,{renderState:n,latestValues:r})=>{D.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),D.render(()=>{iq(n,r,iK(e.tagName),t.transformTemplate),iO(e,n)})}})},iG={useVisualState:iF({applyWillChange:!0,scrapeMotionValuesFromProps:iD,createRenderState:ij})};function iX(t,e,n){for(let r in e)nt(e[r])||iI(r,n)||(t[r]=e[r])}function i_(t,e){let n={},r=function(t,e){let n=t.style||{},r={};return iX(r,n,t),Object.assign(r,function({transformTemplate:t},e){return(0,n7.useMemo)(()=>{let n=ij();return iY(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),r}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}let iQ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function i0(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iQ.has(t)}let i1=t=>!i0(t);try{(A=require("@emotion/is-prop-valid").default)&&(i1=t=>t.startsWith("on")?!i0(t):A(t))}catch(t){}function i2(t,e,n,r){let i=(0,n7.useMemo)(()=>{let n=iB();return iq(n,e,iK(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};iX(e,t.style,t),i.style={...e,...i.style}}return i}let i5={current:null},i3={current:!1},i9=new WeakMap,i4=[...tb,tL,tZ],i6=t=>i4.find(tS(t)),i7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class i8{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},o={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tP,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t8.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),i3.current||function(){if(i3.current=!0,iE.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i5.current=t.matches;t.addListener(e),e()}else i5.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i5.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in i9.delete(this.current),this.projection&&this.projection.unmount(),N(this.notifyUpdate),N(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=f.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&D.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in iT){let e=iT[t];if(!e)continue;let{isEnabled:n,Feature:r}=e;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nU()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=e6(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let r=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(G(r)||K(r))?r=parseFloat(r):!i6(r)&&tZ.test(e)&&(r=t3(t,e)),this.setBaseTarget(t,nt(r)?r.get():r)),nt(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let n;let{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=h(this.props,r,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(n=i[t])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||nt(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new e5),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class st extends i8{constructor(){super(...arguments),this.KeyframeResolver=t4}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}}class se extends st{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=iP}readValueFromInstance(t,e){if(f.has(e)){let t=t5(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=(_(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return n1(t,e)}build(t,e,n){iY(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return iD(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;nt(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sn extends st{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nU}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(f.has(e)){let t=t5(e);return t&&t.default||0}return e=iR.has(e)?e:e7(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return iN(t,e,n)}build(t,e,n){iq(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,r){iO(t,e,n,r)}mount(t){this.isSVGTag=iK(t.tagName),super.mount(t)}}let sr=(M={animation:{Feature:class extends nu{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){let i=e.map(e=>nr(t,e,n));r=Promise.all(i)}else if("string"==typeof e)r=nr(t,e,n);else{let i="function"==typeof e?u(t,e,n.custom):e;r=Promise.all(nn(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=nh(),r=!0,l=e=>(n,r)=>{var i;let s=u(t,r,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;n={...n,...r,...e}}return n};function h(h){let{props:u}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;tg&&w,E=!1,C=Array.isArray(x)?x:[x],A=C.reduce(l(d),{});!1===S&&(A={});let{prevResolvedValues:M={}}=v,P={...M,...A},R=e=>{T=!0,f.has(e)&&(E=!0,f.delete(e)),v.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in P){let e=A[t],n=M[t];if(!m.hasOwnProperty(t))(s(e)&&s(n)?o(e,n):e===n)?void 0!==e&&f.has(t)?R(t):v.protectedKeys[t]=!0:null!=e?R(t):f.add(t)}v.prevProp=x,v.prevResolvedValues=A,v.isActive&&(m={...m,...A}),r&&t.blockInitialAnimation&&(T=!1);let O=b&&k,I=!O||E;T&&I&&p.push(...C.map(t=>({animation:t,options:{type:d}})))}if(f.size){let e={};f.forEach(n=>{let r=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=null!=r?r:null}),p.push({animation:e})}let v=!!p.length;return r&&(!1===u.initial||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(v=!1),r=!1,v?e(p):Promise.resolve()}return{animateChanges:h,setActive:function(e,r){var i;if(n[e].isActive===r)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let s=h(e);for(let t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=nh(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();i(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends nu{constructor(){super(...arguments),this.id=nc++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends nu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:im[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;ic.has(n)||ic.set(n,{});let r=ic.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(ip,{root:t,...e})),r[i]}(e);return iu.set(t,n),r.observe(t),()=>{iu.delete(t),r.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=e?n:r;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends nu{constructor(){super(...arguments),this.removeStartListeners=R.Z,this.removeEndListeners=R.Z,this.removeAccessibleListeners=R.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=ng(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),s=i||il(this.node.current,t.target)?n:r;s&&D.update(()=>s(t,e))},{passive:!(n.onTap||n.onPointerUp)}),i=ng(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ey(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=nm(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=nm(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&ih("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&D.postRender(()=>n(t,e))})}),ih("down",(t,e)=>{this.startPress(t,e)}))}),e=nm(this.node.current,"blur",()=>{this.isPressing&&ih("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=ey(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&D.postRender(()=>n(t,e))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let t=this.node.getProps();return t.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nA()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&D.postRender(()=>n(t,e))}mount(){let t=this.node.getProps(),e=ng(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=nm(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ey(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends nu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ey(nm(this.node.current,"focus",()=>this.onFocus()),nm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nu{mount(){this.unmount=ey(ia(this.node,!0),ia(this.node,!1))}unmount(){}}},pan:{Feature:class extends nu{constructor(){super(...arguments),this.removePointerDownListener=R.Z}onPointerDown(t){this.session=new nv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n2(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:n4(t),onStart:n4(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&D.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=ng(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nu{constructor(t){super(t),this.removeGroupControls=R.Z,this.removeListeners=R.Z,this.controls=new n3(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:io,MeasureLayout:rh},layout:{ProjectionNode:io,MeasureLayout:rh}},P=(t,e)=>iM(t)?new sn(e):new se(e,{allowProjection:t!==n7.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){let n=iM(t)?iZ:iG,r={...n,preloadedFeatures:M,useRender:function(t=!1){return(e,n,r,{latestValues:i},s)=>{let o=iM(e)?i2:i_,a=o(n,i,s,e),l=function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(i1(i)||!0===n&&i0(i)||!e&&!i0(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),h=e!==n7.Fragment?{...l,...a,ref:r}:{},{children:u}=n,c=(0,n7.useMemo)(()=>nt(u)?u.get():u,[u]);return(0,n7.createElement)(e,{...h,children:c})}}(e),createVisualElement:P,Component:t};return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&function(t){for(let e in t)iT[e]={...iT[e],...t[e]}}(t);let s=(0,n7.forwardRef)(function(t,s){var o;let l;let h={...(0,n7.useContext)(ig._),...t,layoutId:function({layoutId:t}){let e=(0,n7.useContext)(rt.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=h,c=function(t){let{initial:e,animate:n}=function(t,e){if(iw(t)){let{initial:e,animate:n}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,n7.useContext)(iy));return(0,n7.useMemo)(()=>({initial:e,animate:n}),[ib(e),ib(n)])}(t),d=r(t,u);if(!u&&iE.j){(0,n7.useContext)(ix).strict;let t=function(t){let{drag:e,layout:n}=iT;if(!e&&!n)return{};let r={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(h);l=t.MeasureLayout,c.visualElement=function(t,e,n,r,i){var s,o;let{visualElement:a}=(0,n7.useContext)(iy),l=(0,n7.useContext)(ix),h=(0,n7.useContext)(n8.O),u=(0,n7.useContext)(ig._).reducedMotion,c=(0,n7.useRef)();r=r||l.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:a,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:u}));let d=c.current,p=(0,n7.useContext)(re);d&&!d.projection&&i&&("html"===d.type||"svg"===d.type)&&function(t,e,n,r){let{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&nM(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:h})}(c.current,n,i,p),(0,n7.useInsertionEffect)(()=>{d&&d.update(n,h)});let f=n[e8],m=(0,n7.useRef)(!!f&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,iv.L)(()=>{d&&(window.MotionIsMounted=!0,d.updateFeatures(),ro.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,n7.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),m.current=!1))}),d}(i,d,h,e,t.ProjectionNode)}return(0,n6.jsxs)(iy.Provider,{value:c,children:[l&&c.visualElement?(0,n6.jsx)(l,{visualElement:c.visualElement,...h}):null,n(i,t,(o=c.visualElement,(0,n7.useCallback)(t=>{t&&d.mount&&d.mount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):nM(s)&&(s.current=t))},[o])),d,u,c.visualElement)]})});return s[iC]=i,s}(r)}),si=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(n,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}(sr)},59700:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return s}});var r=n(58559);let i=r.Z,s=r.Z},80926:function(t,e,n){n.d(e,{j:function(){return r}});let r="undefined"!=typeof window},58559:function(t,e,n){n.d(e,{Z:function(){return r}});let r=t=>t},78118:function(t,e,n){n.d(e,{h:function(){return i}});var r=n(3546);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},10604:function(t,e,n){n.d(e,{L:function(){return s}});var r=n(3546),i=n(80926);let s=i.j?r.useLayoutEffect:r.useEffect},1683:function(t,e,n){n.d(e,{Ig:function(){return S},MI:function(){return w},N0:function(){return M},NE:function(){return a},QK:function(){return k},U9:function(){return O},X0:function(){return A},Y_:function(){return y},_M:function(){return f},al:function(){return h},cR:function(){return c},mD:function(){return C},nw:function(){return I},o:function(){return v},rr:function(){return u},uJ:function(){return N},uo:function(){return E},xb:function(){return b},ym:function(){return D}});var r,i=n(70484),s=n(17824),o=n(10155);let a=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function l(t,e){let{$cursor:n}=t.selection;return n&&(e?e.endOfTextblock("backward",t):!(n.parentOffset>0))?n:null}let h=(t,e,n)=>{let r=l(t,n);if(!r)return!1;let a=m(r);if(!a){let n=r.blockRange(),s=n&&(0,i.k9)(n);return null!=s&&(e&&e(t.tr.lift(n,s).scrollIntoView()),!0)}let h=a.nodeBefore;if(P(t,a,e,-1))return!0;if(0==r.parent.content.size&&(p(h,"end")||o.qv.isSelectable(h)))for(let n=r.depth;;n--){let l=(0,i.dR)(t.doc,r.before(n),r.after(n),s.p2.empty);if(l&&l.slice.size1)break}return!!h.isAtom&&a.depth==r.depth-1&&(e&&e(t.tr.delete(a.pos-h.nodeSize,a.pos).scrollIntoView()),!0)},u=(t,e,n)=>{let r=l(t,n);if(!r)return!1;let i=m(r);return!!i&&d(t,i,e)},c=(t,e,n)=>{let r=g(t,n);if(!r)return!1;let i=x(r);return!!i&&d(t,i,e)};function d(t,e,n){let r=e.nodeBefore,a=e.pos-1;for(;!r.isTextblock;a--){if(r.type.spec.isolating)return!1;let t=r.lastChild;if(!t)return!1;r=t}let l=e.nodeAfter,h=e.pos+1;for(;!l.isTextblock;h++){if(l.type.spec.isolating)return!1;let t=l.firstChild;if(!t)return!1;l=t}let u=(0,i.dR)(t.doc,a,h,s.p2.empty);if(!u||u.from!=a||u instanceof i.Pu&&u.slice.size>=h-a)return!1;if(n){let e=t.tr.step(u);e.setSelection(o.Bs.create(e.doc,a)),n(e.scrollIntoView())}return!0}function p(t,e,n=!1){for(let r=t;r;r="start"==e?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let f=(t,e,n)=>{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;s=m(r)}let a=s&&s.nodeBefore;return!!(a&&o.qv.isSelectable(a))&&(e&&e(t.tr.setSelection(o.qv.create(t.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function m(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function g(t,e){let{$cursor:n}=t.selection;return n&&(e?e.endOfTextblock("forward",t):!(n.parentOffset{let r=g(t,n);if(!r)return!1;let a=x(r);if(!a)return!1;let l=a.nodeAfter;if(P(t,a,e,1))return!0;if(0==r.parent.content.size&&(p(l,"start")||o.qv.isSelectable(l))){let n=(0,i.dR)(t.doc,r.before(),r.after(),s.p2.empty);if(n&&n.slice.size{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let n=t.selection,r=n instanceof o.qv,s;if(r){if(n.node.isTextblock||!(0,i.Mn)(t.doc,n.from))return!1;s=n.from}else if(null==(s=(0,i.GJ)(t.doc,n.from,-1)))return!1;if(e){let n=t.tr.join(s);r&&n.setSelection(o.qv.create(n.doc,s-t.doc.resolve(s).nodeBefore.nodeSize)),e(n.scrollIntoView())}return!0},S=(t,e)=>{let n=t.selection,r;if(n instanceof o.qv){if(n.node.isTextblock||!(0,i.Mn)(t.doc,n.to))return!1;r=n.to}else if(null==(r=(0,i.GJ)(t.doc,n.to,1)))return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},b=(t,e)=>{let{$from:n,$to:r}=t.selection,s=n.blockRange(r),o=s&&(0,i.k9)(s);return null!=o&&(e&&e(t.tr.lift(s,o).scrollIntoView()),!0)},k=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!!(n.parent.type.spec.code&&n.sameParent(r))&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)};function T(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),a=T(i.contentMatchAt(s));if(!a||!i.canReplaceWith(s,s,a))return!1;if(e){let r=n.after(),i=t.tr.replaceWith(r,r,a.createAndFill());i.setSelection(o.Y1.near(i.doc.resolve(r),1)),e(i.scrollIntoView())}return!0},C=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof o.C1||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=T(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let n=(!r.parentOffset&&i.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if((0,i.Ax)(t.doc,r))return e&&e(t.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),s=r&&(0,i.k9)(r);return null!=s&&(e&&e(t.tr.lift(r,s).scrollIntoView()),!0)},M=(t,e)=>{let{$from:n,to:r}=t.selection,i,s=n.sharedDepth(r);return 0!=s&&(i=n.before(s),e&&e(t.tr.setSelection(o.qv.create(t.doc,i))),!0)};function P(t,e,n,r){let a,l,h,u=e.nodeBefore,c=e.nodeAfter,d,f,m=u.type.spec.isolating||c.type.spec.isolating;if(!m&&(a=e.nodeBefore,l=e.nodeAfter,h=e.index(),a&&l&&a.type.compatibleContent(l.type)&&(!a.content.size&&e.parent.canReplace(h-1,h)?(n&&n(t.tr.delete(e.pos-a.nodeSize,e.pos).scrollIntoView()),!0):!!(e.parent.canReplace(h,h+1)&&(l.isTextblock||(0,i.Mn)(t.doc,e.pos)))&&(n&&n(t.tr.clearIncompatible(e.pos,a.type,a.contentMatchAt(a.childCount)).join(e.pos).scrollIntoView()),!0))))return!0;let g=!m&&e.parent.canReplace(e.index(),e.index()+1);if(g&&(d=(f=u.contentMatchAt(u.childCount)).findWrapping(c.type))&&f.matchType(d[0]||c.type).validEnd){if(n){let r=e.pos+c.nodeSize,o=s.HY.empty;for(let t=d.length-1;t>=0;t--)o=s.HY.from(d[t].create(null,o));o=s.HY.from(u.copy(o));let a=t.tr.step(new i.FC(e.pos-1,r,e.pos,r,new s.p2(o,1,0),d.length,!0)),l=r+2*d.length;(0,i.Mn)(a.doc,l)&&a.join(l),n(a.scrollIntoView())}return!0}let y=c.type.spec.isolating||r>0&&m?null:o.Y1.findFrom(e,1),v=y&&y.$from.blockRange(y.$to),x=v&&(0,i.k9)(v);if(null!=x&&x>=e.depth)return n&&n(t.tr.lift(v,x).scrollIntoView()),!0;if(g&&p(c,"start",!0)&&p(u,"end")){let r=u,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let a=c,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,a.content)){if(n){let r=s.HY.empty;for(let t=o.length-1;t>=0;t--)r=s.HY.from(o[t].copy(r));n(t.tr.step(new i.FC(e.pos-o.length,e.pos+c.nodeSize,e.pos+l,e.pos+c.nodeSize-l,new s.p2(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function R(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(n&&n(e.tr.setSelection(o.Bs.create(e.doc,t<0?i.start(s):i.end(s)))),!0)}}let O=R(-1),I=R(1);function D(t,e=null){return function(n,r){let{$from:s,$to:o}=n.selection,a=s.blockRange(o),l=a&&(0,i.nd)(a,t,e);return!!l&&(r&&r(n.tr.wrap(a,l).scrollIntoView()),!0)}}function N(t,e=null){return function(n,r){let i=!1;for(let r=0;r{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(t,e))){if(r.type==t)i=!0;else{let e=n.doc.resolve(s),r=e.index();i=e.parent.canReplaceWith(r,r+1,t)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r{let{$from:n,$to:s}=t.selection;if(t.selection instanceof o.qv&&t.selection.node.isBlock)return!!(n.parentOffset&&(0,i.Ax)(t.doc,n.pos))&&(e&&e(t.tr.split(n.pos).scrollIntoView()),!0);if(!n.parent.isBlock)return!1;if(e){let a=s.parentOffset==s.parent.content.size,l=t.tr;(t.selection instanceof o.Bs||t.selection instanceof o.C1)&&l.deleteSelection();let h=0==n.depth?null:T(n.node(-1).contentMatchAt(n.indexAfter(-1))),u=r&&r(s.parent,a,n),c=u?[u]:a&&h?[{type:h}]:void 0,d=(0,i.Ax)(l.doc,l.mapping.map(n.pos),1,c);if(!c&&!d&&(0,i.Ax)(l.doc,l.mapping.map(n.pos),1,h?[{type:h}]:void 0)&&(h&&(c=[{type:h}]),d=!0),d&&(l.split(l.mapping.map(n.pos),1,c),!a&&!n.parentOffset&&n.parent.type!=h)){let t=l.mapping.map(n.before()),e=l.doc.resolve(t);h&&n.node(-1).canReplaceWith(e.index(),e.index()+1,h)&&l.setNodeMarkup(l.mapping.map(n.before()),h)}e(l.scrollIntoView())}return!0}),"Mod-Enter":E,Backspace:F,"Mod-Backspace":F,"Shift-Backspace":F,Delete:z,"Mod-Delete":z,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new o.C1(t.doc))),!0)},B={"Ctrl-h":j.Backspace,"Alt-Backspace":j["Mod-Backspace"],"Ctrl-d":j.Delete,"Ctrl-Alt-Backspace":j["Mod-Delete"],"Alt-Delete":j["Mod-Delete"],"Alt-d":j["Mod-Delete"],"Ctrl-a":O,"Ctrl-e":I};for(let t in j)B[t]=j[t];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},98668:function(t,e,n){n.d(e,{h:function(){return a}});var r=n(21987),i=n(10155);let s="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function o(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function a(t){let e;return new i.Sy({props:{handleKeyDown:(e=function(t){let e=Object.create(null);for(let n in t)e[function(t){let e,n,r,i,o=t.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(let t=0;t127)&&(s=r.ue[n.keyCode])&&s!=i){let r=e[o(s,n)];if(r&&r(t.state,t.dispatch,t))return!0}}return!1})}})}},17824:function(t,e,n){function r(t){this.content=t}n.d(e,{aw:function(){return L},PW:function(){return Z},HY:function(){return i},vc:function(){return l},ZU:function(){return z},NB:function(){return k},Ts:function(){return S},e4:function(){return h},V_:function(){return j},p2:function(){return u}}),r.prototype={constructor:r,find:function(t){for(var e=0;e>1}},r.from=function(t){if(t instanceof r)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new r(e)};class i{constructor(t,e){if(this.content=t,this.size=e||0,null==e)for(let e=0;et&&!1!==n(a,r+o,i||null,s)&&a.content.size){let i=o+1;a.nodesBetween(Math.max(0,t-i),Math.min(a.content.size,e-i),n,r+i)}o=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,r){let i="",s=!0;return this.nodesBetween(t,e,(o,a)=>{let l=o.isText?o.text.slice(Math.max(t,a)-a,e-a):o.isLeaf?r?"function"==typeof r?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&l||o.isTextblock)&&n&&(s?s=!1:i+=n),i+=l},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,r=this.content.slice(),s=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),s=1);st)for(let i=0,s=0;st&&((se)&&(o=o.isText?o.cut(Math.max(0,t-s),Math.min(o.text.length,e-s)):o.cut(Math.max(0,t-s-1),Math.min(o.content.size,e-s-1))),n.push(o),r+=o.nodeSize),s=a}return new i(n,r)}cutByIndex(t,e){return t==e?i.empty:0==t&&e==this.content.length?this:new i(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let r=this.content.slice(),s=this.size+e.nodeSize-n.nodeSize;return r[t]=e,new i(r,s)}addToStart(t){return new i([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new i(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=r+this.child(n).nodeSize;if(i>=t){if(i==t||e>0)return o(n+1,i);return o(n,r)}r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return i.empty;if(!Array.isArray(e))throw RangeError("Invalid input for Fragment.fromJSON");return new i(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return i.empty;let e,n=0;for(let r=0;rthis.type.rank&&(e||(e=t.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;et.type.rank-e.type.rank),e}}l.none=[];class h extends Error{}class u{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=function t(e,n,r,i){let{index:s,offset:o}=e.findIndex(n),a=e.maybeChild(s);if(o==n||a.isText)return i&&!i.canReplace(s,s,r)?null:e.cut(0,n).append(r).append(e.cut(n));let l=t(a.content,n-o-1,r);return l&&e.replaceChild(s,a.copy(l))}(this.content,t+this.openStart,e);return n&&new u(n,this.openStart,this.openEnd)}removeBetween(t,e){return new u(function t(e,n,r){let{index:i,offset:s}=e.findIndex(n),o=e.maybeChild(i),{index:a,offset:l}=e.findIndex(r);if(s==n||o.isText){if(l!=r&&!e.child(a).isText)throw RangeError("Removing non-flat range");return e.cut(0,n).append(e.cut(r))}if(i!=a)throw RangeError("Removing non-flat range");return e.replaceChild(i,o.copy(t(o.content,n-s-1,r-s-1)))}(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return u.empty;let n=e.openStart||0,r=e.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new u(i.fromJSON(t,e.content),n,r)}static maxOpen(t,e=!0){let n=0,r=0;for(let r=t.firstChild;r&&!r.isLeaf&&(e||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)r++;return new u(t,n,r)}}function c(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function d(t,e,n){let r=t.node(n);return c(r,e.node(n)),r}function p(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function f(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(p(t.nodeAfter,r),s++));for(let t=s;tn&&p(m(d(t,e,n+1),g(t,e,n+1)),r),f(e,null,n,r),new i(r)}u.empty=new u(i.empty,0,0);class y{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=t.child(e);return n?t.child(e).cut(n):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let e=0;e0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new S(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let e=t;;){let{index:t,offset:s}=e.content.findIndex(i),o=i-s;if(n.push(e,t,r+s),!o||(e=e.child(t)).isText)break;i=o-1,r+=s+1}return new y(e,n,i)}static resolveCached(t,e){let n=w.get(t);if(n)for(let t=0;tt.depth)throw new h("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new h("Inconsistent open depths");return function t(e,n,r,s){let o=e.index(s),a=e.node(s);if(o==n.index(s)&&s=0;t--)r=e.node(t).copy(i.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}(r,e);return m(a,function t(e,n,r,s,o){let a=e.depth>o&&d(e,n,o+1),l=s.depth>o&&d(r,s,o+1),h=[];return f(null,e,o,h),a&&l&&n.index(o)==r.index(o)?(c(a,l),p(m(a,t(e,n,r,s,o+1)),h)):(a&&p(m(a,g(e,n,o+1)),h),f(n,r,o,h),l&&p(m(l,g(r,s,o+1)),h)),f(s,null,o,h),new i(h)}(e,t,o,n,s))}{let t=e.parent,i=t.content;return m(t,i.cut(0,e.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(t,e,n,0)}(this.resolve(t),this.resolve(e),n)}nodeAt(t){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(t);if(!(e=e.maybeChild(n)))return null;if(r==t||e.isText)return e;t-=r+1}}childAfter(t){let{index:e,offset:n}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(t){if(0==t)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(t);if(nt&&this.nodesBetween(t,e,t=>(n.isInSet(t.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),E(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=i.empty,r=0,s=n.childCount){let o=this.contentMatchAt(t).matchFragment(n,r,s),a=o&&o.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let t=r;tt.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(t=>t.toJSON())),t}static fromJSON(t,e){let n;if(!e)throw RangeError("Invalid input for Node.fromJSON");if(e.marks){if(!Array.isArray(e.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw RangeError("Invalid text node in JSON");return t.text(e.text,n)}let r=i.fromJSON(t,e.content),s=t.nodeType(e.type).create(e.attrs,r,n);return s.type.checkAttrs(s.attrs),s}}k.prototype.text=void 0;class T extends k{constructor(t,e,n,r){if(super(t,e,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):E(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new T(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new T(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function E(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class C{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){var n;let r,i=new A(t,e);if(null==i.next)return C.empty;let s=function t(e){let n=[];do n.push(function(e){let n=[];do n.push(function(e){let n=function(e){if(e.eat("(")){let n=t(e);return e.eat(")")||e.err("Missing closing paren"),n}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=(function(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let t in n){let r=n[t];r.groups.indexOf(e)>-1&&i.push(r)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i})(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}(e);for(;;)if(e.eat("+"))n={type:"plus",expr:n};else if(e.eat("*"))n={type:"star",expr:n};else if(e.eat("?"))n={type:"opt",expr:n};else if(e.eat("{"))n=function(t,e){let n=M(t),r=n;return t.eat(",")&&(r="}"!=t.next?M(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}(e,n);else break;return n}(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(e));while(e.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let o=(n=function(t){let e=[[]];return i(function t(e,s){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(t(n,s)),[]);if("seq"==e.type)for(let r=0;;r++){let o=t(e.exprs[r],s);if(r==e.exprs.length-1)return o;i(o,s=n())}else if("star"==e.type){let o=n();return r(s,o),i(t(e.expr,o),o),[r(o)]}else if("plus"==e.type){let o=n();return i(t(e.expr,s),o),i(t(e.expr,o),o),[r(o)]}else if("opt"==e.type)return[r(s)].concat(t(e.expr,s));else if("range"==e.type){let o=s;for(let r=0;rt.to=e)}}(s),r=Object.create(null),function t(e){let i=[];e.forEach(t=>{n[t].forEach(({term:t,to:e})=>{let r;if(t){for(let e=0;e{r||i.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})}})});let s=r[e.join(",")]=new C(e.indexOf(n.length-1)>-1);for(let e=0;et.createAndFill()));for(let t=0;t=this.next.length)throw RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return!function e(n){t.push(n);for(let r=0;r{let r=n+(e.validEnd?"*":" ")+" ";for(let n=0;n"+t.indexOf(e.next[n].next);return r}).join("\n")}}C.empty=new C(!0);class A{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw SyntaxError(t+" (in content expression '"+this.string+"')")}}function M(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function P(t,e){return e-t}function R(t,e){let n=[];return function e(r){let i=t[r];if(1==i.length&&!i[0].term)return e(i[0].to);n.push(r);for(let t=0;t-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;en[t]=new V(t,e,r));let r=e.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class F{constructor(t,e,n){let r;this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?(r=n.validate.split("|"),n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}):n.validate}get isRequired(){return!this.hasDefault}}class z{constructor(t,e,n,r){this.name=t,this.rank=e,this.schema=n,this.spec=r,this.attrs=N(t,r.attrs),this.excluded=null;let i=O(this.attrs);this.instance=i?new l(this,i):null}create(t=null){return!t&&this.instance?this.instance:new l(this,I(this.attrs,t))}static compile(t,e){let n=Object.create(null),r=0;return t.forEach((t,i)=>n[t]=new z(t,r++,e,i)),n}removeFromSet(t){for(var e=0;e-1}}class j{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=r.from(t.nodes),e.marks=r.from(t.marks||{}),this.nodes=V.compile(this.spec.nodes,this),this.marks=z.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],r=e.spec.content||"",i=e.spec.marks;if(e.contentMatch=n[r]||(n[r]=C.parse(r,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==i?null:i?B(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:B(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,r){if("string"==typeof t)t=this.nodeType(t);else if(t instanceof V){if(t.schema!=this)throw RangeError("Node type from different schema used ("+t.name+")")}else throw RangeError("Invalid node type: "+t);return t.createChecked(e,n,r)}text(t,e){let n=this.nodes.text;return new T(n,n.defaultAttrs,t,l.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return k.fromJSON(this,t)}markFromJSON(t){return l.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw RangeError("Unknown node type: "+t);return e}}function B(t,e){let n=[];for(let r=0;r-1)&&n.push(o=r)}if(!o)throw SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class L{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let n=this.matchedStyles=[];e.forEach(t=>{if(null!=t.tag)this.tags.push(t);else if(null!=t.style){let e=/[^=]*/.exec(t.style)[0];0>n.indexOf(e)&&n.push(e),this.styles.push(t)}}),this.normalizeLists=!this.tags.some(e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)})}parse(t,e={}){let n=new H(this,e,!1);return n.addAll(t,l.none,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new H(this,e,!0);return n.addAll(t,l.none,e.from,e.to),u.maxOpen(n.finish())}matchTag(t,e,n){for(let i=n?this.tags.indexOf(n)+1:0;it.length)||61==s.charCodeAt(t.length)&&s.slice(t.length+1)==e)){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,r=0;for(;r{n(t=q(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)})}for(let e in t.nodes){let r=t.nodes[e].spec.parseDOM;r&&r.forEach(t=>{n(t=q(t)),t.node||t.ignore||t.mark||(t.node=e)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new L(t,L.schemaRules(t)))}}let $={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},U={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Y={ol:!0,ul:!0};function W(t,e,n){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&n}class J{constructor(t,e,n,r,i,s){this.type=t,this.attrs=e,this.marks=n,this.solid=r,this.options=s,this.content=[],this.activeMarks=l.none,this.match=i||(4&s?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(i.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let e=this.type.contentMatch,n;return(n=e.findWrapping(t.type))?(this.match=e,n):null}}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t=this.content[this.content.length-1],e;t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))&&(t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=t.withText(t.text.slice(0,t.text.length-e[0].length)))}let e=i.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(i.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!$.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class H{constructor(t,e,n){this.parser=t,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=W(null,e.preserveWhitespace,0)|(n?4:0);i=r?new J(r.type,r.attrs,l.none,!0,e.topMatch||r.type.contentMatch,s):n?new J(null,null,l.none,!0,null,s):new J(t.schema.topNodeType,null,l.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,e){3==t.nodeType?this.addTextNode(t,e):1==t.nodeType&&this.addElement(t,e)}addTextNode(t,e){let n=t.nodeValue,r=this.top;if(2&r.options||r.inlineContext(t)||/[^ \t\r\n\u000c]/.test(n)){if(1&r.options)n=2&r.options?n.replace(/\r\n?/g,"\n"):n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let e=r.content[r.content.length-1],i=t.previousSibling;(!e||i&&"BR"==i.nodeName||e.isText&&/[ \t\r\n\u000c]$/.test(e.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),e),this.findInText(t)}else this.findInside(t)}addElement(t,e,n){let r=t.nodeName.toLowerCase(),i;Y.hasOwnProperty(r)&&this.parser.normalizeLists&&function(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let t=1==e.nodeType?e.nodeName.toLowerCase():null;t&&Y.hasOwnProperty(t)&&n?(n.appendChild(e),e=n):"li"==t?n=e:t&&(n=null)}}(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(i=this.parser.matchTag(t,this,n));if(s?s.ignore:U.hasOwnProperty(r))this.findInside(t),this.ignoreFallback(t,e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=s.skip);let n,i=this.top,o=this.needsBlock;if($.hasOwnProperty(r))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,e);return}let a=s&&s.skip?e:this.readStyles(t,e);a&&this.addAll(t,a),n&&this.sync(i),this.needsBlock=o}else{let n=this.readStyles(t,e);n&&this.addElementByRule(t,s,n,!1===s.consuming?i:void 0)}}leafFallback(t,e){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"),e)}ignoreFallback(t,e){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),e)}readStyles(t,e){let n=t.style;if(n&&n.length)for(let t=0;t!n.clearMark(t)):e.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)t=n;else break}}return e}addElementByRule(t,e,n,r){let i,s;if(e.node){if((s=this.parser.schema.nodes[e.node]).isLeaf)this.insertNode(s.create(e.attrs),n)||this.leafFallback(t,n);else{let t=this.enter(s,e.attrs||null,n,e.preserveWhitespace);t&&(i=!0,n=t)}}else{let t=this.parser.schema.marks[e.mark];n=n.concat(t.create(e.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(t);else if(r)this.addElement(t,n,r);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(t=>this.insertNode(t,n));else{let r=t;"string"==typeof e.contentElement?r=t.querySelector(e.contentElement):"function"==typeof e.contentElement?r=e.contentElement(t):e.contentElement&&(r=e.contentElement),this.findAround(t,r,!0),this.addAll(r,n)}i&&this.sync(o)&&this.open--}addAll(t,e,n,r){let i=n||0;for(let s=n?t.childNodes[n]:t.firstChild,o=null==r?null:t.childNodes[r];s!=o;s=s.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(s,e);this.findAtPoint(t,i)}findPlace(t,e){let n,r;for(let e=this.open;e>=0;e--){let i=this.nodes[e],s=i.findWrapping(t);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return null;this.sync(r);for(let t=0;t(s.type?!s.type.allowsMarkType(e.type):!K(e.type,t))||(a=e.addToSet(a),!1)),this.nodes.push(new J(t,e,a,r,null,o)),this.open++,n}closeExtra(t=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),s=(t,o)=>{for(;t>=0;t--){let a=e[t];if(""==a){if(t==e.length-1||0==t)continue;for(;o>=i;o--)if(s(t-1,o))return!0;return!1}{let t=o>0||0==o&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!t||t.name!=a&&-1==t.groups.indexOf(a))return!1;o--}}return!0};return s(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function q(t){let e={};for(let n in t)e[n]=t[n];return e}function K(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let s=[],o=t=>{s.push(t);for(let n=0;ns.indexOf(i)&&o(i))return!0}};if(o(i.contentMatch))return!0}}class Z{constructor(t,e){this.nodes=t,this.marks=e}serializeFragment(t,e={},n){n||(n=X(e).createDocumentFragment());let r=n,i=[];return t.forEach(t=>{if(i.length||t.marks.length){let n=0,s=0;for(;n=0;r--){let i=this.serializeMark(t.marks[r],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(t,e,n={}){let r=this.marks[t.type.name];return r&&Q(X(n),r(t,e),null,t.attrs)}static renderSpec(t,e,n=null,r){return Q(t,e,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Z(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=G(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return G(t.marks)}}function G(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function X(t){return t.document||window.document}let _=new WeakMap;function Q(t,e,n,r){let i,s,o;if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let a=e[0],l;if("string"!=typeof a)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(s=_.get(r))&&_.set(r,(o=null,function t(e){if(e&&"object"==typeof e){if(Array.isArray(e)){if("string"==typeof e[0])o||(o=[]),o.push(e);else for(let n=0;n-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let h=a.indexOf(" ");h>0&&(n=a.slice(0,h),a=a.slice(h+1));let u=n?t.createElementNS(n,a):t.createElement(a),c=e[1],d=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){for(let t in d=2,c)if(null!=c[t]){let e=t.indexOf(" ");e>0?u.setAttributeNS(t.slice(0,e),t.slice(e+1),c[t]):u.setAttribute(t,c[t])}}for(let s=d;sd)throw RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}{let{dom:e,contentDOM:s}=Q(t,o,n,r);if(u.appendChild(e),s){if(i)throw RangeError("Multiple content holes");i=s}}}return{dom:u,contentDOM:i}}},68205:function(t,e,n){n.d(e,{IB:function(){return o},KI:function(){return s},bw:function(){return a}});var r=n(70484),i=n(17824);function s(t,e=null){return function(n,s){let{$from:o,$to:a}=n.selection,l=o.blockRange(a),h=!1,u=l;if(!l)return!1;if(l.depth>=2&&o.node(l.depth-1).type.compatibleContent(t)&&0==l.startIndex){if(0==o.index(l.depth-1))return!1;let t=n.doc.resolve(l.start-2);u=new i.Ts(t,t,l.depth),l.endIndex=0;t--)a=i.HY.from(n[t].type.create(n[t].attrs,a));t.step(new r.FC(e.start-(s?2:0),e.end,e.start,e.end,new i.p2(a,0,0),n.length,!0));let l=0;for(let t=0;te.childCount>0&&e.firstChild.type==t);return!!a&&(!n||(s.node(a.depth-1).type==t?function(t,e,n,s){let o=t.tr,a=s.end,l=s.$to.end(s.depth);ar;e--)t-=o.child(e).nodeSize,s.delete(t-1,t+1);let a=s.doc.resolve(n.start),l=a.nodeAfter;if(s.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let h=0==n.startIndex,u=n.endIndex==o.childCount,c=a.node(-1),d=a.index(-1);if(!c.canReplace(d+(h?0:1),d+1,l.content.append(u?i.HY.empty:i.HY.from(o))))return!1;let p=a.pos,f=p+l.nodeSize;return s.step(new r.FC(p-(h?1:0),f+(u?1:0),p+1,f-1,new i.p2((h?i.HY.empty:i.HY.from(o.copy(i.HY.empty))).append(u?i.HY.empty:i.HY.from(o.copy(i.HY.empty))),h?0:1,u?0:1),h?0:1)),e(s.scrollIntoView()),!0}(e,n,a)))}}function a(t){return function(e,n){let{$from:s,$to:o}=e.selection,a=s.blockRange(o,e=>e.childCount>0&&e.firstChild.type==t);if(!a)return!1;let l=a.startIndex;if(0==l)return!1;let h=a.parent,u=h.child(l-1);if(u.type!=t)return!1;if(n){let s=u.lastChild&&u.lastChild.type==h.type,o=i.HY.from(s?t.create():null),l=new i.p2(i.HY.from(t.create(null,i.HY.from(h.type.create(null,o)))),s?3:1,0),c=a.start,d=a.end;n(e.tr.step(new r.FC(c-(s?3:1),d,c,d,l,1,!0)).scrollIntoView())}return!0}}},10155:function(t,e,n){n.d(e,{Bs:function(){return u},C1:function(){return f},H$:function(){return A},Sy:function(){return T},Y1:function(){return o},qv:function(){return d},yy:function(){return k}});var r=n(17824),i=n(70484);let s=Object.create(null);class o{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new a(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;r--){let i=e<0?g(t.node(0),t.node(r),t.before(r+1),t.index(r),e,n):g(t.node(0),t.node(r),t.after(r+1),t.index(r)+1,e,n);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw RangeError("Invalid input for Selection.fromJSON");let n=s[e.type];if(!n)throw RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in s)throw RangeError("Duplicate use of selection JSON ID "+t);return s[t]=e,e.prototype.jsonID=t,e}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class a{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function h(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class u extends o{constructor(t,e=t){h(t),h(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return o.near(n);let r=t.resolve(e.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(t,e=r.p2.empty){if(super.replace(t,e),e==r.p2.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof u&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new c(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let r=t.resolve(e);return new this(r,n==e?r:t.resolve(n))}static between(t,e,n){let r=t.pos-e.pos;if((!n||r)&&(n=r>=0?1:-1),!e.parent.inlineContent){let t=o.findFrom(e,n,!0)||o.findFrom(e,-n,!0);if(!t)return o.near(e,n);e=t.$head}return t.parent.inlineContent||(0==r?t=e:(t=(o.findFrom(t,-n,!0)||o.findFrom(t,n,!0)).$anchor).posnew f(t)};function g(t,e,n,r,i,s=!1){if(e.inlineContent)return u.create(t,n);for(let o=r-(i>0?0:1);i>0?o=0;o+=i){let r=e.child(o);if(r.isAtom){if(!s&&d.isSelectable(r))return d.create(t,n-(i<0?r.nodeSize:0))}else{let e=g(t,r,n+i,i<0?r.childCount:0,i,s);if(e)return e}n+=r.nodeSize*i}return null}function y(t,e,n){let r,s=t.steps.length-1;if(s{null==r&&(r=i)}),t.setSelection(o.near(t.doc.resolve(r),n)))}class v extends i.wx{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return r.vc.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.vc.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),n=null==n?e:n,!t)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,r.text(t,i)),this.selection.empty||this.setSelection(o.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function x(t,e){return e&&t?t.bind(e):t}class w{constructor(t,e,n){this.name=t,this.init=x(e.init,n),this.apply=x(e.apply,n)}}let S=[new w("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new w("selection",{init:(t,e)=>t.selection||o.atStart(e.doc),apply:t=>t.selection}),new w("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,r)=>r.selection.$cursor?t.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class b{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=S.slice(),e&&e.forEach(t=>{if(this.pluginsByKey[t.key])throw RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new w(t.key,t.spec.state,t))})}}class k{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;nt.toJSON())),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[n],i=r.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,n){if(!e)throw RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw RangeError("Required config field 'schema' missing");let i=new b(t.schema,t.plugins),s=new k(i);return i.fields.forEach(i=>{if("doc"==i.name)s.doc=r.NB.fromJSON(t.schema,e.doc);else if("selection"==i.name)s.selection=o.fromJSON(s.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(s.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let r in n){let o=n[r],a=o.spec.state;if(o.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(e,r)){s[i.name]=a.fromJSON.call(o,t,e[r],s);return}}s[i.name]=i.init(t,s)}}),s}}class T{constructor(t){this.spec=t,this.props={},t.props&&function t(e,n,r){for(let i in e){let s=e[i];s instanceof Function?s=s.bind(n):"handleDOMEvents"==i&&(s=t(s,n,{})),r[i]=s}return r}(t.props,this,this.props),this.key=t.key?t.key.key:C("plugin")}getState(t){return t[this.key]}}let E=Object.create(null);function C(t){return t in E?t+"$"+ ++E[t]:(E[t]=0,t+"$")}class A{constructor(t="key"){this.key=C(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},70484:function(t,e,n){n.d(e,{Ax:function(){return b},FC:function(){return g},GJ:function(){return E},Mn:function(){return k},Pu:function(){return m},dR:function(){return A},k9:function(){return x},nd:function(){return w},nj:function(){return C},wx:function(){return j}});var r=n(17824);class i{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class s{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&s.empty)return s.empty}recover(t){let e=0,n=65535&t;if(!this.inverted)for(let t=0;tt)break;let h=this.ranges[a+s],u=this.ranges[a+o],c=l+h;if(t<=c){let s=h?t==l?-1:t==c?1:e:e,o=l+r+(s<0?0:u);if(n)return o;let d=t==(e<0?l:c)?null:a/3+(t-l)*65536,p=t==l?2:t==c?1:4;return(e<0?t!=l:t!=c)&&(p|=8),new i(o,p,d)}r+=u-h}return n?t+r:new i(t+r,0,null)}touches(t,e){let n=0,r=65535&e,i=this.inverted?2:1,s=this.inverted?1:2;for(let e=0;et)break;let a=this.ranges[e+i];if(t<=o+a&&e==3*r)return!0;n+=this.ranges[e+s]-a}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;e--){let r=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=r&&r>e?n-r-1:void 0)}}invert(){let t=new o;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;nn&&et.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,i),e.openStart,e.openEnd);return h.fromReplace(t,this.from,this.to,s)}invert(){return new d(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new c(e.pos,n.pos,this.mark)}merge(t){return t instanceof c&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new c(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new c(e.from,e.to,t.markFromJSON(e.mark))}}l.jsonID("addMark",c);class d extends l{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new r.p2(u(e.content,t=>t.mark(this.mark.removeFromSet(t.marks)),t),e.openStart,e.openEnd);return h.fromReplace(t,this.from,this.to,n)}invert(){return new c(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new d(e.pos,n.pos,this.mark)}merge(t){return t instanceof d&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new d(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new d(e.from,e.to,t.markFromJSON(e.mark))}}l.jsonID("removeMark",d);class p extends l{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return h.fromReplace(t,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;nn.pos?null:new g(e.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(e.from,e.to,e.gapFrom,e.gapTo,r.p2.fromJSON(t,e.slice),e.insert,!!e.structure)}}function y(t,e,n){let r=t.resolve(e),i=n-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let t=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function v(t,e,n,i=n.contentMatch,s=!0){let o=t.doc.nodeAt(e),a=[],l=e+1;for(let e=0;e=0;e--)t.step(a[e])}function x(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let r=t.$from.node(n),i=t.$from.index(n),s=t.$to.indexAfter(n);if(ns;t--,e--){let n=i.node(t),s=i.index(t);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(s,n.childCount),a=r&&r[e+1];a&&(o=o.replaceChild(0,a.type.create(a.attrs)));let l=r&&r[e]||n;if(!n.canReplace(s+1,n.childCount)||!l.type.validContent(o))return!1}let a=i.indexAfter(s),l=r&&r[0];return i.node(s).canReplaceWith(a,a,l?l.type:i.node(s+1).type)}function k(t,e){let n=t.resolve(e),r=n.index();return T(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function T(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function E(t,e,n=-1){let r=t.resolve(e);for(let t=r.depth;;t--){let i,s,o=r.index(t);if(t==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(t+1),o++,s=r.node(t).maybeChild(o)):(i=r.node(t).maybeChild(o-1),s=r.node(t+1)),i&&!i.isTextblock&&T(i,s)&&r.node(t).canReplace(o,o+1))return e;if(0==t)break;e=n<0?r.before(t):r.after(t)}}function C(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let t=0;t=0;e--){let n=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,s=r.index(e)+(n>0?1:0),o=r.node(e),a=!1;if(1==t)a=o.canReplace(s,s,i);else{let t=o.contentMatchAt(s).findWrapping(i.firstChild.type);a=t&&o.canReplaceWith(s,s,t[0])}if(a)return 0==n?r.pos:n<0?r.before(e+1):r.after(e+1)}return null}function A(t,e,n=e,i=r.p2.empty){if(e==n&&!i.size)return null;let s=t.resolve(e),o=t.resolve(n);return M(s,o,i)?new m(e,n,i):new P(s,o,i).fit()}function M(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}l.jsonID("replaceAround",g);class P{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=r.HY.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=r.HY.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(t<0?this.$to:n.doc.resolve(t));if(!i)return null;let s=this.placed,o=n.depth,a=i.depth;for(;o&&a&&1==s.childCount;)s=s.firstChild.content,o--,a--;let l=new r.p2(s,o,a);return t>-1?new g(n.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||n.pos!=this.$to.pos?new m(n.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,r=this.unplaced.openEnd;n1&&(r=0),i.type.spec.isolating&&r<=n){t=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t=null,i=(n?(t=I(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let s=this.depth;s>=0;s--){let{type:o,match:a}=this.frontier[s],l,h=null;if(1==e&&(i?a.matchType(i.type)||(h=a.fillBefore(r.HY.from(i),!1)):t&&o.compatibleContent(t.type)))return{sliceDepth:n,frontierDepth:s,parent:t,inject:h};if(2==e&&i&&(l=a.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:s,parent:t,wrap:l};if(t&&a.matchType(t.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=I(t,e);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new r.p2(t,e+1,Math.max(n,i.size+e>=t.size-n?e+1:0)),!0)}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=I(t,e);if(i.childCount<=1&&e>0){let s=t.size-e<=e+i.size;this.unplaced=new r.p2(R(t,e-1,1),e-1,s?e-1:n)}else this.unplaced=new r.p2(R(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:i,wrap:s}){for(;this.depth>e;)this.closeFrontierNode();if(s)for(let t=0;t1||0==l||t.content.size)&&(c=e,u.push(function t(e,n,i){if(n<=0)return e;let s=e.content;return n>1&&(s=s.replaceChild(0,t(s.firstChild,n-1,1==s.childCount?i-1:0))),n>0&&(s=e.type.contentMatch.fillBefore(s).append(s),i<=0&&(s=s.append(e.type.contentMatch.matchFragment(s).fillBefore(r.HY.empty,!0)))),e.copy(s)}(t.mark(d.allowedMarks(t.marks)),1==h?l:0,h==a.childCount?p:-1)))}let f=h==a.childCount;f||(p=-1),this.placed=O(this.placed,e,r.HY.from(u)),this.frontier[e].match=c,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:r}=this.frontier[e],i=e=0;n--){let{match:e,type:r}=this.frontier[n],i=D(t,n,r,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:s,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=O(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),r=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,r)}return t}openFrontierNode(t,e=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=O(this.placed,this.depth,r.HY.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(r.HY.empty,!0);t.childCount&&(this.placed=O(this.placed,this.frontier.length,t))}}function R(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(R(t.firstChild.content,e-1,n)))}function O(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(O(t.lastChild.content,e-1,n)))}function I(t,e){for(let n=0;n=0;i--){let r=t.start(i);if(re.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(r==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==r-1)&&n.push(i)}return n}class V extends l{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return h.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let i=e.type.create(n,null,e.marks);return h.fromReplace(t,this.pos,this.pos+1,new r.p2(r.HY.from(i),0,e.isLeaf?0:1))}getMap(){return s.empty}invert(t){return new V(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new V(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new V(e.pos,e.attr,e.value)}}l.jsonID("attr",V);class F extends l{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return h.ok(n)}getMap(){return s.empty}invert(t){return new F(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new F(e.attr,e.value)}}l.jsonID("docAttr",F);let z=class extends Error{};(z=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n}).prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.name="TransformError";class j{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new o}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new z(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=r.p2.empty){let i=A(this.doc,t,e,n);return i&&this.step(i),this}replaceWith(t,e,n){return this.replace(t,e,new r.p2(r.HY.from(n),0,0))}delete(t,e){return this.replace(t,e,r.p2.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return!function(t,e,n,i){if(!i.size)return t.deleteRange(e,n);let s=t.doc.resolve(e),o=t.doc.resolve(n);if(M(s,o,i))return t.step(new m(e,n,i));let a=N(s,t.doc.resolve(n));0==a[a.length-1]&&a.pop();let l=-(s.depth+1);a.unshift(l);for(let t=s.depth,e=s.pos-1;t>0;t--,e--){let n=s.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(t)>-1?l=t:s.before(t)==e&&a.splice(1,0,-t)}let h=a.indexOf(l),u=[],c=i.openStart;for(let t=i.content,e=0;;e++){let n=t.firstChild;if(u.push(n),e==i.openStart)break;t=n.content}for(let t=c-1;t>=0;t--){var d;let e=u[t],n=(d=e.type).spec.defining||d.spec.definingForContent;if(n&&!e.sameMarkup(s.node(Math.abs(l)-1)))c=t;else if(n||!e.type.isTextblock)break}for(let e=i.openStart;e>=0;e--){let l=(e+c+1)%(i.openStart+1),d=u[l];if(d)for(let e=0;es){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r.HY.empty,!0))}return e}(i.content,0,i.openStart,l),l,i.openEnd))}}let p=t.steps.length;for(let r=a.length-1;r>=0&&(t.replace(e,n,i),!(t.steps.length>p));r--){let t=a[r];t<0||(e=s.before(t),n=o.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return!function(t,e,n,i){if(!i.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=function(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(0==r.parentOffset)for(let t=r.depth-1;t>=0;t--){let e=r.index(t);if(r.node(t).canReplaceWith(e,e,n))return r.before(t+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let t=r.depth-1;t>=0;t--){let e=r.indexAfter(t);if(r.node(t).canReplaceWith(e,e,n))return r.after(t+1);if(e0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return t.delete(r.before(n),i.after(n))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return!function(t,e,n){let{$from:i,$to:s,depth:o}=e,a=i.before(o+1),l=s.after(o+1),h=a,u=l,c=r.HY.empty,d=0;for(let t=o,e=!1;t>n;t--)e||i.index(t)>0?(e=!0,c=r.HY.from(i.node(t).copy(c)),d++):h--;let p=r.HY.empty,f=0;for(let t=o,e=!1;t>n;t--)e||s.after(t+1)=0;t--){if(i.size){let e=n[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r.HY.from(n[t].type.create(n[t].attrs,i))}let s=e.start,o=e.end;t.step(new g(s,o,s,o,new r.p2(i,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,i=null){return!function(t,e,n,i,s){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(e,n)=>{var a,l;let h,u,c="function"==typeof s?s(e):s;if(e.isTextblock&&!e.hasMarkup(i,c)&&(a=t.doc,l=t.mapping.slice(o).map(n),u=(h=a.resolve(l)).index(),h.parent.canReplaceWith(u,u+1,i))){let s=null;if(i.schema.linebreakReplacement){let t="pre"==i.whitespace,e=!!i.contentMatch.matchType(i.schema.linebreakReplacement);t&&!e?s=!1:!t&&e&&(s=!0)}!1===s&&function(t,e,n,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=t.mapping.slice(r).map(n+1+s);t.replaceWith(i,i+1,e.type.schema.text("\n"))}})}(t,e,n,o),v(t,t.mapping.slice(o).map(n,1),i,void 0,null===s);let a=t.mapping.slice(o),l=a.map(n,1),h=a.map(n+e.nodeSize,1);return t.step(new g(l,h,l+1,h-1,new r.p2(r.HY.from(i.create(c,null,e.marks)),0,0),1,!0)),!0===s&&function(t,e,n,r){e.forEach((i,s)=>{if(i.isText){let o,a=/\r?\n|\r/g;for(;o=a.exec(i.text);){let i=t.mapping.slice(r).map(n+1+s+o.index);t.replaceWith(i,i+1,e.type.schema.linebreakReplacement.create())}}})}(t,e,n,o),!1}})}(this,t,e,n,i),this}setNodeMarkup(t,e,n=null,i){return!function(t,e,n,i,s){let o=t.doc.nodeAt(e);if(!o)throw RangeError("No node at given position");n||(n=o.type);let a=n.create(i,null,s||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,a);if(!n.validContent(o.content))throw RangeError("Invalid content for node type "+n.name);t.step(new g(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new r.p2(r.HY.from(a),0,0),1,!0))}(this,t,e,n,i),this}setNodeAttribute(t,e,n){return this.step(new V(t,e,n)),this}setDocAttribute(t,e){return this.step(new F(t,e)),this}addNodeMark(t,e){return this.step(new p(t,e)),this}removeNodeMark(t,e){if(!(e instanceof r.vc)){let n=this.doc.nodeAt(t);if(!n)throw RangeError("No node at position "+t);if(!(e=e.isInSet(n.marks)))return this}return this.step(new f(t,e)),this}split(t,e=1,n){return!function(t,e,n=1,i){let s=t.doc.resolve(e),o=r.HY.empty,a=r.HY.empty;for(let t=s.depth,e=s.depth-n,l=n-1;t>e;t--,l--){o=r.HY.from(s.node(t).copy(o));let e=i&&i[l];a=r.HY.from(e?e.type.create(e.attrs,a):s.node(t).copy(a))}t.step(new m(e,e,new r.p2(o.append(a),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){var r;let i,s,o,a;return r=this,o=[],a=[],r.doc.nodesBetween(t,e,(r,l,h)=>{if(!r.isInline)return;let u=r.marks;if(!n.isInSet(u)&&h.type.allowsMarkType(n.type)){let h=Math.max(l,t),p=Math.min(l+r.nodeSize,e),f=n.addToSet(u);for(let t=0;tr.step(t)),a.forEach(t=>r.step(t)),this}removeMark(t,e,n){var i;let s,o;return i=this,s=[],o=0,i.doc.nodesBetween(t,e,(i,a)=>{if(!i.isInline)return;o++;let l=null;if(n instanceof r.ZU){let t=i.marks,e;for(;e=n.isInSet(t);)(l||(l=[])).push(e),t=e.removeFromSet(t)}else n?n.isInSet(i.marks)&&(l=[n]):l=i.marks;if(l&&l.length){let n=Math.min(a+i.nodeSize,e);for(let e=0;ei.step(new d(t.from,t.to,t.style))),this}clearIncompatible(t,e,n){return v(this,t,e,n),this}}},21987:function(t,e,n){n.d(e,{YG:function(){return h},uY:function(){return i},ue:function(){return r}});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),o="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in r)i.hasOwnProperty(l)||(i[l]=r[l]);function h(t){var e=!(s&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||o&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?i:r)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}},27257:function(t,e,n){n.d(e,{Ue:function(){return d},oR:function(){return u}});let r=t=>{let e;let n=new Set,r=(t,r)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=r?r:"object"!=typeof i)?i:Object.assign({},e,i),n.forEach(n=>n(e,t))}},i=()=>e,s={setState:r,getState:i,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return e=t(r,i,s),s},i=t=>t?r(t):r;var s=n(3546),o=n(52635);let{useDebugValue:a}=s,{useSyncExternalStoreWithSelector:l}=o,h=!1;function u(t,e=t.getState,n){n&&!h&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),h=!0);let r=l(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return a(r),r}let c=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?i(t):t,n=(t,n)=>u(e,t,n);return Object.assign(n,e),n},d=t=>t?c(t):c},85654:function(t,e,n){n.d(e,{tJ:function(){return o}});let r=t=>e=>{try{let n=t(e);if(n instanceof Promise)return n;return{then:t=>r(t)(n),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>r(e)(t)}}},i=(t,e)=>(n,i,s)=>{let o,a,l={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},h=!1,u=new Set,c=new Set;try{o=l.getStorage()}catch(t){}if(!o)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...t)},i,s);let d=r(l.serialize),p=()=>{let t;let e=l.partialize({...i()}),n=d({state:e,version:l.version}).then(t=>o.setItem(l.name,t)).catch(e=>{t=e});if(t)throw t;return n},f=s.setState;s.setState=(t,e)=>{f(t,e),p()};let m=t((...t)=>{n(...t),p()},i,s),g=()=>{var t;if(!o)return;h=!1,u.forEach(t=>t(i()));let e=(null==(t=l.onRehydrateStorage)?void 0:t.call(l,i()))||void 0;return r(o.getItem.bind(o))(l.name).then(t=>{if(t)return l.deserialize(t)}).then(t=>{if(t){if("number"!=typeof t.version||t.version===l.version)return t.state;if(l.migrate)return l.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(t=>{var e;return n(a=l.merge(t,null!=(e=i())?e:m),!0),p()}).then(()=>{null==e||e(a,void 0),h=!0,c.forEach(t=>t(a))}).catch(t=>{null==e||e(void 0,t)})};return s.persist={setOptions:t=>{l={...l,...t},t.getStorage&&(o=t.getStorage())},clearStorage:()=>{null==o||o.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>g(),hasHydrated:()=>h,onHydrate:t=>(u.add(t),()=>{u.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},g(),a||m},s=(t,e)=>(n,i,s)=>{let o,a={storage:function(t,e){let n;try{n=t()}catch(t){return}return{getItem:t=>{var r;let i=t=>null===t?null:JSON.parse(t,null==e?void 0:e.reviver),s=null!=(r=n.getItem(t))?r:null;return s instanceof Promise?s.then(i):i(s)},setItem:(t,r)=>n.setItem(t,JSON.stringify(r,null==e?void 0:e.replacer)),removeItem:t=>n.removeItem(t)}}(()=>localStorage),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},l=!1,h=new Set,u=new Set,c=a.storage;if(!c)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...t)},i,s);let d=()=>{let t=a.partialize({...i()});return c.setItem(a.name,{state:t,version:a.version})},p=s.setState;s.setState=(t,e)=>{p(t,e),d()};let f=t((...t)=>{n(...t),d()},i,s),m=()=>{var t,e;if(!c)return;l=!1,h.forEach(t=>{var e;return t(null!=(e=i())?e:f)});let s=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,null!=(t=i())?t:f))||void 0;return r(c.getItem.bind(c))(a.name).then(t=>{if(t){if("number"!=typeof t.version||t.version===a.version)return t.state;if(a.migrate)return a.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(t=>{var e;return n(o=a.merge(t,null!=(e=i())?e:f),!0),d()}).then(()=>{null==s||s(o,void 0),o=i(),l=!0,u.forEach(t=>t(o))}).catch(t=>{null==s||s(void 0,t)})};return s.persist={setOptions:t=>{a={...a,...t},t.storage&&(c=t.storage)},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>l,onHydrate:t=>(h.add(t),()=>{h.delete(t)}),onFinishHydration:t=>(u.add(t),()=>{u.delete(t)})},a.skipHydration||m(),o||f},o=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),i(t,e)):s(t,e)}}]);
\ No newline at end of file
diff --git a/ee/tabby-webserver/ui/_next/static/chunks/2991-060da98aa4e7d5e4.js b/ee/tabby-webserver/ui/_next/static/chunks/2991-060da98aa4e7d5e4.js
new file mode 100644
index 000000000000..9819f887f6d3
--- /dev/null
+++ b/ee/tabby-webserver/ui/_next/static/chunks/2991-060da98aa4e7d5e4.js
@@ -0,0 +1,6 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2991],{5896:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,l=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!l&&!i)return!1;for(r in e);return void 0===r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(l)return l(e,t).value}return e[t]};e.exports=function e(){var n,t,r,l,c,s,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p
+ * @license MIT
+ */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},17129:function(e,n,t){var r=t(97564);function l(e,n){var t,l,i,o=null;if(!e||"string"!=typeof e)return o;for(var u=r(e),a="function"==typeof n,c=0,s=u.length;ci?0:i+n:n>i?i:n,t=t>0?t:0,r.length<1e4)(l=Array.from(r)).unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o