/plugin/xlsx2dw/packages/xmltojson/ |
H A D | xmltojson.js | 238 function ph(a,b,c){$.call(this,a+' at '+b+':'+c)} function 516 function ng(a,b){var c;if(a==null){em(b.a,Ws)}else if(a.length==0){em(b.a,Os)}else{Ng(Og(Pg((am(b.a… function
|
/plugin/jplayer/vendor/happyworm/jplayer/lib/aurora/ |
H A D | vorbis.js | 10 …(c[a+8>>2]|0)>0){if(h){h=a+16|0;m=0;while(1){l=Mc(a,d)|0;if((l|0)==-1){e=-1;break a}j=c[h>>2]|0;k=… argument
|
/plugin/c3chart/assets/ |
H A D | d3.min.js | 2 … strict";function n(t,n){return[t,n]}function e(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math… variable
|
/plugin/bpmnio/vendor/dmn-js/dist/ |
H A D | dmn-modeler.production.min.js | 21 */function Ha(e){this._container=this._createContainer(),Is(this._container),this._init(this._container,e)}function Wa(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function Ua(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xa(e){return Math.log(e)/Math.log(10)}function Ka(e,t){var n=Xa(e.min),i=Xa(e.max);return(Math.abs(n)+Math.abs(i))/t}yn(Ha,Uo),Ha.prototype.saveSVG=tn((function(e){var t=this;return new Promise((function(e){var n=t.get("canvas"),i=n.getActiveLayer(),o=Zt("defs",n._svg),r=ei(i),s=o&&o.outerHTML||"",a=i.getBBox();e({svg:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- created with dmn-js / http://bpmn.io --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+a.width+'" height="'+a.height+'" viewBox="'+a.x+" "+a.y+" "+a.width+" "+a.height+'" version="1.1">'+s+r+"</svg>"})}))})),Ha.prototype.getModules=function(){return this._modules},Ha.prototype.destroy=function(){Uo.prototype.destroy.call(this),en(this._container)},Ha.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Ha.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Ha.prototype._init=function(e,t){var{additionalModules:n,canvas:i,...o}=t,r={...o,canvas:{...i,container:e},modules:[...[{drd:["value",this]}],...t.modules||this.getModules(),...n||[]]};Uo.call(this,r),t&&t.container&&this.attachTo(t.container)},Ha.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Ha.prototype._createContainer=function(){return Gt('<div class="dmn-drd-container"></div>')},Ha.prototype.open=function(e){var t=this;return new Promise(((n,i)=>{var o;try{return t._definitions&&t.clear(),t._definitions=e,function(e,t,n){var i,o=e.get("drdImporter"),r=e.get("eventBus"),s=[];r.fire("import.start",{definitions:t});try{!function(e){new Ko({root:function(e){return o.root(e)},element:function(e,t){return o.add(e,t)},error:function(e,t){s.push({message:e,context:t})}}).handleDefinitions(e)}(t)}catch(e){i=e}r.fire("import.done",{error:i,warnings:s}),n(i,s)}(t,e,(function(e,t){e?(e.warnings=t||[],i(e)):n({warnings:t||[]})}))}catch(e){o=e}o?(o.warnings=o.warnings||[],i(o)):n({warnings:[]})}))},Ha.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach();var t=this._container;e.appendChild(t),this._emit("attach",{}),this.get("canvas").resized()},Ha.prototype.detach=function(){var e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Ha.prototype._modules=[ua,ha,Aa,La,Va,Qa];var Ga=Math.sign||function(e){return e>=0?1:-1},Ya={min:.2,max:4};function Za(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=T(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||.75;var i=this;t.on("canvas.init",(function(t){i._init(!1!==e.enabled)}))}Za.$inject=["config.zoomScroll","eventBus","canvas"],Za.prototype.scroll=function(e){this._canvas.scroll(e)},Za.prototype.reset=function(){this._canvas.zoom("fit-viewport")},Za.prototype.zoom=function(e,t){var n=Ka(Ya,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},Za.prototype._handleWheel=function(e){if(!Bt(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey||ma()&&e.metaKey,o=e.shiftKey,r=-1*this._scale;if(r*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var s=t.getBoundingClientRect(),a={x:e.clientX-s.left,y:e.clientY-s.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Ga(e.deltaY)*r,this.zoom(n,a)}else n=o?{dx:r*e.deltaY,dy:0}:{dx:r*e.deltaX,dy:r*e.deltaY},this.scroll(n)}},Za.prototype.stepZoom=function(e,t){var n=Ka(Ya,10);this._zoom(e,t,n)},Za.prototype._zoom=function(e,t,n){var i=this._canvas,o=e>0?1:-1,r=Xa(i.zoom()),s=Math.round(r/n)*n;s+=n*o;var a,l,c=Math.pow(10,s);i.zoom((a=Ya,l=c,Math.max(a.min,Math.min(a.max,l))),t)},Za.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&zt[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},Za.prototype._init=function(e){this.toggle(e)};var Ja={__init__:["zoomScroll"],zoomScroll:["type",Za]},el=/^djs-cursor-.*$/;function tl(e){var t=$t(document.body);t.removeMatching(el),e&&t.add("djs-cursor-"+e)}function nl(){tl(null)}var il=5e3;function ol(e,t){function n(){return!1}return t=t||"element.click",e.once(t,il,n),function(){e.off(t,n)}}function rl(e,t){var n;function i(i){var o,r=n.start,s=n.button,a=ga(i),l=Ua(a,r);(!n.dragging&&(o=l,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>15)&&(n.dragging=!0,0===s&&ol(e),tl("grab")),n.dragging)&&(l=Ua(a,n.last||n.start),t.scroll({dx:l.x,dy:l.y}),n.last=a);i.preventDefault()}function o(e){zt.unbind(document,"mousemove",i),zt.unbind(document,"mouseup",o),n=null,nl()}e.on("element.mousedown",500,(function(e){return function(e){if(Bt(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:ga(e)},zt.bind(document,"mousemove",i),zt.bind(document,"mouseup",o),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}rl.$inject=["eventBus","canvas"];var sl={__init__:["moveCanvas"],moveCanvas:["type",rl]};function al(e){return CSS.escape(e)}var ll={"&":"&","<":"<",">":">",'"':""","'":"'"};var cl=["c","C"],ul=["v","V"],hl=["y","Y"],dl=["z","Z"];function pl(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function fl(e,t){return-1!==(e=r(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function gl(e){return e.shiftKey}function ml(e){return pl(e)&&!gl(e)&&fl(dl,e)}function vl(e){return pl(e)&&(fl(hl,e)||fl(dl,e)&&gl(e))}function yl(e,t,n,i){this._open=!1,this._results={},this._eventMaps=[],this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._canvas=e,this._eventBus=t,this._selection=n,this._translate=i,this._container=this._getBoxHtml(),this._searchInput=Zt(yl.INPUT_SELECTOR,this._container),this._resultsContainer=Zt(yl.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy","drag.init","elements.changed"],this.close,this)}function xl(e,t,n){var i=function(e){var t="";return e.forEach((function(e){var n,i=(n=""+(n=e.value||e.matched||e.normal))&&n.replace(/[&<>"']/g,(function(e){return ll[e]})),o=e.match||e.matched;t+=o?'<b class="'+yl.RESULT_HIGHLIGHT_CLASS+'">'+i+"</b>":i})),""!==t?t:null}(t),o=Gt(n);o.innerHTML=i,e.appendChild(o)}yl.$inject=["canvas","eventBus","selection","translate"],yl.prototype._bindEvents=function(){var e=this;function t(t,n,i,o){e._eventMaps.push({el:t,type:i,listener:Wt.bind(t,n,i,o)})}t(document,"html","click",(function(t){e.close(!1)})),t(this._container,yl.INPUT_SELECTOR,"click",(function(e){e.stopPropagation(),e.delegateTarget.focus()})),t(this._container,yl.RESULT_SELECTOR,"mouseover",(function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)})),t(this._container,yl.RESULT_SELECTOR,"click",(function(t){t.stopPropagation(),e._select(t.delegateTarget)})),t(this._container,yl.INPUT_SELECTOR,"keydown",(function(e){fl("ArrowUp",e)&&e.preventDefault(),fl("ArrowDown",e)&&e.preventDefault()})),t(this._container,yl.INPUT_SELECTOR,"keyup",(function(t){if(fl("Escape",t))return e.close();if(fl("Enter",t)){var n=e._getCurrentResult();return n?e._select(n):e.close(!1)}return fl("ArrowUp",t)?e._scrollToDirection(!0):fl("ArrowDown",t)?e._scrollToDirection():void(fl(["ArrowLeft","ArrowRight"],t)||e._search(t.delegateTarget.value))}))},yl.prototype._unbindEvents=function(){this._eventMaps.forEach((function(e){Wt.unbind(e.el,e.type,e.listener)}))},yl.prototype._search=function(e){var t=this;if(this._clearResults(),e&&""!==e){var n=this._searchProvider.find(e);if((n=n.filter((function(e){return!t._canvas.getRootElements().includes(e.element)}))).length){n.forEach((function(e){var n=e.element.id,i=t._createResultNode(e,n);t._results[n]={element:e.element,node:i}}));var i=Zt(yl.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}else this._selection.select(null)}},yl.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},yl.prototype._scrollToNode=function(e){if(e&&e!==this._getCurrentResult()){var t=e.offsetTop,n=this._resultsContainer.scrollTop,i=t-this._resultsContainer.clientHeight+e.clientHeight;t<n?this._resultsContainer.scrollTop=t:n<i&&(this._resultsContainer.scrollTop=i)}},yl.prototype._clearResults=function(){It(this._resultsContainer),this._results={},this._eventBus.fire("searchPad.cleared")},yl.prototype._getCurrentResult=function(){return Zt(yl.RESULT_SELECTED_SELECTOR,this._resultsContainer)},yl.prototype._createResultNode=function(e,t){var n=Gt(yl.RESULT_HTML);return e.primaryTokens.length>0&&xl(n,e.primaryTokens,yl.RESULT_PRIMARY_HTML),xl(n,e.secondaryTokens,yl.RESULT_SECONDARY_HTML),Pt(n,yl.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n},yl.prototype.registerProvider=function(e){this._searchProvider=e},yl.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._cachedRootElement=this._canvas.getRootElement(),this._cachedSelection=this._selection.get(),this._cachedViewbox=this._canvas.viewbox(),this._selection.select(null),this._bindEvents(),this._open=!0,$t(this._canvas.getContainer()).add("djs-search-open"),$t(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},yl.prototype.close=function(e=!0){this.isOpen()&&(e&&(this._cachedRootElement&&this._canvas.setRootElement(this._cachedRootElement),this._cachedSelection&&this._selection.select(this._cachedSelection),this._cachedViewbox&&this._canvas.viewbox(this._cachedViewbox),this._eventBus.fire("searchPad.restored")),this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._unbindEvents(),this._open=!1,$t(this._canvas.getContainer()).remove("djs-search-open"),$t(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._eventBus.fire("searchPad.closed"),this._canvas.restoreFocus())},yl.prototype.toggle=function(){this.isOpen()?this.close():this.open()},yl.prototype.isOpen=function(){return this._open},yl.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&$t(t).remove(yl.RESULT_SELECTED_CLASS);var n=Pt(e,yl.RESULT_ID_ATTRIBUTE),i=this._results[n].element;$t(e).add(yl.RESULT_SELECTED_CLASS),this._canvas.scrollToElement(i,{top:300}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},yl.prototype._select=function(e){var t=Pt(e,yl.RESULT_ID_ATTRIBUTE),n=this._results[t].element;this._cachedSelection=null,this._cachedViewbox=null,this.close(!1),this._canvas.scrollToElement(n,{top:300}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},yl.prototype._getBoxHtml=function(){const e=Gt(yl.BOX_HTML),t=Zt(yl.INPUT_SELECTOR,e);return t&&t.setAttribute("aria-label",this._translate("Search in diagram")),e},yl.CONTAINER_SELECTOR=".djs-search-container",yl.INPUT_SELECTOR=".djs-search-input input",yl.RESULTS_CONTAINER_SELECTOR=".djs-search-results",yl.RESULT_SELECTOR=".djs-search-result",yl.RESULT_SELECTED_CLASS="djs-search-result-selected",yl.RESULT_SELECTED_SELECTOR="."+yl.RESULT_SELECTED_CLASS,yl.RESULT_ID_ATTRIBUTE="data-result-id",yl.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",yl.BOX_HTML='<div class="djs-search-container djs-scrollable">\n <div class="djs-search-input">\n <svg class="djs-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>\n </svg>\n <input type="text" spellcheck="false" />\n </div>\n <div class="djs-search-results" />\n</div>',yl.RESULT_HTML='<div class="djs-search-result"></div>',yl.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',yl.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var bl={__depends__:[ha,La,Aa],searchPad:["type",yl]};function _l(e){return hn(e,"dmn:Decision")||hn(e,"dmn:BusinessKnowledgeModel")||hn(e,"dmn:InputData")||hn(e,"dmn:KnowledgeSource")?"name":hn(e,"dmn:TextAnnotation")?"text":void 0}function wl(e){var t=e.businessObject,n=_l(t);if(n)return t[n]||""}function Cl(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}function Ol(e){return d(e,(function(e){return!!e.matched})).length>0}function kl(e,t){const n=[],i=e;if(!e)return n;e=e.toLowerCase(),t=t.toLowerCase();const o=e.indexOf(t);return o>-1?(0!==o&&n.push({normal:i.substr(0,o)}),n.push({matched:i.substr(o,t.length)}),t.length+o<e.length&&n.push({normal:i.substr(t.length+o,e.length)})):n.push({normal:i}),n}Cl.$inject=["elementRegistry","searchPad","canvas"],Cl.prototype.find=function(e){const t=this._canvas.getRootElement();let n=this._elementRegistry.filter((function(e){return!e.labelTarget}));return n=d(n,(function(e){return e!==t})),n=v(n,(function(t){return{primaryTokens:kl(wl(t),e),secondaryTokens:kl(t.id,e),element:t}})),n=d(n,(function(e){return Ol(e.primaryTokens)||Ol(e.secondaryTokens)})),n=w(n,(function(e){return wl(e.element)+e.element.id})),n};var El={__depends__:[bl],__init__:["dmnSearch"],dmnSearch:["type",Cl]};function Sl(e){Ha.call(this,e)}function Rl(e){return e&&e[e.length-1]}function Tl(e){return e.y}function Ml(e){return e.x}yn(Sl,Ha),Sl.prototype._navigationModules=[Ja,sl,El],Sl.prototype._modules=[].concat(Sl.prototype._modules,Sl.prototype._navigationModules);var Al={left:Ml,center:Ml,right:function(e){return e.x+e.width},top:Tl,middle:Tl,bottom:function(e){return e.y+e.height}};function Pl(e,t){this._modeling=e,this._rules=t}Pl.$inject=["modeling","rules"],Pl.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},Pl.prototype._isType=function(e,t){return-1!==t.indexOf(e)},Pl.prototype._alignmentPosition=function(e,t){var n,i,o,r=this._getOrientationDetails(e),s=r.axis,a=r.dimension,l={},c={},u=!1;if(this._isType(e,["left","top"]))l[e]=t[0][s];else if(this._isType(e,["right","bottom"]))o=Rl(t),l[e]=o[s]+o[a];else if(this._isType(e,["center","middle"])){if(p(t,(function(e){var t=e[s]+Math.round(e[a]/2);c[t]?c[t].elements.push(e):c[t]={elements:[e],center:t}})),n=w(c,(function(e){return e.elements.length>1&&(u=!0),e.elements.length})),u)return l[e]=Rl(n).center,l;i=t[0],o=Rl(t=w(t,(function(e){return e[s]+e[a]}))),l[e]=function(e,t){return Math.round((e[s]+t[s]+t[a])/2)}(i,o)}return l},Pl.prototype.trigger=function(e,t){var n,i=this._modeling,o=d(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(r(n=this._rules.allowed("elements.align",{elements:o}))&&(o=n),!(o.length<2)&&n){var s=w(o,Al[t]),a=this._alignmentPosition(t,s);i.alignElements(s,a)}};var Dl={__init__:["alignElements"],alignElements:["type",Pl]},$l=10,jl=50,Il=250;function Bl(e,t,n,i){for(var o;o=Ll(e,n,t);)n=i(t,n,o);return n}function Ll(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height},o=function(e){var t=Nl(e);e.host&&(t=t.concat(Nl(e.host)));e.attachers&&(t=t.concat(e.attachers.reduce((function(e,t){return e.concat(Nl(t))}),[])));return t}(e);return h(o,(function(e){return e!==n&&"intersect"===vo(e,i,$l)}))}function Nl(e){return(t=e,t.outgoing.map((function(e){return e.target}))).concat(function(e){return e.incoming.map((function(e){return e.source}))}(e));var t}function ql(){return!0}function Vl(e,t,n){e.on("autoPlace",100,(function(e){var t=e.shape;return function(e,t,n){n||(n={});var i=n.defaultDistance||jl,o=mo(e),r=po(e);return{x:r.right+i+t.width/2,y:o.y}}(e.source,t)})),e.on("autoPlace.end",(function(e){n.scrollToElement(e.shape)})),this.append=function(n,i,o){e.fire("autoPlace.start",{source:n,shape:i});var r=e.fire("autoPlace",{source:n,shape:i}),s=t.appendShape(n,i,r,n.parent,o);return e.fire("autoPlace.end",{source:n,shape:s}),s}}function Fl(e,t){e.on("autoPlace.end",500,(function(e){t.select(e.shape)}))}Vl.$inject=["eventBus","modeling","canvas"],Fl.$inject=["eventBus","selection"];var zl={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Vl],autoPlaceSelectionBehavior:["type",Fl]},Ql={width:135,height:46},Hl={width:180,height:80},Wl={width:125,height:45},Ul={width:100,height:63};function Xl(e){qo.call(this),this._drdFactory=e}yn(Xl,qo),Xl.$inject=["drdFactory"],Xl.prototype.baseCreate=qo.prototype.create,Xl.prototype.create=function(e,t){return this.createDrdElement(e,t)},Xl.prototype.createDrdElement=function(e,t){var n,i=this._drdFactory,o=(t=t||{}).businessObject;if(!o){if(!t.type)throw new Error("no shape type specified");o=i.create(t.type)}return o.di||("connection"===e?o.di=i.createDiEdge(o,[]):"shape"===e&&(o.di=i.createDiShape(o,{}))),n=this._getDefaultSize(o),t=M({businessObject:o,id:o.id},n,t),this.baseCreate(e,t)},Xl.prototype._getDefaultSize=function(e){return hn(e,"dmn:BusinessKnowledgeModel")?Ql:hn(e,"dmn:Decision")?Hl:hn(e,"dmn:InputData")?Wl:hn(e,"dmn:KnowledgeSource")?Ul:{width:100,height:80}};var Kl="left",Gl="right",Yl=60,Zl=Hl.width;function Jl(e,t){return hn(t,"dmn:TextAnnotation")?function(e,t){var n=po(e),i={x:n.right+t.width/2,y:n.top-50-t.height/2};return Bl(e,t,i,function(e){return function(t,n,i){var o={x:n.x,y:n.y};return["x","y"].forEach((function(r){var s=e[r];if(s){var a="x"===r?"width":"height",l=s.margin,c=s.minDistance;o[r]=l<0?Math.min(i[r]+l-t[a]/2,n[r]-c+l):Math.max(i[r]+i[a]+l+t[a]/2,n[r]+c+l)}})),o}}({y:{margin:-30,minDistance:20}}))}(e,t):hn(t,"dmn:DRGElement")?function(e,t){var n=po(e),i=mo(e);function o(t){return t.target===e?1:-1}var r=function(e,t){t||(t={});var n=t.defaultDistance||jl,i=t.direction||"e",o=t.filter,r=t.getWeight||function(t){return t.source===e?1:-1},s=t.maxDistance||Il,a=t.reference||"start";function l(e,t){return"n"===i?"start"===a?po(e).top-po(t).bottom:"center"===a?po(e).top-mo(t).y:po(e).top-po(t).top:"w"===i?"start"===a?po(e).left-po(t).right:"center"===a?po(e).left-mo(t).x:po(e).left-po(t).left:"s"===i?"start"===a?po(t).top-po(e).bottom:"center"===a?mo(t).y-po(e).bottom:po(t).bottom-po(e).bottom:"start"===a?po(t).left-po(e).right:"center"===a?mo(t).x-po(e).right:po(t).right-po(e).right}o||(o=ql);var c=e.incoming.filter(o).map((function(t){var n=r(t),i=n<0?l(t.source,e):l(e,t.source);return{id:t.source.id,distance:i,weight:n}})),u=e.outgoing.filter(o).map((function(t){var n=r(t),i=n>0?l(e,t.target):l(t.target,e);return{id:t.target.id,distance:i,weight:n}})),h=f(c.concat(u).reduce((function(e,t){return e[t.id+"__weight_"+t.weight]=t,e}),{}),(function(e,t){var n=t.distance,i=t.weight;return n<0||n>s||(e[String(n)]||(e[String(n)]=0),e[String(n)]+=1*i,(!e.distance||e[e.distance]<e[String(n)])&&(e.distance=n)),e}),{});return h.distance||n}(e,{defaultDistance:180,direction:"s",getWeight:o,filter:ec,reference:"center"}),s={x:i.x,y:n.bottom+r};return Bl(e,t,s,function(e){var t,n,i=mo(e);return function(e,o,r){var s;return t?(o.x<i.x?t=r:n=r,s=tc(i,mo(t))<tc(i,mo(n))?Kl:Gl):(t=r,n=r,s=mo(r).x-i.x>0?Kl:Gl),s===Kl?{x:Math.min(mo(t).x-Zl-Yl,po(t).left-Yl-e.width/2),y:o.y}:{x:Math.max(mo(n).x+Zl+Yl,po(n).right+Yl+e.width/2),y:o.y}}}(e))}(e,t):void 0}function ec(e){return!hn(e,"dmn:Association")}function tc(e,t){return Math.abs(t.x-e.x)}function nc(e){e.on("autoPlace",(function(e){var t=e.shape;return Jl(e.source,t)}))}nc.$inject=["eventBus"];var ic={__depends__:[zl],__init__:["dmnAutoPlace"],dmnAutoPlace:["type",nc]};function oc(e,t,n){var i,o,r=this,s=n.get("dragging",!1);s&&t.on("drag.start",(function(n){t.once("drag.move",1500,(function(t){!function(t){if(!t.hover){var n=t.originalEvent,i=r._findTargetGfx(n),o=i&&e.get(i);i&&o&&(t.stopPropagation(),s.hover({element:o,gfx:i}),s.move(n))}}(t)}))})),t.on("element.hover",(function(e){i=e.gfx,o=e.element})),t.on("element.hover",1500,(function(e){o&&t.fire("element.out",{element:o,gfx:i})})),t.on("element.out",(function(){i=null,o=null})),this._findTargetGfx=function(e){var t;if(e instanceof MouseEvent)return t=ga(e),function(e){return Bt(e,"svg, .djs-element",!0)}(document.elementFromPoint(t.x,t.y))}}oc.$inject=["elementRegistry","eventBus","injector"];var rc={__init__:["hoverFix"],hoverFix:["type",oc]},sc=Math.round,ac="djs-drag-active";function lc(e){e.preventDefault()}function cc(e,t,n,i){var o,r={threshold:5,trapClick:!0};function s(e){var n=t.viewbox(),i=t._container.getBoundingClientRect();return{x:n.x+(e.x-i.left)/n.scale,y:n.y+(e.y-i.top)/n.scale}}function a(t,n){n=n||o;var i=e.createEvent(M({},n.payload,n.data,{isTouch:n.isTouch}));return!1!==e.fire("drag."+t,i)&&e.fire(n.prefix+"."+t,i)}function l(e,i){var r,l=o.payload,c=o.displacement,u=o.globalStart,h=ga(e),d=Ua(h,u),p=o.localStart,f=s(h),m=Ua(f,p);if(!o.active&&(i||(r=d,Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))>o.threshold))){if(M(l,{x:sc(p.x+c.x),y:sc(p.y+c.y),dx:0,dy:0},{originalEvent:e}),!1===a("start"))return g();o.active=!0,o.keepSelection||(l.previousSelection=n.get(),n.select(null)),o.cursor&&tl(o.cursor),t.addMarker(t.getRootElement(),ac)}fa(e),o.active&&(M(l,{x:sc(f.x+c.x),y:sc(f.y+c.y),dx:sc(m.x),dy:sc(m.y)},{originalEvent:e}),a("move"))}function c(e){var t=!0;o.active&&(e&&(o.payload.originalEvent=e,fa(e)),t=a("end")),!1===t&&a("rejected"),a("ended",m(!0!==t))}function u(e){fl("Escape",e)&&(lc(e),g())}function h(t){var n;o.active&&(n=ol(e),setTimeout(n,400),lc(t)),c(t)}function d(e){l(e)}function p(e){var t=o.payload;t.hoverGfx=e.gfx,t.hover=e.element,a("hover")}function f(e){a("out");var t=o.payload;t.hoverGfx=null,t.hover=null}function g(e){var t;if(o){var n=o.active;n&&a("cancel"),t=m(e),n&&a("canceled",t)}}function m(r){var s,m;a("cleanup"),nl(),m=o.trapClick?h:c,zt.unbind(document,"mousemove",l),zt.unbind(document,"dragstart",lc),zt.unbind(document,"selectstart",lc),zt.unbind(document,"mousedown",m,!0),zt.unbind(document,"mouseup",m,!0),zt.unbind(document,"keyup",u),zt.unbind(document,"touchstart",d,!0),zt.unbind(document,"touchcancel",g,!0),zt.unbind(document,"touchmove",l,!0),zt.unbind(document,"touchend",c,!0),e.off("element.hover",p),e.off("element.out",f),t.removeMarker(t.getRootElement(),ac);var v=o.payload.previousSelection;return!1!==r&&v&&!n.get().length&&function(e){var t=e.filter((function(e){return i.get(e.id)}));t.length&&n.select(t)}(v),s=o,o=null,s}e.on("diagram.destroy",g),this.init=function(t,n,i,m){o&&g(!1),"string"==typeof n&&(m=i,i=n,n=null);var v,y,x,b,_,w=(m=M({},r,m||{})).data||{};b=m.trapClick?h:c,t?(v=pa(t)||t,y=ga(t),fa(t),"dragstart"===v.type&&lc(v)):(v=null,y={x:0,y:0}),x=s(y),n||(n=x),_=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(v),o=M({prefix:i,data:w,payload:{},globalStart:y,displacement:Ua(n,x),localStart:x,isTouch:_},m),m.manual||(_?(zt.bind(document,"touchstart",d,!0),zt.bind(document,"touchcancel",g,!0),zt.bind(document,"touchmove",l,!0),zt.bind(document,"touchend",c,!0)):(zt.bind(document,"mousemove",l),zt.bind(document,"dragstart",lc),zt.bind(document,"selectstart",lc),zt.bind(document,"mousedown",b,!0),zt.bind(document,"mouseup",b,!0)),zt.bind(document,"keyup",u),e.on("element.hover",p),e.on("element.out",f)),a("init"),m.autoActivate&&l(t,!0)},this.move=l,this.hover=p,this.out=f,this.end=c,this.cancel=g,this.context=function(){return o},this.setOptions=function(e){M(r,e)}}cc.$inject=["eventBus","canvas","selection","elementRegistry"];var uc={__depends__:[rc,Aa],dragging:["type",cc]};function hc(e,t,n){this._canvas=n,this._opts=M({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;t.on("drag.move",(function(e){var t=i._toBorderPoint(e);i.startScroll(t)})),t.on(["drag.cleanup"],(function(){i.stopScroll()}))}function dc(e,t,n){return t<e&&e<n}hc.$inject=["config.autoScroll","eventBus","canvas"],hc.prototype.startScroll=function(e){var t=this._canvas,n=this._opts,i=this,o=t.getContainer().getBoundingClientRect(),r=[e.x,e.y,o.width-e.x,o.height-e.y];this.stopScroll();for(var s=0,a=0,l=0;l<4;l++)dc(r[l],n.scrollThresholdOut[l],n.scrollThresholdIn[l])&&(0===l?s=n.scrollStep:1==l?a=n.scrollStep:2==l?s=-n.scrollStep:3==l&&(a=-n.scrollStep));0===s&&0===a||(t.scroll({dx:s,dy:a}),this._scrolling=setTimeout((function(){i.startScroll(e)}),n.scrollRepeatTimeout))},hc.prototype.stopScroll=function(){clearTimeout(this._scrolling)},hc.prototype.setOptions=function(e){this._opts=M({},this._opts,e)},hc.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=ga(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};var pc={__depends__:[uc],__init__:["autoScroll"],autoScroll:["type",hc]};function fc(e){this._commandStack=e.get("commandStack",!1)}fc.$inject=["injector"],fc.prototype.allowed=function(e,t){var n=!0,i=this._commandStack;return i&&(n=i.canExecute(e,t)),void 0===n||n};var gc={__init__:["rules"],rules:["type",fc]},mc=Math.round,vc=Math.max;var yc=10;function xc(e,t){return function(e,t){var n,i;for(n=0;i=e[n];n++)if(ki(i,t)<=yc)return{point:e[n],bendpoint:!0,index:n};return null}(e,t)||function(e,t){var n,i,o=no(function(e,t){return[["M",e.x,e.y],["m",0,-t],["a",t,t,0,1,1,0,2*t],["a",t,t,0,1,1,0,-2*t],["z"]]}(t,yc),(n=[],e.forEach((function(e,t){n.push([0===t?"M":"L",e.x,e.y])})),n)),r=o[0],s=o[o.length-1];return r?r!==s?r.segment2!==s.segment2?{point:e[i=vc(r.segment2,s.segment2)-1],bendpoint:!0,index:i}:{point:{x:mc(r.x+s.x)/2,y:mc(r.y+s.y)/2},index:r.segment2}:{point:{x:mc(r.x),y:mc(r.y)},index:r.segment2}:null}(e,t)}function bc(e,t){var n=t[0],i=t[1],o={x:i.x-n.x,y:i.y-n.y},r=function(e,t,n){var i=[{n:e[0]-n[0],lambda:t[0]},{n:e[1]-n[1],lambda:t[1]}];return-(i[0].n*t[0]+i[1].n*t[1])/(i[0].lambda*t[0]+i[1].lambda*t[1])}([n.x,n.y],[o.x,o.y],[e.x,e.y]);return{x:n.x+r*o.x,y:n.y+r*o.y}}function _c(e,t){var n,i=bc(e,t),o={x:i.x-e.x,y:i.y-e.y};return n=o,Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}var wc="djs-bendpoint",Cc="djs-segment-dragger";function Oc(e,t,n){var i=function(e,t){var n,i=ga(t),o=e._container.getBoundingClientRect();n={x:o.left,y:o.top};var r=e.viewbox();return{x:r.x+(i.x-n.x)/r.scale,y:r.y+(i.y-n.y)/r.scale}}(e,n);return xc(t,i)}function kc(e,t){var n=Qn("g");Bn(n).add(wc),An(e,n);var i=Qn("circle");jn(i,{cx:0,cy:0,r:4}),Bn(i).add("djs-visual"),An(n,i);var o=Qn("circle");return jn(o,{cx:0,cy:0,r:10}),Bn(o).add("djs-hit"),An(n,o),t&&Bn(n).add(t),n}function Ec(e,t,n,i){var o=Qn("g");An(e,o);var r=function(e,t,n){var i=t.x-e.x,o=t.y-e.y;return Rc("h"===n?i:o)}(t,n,i),s=Qn("rect");jn(s,{x:-9,y:-3,width:18,height:6}),Bn(s).add("djs-visual"),An(o,s);var a=Qn("rect");return jn(a,{x:-r/2,y:-8.5,width:r,height:17}),Bn(a).add("djs-hit"),An(o,a),function(e,t){var n=Xn();n.setRotate(t,0,0),ii(e,n)}(o,"v"===i?90:0),o}function Sc(e,t,n){var i=Qn("g"),o=Mi(t,n),r=Ri(t,n);return An(e,i),Ec(i,t,n,r),Bn(i).add(Cc),Bn(i).add("h"===r?"horizontal":"vertical"),Fo(i,o.x,o.y),i}function Rc(e){return Math.abs(Math.round(2*e/3))}function Tc(e,t){var n=function(e,t){for(var n,i=t.waypoints,o=1/0,r=0;r<i.length-1;r++){var s=_c(e,[i[r],i[r+1]]);s<o&&(o=s,n=r)}return[i[n],i[n+1]]}(e,t);return bc(e,n)}function Mc(e,t,n,i,o){function r(e,n){var r,s=n.waypoints,a=Oc(t,s,e);if(a)return r=function(e,t){var n,i,o=e.waypoints;return t.index<=0||t.bendpoint?null:(i=Ri((n={start:o[t.index-1],end:o[t.index]}).start,n.end))?Rc("h"===i?n.end.x-n.start.x:n.end.y-n.start.y)/2:null}(n,a),!function(e,t,n){var i,o,r,s,a,l,c=e.index,u=e.point;return!(c<=0||e.bendpoint)&&(r=Mi(i=t[c-1],o=t[c]),s=Ri(i,o),a=Math.abs(u.x-r.x),l=Math.abs(u.y-r.y),s&&a<=n&&l<=n)}(a,s,r)?i.start(e,n,a.index,!a.bendpoint):o.start(e,n,a.index),!0}function s(e,t,i){zt.bind(e,t,(function(e){n.triggerMouseEvent(t,e,i),e.stopPropagation()}))}function a(e,n){var i=t.getLayer("overlays"),o=Zt('.djs-bendpoints[data-element-id="'+al(e.id)+'"]',i);return!o&&n&&(jn(o=Qn("g"),{"data-element-id":e.id}),Bn(o).add("djs-bendpoints"),An(i,o),s(o,"mousedown",e),s(o,"click",e),s(o,"dblclick",e)),o}function l(e,t){return Zt('.djs-segment-dragger[data-segment-idx="'+e+'"]',t)}function c(e,t){t.waypoints.forEach((function(t,n){var i=kc(e);An(e,i),Fo(i,t.x,t.y)})),kc(e,"floating")}function u(e,t){for(var n,i,o,r=t.waypoints,a=1;a<r.length;a++)Ri(n=r[a-1],i=r[a])&&(jn(o=Sc(e,n,i),{"data-segment-idx":a}),s(o,"mousemove",t))}function h(e){var t=a(e);return t||(c(t=a(e,!0),e),u(t,e)),t}function d(e){var t=a(e);t&&(!function(e){p(Jt("."+Cc,e),(function(e){ti(e)}))}(t),function(e){p(Jt("."+wc,e),(function(e){ti(e)}))}(t),u(t,e),c(t,e))}function f(e,t,n){var i,o,r=l(t.index,e),s=n[t.index-1],a=n[t.index],c=t.point,u=Mi(s,a),h=Ri(s,a);r&&(i=function(e){return Zt(".djs-visual",e)}(r),o={x:c.x-u.x,y:c.y-u.y},"v"===h&&(o={x:o.y,y:o.x}),Fo(i,o.x,o.y))}e.on("connection.changed",(function(e){d(e.element)})),e.on("connection.remove",(function(e){var t=a(e.element);t&&ti(t)})),e.on("element.marker.update",(function(e){var t,n=e.element;n.waypoints&&(t=h(n),e.add?Bn(t).add(e.marker):Bn(t).remove(e.marker))})),e.on("element.mousemove",(function(e){var n,i,o=e.element,r=o.waypoints;if(r){if(n=a(o,!0),!(i=Oc(t,r,e.originalEvent)))return;!function(e,t){var n=Zt(".floating",e),i=t.point;n&&Fo(n,i.x,i.y)}(n,i),i.bendpoint||f(n,i,r)}})),e.on("element.mousedown",(function(e){if(ya(e)){var t=e.originalEvent,n=e.element;if(n.waypoints)return r(t,n)}})),e.on("selection.changed",(function(e){var t=e.newSelection[0];t&&t.waypoints&&h(t)})),e.on("element.hover",(function(e){var t=e.element;t.waypoints&&(h(t),n.registerEvent(e.gfx,"mousemove","element.mousemove"))})),e.on("element.out",(function(e){n.unregisterEvent(e.gfx,"mousemove","element.mousemove")})),e.on("element.updateId",(function(e){var t=e.element,n=e.newId;if(t.waypoints){var i=a(t);i&&jn(i,{"data-element-id":n})}})),this.addHandles=h,this.updateHandles=d,this.getBendpointsContainer=a,this.getSegmentDragger=l}Mc.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];var Ac=Math.round,Pc="reconnectStart",Dc="reconnectEnd",$c="updateWaypoints";function jc(e,t,n,i,o,r){this._injector=e,this.start=function(e,t,r,s){var a,l=n.getGraphics(t),c=t.source,u=t.target,h=t.waypoints,d=(a=s||0!==r?s||r!==h.length-1?$c:Dc:Pc)===$c?"connection.updateWaypoints":"connection.reconnect",p=o.allowed(d,{connection:t,source:c,target:u});!1===p&&(p=o.allowed(d,{connection:t,source:u,target:c})),!1!==p&&i.init(e,"bendpoint.move",{data:{connection:t,connectionGfx:l,context:{allowed:p,bendpointIndex:r,connection:t,source:c,target:u,insert:s,type:a}}})},t.on("bendpoint.move.hover",(function(e){var t,n=e.context,i=n.connection,r=i.source,s=i.target,a=e.hover,l=n.type;if(n.hover=a,a){var c=l===$c?"connection.updateWaypoints":"connection.reconnect";if(t=n.allowed=o.allowed(c,{connection:i,source:l===Pc?a:r,target:l===Dc?a:s}))return n.source=l===Pc?a:r,void(n.target=l===Dc?a:s);!1===t&&(t=n.allowed=o.allowed(c,{connection:i,source:l===Dc?a:s,target:l===Pc?a:r})),t&&(n.source=l===Dc?a:s,n.target=l===Pc?a:r)}})),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],(function(e){var t=e.context,n=t.type;t.hover=null,t.source=null,t.target=null,n!==$c&&(t.allowed=!1)})),t.on("bendpoint.move.end",(function(e){var t=e.context,n=t.allowed,i=t.bendpointIndex,o=t.connection,s=t.insert,a=o.waypoints.slice(),l=t.source,c=t.target,u=t.type,h=t.hints||{},d={x:Ac(e.x),y:Ac(e.y)};if(!n)return!1;u===$c?(s?a.splice(i,0,d):a[i]=d,h.bendpointMove={insert:s,bendpointIndex:i},a=this.cropWaypoints(o,a),r.updateWaypoints(o,function(e){e=e.slice();for(var t,n,i,o=0;e[o];)t=e[o],n=e[o-1],0===ki(t,i=e[o+1])||Ei(n,i,t)?e.splice(o,1):o++;return e}(a),h)):(u===Pc?(h.docking="source",Ic(t)&&(h.docking="target",h.newWaypoints=a.reverse())):u===Dc&&(h.docking="target",Ic(t)&&(h.docking="source",h.newWaypoints=a.reverse())),r.reconnect(o,l,c,d,h))}),this)}function Ic(e){var t=e.hover,n=e.source,i=e.target,o=e.type;return o===Pc?t&&i&&t===i&&n!==i:o===Dc?t&&n&&t===n&&n!==i:void 0}jc.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],jc.prototype.cropWaypoints=function(e,t){var n=this._injector.get("connectionDocking",!1);if(!n)return t;var i=e.waypoints;return e.waypoints=t,e.waypoints=n.getCroppedWaypoints(e),t=e.waypoints,e.waypoints=i,t};var Bc="updateWaypoints",Lc="connect-ok",Nc="connect-not-ok",qc="connect-hover",Vc="djs-updating",Fc="djs-dragging";function zc(e,t,n,i){this._injector=t;var o=t.get("connectionPreview",!1);n.on("bendpoint.move.start",(function(e){var t=e.context,n=t.bendpointIndex,o=t.connection,r=t.insert,s=o.waypoints,a=s.slice();t.waypoints=s,r&&a.splice(n,0,{x:e.x,y:e.y}),o.waypoints=a,Bn(t.draggerGfx=kc(i.getLayer("overlays"))).add("djs-dragging"),i.addMarker(o,Fc),i.addMarker(o,Vc)})),n.on("bendpoint.move.hover",(function(e){var t=e.context,n=t.allowed,o=t.hover,r=t.type;if(o){if(i.addMarker(o,qc),r===Bc)return;n?(i.removeMarker(o,Nc),i.addMarker(o,Lc)):!1===n&&(i.removeMarker(o,Lc),i.addMarker(o,Nc))}})),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],1100,(function(e){var t=e.context,n=t.hover,o=t.target;n&&(i.removeMarker(n,qc),i.removeMarker(n,o?Lc:Nc))})),n.on("bendpoint.move.move",(function(t){var n=t.context,i=n.allowed,r=n.bendpointIndex,s=n.draggerGfx,a=n.hover,l=n.type,c=n.connection,u=c.source,h=c.target,d=c.waypoints.slice(),p={x:t.x,y:t.y},f=n.hints||{},g={};o&&(f.connectionStart&&(g.connectionStart=f.connectionStart),f.connectionEnd&&(g.connectionEnd=f.connectionEnd),"reconnectStart"===l?Ic(n)?(g.connectionEnd=g.connectionEnd||p,g.source=h,g.target=a||u,d=d.reverse()):(g.connectionStart=g.connectionStart||p,g.source=a||u,g.target=h):"reconnectEnd"===l?Ic(n)?(g.connectionStart=g.connectionStart||p,g.source=a||h,g.target=u,d=d.reverse()):(g.connectionEnd=g.connectionEnd||p,g.source=u,g.target=a||h):(g.noCropping=!0,g.noLayout=!0,d[r]=p),l===Bc&&(d=e.cropWaypoints(c,d)),g.waypoints=d,o.drawPreview(n,i,g)),Fo(s,t.x,t.y)}),this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],1100,(function(e){var t=e.context,n=t.connection,r=t.draggerGfx,s=t.hover,a=t.target,l=t.waypoints;n.waypoints=l,ti(r),i.removeMarker(n,Vc),i.removeMarker(n,Fc),s&&(i.removeMarker(s,Lc),i.removeMarker(s,a?Lc:Nc)),o&&o.cleanUp(t)}))}zc.$inject=["bendpointMove","injector","eventBus","canvas"];var Qc="connect-hover",Hc="djs-updating";function Wc(e,t,n){return Uc(e,t,e[t]+n)}function Uc(e,t,n){return{x:"x"===t?n:e.x,y:"y"===t?n:e.y}}function Xc(e){return"x"===e?"y":"x"}function Kc(e,t,n){var i,o;return e.original?e.original:(i=mo(t),Uc(e,o=Xc(n),i[o]))}function Gc(e,t,n,i,o,r){var s=e.get("connectionDocking",!1);function a(e,t){if(!s)return t;var n,i=e.waypoints;return e.waypoints=t,n=s.getCroppedWaypoints(e),e.waypoints=i,n}function l(e){o.update("connection",e.connection,e.connectionGfx)}function c(e,t,n){var i=e.newWaypoints,o=function(e,t,n,i){var o=Math.max(t[i],n[i]),r=Math.min(t[i],n[i]);return Uc(t,i,Math.min(Math.max(r+20,e[i]),o-20))}(n,i[e.segmentStartIndex+t],i[e.segmentEndIndex+t],Xc(e.axis));Fo(e.draggerGfx,o.x,o.y)}this.start=function(e,t,o){var r,s,a,l,c=n.getGraphics(t),u=o-1,h=o,d=t.waypoints,p=d[u],f=d[h],g=Oc(n,d,e);(s=Ri(p,f))&&(a="v"===s?"x":"y",0===u&&(p=Kc(p,t.source,a)),h===d.length-1&&(f=Kc(f,t.target,a)),r={connection:t,segmentStartIndex:u,segmentEndIndex:h,segmentStart:p,segmentEnd:f,axis:a,dragPosition:l=g?g.point:{x:(p.x+f.x)/2,y:(p.y+f.y)/2}},i.init(e,l,"connectionSegment.move",{cursor:"x"===a?"resize-ew":"resize-ns",data:{connection:t,connectionGfx:c,context:r}}))},t.on("connectionSegment.move.start",(function(e){var t=e.context,i=e.connection,o=n.getLayer("overlays");t.originalWaypoints=i.waypoints.slice(),t.draggerGfx=Sc(o,t.segmentStart,t.segmentEnd),Bn(t.draggerGfx).add("djs-dragging"),n.addMarker(i,Hc)})),t.on("connectionSegment.move.move",(function(e){var t,n,i=e.context,o=i.connection,r=i.segmentStartIndex,s=i.segmentEndIndex,u=i.segmentStart,h=i.segmentEnd,d=i.axis,p=i.originalWaypoints.slice(),f=Wc(u,d,e["d"+d]),g=Wc(h,d,e["d"+d]),m=p.length,v=0;p[r]=f,p[s]=g,r<2&&(t=vo(o.source,f),1===r?"intersect"===t&&(p.shift(),p[0]=f,v--):"intersect"!==t&&(p.unshift(u),v++)),s>m-3&&(n=vo(o.target,g),s===m-2?"intersect"===n&&(p.pop(),p[p.length-1]=g):"intersect"!==n&&p.push(h)),i.newWaypoints=o.waypoints=a(o,p),c(i,v,e),i.newSegmentStartIndex=r+v,l(e)})),t.on("connectionSegment.move.hover",(function(e){e.context.hover=e.hover,n.addMarker(e.hover,Qc)})),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(e){var t=e.context.hover;t&&n.removeMarker(t,Qc)})),t.on("connectionSegment.move.cleanup",(function(e){var t=e.context,i=t.connection;t.draggerGfx&&ti(t.draggerGfx),n.removeMarker(i,Hc)})),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(e){var t=e.context;t.connection.waypoints=t.originalWaypoints,l(e)})),t.on("connectionSegment.move.end",(function(e){var t=e.context,n=t.connection,i=t.newWaypoints,o=t.newSegmentStartIndex;i=i.map((function(e){return{original:e.original,x:Math.round(e.x),y:Math.round(e.y)}}));var s=function(e,t){var n=0,i=e.filter((function(i,o){return!Ei(e[o-1],e[o+1],i)||(n=o<=t?n-1:n,!1)}));return{waypoints:i,segmentOffset:n}}(i,o),l=a(n,s.waypoints),c=s.segmentOffset,u={segmentMove:{segmentStartIndex:t.segmentStartIndex,newSegmentStartIndex:o+c}};r.updateWaypoints(n,l,u)}))}Gc.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var Yc=Math.abs,Zc=Math.round;function Jc(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:Zc(e.x+e.width/2),y:Zc(e.y+e.height/2)}}function eu(e,t){var n=e.snapped;return!!n&&("string"==typeof t?n[t]:n.x&&n.y)}function tu(e,t,n){if("string"!=typeof t)throw new Error("axis must be in [x, y]");if("number"!=typeof n&&!1!==n)throw new Error("value must be Number or false");var i,o=e[t],r=e.snapped=e.snapped||{};return!1===n?r[t]=!1:(r[t]=!0,i=n-o,e[t]+=i,e["d"+t]+=i),o}function nu(e){return e.children||[]}var iu=Math.abs,ou=Math.round;function ru(e){function t(e,t){if(r(e)){for(var n=e.length;n--;)if(iu(e[n]-t)<=10)return e[n]}else{var i=t%(e=+e);if(i<10)return t-i;if(i>e-10)return t-i+e}return t}function n(e,t){return e.waypoints?Tc(t,e):e.width?{x:ou(e.width/2+e.x),y:ou(e.height/2+e.y)}:void 0}e.on("connectionSegment.move.move",1500,(function(e){var i,o,r=function(e){var t=e.context,i=t.snapPoints,o=t.connection,r=o.waypoints,s=t.segmentStart,a=t.segmentStartIndex,l=t.segmentEnd,c=t.segmentEndIndex,u=t.axis;if(i)return i;var h=[r[a-1],s,l,r[c+1]];return a<2&&h.unshift(n(o.source,e)),c>r.length-3&&h.unshift(n(o.target,e)),t.snapPoints=i={horizontal:[],vertical:[]},p(h,(function(e){e&&(e=e.original||e,"y"===u&&i.horizontal.push(e.y),"x"===u&&i.vertical.push(e.x))})),i}(e),s=e.x,a=e.y;if(r){var l=s-(i=t(r.vertical,s)),c=a-(o=t(r.horizontal,a));M(e,{dx:e.dx-l,dy:e.dy-c,x:i,y:o}),(l||-1!==r.vertical.indexOf(s))&&tu(e,"x",i),(c||-1!==r.horizontal.indexOf(a))&&tu(e,"y",o)}})),e.on(["connect.hover","connect.move","connect.end"],1500,(function(e){var t=e.context.hover,i=t&&n(t,e);co(t)&&i&&i.x&&i.y&&(tu(e,"x",i.x),tu(e,"y",i.y))})),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(e){var i,o,r=e.context,s=function(e){var t=e.snapPoints,n=e.connection.waypoints,i=e.bendpointIndex;if(t)return t;var o=[n[i-1],n[i+1]];return e.snapPoints=t={horizontal:[],vertical:[]},p(o,(function(e){e&&(e=e.original||e,t.horizontal.push(e.y),t.vertical.push(e.x))})),t}(r),a=r.hover,l=a&&n(a,e),c=e.x,u=e.y;if(s){var h=c-(i=t(l?s.vertical.concat([l.x]):s.vertical,c)),d=u-(o=t(l?s.horizontal.concat([l.y]):s.horizontal,u));M(e,{dx:e.dx-h,dy:e.dy-d,x:e.x-h,y:e.y-d}),(h||-1!==s.vertical.indexOf(c))&&tu(e,"x",i),(d||-1!==s.horizontal.indexOf(u))&&tu(e,"y",o)}}))}ru.$inject=["eventBus"];var su={__depends__:[uc,gc],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Mc],bendpointMove:["type",jc],bendpointMovePreview:["type",zc],connectionSegmentMove:["type",Gc],bendpointSnapping:["type",ru]};const au=new Pa;function lu(e){this._scheduled={},e.on("diagram.destroy",(()=>{Object.keys(this._scheduled).forEach((e=>{this.cancel(e)}))}))}lu.$inject=["eventBus"],lu.prototype.schedule=function(e,t=au.next()){this.cancel(t);const n=this._schedule(e,t);return this._scheduled[t]=n,n.promise},lu.prototype._schedule=function(e,t){const n=function(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}(),i=setTimeout((()=>{try{this._scheduled[t]=null;try{n.resolve(e())}catch(e){n.reject(e)}}catch(e){console.error("Scheduler#_schedule execution failed",e)}}));return{executionId:i,promise:n.promise}},lu.prototype.cancel=function(e){const t=this._scheduled[e];t&&(this._cancel(t),this._scheduled[e]=null)},lu.prototype._cancel=function(e){clearTimeout(e.executionId)};var cu={scheduler:["type",lu]},uu=".entry";function hu(e,t,n,i){this._canvas=e,this._elementRegistry=t,this._eventBus=n,this._scheduler=i,this._current=null,this._init()}hu.$inject=["canvas","elementRegistry","eventBus","scheduler"],hu.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",(function(t){var n=t.newSelection,i=n.length?1===n.length?n[0]:n:null;i?e.open(i,!0):e.close()})),this._eventBus.on("elements.changed",(function(t){var n=t.elements,i=e._current;if(i){var o=i.target,s=r(o)?o:[o];if(s.filter((function(e){return n.includes(e)})).length){e.close();var a=s.filter((function(t){return e._elementRegistry.get(t.id)}));a.length&&e._updateAndOpen(a.length>1?a:a[0])}}})),this._eventBus.on("canvas.viewbox.changed",(function(){e._updatePosition()})),this._eventBus.on("element.marker.update",(function(t){if(e.isOpen()){var n=t.element,i=e._current;(r(i.target)?i.target:[i.target]).includes(n)&&e._updateVisibility()}})),this._container=this._createContainer()},hu.prototype._createContainer=function(){var e=Gt('<div class="djs-context-pad-parent"></div>');return this._canvas.getContainer().appendChild(e),e},hu.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},hu.prototype.getEntries=function(e){var t=this._getProviders(),n=r(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return p(t,(function(t){if(l(t[n])){var o=t[n](e);l(o)?i=o(i):p(o,(function(e,t){i[t]=e}))}})),i},hu.prototype.trigger=function(e,t,n){var i,o,r=this,s=t.delegateTarget||t.target;return s?(i=Pt(s,"data-action"),o=t.originalEvent||t,"mouseover"!==e?"mouseout"===e?(clearTimeout(this._timeout),void(this._mouseout&&(this._mouseout(),this._mouseout=null))):this.triggerEntry(i,e,o,n):void(this._timeout=setTimeout((function(){r._mouseout=r.triggerEntry(i,"hover",o,n)}),300))):t.preventDefault()},hu.prototype.triggerEntry=function(e,t,n,i){if(this.isShown()){var o=this._current.target,r=this._current.entries[e];if(r){var s=r.action;if(!1!==this._eventBus.fire("contextPad.trigger",{entry:r,event:n})){if(l(s)){if("click"===t)return s(n,o,i)}else if(s[t])return s[t](n,o,i);n.preventDefault()}}}},hu.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},hu.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},hu.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this._createHtml(e);p(n,(function(e,n){var o,s=e.group||"default",a=Gt(e.html||'<div class="entry" draggable="true"></div>');Pt(a,"data-action",n),(o=Zt("[data-group="+al(s)+"]",i))||(Pt(o=Gt('<div class="group"></div>'),"data-group",s),i.appendChild(o)),o.appendChild(a),e.className&&function(e,t){var n=$t(e);t=r(t)?t:t.split(/\s+/g),t.forEach((function(e){n.add(e)}))}(a,e.className),e.title&&Pt(a,"title",e.title),e.imageUrl&&(Pt(t=Gt("<img>"),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",a.appendChild(t))})),$t(i).add("open"),this._current={entries:n,html:i,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})},hu.prototype._createHtml=function(e){var t=this,n=Gt('<div class="djs-context-pad"></div>');return Wt.bind(n,uu,"click",(function(e){t.trigger("click",e)})),Wt.bind(n,uu,"dragstart",(function(e){t.trigger("dragstart",e)})),Wt.bind(n,uu,"mouseover",(function(e){t.trigger("mouseover",e)})),Wt.bind(n,uu,"mouseout",(function(e){t.trigger("mouseout",e)})),zt.bind(n,"mousedown",(function(e){e.stopPropagation()})),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:e,pad:n}),n},hu.prototype.getPad=function(e){let t;return console.warn(new Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888")),t=this.isOpen()&&function(e,t){return e=r(e)?e:[e],t=r(t)?t:[t],e.length===t.length&&g(e,(function(e){return t.includes(e)}))}(this._current.target,e)?this._current.html:this._createHtml(e),{html:t}},hu.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},hu.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return r(e)===r(n)&&(r(e)?e.length===n.length&&g(e,(function(e){return n.includes(e)})):n===e)},hu.prototype.isShown=function(){return this.isOpen()&&$t(this._current.html).has("open")},hu.prototype.show=function(){this.isOpen()&&($t(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))},hu.prototype.hide=function(){this.isOpen()&&($t(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))},hu.prototype._getPosition=function(e){if(!r(e)&&co(e)){var t=this._canvas.viewbox(),n=(s=e).waypoints[s.waypoints.length-1],i=n.x*t.scale-t.x*t.scale,o=n.y*t.scale-t.y*t.scale;return{left:i+8*this._canvas.zoom(),top:o}}var s,a=this._canvas.getContainer().getBoundingClientRect(),l=this._getTargetBounds(e);return{left:l.right-a.left+8*this._canvas.zoom(),top:l.top-a.top}},hu.prototype._updatePosition=function(){this._scheduler.schedule((()=>{if(this.isOpen()){var e=this._current.html,t=this._getPosition(this._current.target);"x"in t&&"y"in t?(e.style.left=t.x+"px",e.style.top=t.y+"px"):["top","right","bottom","left"].forEach((function(n){n in t&&(e.style[n]=t[n]+"px")}))}}),"ContextPad#_updatePosition")},hu.prototype._updateVisibility=function(){this._scheduler.schedule((()=>{if(this.isOpen()){var e=this,t=this._current.target;(r(t)?t:[t]).some((function(t){return e._canvas.hasMarker(t,"djs-element-hidden")}))?e.hide():e.show()}}),"ContextPad#_updateVisibility")},hu.prototype._getTargetBounds=function(e){var t=this;return(r(e)?e:[e]).map((function(e){return t._canvas.getGraphics(e)})).reduce((function(e,t){const n=t.getBoundingClientRect();return e.top=Math.min(e.top,n.top),e.right=Math.max(e.right,n.right),e.bottom=Math.max(e.bottom,n.bottom),e.left=Math.min(e.left,n.left),e.x=e.left,e.y=e.top,e.width=e.right-e.left,e.height=e.bottom-e.top,e}),{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};var du={__depends__:[Oa,cu,La],contextPad:["type",hu]};function pu(e,t,n,i){function r(e,t){return i.allowed("connection.create",{source:e,target:t})}e.on("connect.hover",(function(e){var t,n=e.context,i=n.start,s=e.hover;if(n.hover=s,!o(t=n.canExecute=r(i,s))){if(!1!==t)return n.source=i,void(n.target=s);o(t=n.canExecute=r(s,i))||!1!==t&&(n.source=s,n.target=i)}})),e.on(["connect.out","connect.cleanup"],(function(e){var t=e.context;t.hover=null,t.source=null,t.target=null,t.canExecute=!1})),e.on("connect.end",(function(e){var t=e.context,i=t.canExecute,o=t.connectionStart,r={x:e.x,y:e.y},a=t.source,l=t.target;if(!i)return!1;var c=null,u={connectionStart:fu(t)?r:o,connectionEnd:fu(t)?o:r};s(i)&&(c=i),t.connection=n.connect(a,l,c,u)})),this.start=function(e,n,i,o){s(i)||(o=i,i=mo(n)),t.init(e,"connect",{autoActivate:o,data:{shape:n,context:{start:n,connectionStart:i}}})}}function fu(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}pu.$inject=["eventBus","dragging","modeling","rules"];var gu="connect-ok",mu="connect-not-ok";function vu(e,t,n){var i=e.get("connectionPreview",!1);i&&t.on("connect.move",(function(e){var t=e.context,n=t.canExecute,o=t.hover,r=t.source,s=t.start,a=t.startPosition,l=t.target,c=t.connectionStart||a,u=t.connectionEnd||{x:e.x,y:e.y},h=c,d=u;fu(t)&&(h=u,d=c),i.drawPreview(t,n,{source:r||s,target:l||o,connectionStart:h,connectionEnd:d})})),t.on("connect.hover",900,(function(e){var t=e.context,i=e.hover,o=t.canExecute;null!==o&&n.addMarker(i,o?gu:mu)})),t.on(["connect.out","connect.cleanup"],1100,(function(e){var t=e.hover;t&&(n.removeMarker(t,gu),n.removeMarker(t,mu))})),i&&t.on("connect.cleanup",(function(e){i.cleanUp(e.context)}))}vu.$inject=["injector","eventBus","canvas"];var yu={__depends__:[Aa,gc,uc],__init__:["connectPreview"],connect:["type",pu],connectPreview:["type",vu]};const xu=new Pa("ps");var bu=["marker-start","marker-mid","marker-end"],_u=["circle","ellipse","line","path","polygon","polyline","path","rect"];function wu(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i}wu.$inject=["elementRegistry","eventBus","canvas","styles"],wu.prototype.cleanUp=function(){console.warn("PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906")},wu.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},wu.prototype.addDragger=function(e,t,n,i="djs-dragger"){var o=qn(n=n||this.getGfx(e)),r=n.getBoundingClientRect();return this._cloneMarkers(Vo(o),i),jn(o,this._styles.cls(i,[],{x:r.top,y:r.left})),An(t,o),jn(o,"data-preview-support-element-id",e.id),o},wu.prototype.addFrame=function(e,t){var n=Qn("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return An(t,n),jn(n,"data-preview-support-element-id",e.id),n},wu.prototype._cloneMarkers=function(e,t="djs-dragger",n=e){var i=this;e.childNodes&&e.childNodes.forEach((e=>{i._cloneMarkers(e,t,n)})),function(e){return-1!==_u.indexOf(e.nodeName)}(e)&&bu.forEach((function(o){if(jn(e,o)){var r=function(e,t,n){var i=(o=jn(e,t),o.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]);var o;return Zt("marker#"+i,n||document)}(e,o,i._canvas.getContainer());r&&i._cloneMarker(n,e,r,o,t)}}))},wu.prototype._cloneMarker=function(e,t,n,i,o="djs-dragger"){var r=[n.id,o,xu.next()].join("-"),s=Zt("marker#"+n.id,e);e=e||this._canvas._svg;var a=s||qn(n);a.id=r,Bn(a).add(o);var l=Zt(":scope > defs",e);l||An(e,l=Qn("defs")),An(l,a);var c=function(e){return"url(#"+e+")"}(a.id);jn(t,i,c)};var Cu={__init__:["previewSupport"],previewSupport:["type",wu]},Ou="drop-ok",ku="drop-not-ok",Eu="attach-ok",Su="new-parent",Ru="create";function Tu(e,t,n,i,o){function s(t,n){[Eu,Ou,ku,Su].forEach((function(i){i===n?e.addMarker(t,i):e.removeMarker(t,i)}))}function l(){var e=t.context();e&&e.prefix===Ru&&t.cancel()}n.on(["create.move","create.hover"],(function(e){var t=e.context,n=t.elements,i=e.hover,r=t.source,a=t.hints||{};if(!i)return t.canExecute=!1,void(t.target=null);Mu(e);var l={x:e.x,y:e.y},c=t.canExecute=i&&function(e,t,n,i,r){if(!t)return!1;var s=h(e=d(e,(function(t){var n=t.labelTarget;return!(t.parent||uo(t)&&-1!==e.indexOf(n))})),(function(e){return!co(e)})),a=!1,l=!1,c=!1;Au(e)&&(a=o.allowed("shape.attach",{position:n,shape:s,target:t})),a||(c=Au(e)?o.allowed("shape.create",{position:n,shape:s,source:i,target:t}):o.allowed("elements.create",{elements:e,position:n,target:t}));var u=r.connectionTarget;return c||a?(s&&i&&(l=o.allowed("connection.create",{source:u===i?s:i,target:u===i?i:s,hints:{targetParent:t,targetAttach:a}})),{attach:a,connect:l}):(null===c||null===a)&&null}(n,i,l,r,a);i&&null!==c&&(t.target=i,c&&c.attach?s(i,Eu):s(i,c?Su:ku))})),n.on(["create.end","create.out","create.cleanup"],(function(e){var t=e.hover;t&&s(t,null)})),n.on("create.end",(function(e){var t=e.context,n=t.source,o=t.shape,r=t.elements,s=t.target,a=t.canExecute,l=a&&a.attach,c=a&&a.connect,u=t.hints||{};if(!1===a||!s)return!1;Mu(e);var d={x:e.x,y:e.y};o=c?i.appendShape(n,o,d,s,{attach:l,connection:!0===c?{}:c,connectionTarget:u.connectionTarget}):h(r=i.createElements(r,d,s,M({},u,{attach:l})),(function(e){return!co(e)})),M(t,{elements:r,shape:o}),M(e,{elements:r,shape:o})})),n.on("create.init",(function(){n.on("elements.changed",l),n.once(["create.cancel","create.end"],2e3,(function(){n.off("elements.changed",l)}))})),this.start=function(e,n,i){r(n)||(n=[n]);var o=h(n,(function(e){return!co(e)}));if(o){i=M({elements:n,hints:{},shape:o},i||{}),p(n,(function(e){a(e.x)||(e.x=0),a(e.y)||(e.y=0)}));var s=mi(d(n,(function(e){return!e.hidden})));p(n,(function(e){co(e)&&(e.waypoints=v(e.waypoints,(function(e){return{x:e.x-s.x-s.width/2,y:e.y-s.y-s.height/2}}))),M(e,{x:e.x-s.x-s.width/2,y:e.y-s.y-s.height/2})})),t.init(e,Ru,{cursor:"grabbing",autoActivate:!0,data:{shape:o,elements:n,context:i}})}}}function Mu(e){var t=e.context.createConstraints;t&&(t.left&&(e.x=Math.max(e.x,t.left)),t.right&&(e.x=Math.min(e.x,t.right)),t.top&&(e.y=Math.max(e.y,t.top)),t.bottom&&(e.y=Math.min(e.y,t.bottom)))}function Au(e){return e&&1===e.length&&!co(e[0])}Tu.$inject=["canvas","dragging","eventBus","modeling","rules"];function Pu(e,t,n,i,o){t.on("create.move",750,(function(t){var r=t.hover,s=t.context,a=s.elements,l=s.dragGroup;l||(l=s.dragGroup=function(e){var t=Qn("g");jn(t,o.cls("djs-drag-group",["no-events"]));var r=Qn("g");return e.forEach((function(e){var o;e.hidden||(e.waypoints?(o=n._createContainer("connection",r),n.drawConnection(Vo(o),e)):(o=n._createContainer("shape",r),n.drawShape(Vo(o),e),Fo(o,e.x,e.y)),i.addDragger(e,t,o))})),t}(a)),r?(l.parentNode||An(e.getActiveLayer(),l),Fo(l,t.x,t.y)):ti(l)})),t.on("create.cleanup",(function(e){var t=e.context.dragGroup;t&&ti(t)}))}Pu.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var Du,$u,ju,Iu,Bu,Lu,Nu,qu,Vu,Fu,zu={__depends__:[uc,Cu,gc,Aa],__init__:["create","createPreview"],create:["type",Tu],createPreview:["type",Pu]},Qu={},Hu=[],Wu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Uu=Array.isArray;function Xu(e,t){for(var n in t)e[n]=t[n];return e}function Ku(e){var t=e.parentNode;t&&t.removeChild(e)}function Gu(e,t,n){var i,o,r,s={};for(r in t)"key"==r?i=t[r]:"ref"==r?o=t[r]:s[r]=t[r];if(arguments.length>2&&(s.children=arguments.length>3?Du.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===s[r]&&(s[r]=e.defaultProps[r]);return Yu(e,s,i,o,null)}function Yu(e,t,n,i,o){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++ju:o,__i:-1,__u:0};return null==o&&null!=$u.vnode&&$u.vnode(r),r}function Zu(e){return e.children}function Ju(e,t){this.props=e,this.context=t}function eh(e,t){if(null==t)return e.__?eh(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?eh(e):null}function th(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return th(e)}}function nh(e){(!e.__d&&(e.__d=!0)&&Iu.push(e)&&!ih.__r++||Bu!==$u.debounceRendering)&&((Bu=$u.debounceRendering)||Lu)(ih)}function ih(){var e,t,n,i,o,r,s,a;for(Iu.sort(Nu);e=Iu.shift();)e.__d&&(t=Iu.length,i=void 0,r=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((i=Xu({},o)).__v=o.__v+1,$u.vnode&&$u.vnode(i),hh(n.__P,i,o,n.__n,void 0!==n.__P.ownerSVGElement,32&o.__u?[r]:null,s,null==r?eh(o):r,!!(32&o.__u),a),i.__v=o.__v,i.__.__k[i.__i]=i,dh(s,i,a),i.__e!=r&&th(i)),Iu.length>t&&Iu.sort(Nu));ih.__r=0}function oh(e,t,n,i,o,r,s,a,l,c,u){var h,d,p,f,g,m=i&&i.__k||Hu,v=t.length;for(n.__d=l,rh(n,t,m),l=n.__d,h=0;h<v;h++)null!=(p=n.__k[h])&&"boolean"!=typeof p&&"function"!=typeof p&&(d=-1===p.__i?Qu:m[p.__i]||Qu,p.__i=h,hh(e,p,d,o,r,s,a,l,c,u),f=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&ph(d.ref,null,p),u.push(p.ref,p.__c||f,p)),null==g&&null!=f&&(g=f),65536&p.__u||d.__k===p.__k?(l&&!l.isConnected&&(l=eh(d)),l=sh(p,l,e)):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=g}function rh(e,t,n){var i,o,r,s,a,l=t.length,c=n.length,u=c,h=0;for(e.__k=[],i=0;i<l;i++)s=i+h,null!=(o=e.__k[i]=null==(o=t[i])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?Yu(null,o,null,null,null):Uu(o)?Yu(Zu,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?Yu(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=ah(o,n,s,u),o.__i=a,r=null,-1!==a&&(u--,(r=n[a])&&(r.__u|=131072)),null==r||null===r.__v?(-1==a&&h--,"function"!=typeof o.type&&(o.__u|=65536)):a!==s&&(a===s+1?h++:a>s?u>l-s?h+=a-s:h--:a<s?a==s-1&&(h=a-s):h=0,a!==i+h&&(o.__u|=65536))):(r=n[s])&&null==r.key&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=eh(r)),fh(r,r,!1),n[s]=null,u--);if(u)for(i=0;i<c;i++)null!=(r=n[i])&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=eh(r)),fh(r,r))}function sh(e,t,n){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=sh(i[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ah(e,t,n,i){var o=e.key,r=e.type,s=n-1,a=n+1,l=t[n];if(null===l||l&&o==l.key&&r===l.type&&!(131072&l.__u))return n;if(i>(null==l||131072&l.__u?0:1))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&r===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&r===l.type)return a;a++}}return-1}function lh(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Wu.test(t)?n:n+"px"}function ch(e,t,n,i,o){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||lh(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||lh(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i?n.u=i.u:(n.u=qu,e.addEventListener(t,r?Fu:Vu,r)):e.removeEventListener(t,r?Fu:Vu,r);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function uh(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=qu++;else if(t.t<n.u)return;return n($u.event?$u.event(t):t)}}}function hh(e,t,n,i,o,r,s,a,l,c){var u,h,d,p,f,g,m,v,y,x,b,_,w,C,O,k=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),r=[a=t.__e=n.__e]),(u=$u.__b)&&u(t);e:if("function"==typeof k)try{if(v=t.props,y=(u=k.contextType)&&i[u.__c],x=u?y?y.props.value:u.__:i,n.__c?m=(h=t.__c=n.__c).__=h.__E:("prototype"in k&&k.prototype.render?t.__c=h=new k(v,x):(t.__c=h=new Ju(v,x),h.constructor=k,h.render=gh),y&&y.sub(h),h.props=v,h.state||(h.state={}),h.context=x,h.__n=i,d=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=k.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=Xu({},h.__s)),Xu(h.__s,k.getDerivedStateFromProps(v,h.__s))),p=h.props,f=h.state,h.__v=t,d)null==k.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==k.getDerivedStateFromProps&&v!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(v,x),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(v,h.__s,x)||t.__v===n.__v)){for(t.__v!==n.__v&&(h.props=v,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<h._sb.length;b++)h.__h.push(h._sb[b]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(v,h.__s,x),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,f,g)}))}if(h.context=x,h.props=v,h.__P=e,h.__e=!1,_=$u.__r,w=0,"prototype"in k&&k.prototype.render){for(h.state=h.__s,h.__d=!1,_&&_(t),u=h.render(h.props,h.state,h.context),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[]}else do{h.__d=!1,_&&_(t),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(i=Xu(Xu({},i),h.getChildContext())),d||null==h.getSnapshotBeforeUpdate||(g=h.getSnapshotBeforeUpdate(p,f)),oh(e,Uu(O=null!=u&&u.type===Zu&&null==u.key?u.props.children:u)?O:[O],t,n,i,o,r,s,a,l,c),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),m&&(h.__E=h.__=null)}catch(e){t.__v=null,l||null!=r?(t.__e=a,t.__u|=l?160:32,r[r.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),$u.__e(e,t,n)}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,o,r,s,a,l){var c,u,h,d,p,f,g,m=n.props,v=t.props,y=t.type;if("svg"===y&&(o=!0),null!=r)for(c=0;c<r.length;c++)if((p=r[c])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,r[c]=null;break}if(null==e){if(null===y)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),r=null,a=!1}if(null===y)m===v||a&&e.data===v||(e.data=v);else{if(r=r&&Du.call(e.childNodes),m=n.props||Qu,!a&&null!=r)for(m={},c=0;c<e.attributes.length;c++)m[(p=e.attributes[c]).name]=p.value;for(c in m)p=m[c],"children"==c||("dangerouslySetInnerHTML"==c?h=p:"key"===c||c in v||ch(e,c,null,p,o));for(c in v)p=v[c],"children"==c?d=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?f=p:"checked"==c?g=p:"key"===c||a&&"function"!=typeof p||m[c]===p||ch(e,c,p,m[c],o);if(u)a||h&&(u.__html===h.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(h&&(e.innerHTML=""),oh(e,Uu(d)?d:[d],t,n,i,o&&"foreignObject"!==y,r,s,r?r[0]:n.__k&&eh(n,0),a,l),null!=r)for(c=r.length;c--;)null!=r[c]&&Ku(r[c]);a||(c="value",void 0!==f&&(f!==e[c]||"progress"===y&&!f||"option"===y&&f!==m[c])&&ch(e,c,f,m[c],!1),c="checked",void 0!==g&&g!==e[c]&&ch(e,c,g,m[c],!1))}return e}(n.__e,t,n,i,o,r,s,l,c);(u=$u.diffed)&&u(t)}function dh(e,t,n){t.__d=void 0;for(var i=0;i<n.length;i++)ph(n[i],n[++i],n[++i]);$u.__c&&$u.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){$u.__e(e,t.__v)}}))}function ph(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){$u.__e(e,n)}}function fh(e,t,n){var i,o;if($u.unmount&&$u.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||ph(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){$u.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&fh(i[o],t,n||"function"!=typeof e.type);n||null==e.__e||Ku(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function gh(e,t,n){return this.constructor(e,n)}function mh(e,t,n){var i,o,r,s;$u.__&&$u.__(e,t),o=(i="function"==typeof n)?null:t.__k,r=[],s=[],hh(t,e=(!i&&n||t).__k=Gu(Zu,null,[e]),o||Qu,Qu,void 0!==t.ownerSVGElement,!i&&n?[n]:o?null:t.firstChild?Du.call(t.childNodes):null,r,!i&&n?n:o?o.__e:t.firstChild,i,s),dh(r,e,s)}Du=Hu.slice,$u={__e:function(e,t,n,i){for(var o,r,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,i||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},ju=0,Ju.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Xu({},this.state),"function"==typeof e&&(e=e(Xu({},n),this.props)),e&&Xu(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),nh(this))},Ju.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nh(this))},Ju.prototype.render=Zu,Iu=[],Lu="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nu=function(e,t){return e.__v.__b-t.__v.__b},ih.__r=0,qu=0,Vu=uh(!1),Fu=uh(!0);var vh=function(e,t,n,i){var o;t[0]=0;for(var r=1;r<t.length;r++){var s=t[r++],a=t[r]?(t[0]|=s?1:2,n[t[r++]]):t[++r];3===s?i[0]=a:4===s?i[1]=Object.assign(i[1]||{},a):5===s?(i[1]=i[1]||{})[t[++r]]=a:6===s?i[1][t[++r]]+=a+"":s?(o=e.apply(a,vh(e,a,n,["",null])),i.push(o),a[0]?t[0]|=2:(t[r-2]=0,t[r]=o)):i.push(a)}return i},yh=new Map;var xh,bh,_h,wh,Ch=function(e){var t=yh.get(this);return t||(t=new Map,yh.set(this,t)),(t=vh(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,i=1,o="",r="",s=[0],a=function(e){1===i&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(0,e,o):3===i&&(e||o)?(s.push(3,e,o),i=2):2===i&&"..."===o&&e?s.push(4,e,0):2===i&&o&&!e?s.push(5,0,!0,o):i>=5&&((o||!e&&5===i)&&(s.push(i,0,o,n),i=6),e&&(s.push(i,e,0,n),i=6)),o=""},l=0;l<e.length;l++){l&&(1===i&&a(),a(l));for(var c=0;c<e[l].length;c++)t=e[l][c],1===i?"<"===t?(a(),s=[s],i=3):o+=t:4===i?"--"===o&&">"===t?(i=1,o=""):o=t+o[0]:r?t===r?r="":o+=t:'"'===t||"'"===t?r=t:">"===t?(a(),i=1):i&&("="===t?(i=5,n=o,o=""):"/"===t&&(i<5||">"===e[l][c+1])?(a(),3===i&&(s=s[0]),i=s,(s=s[0]).push(2,0,i),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),i=2):o+=t),3===i&&"!--"===o&&(i=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}.bind(Gu),Oh=0,kh=[],Eh=[],Sh=$u,Rh=Sh.__b,Th=Sh.__r,Mh=Sh.diffed,Ah=Sh.__c,Ph=Sh.unmount,Dh=Sh.__;function $h(e,t){Sh.__h&&Sh.__h(bh,e,Oh||t),Oh=0;var n=bh.__H||(bh.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Eh}),n.__[e]}function jh(e){return Oh=1,function(e,t,n){var i=$h(xh++,2);if(i.t=e,!i.__c&&(i.__=[Uh(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=bh,!bh.u)){var o=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&i.__c.props===e)&&(!r||r.call(this,e,t,n))};bh.u=!0;var r=bh.shouldComponentUpdate,s=bh.componentWillUpdate;bh.componentWillUpdate=function(e,t,n){if(this.__e){var i=r;r=void 0,o(e,t,n),r=i}s&&s.call(this,e,t,n)},bh.shouldComponentUpdate=o}return i.__N||i.__}(Uh,e)}function Ih(e,t){var n=$h(xh++,3);!Sh.__s&&Wh(n.__H,t)&&(n.__=e,n.i=t,bh.__H.__h.push(n))}function Bh(e,t){var n=$h(xh++,4);!Sh.__s&&Wh(n.__H,t)&&(n.__=e,n.i=t,bh.__h.push(n))}function Lh(e){return Oh=5,Nh((function(){return{current:e}}),[])}function Nh(e,t){var n=$h(xh++,7);return Wh(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function qh(e,t){return Oh=8,Nh((function(){return e}),t)}function Vh(){for(var e;e=kh.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qh),e.__H.__h.forEach(Hh),e.__H.__h=[]}catch(t){e.__H.__h=[],Sh.__e(t,e.__v)}}Sh.__b=function(e){bh=null,Rh&&Rh(e)},Sh.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Dh&&Dh(e,t)},Sh.__r=function(e){Th&&Th(e),xh=0;var t=(bh=e.__c).__H;t&&(_h===bh?(t.__h=[],bh.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Eh,e.__N=e.i=void 0}))):(t.__h.forEach(Qh),t.__h.forEach(Hh),t.__h=[],xh=0)),_h=bh},Sh.diffed=function(e){Mh&&Mh(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==kh.push(t)&&wh===Sh.requestAnimationFrame||((wh=Sh.requestAnimationFrame)||zh)(Vh)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Eh&&(e.__=e.__V),e.i=void 0,e.__V=Eh}))),_h=bh=null},Sh.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Qh),e.__h=e.__h.filter((function(e){return!e.__||Hh(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Sh.__e(n,e.__v)}})),Ah&&Ah(e,t)},Sh.unmount=function(e){Ph&&Ph(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Qh(e)}catch(e){t=e}})),n.__H=void 0,t&&Sh.__e(t,n.__v))};var Fh="function"==typeof requestAnimationFrame;function zh(e){var t,n=function(){clearTimeout(i),Fh&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Fh&&(t=requestAnimationFrame(n))}function Qh(e){var t=bh,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),bh=t}function Hh(e){var t=bh;e.__c=e.__(),bh=t}function Wh(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Uh(e,t){return"function"==typeof t?t(e):t}function Xh(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Xh(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Kh(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Xh(e))&&(i&&(i+=" "),i+=t);return i}function Gh(e){const{headerEntries:t,onSelect:n,selectedEntry:i,setSelectedEntry:o,title:r}=e,s=Nh((()=>t.reduce(((e,t)=>{const n=t.group||"default",i=e.find((e=>e.id===n));return i?i.entries.push(t):e.push({id:n,entries:[t]}),e}),[])),[t]);return Ch` variable
|
/plugin/aichat/vendor/mehrab-wj/tiktoken-php/data/ |
H A D | encoder.json | 1 {"!": 0, "\"": 1, "#": 2, "$": 3, "%": 4, "&": 5, "'": 6, "(": 7, ")": 8, "*": 9, "+": 10, ",": 11, "-": 12, ".": 13, "/": 14, "0": 15, "1": 16, "2": 17, "3": 18, "4": 19, "5": 20, "6": 21, "7": 22, "8": 23, "9": 24, ":": 25, ";": 26, "<": 27, "=": 28, ">": 29, "?": 30, "@": 31, "A": 32, "B": 33, "C": 34, "D": 35, "E": 36, "F": 37, "G": 38, "H": 39, "I": 40, "J": 41, "K": 42, "L": 43, "M": 44, "N": 45, "O": 46, "P": 47, "Q": 48, "R": 49, "S": 50, "T": 51, "U": 52, "V": 53, "W": 54, "X": 55, "Y": 56, "Z": 57, "[": 58, "\\": 59, "]": 60, "^": 61, "_": 62, "`": 63, "a": 64, "b": 65, "c": 66, "d": 67, "e": 68, "f": 69, "g": 70, "h": 71, "i": 72, "j": 73, "k": 74, "l": 75, "m": 76, "n": 77, "o": 78, "p": 79, "q": 80, "r": 81, "s": 82, "t": 83, "u": 84, "v": 85, "w": 86, "x": 87, "y": 88, "z": 89, "{": 90, "|": 91, "}": 92, "~": 93, "\u00a1": 94, "\u00a2": 95, "\u00a3": 96, "\u00a4": 97, "\u00a5": 98, "\u00a6": 99, "\u00a7": 100, "\u00a8": 101, "\u00a9": 102, "\u00aa": 103, "\u00ab": 104, "\u00ac": 105, "\u00ae": 106, "\u00af": 107, "\u00b0": 108, "\u00b1": 109, "\u00b2": 110, "\u00b3": 111, "\u00b4": 112, "\u00b5": 113, "\u00b6": 114, "\u00b7": 115, "\u00b8": 116, "\u00b9": 117, "\u00ba": 118, "\u00bb": 119, "\u00bc": 120, "\u00bd": 121, "\u00be": 122, "\u00bf": 123, "\u00c0": 124, "\u00c1": 125, "\u00c2": 126, "\u00c3": 127, "\u00c4": 128, "\u00c5": 129, "\u00c6": 130, "\u00c7": 131, "\u00c8": 132, "\u00c9": 133, "\u00ca": 134, "\u00cb": 135, "\u00cc": 136, "\u00cd": 137, "\u00ce": 138, "\u00cf": 139, "\u00d0": 140, "\u00d1": 141, "\u00d2": 142, "\u00d3": 143, "\u00d4": 144, "\u00d5": 145, "\u00d6": 146, "\u00d7": 147, "\u00d8": 148, "\u00d9": 149, "\u00da": 150, "\u00db": 151, "\u00dc": 152, "\u00dd": 153, "\u00de": 154, "\u00df": 155, "\u00e0": 156, "\u00e1": 157, "\u00e2": 158, "\u00e3": 159, "\u00e4": 160, "\u00e5": 161, "\u00e6": 162, "\u00e7": 163, "\u00e8": 164, "\u00e9": 165, "\u00ea": 166, "\u00eb": 167, "\u00ec": 168, "\u00ed": 169, "\u00ee": 170, "\u00ef": 171, "\u00f0": 172, "\u00f1": 173, "\u00f2": 174, "\u00f3": 175, "\u00f4": 176, "\u00f5": 177, "\u00f6": 178, "\u00f7": 179, "\u00f8": 180, "\u00f9": 181, "\u00fa": 182, "\u00fb": 183, "\u00fc": 184, "\u00fd": 185, "\u00fe": 186, "\u00ff": 187, "\u0100": 188, "\u0101": 189, "\u0102": 190, "\u0103": 191, "\u0104": 192, "\u0105": 193, "\u0106": 194, "\u0107": 195, "\u0108": 196, "\u0109": 197, "\u010a": 198, "\u010b": 199, "\u010c": 200, "\u010d": 201, "\u010e": 202, "\u010f": 203, "\u0110": 204, "\u0111": 205, "\u0112": 206, "\u0113": 207, "\u0114": 208, "\u0115": 209, "\u0116": 210, "\u0117": 211, "\u0118": 212, "\u0119": 213, "\u011a": 214, "\u011b": 215, "\u011c": 216, "\u011d": 217, "\u011e": 218, "\u011f": 219, "\u0120": 220, "\u0121": 221, "\u0122": 222, "\u0123": 223, "\u0124": 224, "\u0125": 225, "\u0126": 226, "\u0127": 227, "\u0128": 228, "\u0129": 229, "\u012a": 230, "\u012b": 231, "\u012c": 232, "\u012d": 233, "\u012e": 234, "\u012f": 235, "\u0130": 236, "\u0131": 237, "\u0132": 238, "\u0133": 239, "\u0134": 240, "\u0135": 241, "\u0136": 242, "\u0137": 243, "\u0138": 244, "\u0139": 245, "\u013a": 246, "\u013b": 247, "\u013c": 248, "\u013d": 249, "\u013e": 250, "\u013f": 251, "\u0140": 252, "\u0141": 253, "\u0142": 254, "\u0143": 255, "\u0120t": 256, "\u0120a": 257, "he": 258, "in": 259, "re": 260, "on": 261, "\u0120the": 262, "er": 263, "\u0120s": 264, "at": 265, "\u0120w": 266, "\u0120o": 267, "en": 268, "\u0120c": 269, "it": 270, "is": 271, "an": 272, "or": 273, "es": 274, "\u0120b": 275, "ed": 276, "\u0120f": 277, "ing": 278, "\u0120p": 279, "ou": 280, "\u0120an": 281, "al": 282, "ar": 283, "\u0120to": 284, "\u0120m": 285, "\u0120of": 286, "\u0120in": 287, "\u0120d": 288, "\u0120h": 289, "\u0120and": 290, "ic": 291, "as": 292, "le": 293, "\u0120th": 294, "ion": 295, "om": 296, "ll": 297, "ent": 298, "\u0120n": 299, "\u0120l": 300, "st": 301, "\u0120re": 302, "ve": 303, "\u0120e": 304, "ro": 305, "ly": 306, "\u0120be": 307, "\u0120g": 308, "\u0120T": 309, "ct": 310, "\u0120S": 311, "id": 312, "ot": 313, "\u0120I": 314, "ut": 315, "et": 316, "\u0120A": 317, "\u0120is": 318, "\u0120on": 319, "im": 320, "am": 321, "ow": 322, "ay": 323, "ad": 324, "se": 325, "\u0120that": 326, "\u0120C": 327, "ig": 328, "\u0120for": 329, "ac": 330, "\u0120y": 331, "ver": 332, "ur": 333, "\u0120u": 334, "ld": 335, "\u0120st": 336, "\u0120M": 337, "'s": 338, "\u0120he": 339, "\u0120it": 340, "ation": 341, "ith": 342, "ir": 343, "ce": 344, "\u0120you": 345, "il": 346, "\u0120B": 347, "\u0120wh": 348, "ol": 349, "\u0120P": 350, "\u0120with": 351, "\u01201": 352, "ter": 353, "ch": 354, "\u0120as": 355, "\u0120we": 356, "\u0120(": 357, "nd": 358, "ill": 359, "\u0120D": 360, "if": 361, "\u01202": 362, "ag": 363, "ers": 364, "ke": 365, "\u0120\"": 366, "\u0120H": 367, "em": 368, "\u0120con": 369, "\u0120W": 370, "\u0120R": 371, "her": 372, "\u0120was": 373, "\u0120r": 374, "od": 375, "\u0120F": 376, "ul": 377, "ate": 378, "\u0120at": 379, "ri": 380, "pp": 381, "ore": 382, "\u0120The": 383, "\u0120se": 384, "us": 385, "\u0120pro": 386, "\u0120ha": 387, "um": 388, "\u0120are": 389, "\u0120de": 390, "ain": 391, "and": 392, "\u0120or": 393, "igh": 394, "est": 395, "ist": 396, "ab": 397, "rom": 398, "\u0120N": 399, "th": 400, "\u0120com": 401, "\u0120G": 402, "un": 403, "op": 404, "00": 405, "\u0120L": 406, "\u0120not": 407, "ess": 408, "\u0120ex": 409, "\u0120v": 410, "res": 411, "\u0120E": 412, "ew": 413, "ity": 414, "ant": 415, "\u0120by": 416, "el": 417, "os": 418, "ort": 419, "oc": 420, "qu": 421, "\u0120from": 422, "\u0120have": 423, "\u0120su": 424, "ive": 425, "ould": 426, "\u0120sh": 427, "\u0120this": 428, "nt": 429, "ra": 430, "pe": 431, "ight": 432, "art": 433, "ment": 434, "\u0120al": 435, "ust": 436, "end": 437, "--": 438, "all": 439, "\u0120O": 440, "ack": 441, "\u0120ch": 442, "\u0120le": 443, "ies": 444, "red": 445, "ard": 446, "\u00e2\u0122": 447, "out": 448, "\u0120J": 449, "\u0120ab": 450, "ear": 451, "iv": 452, "ally": 453, "our": 454, "ost": 455, "gh": 456, "pt": 457, "\u0120pl": 458, "ast": 459, "\u0120can": 460, "ak": 461, "ome": 462, "ud": 463, "The": 464, "\u0120his": 465, "\u0120do": 466, "\u0120go": 467, "\u0120has": 468, "ge": 469, "'t": 470, "\u0120U": 471, "rou": 472, "\u0120sa": 473, "\u0120j": 474, "\u0120but": 475, "\u0120wor": 476, "\u0120all": 477, "ect": 478, "\u0120k": 479, "ame": 480, "\u0120will": 481, "ok": 482, "\u0120whe": 483, "\u0120they": 484, "ide": 485, "01": 486, "ff": 487, "ich": 488, "pl": 489, "ther": 490, "\u0120tr": 491, "..": 492, "\u0120int": 493, "ie": 494, "ure": 495, "age": 496, "\u0120ne": 497, "ial": 498, "ap": 499, "ine": 500, "ice": 501, "\u0120me": 502, "\u0120out": 503, "ans": 504, "one": 505, "ong": 506, "ions": 507, "\u0120who": 508, "\u0120K": 509, "\u0120up": 510, "\u0120their": 511, "\u0120ad": 512, "\u01203": 513, "\u0120us": 514, "ated": 515, "ous": 516, "\u0120more": 517, "ue": 518, "og": 519, "\u0120St": 520, "ind": 521, "ike": 522, "\u0120so": 523, "ime": 524, "per": 525, ".\"": 526, "ber": 527, "iz": 528, "act": 529, "\u0120one": 530, "\u0120said": 531, "\u0120-": 532, "are": 533, "\u0120your": 534, "cc": 535, "\u0120Th": 536, "\u0120cl": 537, "ep": 538, "ake": 539, "able": 540, "ip": 541, "\u0120cont": 542, "\u0120which": 543, "ia": 544, "\u0120im": 545, "\u0120about": 546, "\u0120were": 547, "very": 548, "ub": 549, "\u0120had": 550, "\u0120en": 551, "\u0120comp": 552, ",\"": 553, "\u0120In": 554, "\u0120un": 555, "\u0120ag": 556, "ire": 557, "ace": 558, "au": 559, "ary": 560, "\u0120would": 561, "ass": 562, "ry": 563, "\u0120\u00e2\u0122": 564, "cl": 565, "ook": 566, "ere": 567, "so": 568, "\u0120V": 569, "ign": 570, "ib": 571, "\u0120off": 572, "\u0120te": 573, "ven": 574, "\u0120Y": 575, "ile": 576, "ose": 577, "ite": 578, "orm": 579, "\u0120201": 580, "\u0120res": 581, "\u0120man": 582, "\u0120per": 583, "\u0120other": 584, "ord": 585, "ult": 586, "\u0120been": 587, "\u0120like": 588, "ase": 589, "ance": 590, "ks": 591, "ays": 592, "own": 593, "ence": 594, "\u0120dis": 595, "ction": 596, "\u0120any": 597, "\u0120app": 598, "\u0120sp": 599, "int": 600, "ress": 601, "ations": 602, "ail": 603, "\u01204": 604, "ical": 605, "\u0120them": 606, "\u0120her": 607, "ount": 608, "\u0120Ch": 609, "\u0120ar": 610, "\u0120if": 611, "\u0120there": 612, "\u0120pe": 613, "\u0120year": 614, "av": 615, "\u0120my": 616, "\u0120some": 617, "\u0120when": 618, "ough": 619, "ach": 620, "\u0120than": 621, "ru": 622, "ond": 623, "ick": 624, "\u0120over": 625, "vel": 626, "\u0120qu": 627, "\u010a\u010a": 628, "\u0120sc": 629, "reat": 630, "ree": 631, "\u0120It": 632, "ound": 633, "port": 634, "\u0120also": 635, "\u0120part": 636, "fter": 637, "\u0120kn": 638, "\u0120bec": 639, "\u0120time": 640, "ens": 641, "\u01205": 642, "ople": 643, "\u0120what": 644, "\u0120no": 645, "du": 646, "mer": 647, "ang": 648, "\u0120new": 649, "----": 650, "\u0120get": 651, "ory": 652, "ition": 653, "ings": 654, "\u0120just": 655, "\u0120into": 656, "\u01200": 657, "ents": 658, "ove": 659, "te": 660, "\u0120people": 661, "\u0120pre": 662, "\u0120its": 663, "\u0120rec": 664, "\u0120tw": 665, "ian": 666, "irst": 667, "ark": 668, "ors": 669, "\u0120work": 670, "ade": 671, "ob": 672, "\u0120she": 673, "\u0120our": 674, "wn": 675, "ink": 676, "lic": 677, "\u012019": 678, "\u0120He": 679, "ish": 680, "nder": 681, "ause": 682, "\u0120him": 683, "ons": 684, "\u0120[": 685, "\u0120ro": 686, "form": 687, "ild": 688, "ates": 689, "vers": 690, "\u0120only": 691, "oll": 692, "\u0120spe": 693, "ck": 694, "ell": 695, "amp": 696, "\u0120acc": 697, "\u0120bl": 698, "ious": 699, "urn": 700, "ft": 701, "ood": 702, "\u0120how": 703, "hed": 704, "\u0120'": 705, "\u0120after": 706, "aw": 707, "\u0120att": 708, "ov": 709, "ne": 710, "\u0120play": 711, "erv": 712, "ict": 713, "\u0120could": 714, "itt": 715, "\u0120am": 716, "\u0120first": 717, "\u01206": 718, "\u0120act": 719, "\u0120$": 720, "ec": 721, "hing": 722, "ual": 723, "ull": 724, "\u0120comm": 725, "oy": 726, "old": 727, "ces": 728, "ater": 729, "\u0120fe": 730, "\u0120bet": 731, "we": 732, "iff": 733, "\u0120two": 734, "ock": 735, "\u0120back": 736, ").": 737, "ident": 738, "\u0120under": 739, "rough": 740, "sel": 741, "xt": 742, "\u0120may": 743, "round": 744, "\u0120po": 745, "ph": 746, "iss": 747, "\u0120des": 748, "\u0120most": 749, "\u0120did": 750, "\u0120add": 751, "ject": 752, "\u0120inc": 753, "fore": 754, "\u0120pol": 755, "ont": 756, "\u0120again": 757, "clud": 758, "tern": 759, "\u0120know": 760, "\u0120need": 761, "\u0120cons": 762, "\u0120co": 763, "\u0120.": 764, "\u0120want": 765, "\u0120see": 766, "\u01207": 767, "ning": 768, "iew": 769, "\u0120This": 770, "ced": 771, "\u0120even": 772, "\u0120ind": 773, "ty": 774, "\u0120We": 775, "ath": 776, "\u0120these": 777, "\u0120pr": 778, "\u0120use": 779, "\u0120because": 780, "\u0120fl": 781, "ng": 782, "\u0120now": 783, "\u0120\u00e2\u0122\u0135": 784, "com": 785, "ise": 786, "\u0120make": 78 (…) number
|