/plugin/abc2/abc-libraries/abc2svg/ |
H A D | mdnn-1.js | 8 abc2svg.mdnn={cde2fcg:new Int8Array([0,2,4,-1,1,3,5]),cgd2cde:new Int8Array([0,-4,-1,-5,-2,-6,-3,0,-4,-1,-5,-2,-6,-3,0]),acc_tb:["aff","af","n","s","ss"],glyphs:{n1:'<text id="n1" class="bn" x="-1.5" y="16">1</text>',n2:'<text id="n2" class="bn" x="-1.5" y="16">2</text>',n3:'<text id="n3" class="bn" x="-1.5" y="16">3</text>',n4:'<text id="n4" class="bn" x="-1.5" y="16">4</text>',n5:'<text id="n5" class="bn" x="-1.5" y="16">5</text>',n6:'<text id="n6" class="bn" x="-1.5" y="16">6</text>',n7:'<text id="n7" class="bn" x="-1.5" y="16">7</text>',nq:'<text id="nq" class="bn" x="8" y="16">\'</text>',nc:'<text id="nc" class="bn" x="8" y="16">,</text>',nh:'<path id="nh" class="stroke" d="m3.5 0l-7.2 0 0 -6.2 7.2 0"/>',nw:'<path id="nw" class="stroke" d="m6 -5l-7.2 0 0 -6.2 7.2 0 0 6.2"/>',aff:'<text id="aff" class="music" x="-8" y="11"></text>',af:'<text id="af" class="music" x="-8" y="11"></text>',nn:'<text id="nn" class="music" x="-8" y="11"></text>',ns:'<text id="ns" class="music" x="-8" y="11"></text>',nss:'<text id="nss" class="music" x="-8" y="11"></text>'},decos:{n1:"9 n1 0 0 0",n2:"9 n2 0 0 0",n3:"9 n3 0 0 0",n4:"9 n4 0 0 0",n5:"9 n5 0 0 0",n6:"9 n6 0 0 0",n7:"9 n7 0 0 0",q:"0 nq 0 0 0",c:"0 nc 0 0 0",h:"0 nh 0 0 0",w:"0 nw 0 0 0",aff:"0 aff 0 0 0",af:"0 af 0 0 0",n:"0 nn 0 0 0",s:"0 ns 0 0 0",ss:"0 nss 0 0 0"},output_music:function(of){var C=abc2svg.C,abc=this,cfmt=abc.cfmt(),cur_sy=abc.get_cur_sy(),voice_tb=abc.get_voice_tb(),sf=voice_tb[0].key.k_sf,delta=abc2svg.mdnn.cgd2cde[sf+7]-2 property in abc2svg.mdnn.decos
|
/plugin/jplayer/vendor/happyworm/jplayer/lib/aurora/ |
H A D | vorbis.js | 2 …d"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){m… property in demangle.basicTypes 6 …0]=0;c[b+16>>2]=256;i=d;return}function ab(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;do… argument 10 …=e|0;var f=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;h=(e|0)>0;a:do{if((c[a+8>>2]|0)>0){if(h){h=a+16|0;m=0… argument 19 })({"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":… argument
|
/plugin/bpmnio/vendor/dmn-js/dist/ |
H A D | dmn-modeler.production.min.js | 2 !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DmnJS=t()}(this,(function(){"use strict";const e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;function n(e){return void 0===e}function i(e){return void 0!==e}function o(e){return null==e}function r(t){return"[object Array]"===e.call(t)}function s(t){return"[object Object]"===e.call(t)}function a(t){return"[object Number]"===e.call(t)}function l(t){const n=e.call(t);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n||"[object Proxy]"===n}function c(t){return"[object String]"===e.call(t)}function u(e,n){return!o(e)&&t.call(e,n)}function h(e,t){const n=k(t);let i;return p(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function d(e,t){const n=k(t);let i=[];return p(e,(function(e,t){n(e,t)&&i.push(e)})),i}function p(e,t){let i,o;if(n(e))return;const s=r(e)?S:E;for(let n in e)if(u(e,n)&&(i=e[n],o=t(i,s(n)),!1===o))return i}function f(e,t,n){return p(e,(function(e,i){n=t(n,e,i)})),n}function g(e,t){return!!f(e,(function(e,n,i){return e&&t(n,i)}),!0)}function m(e,t){return!!h(e,t)}function v(e,t){let n=[];return p(e,(function(e,i){n.push(t(e,i))})),n}function y(e){return e&&Object.keys(e)||[]}function x(e){return v(e,(e=>e))}function b(e,t,n={}){return t=O(t),p(e,(function(e){let i=t(e)||"_",o=n[i];o||(o=n[i]=[]),o.push(e)})),n}function _(e,...t){e=O(e);let n={};return p(t,(t=>b(t,e,n))),v(n,(function(e,t){return e[0]}))}function w(e,t){t=O(t);let n=[];return p(e,(function(e,i){let o=t(e,i),r={d:o,v:e};for(var s=0;s<n.length;s++){let{d:e}=n[s];if(o<e)return void n.splice(s,0,r)}n.push(r)})),v(n,(e=>e.v))}function C(e){return function(t){return g(e,(function(e,n){return t[n]===e}))}}function O(e){return l(e)?e:t=>t[e]}function k(e){return l(e)?e:t=>t===e}function E(e){return e}function S(e){return Number(e)}function R(e,t){let n,i,o,r;function s(n){let s=Date.now(),c=n?0:r+t-s;if(c>0)return a(c);e.apply(o,i),l()}function a(e){n=setTimeout(s,e)}function l(){n&&clearTimeout(n),n=r=i=o=void 0}function c(...e){r=Date.now(),i=e,o=this,n||a(t)}return c.flush=function(){n&&s(!0),l()},c.cancel=l,c}function T(e,t){return e.bind(t)}function M(e,...t){return Object.assign(e,...t)}function A(e,t){let n={},i=Object(e);return p(t,(function(t){t in i&&(n[t]=e[t])})),n}function P(e,t){let n={};return p(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}var D="__fn",$=Array.prototype.slice;function j(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function I(){}j.prototype.on=function(e,t,n,i){if(e=r(e)?e:[e],l(t)&&(i=n,n=t,t=1e3),!a(t))throw new Error("priority must be a number");var o=n;i&&((o=T(n,i))[D]=n[D]||n);var s=this;e.forEach((function(e){s._addListener(e,{priority:t,callback:o,next:null})}))},j.prototype.once=function(e,t,n,i){var o=this;if(l(t)&&(i=n,n=t,t=1e3),!a(t))throw new Error("priority must be a number");function r(){r.__isTomb=!0;var t=n.apply(i,arguments);return o.off(e,r),t}r[D]=n,this.on(e,t,r)},j.prototype.off=function(e,t){e=r(e)?e:[e];var n=this;e.forEach((function(e){n._removeListener(e,t)}))},j.prototype.createEvent=function(e){var t=new I;return t.init(e),t},j.prototype.fire=function(e,t){var n,i,o,r;if(r=$.call(arguments),"object"==typeof e&&(e=(t=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){n=t instanceof I?t:this.createEvent(t),r[0]=n;var s=n.type;e!==s&&(n.type=e);try{o=this._invokeListeners(n,r,i)}finally{e!==s&&(n.type=s)}return void 0===o&&n.defaultPrevented&&(o=!1),o}},j.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},j.prototype._destroy=function(){this._listeners={}},j.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i},j.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{i=function(e,t){return e.apply(null,t)}(n.callback,t),void 0!==i&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener",e),e}return i},j.prototype._addListener=function(e,t){var n,i=this._getListeners(e);if(i){for(;i;){if(i.priority<t.priority)return t.next=i,void(n?n.next=t:this._setListeners(e,t));n=i,i=i.next}n.next=t}else this._setListeners(e,t)},j.prototype._getListeners=function(e){return this._listeners[e]},j.prototype._setListeners=function(e,t){this._listeners[e]=t},j.prototype._removeListener=function(e,t){var n,i,o,r=this._getListeners(e);if(t)for(;r;)n=r.next,(o=r.callback)!==t&&o[D]!==t||(i?i.next=n:this._setListeners(e,n)),i=r,r=n;else this._setListeners(e,null)},I.prototype.stopPropagation=function(){this.cancelBubble=!0},I.prototype.preventDefault=function(){this.defaultPrevented=!0},I.prototype.init=function(e){M(this,e||{})};var B=Object.prototype.toString;function L(){return L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},L.apply(this,arguments)}function N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return L.apply(void 0,[e].concat(n))}var q=Object.prototype.toString,V=Object.prototype.hasOwnProperty;function F(e){return"[object String]"===q.call(e)}function z(e,t){return V.call(e,t)}function Q(e,t){var n;if(void 0!==e){var i=function(e){return"[object Array]"===q.call(e)}(e)?W:H;for(var o in e)if(z(e,o)&&!1===t(n=e[o],i(o)))return n}}function H(e){return e}function W(e){return Number(e)}function U(e,t){return e.bind(t)}function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},X.apply(this,arguments)}function K(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return X.apply(void 0,[e].concat(n))}function G(){}function Y(e,t){this.model=e,this.properties=t}G.prototype.get=function(e){return this.$model.properties.get(this,e)},G.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},Y.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(G.prototype);Q(e.properties,(function(e){e.isMany||void 0===e.default||(i[e.name]=e.default)})),n.defineModel(i,t),n.defineDescriptor(i,e);var o=e.ns.name;function r(e){n.define(this,"$type",{value:o,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),Q(e,U((function(e,t){this.set(t,e)}),this))}return r.prototype=i,r.hasType=i.$instanceOf=this.model.hasType,n.defineModel(r,t),n.defineDescriptor(r,e),r};var Z={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},J={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function ee(e,t){var n=J[e];return n?n(t):t}function te(e){return!!Z[e]}function ne(e){return!!J[e]}function ie(e,t){var n,i,o=e.split(/:/);if(1===o.length)n=e,i=t;else{if(2!==o.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=o[1],i=o[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function oe(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function re(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,Q(e,U(this.registerPackage,this))}function se(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function ae(e){this.model=e}function le(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function ce(e){this.properties=new ae(this),this.factory=new Y(this,this.properties),this.registry=new re(e,this.properties),this.typeCache={}}oe.prototype.build=function(){return e=this,t=["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"],n={},i=Object(e),Q(t,(function(t){t in i&&(n[t]=e[t])})),n;var e,t,n,i},oe.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},oe.prototype.replaceProperty=function(e,t,n){var i=e.ns,o=this.properties,r=this.propertiesByName,s=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var a=o.indexOf(e);if(-1===a)throw new Error("property <"+i.name+"> not found in property list");o.splice(a,1),this.addProperty(t,n?void 0:a,s),r[i.name]=r[i.localName]=t},oe.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,o=t.split("#"),r=ie(o[0],i),s=ie(o[1],r.prefix).name,a=this.propertiesByName[s];if(!a)throw new Error("refined property <"+s+"> not found");this.replaceProperty(a,e,n),delete e.redefines},oe.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},oe.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},oe.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},oe.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},oe.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},oe.prototype.hasProperty=function(e){return this.propertiesByName[e]},oe.prototype.addTrait=function(e,t){var n=this.allTypesByName,i=this.allTypes,o=e.name;o in n||(Q(e.properties,U((function(n){n=K({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,o=n.redefines;i||o?this.redefineProperty(n,i||o,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[o]=e)},re.prototype.getPackage=function(e){return this.packageMap[e]},re.prototype.getPackages=function(){return this.packages},re.prototype.registerPackage=function(e){e=K({},e);var t=this.packageMap;se(t,e,"prefix"),se(t,e,"uri"),Q(e.types,U((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},re.prototype.registerType=function(e,t){var n=ie((e=K({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:K(e.meta||{})})).name,t.prefix),i=n.name,o={};Q(e.properties,U((function(e){var t=ie(e.name,n.prefix),i=t.name;te(e.type)||(e.type=ie(e.type,t.prefix).name),K(e,{ns:t,name:i}),o[i]=e}),this)),K(e,{ns:n,name:i,propertiesByName:o}),Q(e.extends,U((function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},re.prototype.mapTypes=function(e,t,n){var i=te(e.name)?{name:e.name}:this.typeMap[e.name],o=this;function r(e){return s(e,!0)}function s(n,i){var r=ie(n,te(n)?"":e.prefix);o.mapTypes(r,t,i)}if(!i)throw new Error("unknown type <"+e.name+">");Q(i.superClass,n?r:s),t(i,!n),Q(i.traits,r)},re.prototype.getEffectiveDescriptor=function(e){var t=ie(e),n=new oe(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},re.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},ae.prototype.set=function(e,t,n){if(!F(t)||!t.length)throw new TypeError("property name must be a non-empty string");var i=this.model.getPropertyDescriptor(e,t),o=i&&i.name;void 0===n?i?delete e[o]:delete e.$attrs[t]:i?o in e?e[o]=n:le(e,i,n):e.$attrs[t]=n},ae.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&le(e,n,[]),e[i]},ae.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=K({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},ae.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},ae.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},ce.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},ce.prototype.getType=function(e){var t=this.typeCache,n=F(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},ce.prototype.createAny=function(e,t,n){var i=ie(e),o={$type:e,$instanceOf:function(e){return e===this.$type}},r={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(o,r),this.properties.defineModel(o,this),this.properties.define(o,"$parent",{enumerable:!1,writable:!0}),this.properties.define(o,"$instanceOf",{enumerable:!1,writable:!0}),Q(n,(function(e,t){var n;n=e,"[object Object]"===q.call(n)&&void 0!==e.value?o[e.name]=e.value:o[t]=e})),o},ce.prototype.getPackage=function(e){return this.registry.getPackage(e)},ce.prototype.getPackages=function(){return this.registry.getPackages()},ce.prototype.getElementDescriptor=function(e){return e.$descriptor},ce.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},ce.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},ce.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var ue=Object.prototype.toString,he=Object.prototype.hasOwnProperty;function de(e){return"[object Array]"===ue.call(e)}function pe(e){return"[object String]"===ue.call(e)}function fe(e,t){return he.call(e,t)}function ge(e,t){var n;return t=ye(t),ve(e,(function(e,i){if(t(e,i))return n=e,!1})),n}function me(e,t){var n=[];return ve(e,(function(e,i){t(e,i)&&n.push(e)})),n}function ve(e,t){var n;if(void 0!==e){var i=de(e)?be:xe;for(var o in e)if(fe(e,o)&&!1===t(n=e[o],i(o)))return n}}function ye(e){return t=e,"[object Function]"===(n=ue.call(t))||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n||"[object Proxy]"===n?e:function(t){return t===e};var t,n}function xe(e){return e}function be(e){return Number(e)}function _e(){return _e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_e.apply(this,arguments)}function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return _e.apply(void 0,[e].concat(n))}var Ce=String.fromCharCode,Oe=Object.prototype.hasOwnProperty,ke=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,Ee={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function Se(e,t,n,i){return i?Oe.call(Ee,i)?Ee[i]:"&"+i+";":Ce(t||parseInt(n,16))}function Re(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(ke,Se):e}Object.keys(Ee).forEach((function(e){Ee[e.toUpperCase()]=Ee[e]}));var Te="xsi:type",Me="non-whitespace outside of root node";function Ae(e){return new Error(e)}function Pe(e){return"missing namespace for prefix <"+e+">"}function De(e){return{get:e,enumerable:!0}}function $e(e){var t,n={};for(t in e)n[t]=e[t];return n}function je(e){return e+"$uri"}function Ie(){return{line:0,column:0}}function Be(e){throw e}function Le(e){if(!this)return new Le(e);var t,n,i,o,r,s,a,l,c,u=e&&e.proxy,h=Be,d=Ie,p=!1,f=!1,g=null,m=!1;function v(e){e instanceof Error||(e=Ae(e)),g=e,h(e,d)}function y(e){r&&(e instanceof Error||(e=Ae(e)),r(e,d))}this.on=function(e,c){if("function"!=typeof c)throw Ae("required args <name, cb>");switch(e){case"openTag":n=c;break;case"text":t=c;break;case"closeTag":i=c;break;case"error":h=c;break;case"warn":r=c;break;case"cdata":o=c;break;case"attention":l=c;break;case"question":a=c;break;case"comment":s=c;break;default:throw Ae("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Ae("required args <nsMap={}>");var t,n={};for(t in e)n[t]=e[t];return n["http://www.w3.org/2001/XMLSchema-instance"]="xsi",f=!0,c=n,this},this.parse=function(e){if("string"!=typeof e)throw Ae("required args <xml=string>");return g=null,function(e){var r,h,g,x,b,_,w,C,O,k,E,S=f?[]:null,R=f?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[je(n)]=t;return i}(c):null,T=[],M=0,A=!1,P=!1,D=0,$=0,j="",I=0;function B(){if(null!==E)return E;var e,t,n,i,o,r,s,a,l,u,h,d=f&&R.xmlns,g=f&&p?[]:null,m=I,v=j,x=v.length,b={},_={};e:for(;m<x;m++)if(l=!1,!(32===(u=v.charCodeAt(m))||u<14&&u>8)){for((u<65||u>122||u>90&&u<97)&&95!==u&&58!==u&&(y("illegal first char attribute name"),l=!0),h=m+1;h<x;h function 7 */var or=/,?([a-z]),?/gi,ar=parseFloat,sr=Math,ur=sr.PI,cr=sr.min,lr=sr.max,dr=sr.pow,pr=sr.abs,hr=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,fr=/( global() class in la 21 var t,n;this._container=this._createContainer(),t=this._container,n=xn('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position global() class 23 !function(e,t){var n;n=ir,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an ar global() function [all...] |
/plugin/bpmnio/vendor/bpmn-js/dist/ |
H A D | bpmn-modeler.production.min.js | 2 !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).BpmnJS=t()}(this,(function(){"use strict";function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}var t=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var o=i-Math.floor(i),a="";for(r=0;r<Math.floor(i);r++){a=Math.floor(Math.random()*n).toString(n)+a}if(o){var s=Math.pow(n,o);a=Math.floor(Math.random()*s).toString(n)+a}var c=parseInt(a,n);return c!==1/0&&c>=Math.pow(2,e)?t(e,n):a};t.rack=function(e,n,i){var r=function(r){var a=0;do{if(a++>10){if(!i)throw new Error("too many ID collisions, use more bits");e+=i}var s=t(e,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=r,s},o=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}));function n(e){if(!(this instanceof n))return new n(e);e=e||[128,36,1],this._seed=e.length?t.rack(e[0],e[1],e[2]):e}function i(e){return Array.prototype.concat.apply([],e)}n.prototype.next=function(e){return this._seed(e||!0)},n.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},n.prototype.claim=function(e,t){this._seed.set(e,t||!0)},n.prototype.assigned=function(e){return this._seed.get(e)||!1},n.prototype.unclaim=function(e){delete this._seed.hats[e]},n.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};const r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;function a(e){return void 0===e}function s(e){return void 0!==e}function c(e){return null==e}function p(e){return"[object Array]"===r.call(e)}function l(e){return"[object Object]"===r.call(e)}function u(e){return"[object Number]"===r.call(e)}function h(e){const t=r.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function d(e){return"[object String]"===r.call(e)}function f(e,t){return o.call(e,t)}function m(e,t){const n=D(t);let i;return g(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function v(e,t){const n=D(t);let i=p(e)?-1:void 0;return g(e,(function(e,t){if(n(e,t))return i=t,!1})),i}function y(e,t){const n=D(t);let i=[];return g(e,(function(e,t){n(e,t)&&i.push(e)})),i}function g(e,t){let n,i;if(a(e))return;const r=p(e)?N:B;for(let o in e)if(f(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function b(e,t){if(a(e))return[];!function(e){if(!p(e))throw new Error("must supply array")}(e);const n=D(t);return e.filter((function(e,t){return!n(e,t)}))}function _(e,t,n){return g(e,(function(e,i){n=t(n,e,i)})),n}function x(e,t){return!!_(e,(function(e,n,i){return e&&t(n,i)}),!0)}function w(e,t){return!!m(e,t)}function E(e,t){let n=[];return g(e,(function(e,i){n.push(t(e,i))})),n}function S(e){return e&&Object.keys(e)||[]}function C(e){return E(e,(e=>e))}function k(e,t,n={}){return t=T(t),g(e,(function(e){let i=t(e)||"_",r=n[i];r||(r=n[i]=[]),r.push(e)})),n}function R(e,...t){e=T(e);let n={};return g(t,(t=>k(t,e,n))),E(n,(function(e,t){return e[0]}))}const P=R;function A(e,t){t=T(t);let n=[];return g(e,(function(e,i){let r=t(e,i),o={d:r,v:e};for(var a=0;a<n.length;a++){let{d:e}=n[a];if(r<e)return void n.splice(a,0,o)}n.push(o)})),E(n,(e=>e.v))}function M(e){return function(t){return x(e,(function(e,n){return t[n]===e}))}}function T(e){return h(e)?e:t=>t[e]}function D(e){return h(e)?e:t=>t===e}function B(e){return e}function N(e){return Number(e)}function j(e,t){let n,i,r,o;function a(n){let a=Date.now(),p=n?0:o+t-a;if(p>0)return s(p);e.apply(r,i),c()}function s(e){n=setTimeout(a,e)}function c(){n&&clearTimeout(n),n=o=i=r=void 0}function p(...e){o=Date.now(),i=e,r=this,n||s(t)}return p.flush=function(){n&&a(!0),c()},p.cancel=c,p}function O(e,t){return e.bind(t)}function L(e,...t){return Object.assign(e,...t)}function $(e,t){let n={},i=Object(e);return g(t,(function(t){t in i&&(n[t]=e[t])})),n}function I(e,t){let n={};return g(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}function F(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const z=Object.prototype.toString,H=Object.prototype.hasOwnProperty;function V(e,t){return H.call(e,t)}function G(e,t){let n,i;if(void 0===e)return;const r=function(e){return"[object Array]"===z.call(e)}(e)?U:W;for(let o in e)if(V(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function W(e){return e}function U(e){return Number(e)}function q(e,...t){const n=e.style;return G(t,(function(e){e&&G(e,(function(e,t){n[t]=e}))})),e}function K(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}const Y=Object.prototype.toString;function X(e){return new Z(e)}function Z(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function Q(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function J(e,t,n){var i=n?e:e.parentNode;return i&&"function"==typeof i.closest&&i.closest(t)||null}Z.prototype.add=function(e){return this.list.add(e),this},Z.prototype.remove=function(e){return"[object RegExp]"==Y.call(e)?this.removeMatching(e):(this.list.remove(e),this)},Z.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Z.prototype.toggle=function(e,t){return void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Z.prototype.array=function(){return Array.from(this.list)},Z.prototype.has=Z.prototype.contains=function(e){return this.list.contains(e)};var ee,te,ne,ie={};function re(){ee=window.addEventListener?"addEventListener":"attachEvent",te=window.removeEventListener?"removeEventListener":"detachEvent",ne="addEventListener"!==ee?"on":""}var oe=F({__proto__:null,bind:ie.bind=function(e,t,n,i){return ee||re(),e[ee](ne+t,n,i||!1),n},unbind:ie.unbind=function(e,t,n,i){return te||re(),e[te](ne+t,n,i||!1),n},default:ie},[ie]),ae=["focus","blur"];var se,ce={bind:function(e,t,n,i,r){return-1!==ae.indexOf(n)&&(r=!0),oe.bind(e,n,(function(n){var r=n.target||n.srcElement;n.delegateTarget=J(r,t,!0),n.delegateTarget&&i.call(e,n)}),r)},unbind:function(e,t,n,i){return-1!==ae.indexOf(t)&&(i=!0),oe.unbind(e,t,n,i)}},pe=function(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){return(r=t.createElement("html")).innerHTML=e,r.removeChild(r.lastChild)}var r,o=Object.prototype.hasOwnProperty.call(ue,i)?ue[i]:ue._default,a=o[0],s=o[1],c=o[2];(r=t.createElement("div")).innerHTML=s+e+c;for(;a--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);var p=t.createDocumentFragment();for(;r.firstChild;)p.appendChild(r.removeChild(r.firstChild));return p},le=!1;"undefined"!=typeof document&&((se=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',le=!se.getElementsByTagName("link").length,se=void 0);var ue={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:le?[1,"X<div>","</div>"]:[0,"",""]};ue.td=ue.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],ue.option=ue.optgroup=[1,'<select multiple="multiple">',"</select>"],ue.thead=ue.tbody=ue.colgroup=ue.caption=ue.tfoot=[1,"<table>","</table>"],ue.polyline=ue.ellipse=ue.polygon=ue.circle=ue.text=ue.line=ue.path=ue.rect=ue.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];var he=pe;function de(e,t){return e&&"function"==typeof e.matches&&e.matches(t)||!1}function fe(e,t){return(t=t||document).querySelector(e)}function me(e,t){return(t=t||document).querySelectorAll(e)}function ve(e){e.parentNode&&e.parentNode.removeChild(e)}function ye(e,t){return function(e,t){t.appendChild(function(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(e){}return e}(e,t))}(t,e),e}var ge={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":2,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":2,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function be(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=ge[i];r?(2===r&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function _e(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return ge[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);be(e,t,n)}else!function(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)be(e,i,t[i])}(e,t);return e}const xe=Object.prototype.toString;function we(e){return new Ee(e)}function Ee(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function Se(e){for(var t;t=e.firstChild;)e.removeChild(t);return e}function Ce(e){return e.cloneNode(!0)}Ee.prototype.add=function(e){return this.list.add(e),this},Ee.prototype.remove=function(e){return"[object RegExp]"==xe.call(e)?this.removeMatching(e):(this.list.remove(e),this)},Ee.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Ee.prototype.toggle=function(e,t){return void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Ee.prototype.array=function(){return Array.from(this.list)},Ee.prototype.has=Ee.prototype.contains=function(e){return this.list.contains(e)};var ke="http://www.w3.org/2000/svg",Re='<svg xmlns="'+ke+'"';function Pe(e){var t=!1;"<svg"===e.substring(0,4)?-1===e.indexOf(ke)&&(e=Re+e.substring(4)):(e=Re+">"+e+"</svg>",t=!0);var n=function(e){var t;return(t=new DOMParser).async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function Ae(e,t){var n;return"<"===(e=e.trim()).charAt(0)?(n=Pe(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(ke,e),t&&_e(n,t),n}var Me=null;function Te(){return null===Me&&(Me=Ae("svg")),Me}function De(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function Be(e){return Te().createSVGTransform()}var Ne=/([&<>]{1})/g,je=/([\n\r"]{1})/g,Oe={"&":"&","<":"<",">":">",'"':"'"};function Le(e,t){return e.replace(t,(function(e,t){return Oe[t]||t}))}function $e(e,t){var n,i,r,o,a;switch(e.nodeType){case 3:t.push(Le(e.textContent,Ne));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n<i;++n)o=r.item(n),t.push(" ",o.name,'="',Le(o.value,je),'"');if(e.hasChildNodes()){for(t.push(">"),n=0,i=(a=e.childNodes).length;n<i;++n)$e(a.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("\x3c!--",Le(e.nodeValue,Ne),"--\x3e");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Ie(e,t){return function(e){for(var t=e.firstChild,n=[];t;)$e(t,n),t=t.nextSibling;return n.join("")}(e)}function Fe(e){var t=e.parentNode;return t&&t.removeChild(e),e}function ze(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function He(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(ze(e,i))}(n,t)),n.consolidate()}const Ve=/^class[ {]/;function Ge(e){return Array.isArray(e)}function We(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ue(...e){1===e.length&&Ge(e[0])&&(e=e[0]);const t=(e=[...e]).pop();return t.$inject=e,t}const qe=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Ke=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Ye=/\/\*([^*]*)\*\//m;function Xe(e){if("function"!=typeof e)throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(function(e){return Ve.test(e.toString())}(e)?qe:Ke);if(!t)return[];const n=t[1]||t[2];return n&&n.split(",").map((e=>{const t=e.match(Ye);return(t&&t[1]||e).trim()}))||[]}function Ze(e,t){const n=t||{get:function(e,t){if(i.push(e),!1===t)return null;throw s(`No provider for "${e}"!`)}},i=[],r=this._providers=Object.create(n._providers||null),o=this._instances=Object.create(null),a=o.injector=this,s=function(e){const t=i.join(" -> ");return i.length=0,new Error(t?`${e} (Resolving: ${t})`:e)};function c(e,t){if(!r[e]&&e.includes(".")){const t=e.split(".");let n=c(t.shift());for(;t.length;)n=n[t.shift()];return n}if(We(o,e))return o[e];if(We(r,e)){if(-1!==i.indexOf(e))throw i.push(e),s("Cannot resolve circular dependency!");return i.push(e),o[e]=r[e][0](r[e][1]),i.pop(),o[e]}return n.get(e,t)}function p(e,t){if(void 0===t&&(t={}),"function"!=typeof e){if(!Ge(e))throw s(`Cannot invoke "${e}". Expected a function!`);e=Ue(e.slice())}return{fn:e,dependencies:(e.$inject||Xe(e)).map((e=>We(t,e)?t[e]:c(e)))}}function l(e){const{fn:t,dependencies:n}=p(e);return new(Function.prototype.bind.call(t,null,...n))}function u(e,t,n){const{fn:i,dependencies:r}=p(e,n);return i.apply(t,r)}function h(e){return Ue((t=>e.get(t)))}function d(e,t){if(t&&t.length){const n=Object.create(null),i=Object.create(null),o=[],a=[],s=[];let c,p,l,u;for(let e in r)c=r[e],-1!==t.indexOf(e)&&("private"===c[2]?(p=o.indexOf(c[3]),-1===p?(l=c[3].createChild([],t),u=h(l),o.push(c[3]),a.push(l),s.push(u),n[e]=[u,e,"private",l]):n[e]=[s[p],e,"private",a[p]]):n[e]=[c[2],c[1]],i[e]=!0),"factory"!==c[2]&&"type"!==c[2]||!c[1].$scope||t.forEach((t=>{-1!==c[1].$scope.indexOf(t)&&(n[e]=[c[2],c[1]],i[t]=!0)}));t.forEach((e=>{if(!i[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')})),e.unshift(n)}return new Ze(e,a)}const f={factory:u,type:l,value:function(e){return e}};function m(e,t){const n=e.__init__||[];return function(){n.forEach((e=>{"string"==typeof e?t.get(e):t.invoke(e)}))}}function v(e){const t=e.__exports__;if(t){const n=e.__modules__,i=Object.keys(e).reduce(((t,n)=>("__exports__"!==n&&"__modules__"!==n&&"__init__"!==n&&"__depends__"!==n&&(t[n]=e[n]),t)),Object.create(null)),o=d((n||[]).concat(i)),a=Ue((function(e){return o.get(e)}));t.forEach((function(e){r[e]=[a,e,"private",o]}));const s=(e.__init__||[]).slice();return s.unshift((function(){o.init()})),m(e=Object.assign({},e,{__init__:s}),o)}return Object.keys(e).forEach((function(t){if("__init__"===t||"__depends__"===t)return;const n=e[t];if("private"===n[2])return void(r[t]=n);const i=n[0],o=n[1];r[t]=[f[i],Qe(i,o),i]})),m(e,a)}function y(e,t){return-1!==e.indexOf(t)||-1!==(e=(t.__depends__||[]).reduce(y,e)).indexOf(t)?e:e.concat(t)}this.get=c,this.invoke=u,this.instantiate=l,this.createChild=d,this.init=function(e){const t=e.reduce(y,[]).map(v);let n=!1;return function(){n||(n=!0,t.forEach((e=>e())))}}(e)}function Qe(e,t){return"value"!==e&&Ge(t)&&(t=Ue(t.slice())),t}function Je(e,t){var n=this;t=t||1e3,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,a=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function et(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function tt(e){return["L",e.x,e.y]}function nt(e,t){const n=e.length,i=[(r=e[0],["M",r.x,r.y])];var r,o,a,s;for(let r=1;r<n;r++){const n=e[r-1],c=e[r],p=e[r+1];if(!p||!t){i.push(tt(c));continue}const l=Math.min(t,rt(c.x-n.x,c.y-n.y),rt(p.x-c.x,p.y-c.y));if(!l){i.push(tt(c));continue}const u=it(c,n,l),h=it(c,n,.5*l),d=it(c,p,l),f=it(c,p,.5*l);i.push(tt(u)),i.push((a=f,s=d,["C",(o=h).x,o.y,a.x,a.y,s.x,s.y]))}return i}function it(e,t,n){const i=t.x-e.x,r=t.y-e.y,o=n/rt(i,r);return{x:e.x+i*o,y:e.y+r*o}}function rt(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function ot(e,t,n){u(t)&&(n=t,t=null),t||(t={});const i=Ae("path",t);return u(n)&&(i.dataset.cornerRadius=String(n)),at(i,e)}function at(e,t){return _e(e,{d:et(nt(t,parseInt(e.dataset.cornerRadius,10)||0))}),e}function st(e){return y(e,(function(t){return!m(e,(function(e){return e!==t&&ct(t,e)}))}))}function ct(e,t){if(t){if(e===t)return t;if(e.parent)return ct(e.parent,t)}}function pt(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function lt(e,t,n){n=n||0,p(e)||(e=[e]),g(e,(function(e,i){var r=t(e,i,n);p(r)&&r.length&<(r,t,n+1)}))}function ut(e,t){return function(e,t){var n=[],i=[];return lt(e,(function(e,r,o){pt(n,e,t);var a=e.children;if(a&&pt(i,a,t))return a})),n}(e,!t)}function ht(e,t){var n,i,r,o;return t=!!t,p(e)||(e=[e]),g(e,(function(e){var a=e;e.waypoints&&!t&&(a=ht(e.waypoints,!0));var s=a.x,c=a.y,p=a.height||0,l=a.width||0;(s<n||void 0===n)&&(n=s),(c<i||void 0===i)&&(i=c),(s+l>r||void 0===r)&&(r=s+l),(c+p>o||void 0===o)&&(o=c+p)})),{x:n,y:i,height:o-i,width:r-n}}function dt(e,t){var n={};return g(e,(function(e){var i=e;i.waypoints&&(i=ht(i)),!u(t.y)&&i.x>t.x&&(n[e.id]=e),!u(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(u(t.width)&&u(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:u(t.width)&&u(t.height)||(n[e.id]=e))})),n}function ft(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function mt(e){return!(!e||!e.isFrame)}function vt(e,t){return L({},e||{},t||{})}Je.prototype.canRender=function(e){},Je.prototype.drawShape=function(e,t){},Je.prototype.drawConnection=function(e,t){},Je.prototype.getShapePath=function(e){},Je.prototype.getConnectionPath=function(e){};function yt(e,t){Je.call(this,e,1),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}e(yt,Je),yt.prototype.canRender=function(){return!0},yt.prototype.drawShape=function(e,t,n){var i=Ae("rect");return _e(i,{x:0,y:0,width:t.width||0,height:t.height||0}),mt(t)?_e(i,L({},this.FRAME_STYLE,n||{})):_e(i,L({},this.SHAPE_STYLE,n||{})),ye(e,i),i},yt.prototype.drawConnection=function(e,t,n){var i=ot(t.waypoints,L({},this.CONNECTION_STYLE,n||{}));return ye(e,i),i},yt.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width;return et([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])},yt.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return et(r)},yt.$inject=["eventBus","styles"];var gt={__init__:["defaultRenderer"],defaultRenderer:["type",yt],styles:["type",function(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){return L(this.style(t,n),{class:e})},this.style=function(t,n){p(t)||n||(n=t,t=[]);var i=_(t,(function(t,n){return L(t,e[n]||{})}),{});return n?L(i,n):i},this.computeStyle=function(e,n,i){return p(n)||(i=n,n=[]),t.style(n||[],L({},i,e||{}))}}]};function bt(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n}function _t(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}}function xt(e,t){return e&&t?e.indexOf(t):-1}function wt(e,t){return e&&t?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):-1}function Et(e,t,n,i){if(void 0===i&&(i=5),!e||!t||!n)return!1;var r=(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),o=wt(e,t);return Math.abs(r/o)<=i}function St(e,t){var n=Array.from(arguments).flat();const i={x:"v",y:"h"};for(const[e,t]of Object.entries(i))if(Ct(e,n))return t;return!1}function Ct(e,t){const n=t[0];return x(t,(function(t){return Math.abs(n[e]-t[e])<=2}))}function kt(e,t,n){return n=n||0,e.x>t.x-n&&e.y>t.y-n&&e.x<t.x+t.width+n&&e.y<t.y+t.height+n}function Rt(e,t){return{x:Math.round(e.x+(t.x-e.x)/2),y:Math.round(e.y+(t.y-e.y)/2)}} function 7 */var Pt=/,?([a-z]),?/gi,At=parseFloat,Mt=Math,Tt=Mt.PI,Dt=Mt.min,Bt=Mt.max,Nt=Mt.pow,jt=Mt.abs,Ot=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,Lt=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,$t=Array.isArray||function(e){return e instanceof Array};function It(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ft(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)It(e,n)&&(t[n]=Ft(e[n]));return t}function zt(e){var t=zt.ps=zt.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout((function(){for(var n in t)It(t,n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])})),t[e]}function Ht(e,t,n,i){return 1===arguments.length&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,height:i,x2:e+n,y2:t+i}}function Vt(){return this.join(",").replace(Pt,"$1")}function Gt(e){var t=Ft(e);return t.toString=Vt,t}function Wt(e,t,n,i,r,o,a,s,c){var p=1-c,l=Nt(p,3),u=Nt(p,2),h=c*c*c,d=l*t+3*u*c*i+3*p*c*c*o+h* function 33 !function(e){!function(t,n,i,r){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),c=Math.round,p=Math.abs,l=Date.now;function u(e,t,n){return setTimeout(g(e,n),t)} global() function 194 `,this._current.container)},jc.prototype.open=function(e,t,n,i){if(!e)throw new Error("Element is missing");if(!t)throw new Error("No registered providers for: "+t);if(!n)throw global() function [all...] |
/plugin/xlsx2dw/packages/xmltojson/ |
H A D | xmltojson.js | 3 …;e=g&&g.previousSibling;while(e&&e.tagName!=t){e=e.previousSibling}function h(a){var b=a.lastIndex… function 577 function nh(a,b){var c,d,e,f,g,h;f=a.length;for(d=0;d<f;d++){c=(ws(d,a.length),a.charCodeAt(d));swi… function
|
/plugin/ol3/ |
H A D | script.js | 1 …{return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,… function 8 …hrow new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e… function
|
/plugin/c3chart/assets/ |
H A D | d3.min.js | 2 …his,function(t){"use strict";function n(t,n){return[t,n]}function e(t,n,e){var r=(n-t)/Math.max(0,… function
|