10 lines
255 KiB
JavaScript
10 lines
255 KiB
JavaScript
|
/*! bpmn-js - bpmn-viewer v0.14.1 | (c) 2014, 2015 camunda Services GmbH | bpmn.io/license */
|
||
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.BpmnJS=e()}}(function(){var e;return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return i(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";function r(e){var t=/unparsable content <([^>]+)> detected([\s\S]*)$/,n=t.exec(e.message);return n&&(e.message="unparsable content <"+n[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+n[2]),e}function i(e){return e+(l(e)?"px":"")}function o(e){e=s({},v,e),this.moddle=this._createModdle(e),this.container=this._createContainer(e),a(this.container),this._init(this.container,this.moddle,e)}function a(e){var t=x.BPMNIO_LOGO,n='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100"><img src="data:image/png;base64,'+t+'"></a>',r=p(n);e.appendChild(r),b.bind(r,"click",function(e){x.open(),e.preventDefault()})}var s=e(197),c=e(201),u=e(194),l=e(191),p=e(211),f=e(213),h=e(214),d=e(36),m=e(15),y=e(77),g=e(8),v={width:"100%",height:"100%",position:"relative",container:"body"};y(o,d),t.exports=o,o.prototype.importXML=function(e,t){t=t||function(){};var n=this;e=this._emit("import.parse.start",{xml:e})||e,this.moddle.fromXML(e,"bpmn:Definitions",function(e,i,o){if(i=n._emit("import.parse.complete",{error:e,definitions:i,context:o})||i,e)return e=r(e),n._emit("import.done",{error:e}),t(e);var a=o.warnings;n.importDefinitions(i,function(e,r){var i=[].concat(a,r||[]);n._emit("import.done",{error:e,warnings:i}),t(e,i)})})},o.prototype.saveXML=function(e,t){t||(t=e,e={});var n=this.definitions;return n?void this.moddle.toXML(n,e,t):t(new Error("no definitions loaded"))},o.prototype.saveSVG=function(e,t){t||(t=e,e={});var n=this.get("canvas"),r=n.getDefaultLayer(),i=n._svg.select("defs"),o=r.innerSVG(),a=i&&i.outerSVG()||"",s=r.getBBox(),c='<?xml version="1.0" encoding="utf-8"?>\n<!-- created with bpmn-js / http://bpmn.io -->\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="'+s.width+'" height="'+s.height+'" viewBox="'+s.x+" "+s.y+" "+s.width+" "+s.height+'" version="1.1">'+a+o+"</svg>";t(null,c)},o.prototype.importDefinitions=function(e,t){try{this.definitions&&this.clear(),this.definitions=e,g.importBpmnDiagram(this,e,t)}catch(n){t(n)}},o.prototype.getModules=function(){return this._modules},o.prototype.destroy=function(){d.prototype.destroy.call(this),h(this.container)},o.prototype.on=function(e,t,n,r){return this.get("eventBus").on(e,t,n,r)},o.prototype.off=function(e,t){this.get("eventBus").off(e,t)},o.prototype._init=function(e,t,n){var r=n.modules||this.getModules(),i=n.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,r,i),u=s(c(n,"additionalModules"),{canvas:s({},n.canvas,{container:e}),modules:a});d.call(this,u)},o.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},o.prototype._createContainer=function(e){var t,n=e.container;return n.get&&(n=n.get(0)),u(n)&&(n=f(n)),t=p('<div class="bjs-container"></div>'),s(t.style,{width:i(e.width),height:i(e.height),position:e.position}),n.appendChild(t),t},o.prototype._createModdle=function(e){var t=s({},this._moddleExtensions,e.moddleExtensions);return new m(t)},o.prototype._modules=[e(2),e(58),e(57),e(53)],o.prototype._moddleExtensions={};var x=e(14),b=e(212)},{14:14,15:15,191:191,194:194,197:197,2:2,201:201,211:211,212:21
|
||
|
},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,r,o=this.pathMap[e];t.abspos?(n=t.abspos.x,r=t.abspos.y):(n=t.containerWidth*t.position.mx,r=t.containerHeight*t.position.my);var a={};if(t.position){for(var s=t.containerHeight/o.height*t.yScaleFactor,c=t.containerWidth/o.width*t.xScaleFactor,u=0;u<o.heightElements.length;u++)a["y"+u]=o.heightElements[u]*s;for(var l=0;l<o.widthElements.length;l++)a["x"+l]=o.widthElements[l]*c}var p=i.format(o.d,{mx:n,my:r,e:a});return p}}var i=e(76);t.exports=r},{76:76}],5:[function(e,t,n){t.exports={__init__:["bpmnRenderer"],bpmnRenderer:["type",e(3)],pathMap:["type",e(4)]}},{3:3,4:4}],6:[function(e,t,n){"use strict";function r(e,t){return s({id:e.id,type:e.$type,businessObject:e},t)}function i(e){return c(e,function(e){return{x:e.x,y:e.y}})}function o(e,t,n,r){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:d(n),referenced:d(t),property:r}))}function a(e,t,n,r,i){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=r,this._translate=i}var s=e(197),c=e(86),u=e(12),l=e(13).is,p=u.hasExternalLabel,f=u.getExternalLabelBounds,h=e(11).isExpanded,d=e(9).elementToString;a.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate"],t.exports=a,a.prototype.add=function(e,t){var n,o=e.di,a=this._translate;if(l(o,"bpmndi:BPMNPlane"))n=this._elementFactory.createRoot(r(e)),this._canvas.setRootElement(n);else if(l(o,"bpmndi:BPMNShape")){var s=!h(e),c=t&&(t.hidden||t.collapsed),u=e.di.bounds;n=this._elementFactory.createShape(r(e,{collapsed:s,hidden:c,x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),height:Math.round(u.height)})),l(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,n),this._canvas.addShape(n,t)}else{if(!l(o,"bpmndi:BPMNEdge"))throw new Error(a("unknown di {di} for element {semantic}",{di:d(o),semantic:d(e)}));var f=this._getSource(e),m=this._getTarget(e);n=this._elementFactory.createConnection(r(e,{source:f,target:m,waypoints:i(e.di.waypoint)})),this._canvas.addConnection(n,t)}return p(e)&&this.addLabel(e,n),this._eventBus.f
|
||
|
for(var r=n;t--;){var i=e.tags[t];if(i.name===r)break;x(e,"Unexpected close tag")}if(0>t)return x(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=z.TEXT);e.tagName=n;for(var o=e.tags.length;o-- >t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,d(e,"onclosetag",e.tagName);var s={};for(var c in a.ns)s[c]=a.ns[c];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==u.ns&&Object.keys(a.ns).forEach(function(t){var n=a.ns[t];d(e,"onclosenamespace",{prefix:t,uri:n})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=z.TEXT}function S(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),i.toLowerCase()!==n?(x(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function T(e){var t=this;if(this.error)throw this.error;if(t.closed)return g(t,"Cannot write after close. Assign an onready handler.");if(null===e)return v(t);for(var n=0,r="";t.c=r=e.charAt(n++);)switch(t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++),t.state){case z.BEGIN:"<"===r?(t.state=z.OPEN_WAKA,t.startTagPosition=t.position):f(P,r)&&(x(t,"Non-whitespace before first tag."),t.textNode=r,t.state=z.TEXT);continue;case z.TEXT:if(t.sawRoot&&!t.closedRoot){for(var o=n-1;r&&"<"!==r&&"&"!==r;)r=e.charAt(n++),r&&t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(o,n-1)}"<"===r?(t.state=z.OPEN_WAKA,t.startTagPosition=t.position):(!f(P,r)||t.sawRoot&&!t.closedRoot||x(t,"Text data outside of root node."),"&"===r?t.state=z.TEXT_ENTITY:t.textNode+=r);continue;case z.SCRIPT:"<"===r?t.state=z.SCRIPT_ENDING:t.script+=r;continue;case z.SCRIPT_ENDING:"/"===r?t.state=z.CLOSE_TAG:(t.script+="<"+r,t.state=z.SCRIPT);continue;case z.OPEN_WAKA:if("!"===r)t.state=z.SGML_DECL,t.sgmlDecl="";else if(p(P,r));else if(p(U,r))t.state=z.OPEN_TAG,t.tagName=r;else if("/"===r)t.state=z.CLOSE_TAG,t.tagName="";else if("?"===r)t.state=z.PROC_INST,t.procInstName=t.procInstBody="";else{if(x(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;r=new Array(a).join(" ")+r}t.textNode+="<"+r,t.state=z.TEXT}continue;case z.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===L?(d(t,"onopencdata"),t.state=z.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=z.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===F?(t.state=z.DOCTYPE,(t.doctype||t.sawRoot)&&x(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===r?(d(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=z.TEXT):p(O,r)?(t.state=z.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case z.SGML_DECL_QUOTED:r===t.q&&(t.state=z.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case z.DOCTYPE:">"===r?(t.state=z.TEXT,d(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=z.DOCTYPE_DTD:p(O,r)&&(t.state=z.DOCTYPE_QUOTED,t.q=r));continue;case z.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=z.DOCTYPE);continue;case z.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=z.DOCTYPE:p(O,r)&&(t.state=z.DOCTYPE_DTD_QUOTED,t.q=r);continue;case z.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=z.DOCTYPE_DTD,t.q="");continue;case z.COMMENT:"-"===r?t.state=z.COMMENT_ENDING:t.comment+=r;continue;case z.COMMENT_ENDING:"-"===r?(t.state=z.COMMENT_ENDED,t.comment=y(t.opt,t.comment),t.comment&&d(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=z.COMMENT);continue;case z.COMMENT_ENDED:">"!==r?(x(t,"Malformed comment"),t.comment+="--"+r,t.state=z.COMMENT):t.state=z.TEXT;continue;case z.CDATA:"]"===r?t.state=z.CDATA_ENDING:t.cdata+=r;continue;case z.CDATA_ENDING:"]"===r?t.state=z.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=z.CDATA);continue;case z.CDATA_ENDING_2:">"===r?(t.cdata&&d(t,"oncdata",t.cdata),d(t,"onclosecdata"),t.cdata="",t.state=z.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=z.CDAT
|
||
|
superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection","default":!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection","default":!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited","default":!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRefs",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",
|
||
|
return{x:o,y:a,width:s,height:c}}},{191:191,197:197,61:61,62:62,76:76,80:80,83:83,91:91}],39:[function(e,t,n){"use strict";function r(){this._uid=12}var i=e(60);t.exports=r,r.prototype.createRoot=function(e){return this.create("root",e)},r.prototype.createLabel=function(e){return this.create("label",e)},r.prototype.createShape=function(e){return this.create("shape",e)},r.prototype.createConnection=function(e){return this.create("connection",e)},r.prototype.create=function(e,t){return t=t||{},t.id||(t.id=e+"_"+this._uid++),i.create(e,t)}},{60:60}],40:[function(e,t,n){"use strict";function r(){this._elements={}}var i="data-element-id";t.exports=r,r.prototype.add=function(e,t,n){var r=e.id;this._validateId(r),t.attr(i,r),n&&n.attr(i,r),this._elements[r]={element:e,gfx:t,secondaryGfx:n}},r.prototype.remove=function(e){var t=this._elements,n=e.id||e,r=n&&t[n];r&&(r.gfx.attr(i,""),r.secondaryGfx&&r.secondaryGfx.attr(i,""),delete t[n])},r.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e));var n=this.getGraphics(e),r=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,r)},r.prototype.get=function(e){var t;t="string"==typeof e?e:e&&e.attr(i);var n=this._elements[t];return n&&n.element},r.prototype.filter=function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(n)}),t},r.prototype.getAll=function(){return this.filter(function(e){return e})},r.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(n){var r=t[n],i=r.element,o=r.gfx;return e(i,o)})},r.prototype.getGraphics=function(e,t){var n=e.id||e,r=this._elements[n];return r&&(t?r.secondaryGfx:r.gfx)},r.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")}},{}],41:[function(e,t,n){"use strict";function r(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function i(){}function o(e,t){return e.apply(null,t)}var a=e(189),s=e(188),c=e(191),u=e(90),l=e(197),p="__fn",f=1e3,h=Array.prototype.slice;t.exports=r,r.prototype.on=function(e,t,n,r){if(e=s(e)?e:[e],a(t)&&(r=n,n=t,t=f),!c(t))throw new Error("priority must be a number");var i=n;r&&(i=u(n,r),i[p]=n[p]||n);var o=this,l={priority:t,callback:i};e.forEach(function(e){o._addListener(e,l)})},r.prototype.once=function(e,t,n,r){function i(){return o.off(e,i),n.apply(r,arguments)}var o=this;if(a(t)&&(r=n,n=t,t=f),!c(t))throw new Error("priority must be a number");i[p]=n,this.on(e,t,i)},r.prototype.off=function(e,t){var n,r,i,o=this._getListeners(e);if(t)for(i=o.length-1;n=o[i];i--)r=n.callback,r!==t&&r[p]!==t||o.splice(i,1);else o.length=0},r.prototype.fire=function(e,t){var n,r,o,a;if(a=h.call(arguments),"object"==typeof e&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(r=this._listeners[e]){t instanceof i?n=t:(n=new i,n.init(t)),a[0]=n;var s=n.type;e!==s&&(n.type=e);try{o=this._invokeListeners(n,a,r)}finally{e!==s&&(n.type=s)}return void 0===o&&n.defaultPrevented&&(o=!1),o}},r.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},r.prototype._destroy=function(){this._listeners={}},r.prototype._invokeListeners=function(e,t,n){var r,i,o;for(r=0;(i=n[r])&&!e.cancelBubble;r++)o=this._invokeListener(e,t,i);return o},r.prototype._invokeListener=function(e,t,n){var r;try{r=o(n.callback,t),void 0!==r&&(e.returnValue=r,e.stopPropagation()),r===!1&&e.preventDefault()}catch(i){if(!this.handleError(i))throw console.error("unhandled error in event listener"),console.error(i.stack),i}return r},r.prototype._addListener=function(e,t){var n,r,i=this._getListeners(e);for(r=0;n=i[r];r++)if(n.priority<t.priority)return void i.splice(r,0,t);i.push(t)},r.prototype._getListeners=function(e){var t=this._listeners[e];return t||(this._listeners[e]=t=[]),t},t.exports.Event=i,i.prototype.stopPropagation=function(){this.cancelBubble=!0},i.prototype.preventDefault=function(){this.defaultPrevented=!0},i.prototype.init=function(e){l(this,e||{})}},{188:188,189:189,191:191,197:197,90:90}],42:[function(e,t,n){"use strict";func
|
||
|
e.pdif=e.get()-e.b)},d=function(){var e=this;e.pdif&&(e.b=e.get()-e.pdif,delete e.pdif,n[e.id]=e)},m=function(){var e,t=this;if(i(t.start)){e=[];for(var n=0,r=t.start.length;r>n;n++)e[n]=+t.start[n]+(t.end[n]-t.start[n])*t.easing(t.s)}else e=+t.start+(t.end-t.start)*t.easing(t.s);t.set(e)},y=function(){var e=0;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i],a=o.get();e++,o.s=(a-o.b)/(o.dur/o.spd),o.s>=1&&(delete n[i],o.s=1,e--,function(e){setTimeout(function(){t("mina.finish."+e.id,e)})}(o)),o.update()}e&&r(y)},g=function(e,t,i,o,a,c,v){var x={id:s(),start:e,end:t,b:i,s:0,dur:o-i,spd:1,get:a,set:c,easing:v||g.linear,status:u,speed:l,duration:p,stop:f,pause:h,resume:d,update:m};n[x.id]=x;var b,E=0;for(b in n)if(n.hasOwnProperty(b)&&(E++,2==E))break;return 1==E&&r(y),x};return g.time=c,g.getById=function(e){return n[e]||null},g.linear=function(e){return e},g.easeout=function(e){return Math.pow(e,1.7)},g.easein=function(e){return Math.pow(e,.48)},g.easeinout=function(e){if(1==e)return 1;if(0==e)return 0;var t=.48-e/1.04,n=Math.sqrt(.1734+t*t),r=n-t,i=Math.pow(Math.abs(r),1/3)*(0>r?-1:1),o=-n-t,a=Math.pow(Math.abs(o),1/3)*(0>o?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},g.backin=function(e){if(1==e)return 1;var t=1.70158;return e*e*((t+1)*e-t)},g.backout=function(e){if(0==e)return 0;e-=1;var t=1.70158;return e*e*((t+1)*e+t)+1},g.elastic=function(e){return e==!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1},g.bounce=function(e){var t,n=7.5625,r=2.75;return 1/r>e?t=n*e*e:2/r>e?(e-=1.5/r,t=n*e*e+.75):2.5/r>e?(e-=2.25/r,t=n*e*e+.9375):(e-=2.625/r,t=n*e*e+.984375),t},e.mina=g,g}("undefined"==typeof t?function(){}:t),r=function(e){function n(e,t){if(e){if(e.tagName)return w(e);if(i(e,"array")&&n.set)return n.set.apply(n,e);if(e instanceof v)return e;if(null==t)return e=A.doc.querySelector(e),w(e)}return e=null==e?"100%":e,t=null==t?"100%":t,new E(e,t)}function r(e,t){if(t){if("#text"==e&&(e=A.doc.createTextNode(t.text||"")),"string"==typeof e&&(e=r(e)),"string"==typeof t)return"xlink:"==t.substring(0,6)?e.getAttributeNS(z,t.substring(6)):"xml:"==t.substring(0,4)?e.getAttributeNS(q,t.substring(4)):e.getAttribute(t);for(var n in t)if(t[_](n)){var i=S(t[n]);i?"xlink:"==n.substring(0,6)?e.setAttributeNS(z,n.substring(6),i):"xml:"==n.substring(0,4)?e.setAttributeNS(q,n.substring(4),i):e.setAttribute(n,i):e.removeAttribute(n)}}else e=A.doc.createElementNS(q,e);return e}function i(e,t){return t=S.prototype.toLowerCase.call(t),"finite"==t?isFinite(e):"array"==t&&(e instanceof Array||Array.isArray&&Array.isArray(e))?!0:"null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||O.call(e).slice(8,-1).toLowerCase()==t}function o(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)e[_](n)&&(t[n]=o(e[n]));return t}function a(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}function s(e,t,n){function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),s=r.cache=r.cache||{},c=r.count=r.count||[];return s[_](o)?(a(c,o),n?n(s[o]):s[o]):(c.length>=1e3&&delete s[c.shift()],c.push(o),s[o]=e.apply(t,i),n?n(s[o]):s[o])}return r}function c(e,t,n,r,i,o){if(null==i){var a=e-n,s=t-r;return a||s?(180+180*R.atan2(-s,-a)/k+360)%360:0}return c(e,t,i,o)-c(n,r,i,o)}function u(e){return e%360*k/180}function l(e){return 180*e/k%360}function p(e){var t=[];return e=e.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(e,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?t.push(["m",1,0,R.tan(u(r[0])),1,0,0]):"skewY"==n?t.push(["m",1,R.tan(u(r[0])),0,1,0,0]):t.push([n.charAt(0)].concat(r)),e}),t}function f(e,t){var r=J(e),i=new n.Matrix;if(r)for(var o=0,a=r.length;a>o;o++){var s,c,u,l,p,f=r[o],h=f.length,d=S(f[0]).toLowerCase(),m=f[0]!=d,y=m?i.invert():0;"t"==d&&2==h?i.translate(f[1],0):"t"==d&&3==h?m?(s=y.x(0,0),c=y.y(0,0),u=y.x(f[1],f[2]),l=y.y(f[1],f[2]),i.translate(u-s,l-c)):i.translate(f[1],f[2]):"r"==d?2==h?(p=p||t,i.rotate(f[1],p.x+p.
|
||
|
r.node.appendChild(e.node);!r.node.id&&m(r.node,{id:r.id}),m(this.node,{mask:y(r.id)})}}),function(e){t.on("snap.util.attr.clip",e),t.on("snap.util.attr.clip-path",e),t.on("snap.util.attr.clipPath",e)}(function(e){if(e instanceof n||e instanceof o){if(t.stop(),"clipPath"==e.type)var r=e;else r=l("clipPath",h(this)),r.node.appendChild(e.node),!r.node.id&&m(r.node,{id:r.id});m(this.node,{"clip-path":y(r.node.id||r.id)})}}),t.on("snap.util.attr.fill",a("fill")),t.on("snap.util.attr.stroke",a("stroke"));var b=/^([lr])(?:\(([^)]*)\))?(.*)$/i;t.on("snap.util.grad.parse",function(e){e=g(e);var t=e.match(b);if(!t)return null;var n=t[1],r=t[2],i=t[3];return r=r.split(/\s*,\s*/).map(function(e){return+e==e?+e:e}),1==r.length&&0==r[0]&&(r=[]),i=i.split("-"),i=i.map(function(e){e=e.split(":");var t={color:e[0]};return e[1]&&(t.offset=parseFloat(e[1])),t}),{type:n,params:r,stops:i}}),t.on("snap.util.attr.d",function(n){t.stop(),f(n,"array")&&f(n[0],"array")&&(n=e.path.toString.call(n)),n=g(n),n.match(/[ruo]/i)&&(n=e.path.toAbsolute(n)),m(this.node,{d:n})})(-1),t.on("snap.util.attr.#text",function(e){t.stop(),e=g(e);for(var n=i.doc.createTextNode(e);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(n)})(-1),t.on("snap.util.attr.path",function(e){t.stop(),this.attr({d:e})})(-1),t.on("snap.util.attr.class",function(e){t.stop(),this.node.className.baseVal=e})(-1),t.on("snap.util.attr.viewBox",function(e){var n;n=f(e,"object")&&"x"in e?[e.x,e.y,e.width,e.height].join(" "):f(e,"array")?e.join(" "):e,m(this.node,{viewBox:n}),t.stop()})(-1),t.on("snap.util.attr.transform",function(e){this.transform(e),t.stop()})(-1),t.on("snap.util.attr.r",function(e){"rect"==this.type&&(t.stop(),m(this.node,{rx:e,ry:e}))})(-1),t.on("snap.util.attr.textpath",function(e){if(t.stop(),"text"==this.type){var r,i,o;if(!e&&this.textPath){for(i=this.textPath;i.node.firstChild;)this.node.appendChild(i.node.firstChild);return i.remove(),void delete this.textPath}if(f(e,"string")){var a=h(this),s=p(a.parentNode).path(e);a.appendChild(s.node),r=s.id,s.attr({id:r})}else e=p(e),e instanceof n&&(r=e.attr("id"),r||(r=e.id,e.attr({id:r})));if(r)if(i=this.textPath,o=this.node,i)i.attr({"xlink:href":"#"+r});else{for(i=m("textPath",{"xlink:href":"#"+r});o.firstChild;)i.appendChild(o.firstChild);o.appendChild(i),this.textPath=p(i)}}})(-1),t.on("snap.util.attr.text",function(e){if("text"==this.type){for(var n=this.node,r=function(e){var t=m("tspan");if(f(e,"array"))for(var n=0;n<e.length;n++)t.appendChild(r(e[n]));else t.appendChild(i.doc.createTextNode(e));return t.normalize&&t.normalize(),t};n.firstChild;)n.removeChild(n.firstChild);for(var o=r(e);o.firstChild;)n.appendChild(o.firstChild)}t.stop()})(-1),t.on("snap.util.attr.fontSize",s)(-1),t.on("snap.util.attr.font-size",s)(-1),t.on("snap.util.getattr.transform",function(){return t.stop(),this.transform()})(-1),t.on("snap.util.getattr.textpath",function(){return t.stop(),this.textPath})(-1),function(){function n(n){return function(){t.stop();var r=i.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+n);return"none"==r?r:e(i.doc.getElementById(r.match(d)[1]))}}function r(e){return function(n){t.stop();var r="marker"+e.charAt(0).toUpperCase()+e.substring(1);if(""==n||!n)return void(this.node.style[r]="none");if("marker"==n.type){var i=n.node.id;return i||m(n.node,{id:n.id}),void(this.node.style[r]=y(i))}}}t.on("snap.util.getattr.marker-end",n("end"))(-1),t.on("snap.util.getattr.markerEnd",n("end"))(-1),t.on("snap.util.getattr.marker-start",n("start"))(-1),t.on("snap.util.getattr.markerStart",n("start"))(-1),t.on("snap.util.getattr.marker-mid",n("mid"))(-1),t.on("snap.util.getattr.markerMid",n("mid"))(-1),t.on("snap.util.attr.marker-end",r("end"))(-1),t.on("snap.util.attr.markerEnd",r("end"))(-1),t.on("snap.util.attr.marker-start",r("start"))(-1),t.on("snap.util.attr.markerStart",r("start"))(-1),t.on("snap.util.attr.marker-mid",r("mid"))(-1),t.on("snap.util.attr.markerMid",r("mid"))(-1)}(),t.on("snap.util.getattr.r",function(){return"rect"==this.type&&m(this.node,"r
|
||
|
return i.setAttribute("width",t),i.setAttribute("height",n),r||(r=document.body),r.appendChild(i),new e(i)}})},{75:75}],77:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],78:[function(e,t,n){function r(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=r},{}],79:[function(e,t,n){function r(e){if(c(e)&&!s(e)&&!(e instanceof i)){if(e instanceof o)return e;if(p.call(e,"__chain__")&&p.call(e,"__wrapped__"))return u(e)}return new o(e)}var i=e(94),o=e(95),a=e(126),s=e(188),c=e(173),u=e(186),l=Object.prototype,p=l.hasOwnProperty;r.prototype=a.prototype,t.exports=r},{126:126,173:173,186:186,188:188,94:94,95:95}],80:[function(e,t,n){function r(e,t,n){var r=s(e)?i:a;return n&&c(e,t,n)&&(t=void 0),"function"==typeof t&&void 0===n||(t=o(t,n,3)),r(e,t)}var i=e(99),o=e(107),a=e(113),s=e(188),c=e(169);t.exports=r},{107:107,113:113,169:169,188:188,99:99}],81:[function(e,t,n){function r(e,t,n){var r=s(e)?i:a;return t=o(t,n,3),r(e,t)}var i=e(100),o=e(107),a=e(114),s=e(188);t.exports=r},{100:100,107:107,114:114,188:188}],82:[function(e,t,n){var r=e(112),i=e(152),o=i(r);t.exports=o},{112:112,152:152}],83:[function(e,t,n){var r=e(98),i=e(112),o=e(153),a=o(r,i);t.exports=a},{112:112,153:153,98:98}],84:[function(e,t,n){var r=e(145),i=Object.prototype,o=i.hasOwnProperty,a=r(function(e,t,n){o.call(e,n)?e[n].push(t):e[n]=[t]});t.exports=a},{145:145}],85:[function(e,t,n){function r(e,t,n,r){var f=e?o(e):0;return c(f)||(e=l(e),f=e.length),n="number"!=typeof n||r&&s(t,n,r)?0:0>n?p(f+n,0):n||0,"string"==typeof e||!a(e)&&u(e)?f>=n&&e.indexOf(t,n)>-1:!!f&&i(e,t,n)>-1}var i=e(122),o=e(163),a=e(188),s=e(169),c=e(172),u=e(194),l=e(204),p=Math.max;t.exports=r},{122:122,163:163,169:169,172:172,188:188,194:194,204:204}],86:[function(e,t,n){function r(e,t,n){var r=s(e)?i:a;return t=o(t,n,3),r(e,t)}var i=e(101),o=e(107),a=e(127),s=e(188);t.exports=r},{101:101,107:107,127:127,188:188}],87:[function(e,t,n){var r=e(103),i=e(112),o=e(156),a=o(r,i);t.exports=a},{103:103,112:112,156:156}],88:[function(e,t,n){function r(e,t,n){var r=s(e)?i:a;return n&&c(e,t,n)&&(t=void 0),"function"==typeof t&&void 0===n||(t=o(t,n,3)),r(e,t)}var i=e(104),o=e(107),a=e(137),s=e(188),c=e(169);t.exports=r},{104:104,107:107,137:137,169:169,188:188}],89:[function(e,t,n){var r=e(165),i=r(Date,"now"),o=i||function(){return(new Date).getTime()};t.exports=o},{165:165}],90:[function(e,t,n){var r=e(157),i=e(181),o=e(93),a=1,s=32,c=o(function(e,t,n){var o=a;if(n.length){var u=i(n,c.placeholder);o|=s}return r(e,o,t,n,u)});c.placeholder={},t.exports=c},{157:157,181:181,93:93}],91:[function(e,t,n){function r(e,t,n){function r(){g&&clearTimeout(g),h&&clearTimeout(h),x=0,h=g=v=void 0}function c(t,n){n&&clearTimeout(n),h=g=v=void 0,t&&(x=o(),d=e.apply(y,f),g||h||(f=y=void 0))}function u(){var e=t-(o()-m);0>=e||e>t?c(v,h):g=setTimeout(u,e)}function l(){c(E,g)}function p(){if(f=arguments,m=o(),y=this,v=E&&(g||!w),b===!1)var n=w&&!g;else{h||w||(x=m);var r=b-(m-x),i=0>=r||r>b;i?(h&&(h=clearTimeout(h)),x=m,d=e.apply(y,f)):h||(h=setTimeout(l,r))}return i&&g?g=clearTimeout(g):g||t===b||(g=setTimeout(u,t)),n&&(i=!0,d=e.apply(y,f)),!i||g||h||(f=y=void 0),d}var f,h,d,m,y,g,v,x=0,b=!1,E=!0;if("function"!=typeof e)throw new TypeError(a);if(t=0>t?0:+t||0,n===!0){var w=!0;E=!1}else i(n)&&(w=!!n.leading,b="maxWait"in n&&s(+n.maxWait||0,t),E="trailing"in n?!!n.trailing:E);return p.cancel=r,p}var i=e(192),o=e(89),a="Expected a function",s=Math.max;t.exports=r},{192:192,89:89}],92:[function(e,t,n){var r=e(110),i=e(93),o=i(function(e,t){return r(e,1,t)});t.exports=o},{110:110,93:93}],93:[function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(i);return t=o(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,i=o(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(th
|
||
|
n.delegateTarget=r(i,t,!0,e),n.delegateTarget&&o.call(e,n)},a)},n.unbind=function(e,t,n,r){i.unbind(e,t,n,r)}},{217:217,219:219}],219:[function(e,t,n){var r=window.addEventListener?"addEventListener":"attachEvent",i=window.removeEventListener?"removeEventListener":"detachEvent",o="addEventListener"!==r?"on":"";n.bind=function(e,t,n,i){return e[r](o+t,n,i||!1),n},n.unbind=function(e,t,n,r){return e[i](o+t,n,r||!1),n}},{}],220:[function(e,t,n){function r(e,t){if(!e||1!==e.nodeType)return!1;if(a)return a.call(e,t);for(var n=i.all(t,e.parentNode),r=0;r<n.length;++r)if(n[r]==e)return!0;return!1}var i=e(221),o=Element.prototype,a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector;t.exports=r},{221:221}],221:[function(e,t,n){function r(e,t){return t.querySelector(e)}n=t.exports=function(e,t){return t=t||document,r(e,t)},n.all=function(e,t){return t=t||document,t.querySelectorAll(e)},n.engine=function(e){if(!e.one)throw new Error(".one callback required");if(!e.all)throw new Error(".all callback required");return r=e.one,n.all=e.all,n}},{}],222:[function(e,t,n){function r(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 r=n[1];if("body"==r){var i=t.createElement("html");return i.innerHTML=e,i.removeChild(i.lastChild)}var o=a[r]||a._default,s=o[0],c=o[1],u=o[2],i=t.createElement("div");for(i.innerHTML=c+e+u;s--;)i=i.lastChild;if(i.firstChild==i.lastChild)return i.removeChild(i.firstChild);for(var l=t.createDocumentFragment();i.firstChild;)l.appendChild(i.removeChild(i.firstChild));return l}t.exports=r;var i,o=!1;"undefined"!=typeof document&&(i=document.createElement("div"),i.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',o=!i.getElementsByTagName("link").length,i=void 0);var a={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:o?[1,"X<div>","</div>"]:[0,"",""]};a.td=a.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],a.option=a.optgroup=[1,'<select multiple="multiple">',"</select>"],a.thead=a.tbody=a.colgroup=a.caption=a.tfoot=[1,"<table>","</table>"],a.polyline=a.ellipse=a.polygon=a.circle=a.text=a.line=a.path=a.rect=a.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},{}],223:[function(e,t,n){t.exports=e(225),t.exports.Collection=e(224)},{224:224,225:225}],224:[function(e,t,n){"use strict";function r(e,t,n,r){var i=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,i,r)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e){this.contains(e)||(this.push(e),t.set(e,i,r))}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function i(e){return e.__refs_collection===!0}t.exports.extend=r,t.exports.isExtended=i},{}],225:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)}function i(e,t,n){Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:s.extend(n[t.name]||[],e,t,n)})}function o(e,t,n){var r=t.inverse,i=n[t.name];Object.defineProperty(n,t.name,{enumerable:t.enumerable,get:function(){return i},set:function(t){if(t!==i){var o=i;i=null,o&&e.unset(o,r,n),i=t,e.set(i,r,n)}}})}function a(e,t){return this instanceof a?(e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,void(this.props[t.name]=t)):new a(e,t)}var s=e(224);a.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?i(this,t,e):o(this,t,e)},a.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return s.isExtended(n)||i(this,t,e),n},a.prototype.ensureBound=function(e,t){r(e,t)||this.bind(e,t)},a.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.nam
|